• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/Configuration/General.php
  • Класс: BitrixImConfigurationGeneral
  • Вызов: General::getDefaultSettings
static function getDefaultSettings(): array
{
	return [
		'status' => 'online',
		'backgroundImage' => false,
		'bxdNotify' => true,
		'sshNotify' => true,
		'generalNotify' => true,
		'trackStatus' => '',
		'nativeNotify' => true,
		'openDesktopFromPanel' => true,
		'viewOffline' => Option::get("im", "view_offline"),
		'viewGroup' => Option::get("im", "view_group"),
		'viewLastMessage' => true,
		'viewBirthday' => true,
		'viewCommonUsers' => true,
		'enableSound' => true,
		'enableBigSmile' => true,
		'enableDarkTheme' => 'auto',
		'isCurrentThemeDark' => false,
		'enableRichLink' => true,
		'linesTabEnable' => true,
		'linesNewGroupEnable' => false,
		'sendByEnter' => Option::get("im", "send_by_enter"),
		'correctText' => Option::get("im", "correct_text"),
		'panelPositionHorizontal' => Option::get("im", "panel_position_horizontal"),
		'panelPositionVertical' => Option::get("im", "panel_position_vertical"),
		'loadLastMessage' => true,
		'loadLastNotify' => Option::get("im", "load_last_notify"),
		'notifyAutoRead' => true,
		'notifyScheme' => 'simple',
		'notifySchemeLevel' => 'important',
		'notifySchemeSendSite' => true,
		'notifySchemeSendEmail' => !IsModuleInstalled('bitrix24'),
		'notifySchemeSendXmpp' => true,
		'notifySchemeSendPush' => true,
		'privacyMessage' => Option::get("im", "privacy_message"),
		'privacyChat' => Option::get("im", "privacy_chat"),
		'privacyCall' => Option::get("im", "privacy_call"),
		'privacySearch' => Option::get("im", "privacy_search"),
		'privacyProfile' => Option::get("im", "privacy_profile"),
		'callAcceptIncomingVideo' => VideoStrategyType::ALLOW_ALL,
		'backgroundImageId' => 1,
		'chatAlignment' => 'left',
		'next' => false,
	];
}