- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/promotion.php
- Класс: BitrixImPromotion
- Вызов: Promotion::getConfig
static function getConfig()
{
$result = [];
if (!BitrixMainLoader::includeModule('ui'))
{
return $result;
}
/*
$result[] = [
"ID" => 'im:video:01042020:web',
"USER_TYPE" => self::USER_TYPE_OLD,
"DEVICE_TYPE" => self::DEVICE_TYPE_WEB
];
$result[] = [
"ID" => 'ol:crmform:17092021:web',
"USER_TYPE" => self::USER_TYPE_OLD,
"DEVICE_TYPE" => self::DEVICE_TYPE_WEB
];
$result[] = [
"ID" => 'im:call-document:16102021:web',
"USER_TYPE" => self::USER_TYPE_ALL,
"DEVICE_TYPE" => self::DEVICE_TYPE_WEB
];
$result[] = [
"ID" => 'imbot:support24:25112021:web',
"USER_TYPE" => self::USER_TYPE_OLD,
"DEVICE_TYPE" => self::DEVICE_TYPE_WEB
];
$result[] = [
"ID" => 'im:mask:06122022:desktop',
"USER_TYPE" => self::USER_TYPE_OLD,
"DEVICE_TYPE" => self::DEVICE_TYPE_DESKTOP
];
*/
$result[] = [
"ID" => 'im:ai:15062023:all',
"USER_TYPE" => self::USER_TYPE_ALL,
"DEVICE_TYPE" => self::DEVICE_TYPE_ALL
];
$result[] = [
"ID" => 'im:group-chat-create:20062023:all',
"USER_TYPE" => self::USER_TYPE_ALL,
"DEVICE_TYPE" => self::DEVICE_TYPE_ALL
];
$result[] = [
"ID" => 'im:conference-create:24082023:all',
"USER_TYPE" => self::USER_TYPE_ALL,
"DEVICE_TYPE" => self::DEVICE_TYPE_ALL
];
$settings = BitrixMainConfigConfiguration::getValue('im');
if (isset($settings['promotion']) && is_array($settings['promotion']))
{
$result = array_merge($result, $settings['promotion']);
}
return $result;
}