• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/factory.php
  • Класс: Bitrix\Crm\Automation\Factory
  • Вызов: Factory::getSupportedEntityTypes
static function getSupportedEntityTypes()
{
	if (is_null(static::$supportedEntityTypes))
	{
		static::$supportedEntityTypes = [\CCrmOwnerType::Deal];

		if (!Loader::includeModule('bitrix24') || Feature::isFeatureEnabled('crm_leads'))
		{
			static::$supportedEntityTypes[] = \CCrmOwnerType::Lead;
		}

		if (QuoteSettings::getCurrent()->isFactoryEnabled())
		{
			static::$supportedEntityTypes[] = \CCrmOwnerType::Quote;
		}

		if (InvoiceSettings::getCurrent()->isSmartInvoiceEnabled())
		{
			static::$supportedEntityTypes[] = \CCrmOwnerType::SmartInvoice;
		}

		if (\CCrmSaleHelper::isWithOrdersMode())
		{
			static::$supportedEntityTypes[] = \CCrmOwnerType::Order;
		}

		if ((new Sign())->isEnabled())
		{
			static::$supportedEntityTypes[] = \CCrmOwnerType::SmartDocument;
		}
	}

	return static::$supportedEntityTypes;
}