'https://util.1c-bitrix.ru', 'ua' => 'https://util.bitrix.ua', 'en' => 'https://util.bitrixsoft.com', 'kz' => 'https://util.1c-bitrix.kz', 'by' => 'https://util.1c-bitrix.by',]; public const URL_BUS_EULA=[ 'ru' => 'https://www.1c-bitrix.ru/download/law/eula_bus.pdf', 'by' => 'https://www.1c-bitrix.by/download/law/eula_bus.pdf', 'kz' => 'https://www.1c-bitrix.kz/download/law/eula_bus.pdf', 'ua' => 'https://www.bitrix.ua/download/law/eula_bus.pdf',]; public const URL_CP_EULA=[ 'ru' => 'https://www.1c-bitrix.ru/download/law/eula_cp.pdf', 'by' => 'https://www.1c-bitrix.by/download/law/eula_cp.pdf', 'kz' => 'https://www.1c-bitrix.kz/download/law/eula_cp.pdf', 'en' => 'https://www.bitrix24.com/eula/', 'br' => 'https://www.bitrix24.com.br/eula/', 'fr' => 'https://www.bitrix24.fr/eula/', 'pl' => 'https://www.bitrix24.pl/eula/', 'it' => 'https://www.bitrix24.it/eula/', 'la' => 'https://www.bitrix24.es/eula/',]; public function getKey(): string{ if($this->_1658276291 === null){ $_324026122= Loader::getDocumentRoot(). ___1991557030(0); $LICENSE_KEY= ___1991557030(1); if($GLOBALS['____830237672'][0]($_324026122)){ include($_324026122);} $this->_1658276291=($LICENSE_KEY == ___1991557030(2) || $GLOBALS['____830237672'][1]($LICENSE_KEY) == ___1991557030(3)? ___1991557030(4): $LICENSE_KEY);} return $this->_1658276291;} public function getHashLicenseKey(): string{ return $GLOBALS['____830237672'][2]($this->getKey());} public function getPublicHashKey(): string{ return $GLOBALS['____830237672'][3](___1991557030(5). $this->getKey(). ___1991557030(6));} public function isDemoKey(): bool{ return $this->getKey() == ___1991557030(7);} public function getBuyLink(): string{ return $this->getDomainStoreLicense(). ___1991557030(8). $this->getHashLicenseKey(). ___1991557030(9). LANGUAGE_ID;} public function getDocumentationLink(): string{ $_572630870= $this->getRegion(); if($GLOBALS['____830237672'][4]($_572630870,[___1991557030(10), ___1991557030(11), ___1991557030(12)])){ return ___1991557030(13);} return ___1991557030(14);} public function getDomainStoreLicense(): string{ return self::DOMAINS_STORE_LICENSE[$this->getRegion()] ?? self::DOMAINS_STORE_LICENSE[___1991557030(15)];} public function isDemo(): bool{ return $GLOBALS['____830237672'][5](___1991557030(16)) && DEMO === ___1991557030(17);} public function isTimeBound(): bool{ return $GLOBALS['____830237672'][6](___1991557030(18)) && TIMELIMIT_EDITION === ___1991557030(19);} public function isEncoded(): bool{ return $GLOBALS['____830237672'][7](___1991557030(20)) && ENCODE === ___1991557030(21);} public function getExpireDate():?Date{ $_1291101068= (int)$GLOBALS[___1991557030(22)]; if($_1291101068>(798-2*399)){ return Date::createFromTimestamp($_1291101068);} return null;} public function getRegion():?string{ if(Loader::includeModule(___1991557030(23))){ return \CBitrix24::getPortalZone();} $_572630870= Option::get(___1991557030(24), ___1991557030(25)); if(!empty($_572630870)){ return $_572630870;} $_572630870= $this->__582779276(); if(!empty($_572630870)){ return $_572630870;} return $this->__946731824();} public function getEulaLink(): string{ if(ModuleManager::isModuleInstalled(___1991557030(26))){ return self::URL_CP_EULA[$this->getRegion()] ?? self::URL_CP_EULA[___1991557030(27)];} return self::URL_BUS_EULA[$this->getRegion()] ?? self::URL_BUS_EULA[___1991557030(28)];} private function __582779276():?string{ $_1726058622= Option::get(___1991557030(29), ___1991557030(30)); if($_1726058622 === ___1991557030(31)){ return ___1991557030(32);} if($_1726058622 === ___1991557030(33)){ return ___1991557030(34);} if($_1726058622 === ___1991557030(35)){ return ___1991557030(36);} return null;} private function __946731824():?string{ $_328582581= Application::getDocumentRoot(); if($GLOBALS['____830237672'][8]($_328582581. ___1991557030(37))){ return ___1991557030(38);} if($GLOBALS['____830237672'][9]($_328582581. ___1991557030(39))){ return ___1991557030(40);} if($GLOBALS['____830237672'][10]($_328582581. ___1991557030(41))){ return ___1991557030(42);} if($GLOBALS['____830237672'][11]($_328582581. ___1991557030(43))){ return ___1991557030(44);} return null;} public function getPartnerId(): int{ return (int)Option::get(___1991557030(45), ___1991557030(46),(128*2-256));} public function getMaxUsers(): int{ return (int)Option::get(___1991557030(47), ___1991557030(48),(860-2*430));} public function isExtraCountable(): bool{ return Option::get(___1991557030(49), ___1991557030(50), ___1991557030(51)) === ___1991557030(52) && ModuleManager::isModuleInstalled(___1991557030(53));} public function getActiveUsersCount(Date $_242322343= null){ $_1464760834= Application::getConnection(); if($_242322343 !== null){ $_1058129893= ___1991557030(54).$_1464760834->getSqlHelper()->convertToDbDate($_242322343);} else{ $_1058129893= ___1991557030(55);} if(ModuleManager::isModuleInstalled(___1991557030(56))){ $_254662770= ___1991557030(57). $_1058129893. ___1991557030(58); $_166107031= (int)$_1464760834->queryScalar($_254662770); if($this->isExtraCountable()){ $_2054449058= (int)Option::get(___1991557030(59), ___1991557030(60)); if($_2054449058>(1112/2-556)){ $_254662770= ___1991557030(61). $_2054449058. ___1991557030(62). $_1058129893. ___1991557030(63); $_166107031 += (int)$_1464760834->queryScalar($_254662770);}}} else{ $_254662770= ___1991557030(64). $_1058129893. ___1991557030(65); $_166107031= (int)$_1464760834->queryScalar($_254662770);} return $_166107031;}}?>