• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/pullmanager.php
  • Класс: Bitrix\Crm\Integration\PullManager
  • Вызов: PullManager::sendCrmInitiatedEvent
public function sendCrmInitiatedEvent(?array $channelShared = null): bool
{
	if(!$this->isEnabled())
	{
		return false;
	}

	if (!is_array($channelShared))
	{
		$channelShared = \CPullChannel::GetChannelShared();
	}

	if (!$channelShared)
	{
		return false;
	}

	return $this->sendChannelEvent(
		$channelShared['CHANNEL_ID'],
		'was_inited',
		[
			'expiry' => 180,
		]
	);
}