• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/calendar/notification/notificationservice.php
  • Класс: Bitrix\Crm\Integration\Calendar\Notification\NotificationService
  • Вызов: NotificationService::sendCrmSharingAutoAccepted
public function sendCrmSharingAutoAccepted(): bool
{
	$manager = Sharing\Helper::getOwnerInfo($this->crmDealLink->getOwnerId());
	$fullName = Sharing\Helper::getPersonFullNameLoc($manager['name'], $manager['lastName']);
	$placeholders = [
		'NAME' => $fullName,
		'DATE' => Sharing\Helper::formatDate($this->event->getStart()),
		'EVENT_URL' => Sharing\Helper::getShortUrl($this->eventLink->getUrl()),
		'VIDEOCONFERENCE_URL' => Sharing\Helper::getShortUrl($this->eventLink->getUrl() . Sharing\Helper::ACTION_CONFERENCE),
		'EVENT_NAME' => Sharing\SharingEventManager::getSharingEventNameByUserName($fullName), // for title
	];

	return $this->sendMessage(self::TEMPLATE_SHARING_EVENT_AUTO_ACCEPTED, $placeholders);
}