4use Bitrix\Main\ArgumentException;
5use Bitrix\Main\Config\Option;
6use Bitrix\Main\Context;
7use Bitrix\Main\Web\Json;
29 foreach ($types as
$type => $value)
42 $broadcastingEnabled =
false;
46 if (!isset(
$settings[
'call'][
'broadcast_enabled']))
48 return $broadcastingEnabled;
51 return (
bool)
$settings[
'call'][
'broadcast_enabled'];
59 $result = Option::get(
'im',
'call_beta_access',
'N');
68 $result = Option::get(
'im',
'ai_beta_access',
'N');
80 if (!\
Bitrix\
Main\Loader::includeModule(
'intranet'))
90 if (!self::isV2Available())
95 if (Option::get(
'im',
'legacy_chat_enabled',
'N') ===
'Y')
100 if (CUserOptions::GetOption(
'im',
'legacy_chat_user_enabled',
'N',
$userId) ===
'Y')
105 $isLegacy = Context::getCurrent()?->getRequest()->getQuery(
'IM_LEGACY');
107 return $isLegacy ===
'Y';
112 if (!self::isV2Available())
117 CUserOptions::SetOption(
'im',
'legacy_chat_user_enabled', $active ?
'Y' :
'N',
false,
$userId);
118 \Bitrix\Intranet\Composite\CacheProvider::deleteUserCache();
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
static getUserId($userId=null)
static setLegacyChatActivity($active=true, $userId=false)
static isCallBetaAvailable()
static isBroadcastingEnabled()
static isAiBetaAvailable()
static isLegacyChatActivated($userId=false)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)