Server IP : 85.193.89.191 / Your IP : 3.149.234.209 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/js/im/old-chat-embedding/component/search/ |
Upload File : |
<?php use Bitrix\Main\Loader; use Bitrix\Main\ModuleManager; if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) { die(); } $isNetworkProviderAvailable = static function() { $modulesIncluded = Loader::includeModule('imopenlines') && Loader::includeModule('imbot'); $networkProviderExists = class_exists(\Bitrix\ImBot\Integration\Ui\EntitySelector\NetworkProvider::class); return $modulesIncluded && $networkProviderExists; }; $isNetworkSearchEnabled = static function() { $modulesIncluded = Loader::includeModule('imconnector'); if (!$modulesIncluded) { return false; } $optionMethodExists = method_exists('\Bitrix\ImConnector\Connectors\Network', 'isSearchEnabled'); if (!$optionMethodExists) { return true; } return \Bitrix\ImConnector\Connectors\Network::isSearchEnabled(); }; return [ 'css' => 'dist/search.bundle.css', 'js' => 'dist/search.bundle.js', 'rel' => [ 'ui.design-tokens', 'im.old-chat-embedding.lib.menu', 'ui.fonts.opensans', 'im.old-chat-embedding.lib.utils', 'im.old-chat-embedding.lib.logger', 'ui.dexie', 'im.old-chat-embedding.component.elements', 'main.core', 'main.core.events', 'im.old-chat-embedding.const', ], 'settings' => [ 'minTokenSize' => \Bitrix\Main\ORM\Query\Filter\Helper::getMinTokenSize(), 'isNetworkAvailable' => $isNetworkProviderAvailable(), 'isNetworkSearchEnabled' => $isNetworkSearchEnabled(), 'isDepartmentsAvailable' => Loader::includeModule('intranet') && ModuleManager::isModuleInstalled('intranet'), 'isCrmAvailable' => Loader::includeModule('crm') && ModuleManager::isModuleInstalled('crm'), ], 'skip_core' => false, ];