'https://util.1c-bitrix.ru', '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',]; 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 const URL_RENEWAL_LICENSE=[ 'com' => 'https://store.bitrix24.com/profile/license-keys.php', 'eu' => 'https://store.bitrix24.eu/profile/license-keys.php', 'de' => 'https://store.bitrix24.de/profile/license-keys.php', 'ru' => 'https://www.1c-bitrix.ru/buy/products/b24.php#tab-section-2', 'by' => 'https://www.1c-bitrix.by/buy/products/b24.php#tab-section-2', 'kz' => 'https://www.1c-bitrix.kz/buy/products/b24.php#tab-section-2',]; private const CIS=['ru' => 1, 'by' => 1, 'kz' => 1, 'uz' => 1, 'kg' => 1, 'am' => 1, 'az' => 1, 'ge' => 1]; public function getKey(): string{ if($this->_108404754 === null){ $_1830151730= Loader::getDocumentRoot(). ___408382053(0); $LICENSE_KEY= ___408382053(1); if($GLOBALS['____508799222'][0]($_1830151730)){ include($_1830151730);} $this->_108404754=($LICENSE_KEY == ___408382053(2) || $GLOBALS['____508799222'][1]($LICENSE_KEY) == ___408382053(3)? ___408382053(4): $LICENSE_KEY);} return $this->_108404754;} public function getHashLicenseKey(): string{ return $GLOBALS['____508799222'][2]($this->getKey());} public function getPublicHashKey(): string{ return $GLOBALS['____508799222'][3](___408382053(5). $this->getKey(). ___408382053(6));} public function isDemoKey(): bool{ return $this->getKey() == ___408382053(7);} public function getBuyLink(): string{ return $this->getDomainStoreLicense(). ___408382053(8). $this->getHashLicenseKey(). ___408382053(9). LANGUAGE_ID;} public function getDocumentationLink(): string{ if($this->isCis()){ return ___408382053(10);} return ___408382053(11);} public function getRenewalLink(): string{ $_846796913= $this->getRegion(); if($GLOBALS['____508799222'][4]($_846796913,[___408382053(12), ___408382053(13), ___408382053(14), ___408382053(15)])){ return self::URL_RENEWAL_LICENSE[$_846796913];} if($GLOBALS['____508799222'][5]($_846796913,[___408382053(16), ___408382053(17), ___408382053(18), ___408382053(19), ___408382053(20)])){ return self::URL_RENEWAL_LICENSE[___408382053(21)];} return self::URL_RENEWAL_LICENSE[___408382053(22)];} public function getDomainStoreLicense(): string{ return self::DOMAINS_STORE_LICENSE[$this->getRegion()] ?? self::DOMAINS_STORE_LICENSE[___408382053(23)];} public function isDemo(): bool{ return $GLOBALS['____508799222'][6](___408382053(24)) && DEMO === ___408382053(25);} public function isTimeBound(): bool{ return $GLOBALS['____508799222'][7](___408382053(26)) && TIMELIMIT_EDITION === ___408382053(27);} public function isEncoded(): bool{ return $GLOBALS['____508799222'][8](___408382053(28)) && ENCODE === ___408382053(29);} public function getExpireDate():?Date{ $_1535357243= (int)($GLOBALS[___408382053(30)] ??(970-2*485)); if($_1535357243>(928-2*464)){ return Date::createFromTimestamp($_1535357243);} return null;} public function getSupportExpireDate():?Date{ $_1535357243= Option::get(___408382053(31), ___408382053(32)); if(Date::isCorrect($_1535357243, ___408382053(33))){ return new Date($_1535357243, ___408382053(34));} return null;} public function isCis(): bool{ return isset(self::CIS[$this->getRegion()]);} public function getRegion():?string{ if($this->_846796913 === null){ if(Loader::includeModule(___408382053(35))){ $this->_846796913= \CBitrix24::getPortalZone();} else{ $_846796913= Option::get(___408382053(36), ___408382053(37)); if(empty($_846796913)){ $_846796913= $this->__511606198(); if(empty($_846796913)){ $_846796913= $this->__1612059883();}} $this->_846796913= $_846796913 ?? ___408382053(38);}} return $this->_846796913?: null;} public function getEulaLink(): string{ if(ModuleManager::isModuleInstalled(___408382053(39))){ return self::URL_CP_EULA[$this->getRegion()] ?? self::URL_CP_EULA[___408382053(40)];} return self::URL_BUS_EULA[$this->getRegion()] ?? self::URL_BUS_EULA[___408382053(41)];} private function __511606198():?string{ $_731070043= Option::get(___408382053(42), ___408382053(43)); if($_731070043 === ___408382053(44) || $_731070043 === ___408382053(45)){ return ___408382053(46);} if($_731070043 === ___408382053(47) || $_731070043 === ___408382053(48)){ return ___408382053(49);} return null;} private function __1612059883():?string{ $_1941165831= Application::getDocumentRoot(); if($GLOBALS['____508799222'][9]($_1941165831. ___408382053(50))){ return ___408382053(51);} if($GLOBALS['____508799222'][10]($_1941165831. ___408382053(52))){ return ___408382053(53);} if($GLOBALS['____508799222'][11]($_1941165831. ___408382053(54))){ return ___408382053(55);} if($GLOBALS['____508799222'][12]($_1941165831. ___408382053(56))){ return ___408382053(57);} return null;} public function getPartnerId(): int{ return (int)Option::get(___408382053(58), ___408382053(59),(908-2*454));} public function getMaxUsers(): int{ return (int)Option::get(___408382053(60), ___408382053(61),(136*2-272));} public function isExtraCountable(): bool{ return Option::get(___408382053(62), ___408382053(63), ___408382053(64)) === ___408382053(65) && ModuleManager::isModuleInstalled(___408382053(66));} public function getActiveUsersCount(Date $_964828600= null): int{ $_262500559= Application::getConnection(); $_978864693=(882-2*441); if($_964828600 !== null){ $_1738373292= ___408382053(67).$_262500559->getSqlHelper()->convertToDbDate($_964828600);} else{ $_1738373292= ___408382053(68);} if(ModuleManager::isModuleInstalled(___408382053(69))){ $_9248904=" SELECT COUNT(DISTINCT U.ID) FROM b_user U INNER JOIN b_user_field F ON F.ENTITY_ID = 'USER' AND F.FIELD_NAME = 'UF_DEPARTMENT' INNER JOIN b_utm_user UF ON UF.FIELD_ID = F.ID AND UF.VALUE_ID = U.ID AND UF.VALUE_INT > 0 WHERE U.ACTIVE = 'Y' {$_1738373292} "; $_978864693= (int)$_262500559->queryScalar($_9248904); $_627727213= (int)Option::get(___408382053(70), ___408382053(71)); if($_627727213> min(214,0,71.333333333333) && $this->isExtraCountable()){ $_9248904=" SELECT COUNT(1) FROM b_user U INNER JOIN b_extranet_user EU ON EU.USER_ID = U.ID AND EU.CHARGEABLE = 'Y' INNER JOIN b_user_group UG ON UG.USER_ID = U.ID AND UG.GROUP_ID = {$_627727213} LEFT JOIN ( SELECT UF.VALUE_ID FROM b_user_field F INNER JOIN b_utm_user UF ON UF.FIELD_ID = F.ID AND UF.VALUE_INT > 0 WHERE F.ENTITY_ID = 'USER' AND F.FIELD_NAME = 'UF_DEPARTMENT' ) D ON D.VALUE_ID = U.ID WHERE U.ACTIVE = 'Y' {$_1738373292} AND D.VALUE_ID IS NULL "; $_978864693 += (int)$_262500559->queryScalar($_9248904);}} return $_978864693;} public function getName(): string{ return Option::get(___408382053(72), ___408382053(73));} public function getCodes(): array{ $_1473531855= Option::get(___408382053(74), ___408382053(75)); if($_1473531855 != ___408382053(76)){ return $GLOBALS['____508799222'][13](___408382053(77), $_1473531855);} return[];}}?>