• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/factory.php
  • Класс: Bitrix\Crm\Automation\Factory
  • Вызов: Factory::isScriptAvailable
static function isScriptAvailable($entityTypeId, $ignoreLicense = false): bool
{
	if ($entityTypeId === \CCrmOwnerType::Contact || $entityTypeId === \CCrmOwnerType::Company)
	{
		$entityTypeId = \CCrmOwnerType::Deal;
	}

	return static::isAutomationAvailable($entityTypeId, $ignoreLicense);
}