• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/timeline/note.php
  • Класс: Bitrix\Crm\Controller\Timeline\Note
  • Вызов: Note::sendPullEvent
private function sendPullEvent(int $ownerTypeId, int $ownerId, int $noteItemType, int $noteItemId): void
{
	if ($noteItemType === \Bitrix\Crm\Timeline\Entity\NoteTable::NOTE_TYPE_HISTORY)
	{
		\Bitrix\Crm\Timeline\Controller::getInstance()->sendPullEventOnUpdate(
			new ItemIdentifier($ownerTypeId, $ownerId),
			$noteItemId
		);
	}
	elseif ($noteItemType === \Bitrix\Crm\Timeline\Entity\NoteTable::NOTE_TYPE_ACTIVITY)
	{
		$activity = \CCrmActivity::GetByID($noteItemId, false);
		$activity['IS_INCOMING_CHANNEL'] = \Bitrix\Crm\Activity\IncomingChannel::getInstance()->isIncomingChannel($noteItemId) ? 'Y' : 'N';

		if ($activity)
		{
			\Bitrix\Crm\Timeline\ActivityController::getInstance()->notifyTimelinesAboutActivityUpdate(
				$activity,
				null,
				true
			);
		}
	}
}