655 if ($this->message instanceof
iAds)
657 return Integration\Bitrix24\Service::isAdAvailable();
662 return Integration\Bitrix24\Service::isRcAvailable();
668 return Integration\Bitrix24\Service::isEmailAvailable();
670 return Integration\Bitrix24\Service::isMasterYandexAvailable();
673 return Integration\Bitrix24\Service::isMailingsAvailable();
737 $parts = explode(
'.', $code, 2);
738 if (count($parts) === 1)
743 $entityId = $parts[1];
745 if (!self::$statuses)
747 $refClass = new \ReflectionClass(\
Bitrix\Crm\StatusTable::class);
748 $refConstants = $refClass->getConstants();
749 if (is_iterable($refConstants))
751 foreach ($refConstants as $key => $refConstant)
753 if (mb_strpos($key, self::PATTERN_STATUS_ITEM) !==
false)
755 self::$statuses[] = $refConstant;
761 if (!in_array($entityId, self::$statuses,
true))
766 $values = \Bitrix\Crm\StatusTable::getStatusesList($entityId);
767 if (array_key_exists($value, $values))
769 return $values[$value];
777 $parts = explode(
'.', $code, 2);
778 if (count($parts) === 1)
784 $crmEntityTypeId !==
null
785 && (!$this->factory || $this->factory->getEntityTypeId() !== $crmEntityTypeId)
788 $this->factory = \Bitrix\Crm\Service\Container::getInstance()->getFactory($crmEntityTypeId);
793 $parts[1] = $this->factory->getCommonFieldNameByMap($parts[1]);
794 return implode(
'.', $parts);