86 if (isset(self::$permissionsByChatTypes))
88 return self::$permissionsByChatTypes;
93 if ($generalChat !==
null)
95 $roleForPostToGeneral = $generalChat->getCanPost();
118 self::ACTION_SEND => $roleForPostToGeneral,
132 if (Loader::includeModule(
'imbot'))
134 self::$permissionsByChatTypes[\Bitrix\ImBot\Service\Notifier::CHAT_ENTITY_TYPE] = [
140 self::$permissionsByChatTypes[\Bitrix\ImBot\Bot\Support24::CHAT_ENTITY_TYPE] = [
150 self::$permissionsByChatTypes[\Bitrix\ImBot\Bot\Network::CHAT_ENTITY_TYPE] =
151 self::$permissionsByChatTypes[\Bitrix\ImBot\Bot\Support24::CHAT_ENTITY_TYPE]
155 if (Loader::includeModule(
'socialnetwork'))
166 if (Loader::includeModule(
'tasks'))
171 if (Loader::includeModule(
'calendar'))
173 self::$permissionsByChatTypes[\CCalendar::CALENDAR_CHAT_ENTITY_TYPE] = $default;
176 if (\
Bitrix\Main\Loader::includeModule(
'crm'))
185 if (\
Bitrix\Main\Loader::includeModule(
'voximplant'))
196 foreach (self::$permissionsByChatTypes as $code => $value)
198 self::$permissionsByChatTypes[$code] = array_merge($default, $value);
201 if ($this->jsonFormat)
203 return $this->converter->process(self::$permissionsByChatTypes);
206 return self::$permissionsByChatTypes;