EventHandler::onSenderTransportList

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. EventHandler
  4. onSenderTransportList
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/eventhandler.php
  • Класс: Bitrix\Sender\Integration\EventHandler
  • Вызов: EventHandler::onSenderTransportList
static function onSenderTransportList()
{
	$list = array();

	// mail
	$list[] = 'Bitrix\Sender\Integration\Sender\Mail\TransportMail';

	// sms
	if (MessageService\Sms\Service::canUse())
	{
		$list[] = 'Bitrix\Sender\Integration\MessageService\Sms\TransportSms';
	}

	// im
	if (Im\Service::canUse())
	{
		$list[] = 'Bitrix\Sender\Integration\Im\TransportIm';
	}

	// call
	if (VoxImplant\Service::canUse())
	{
		$list[] = 'Bitrix\Sender\Integration\VoxImplant\TransportCall';
		$list[] = 'Bitrix\Sender\Integration\VoxImplant\TransportAudioCall';
	}

	// web_hook
	//$list[] = 'Bitrix\Sender\Integration\Sender\WebHook\TransportWebHook';

	// Ads
	if (Seo\Ads\Service::canUse())
	{
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportYa';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportGa';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportVk';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportFb';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportMarketingFb';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportMarketingInstagram';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportLookalikeVk';
		$list[] = 'Bitrix\Sender\Integration\Seo\Ads\TransportLookalikeFb';
		$list[] = \Bitrix\Sender\Integration\Seo\Ads\TransportLookalikeYandex::class;
	}

	// Return Customer
	if (Crm\ReturnCustomer\Service::canUse())
	{
		$list[] = 'Bitrix\Sender\Integration\Crm\ReturnCustomer\TransportLead';
		$list[] = 'Bitrix\Sender\Integration\Crm\ReturnCustomer\TransportDeal';
	}

	$list[] = 'Bitrix\Sender\Integration\Yandex\Toloka\TransportToloka';

	return $list;
}

Добавить комментарий