EventHandler::onSenderMessageList

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

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

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

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

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

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

	// Ads
	if (Seo\Ads\Service::canUse())
	{
		$adsList = array(
			'Bitrix\Sender\Integration\Seo\Ads\MessageYa',
			\Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeYandex::class,
			'Bitrix\Sender\Integration\Seo\Ads\MessageGa',
			\Bitrix\Sender\Integration\Seo\Ads\MessageVk::class,
			'Bitrix\Sender\Integration\Seo\Ads\MessageFb',
			'Bitrix\Sender\Integration\Seo\Ads\MessageMarketingFb',
			'Bitrix\Sender\Integration\Seo\Ads\MessageMarketingInstagram',
			'Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeFb',
		);
		foreach ($adsList as $adsClass)
		{
			if (!Bitrix24\Service::isAdVisibleInRegion($adsClass::CODE))
			{
				continue;
			}

			$list[] = $adsClass;
		}
	}

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

	if (Bitrix24\Service::isMasterYandexVisibleInRegion())
	{
		$list[] = \Bitrix\Sender\Integration\Yandex\Master\MessageMasterYandex::class;
	}
	if(Bitrix24\Service::isTolokaVisibleInRegion())
	{
		$list[] = 'Bitrix\Sender\Integration\Yandex\Toloka\MessageToloka';
	}

	return $list;
}

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