403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/im/old-chat-embedding/component/search/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/im/old-chat-embedding/component/search/config.php
<?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,
];

Youez - 2016 - github.com/yon3zu
LinuXploit