• Модуль: salescenter
  • Путь к файлу: ~/bitrix/modules/salescenter/lib/integration/landingmanager.php
  • Класс: BitrixSalesCenterIntegrationLandingManager
  • Вызов: LandingManager::onLandingPublication
static function onLandingPublication(Event $event)
{
	$landingId = (int) $event->getParameter('id');
	$code = $event->getParameter('tplCode');

	if (!empty($code))
	{
		if (mb_strpos($code, 'chats') !== false)
		{
			PullManager::getInstance()->sendLandingPublicationEvent($landingId);
		}
	}
	else if ($landingId > 0)
	{
		PullManager::getInstance()->sendLandingPublicationEvent($landingId);
	}

	return new EventResult(EventResult::SUCCESS);
}