- Модуль: voximplant
- Путь к файлу: ~/bitrix/modules/voximplant/lib/signaling.php
- Класс: BitrixVoximplantSignaling
- Вызов: Signaling::sendUpdateCrm
public function sendUpdateCrm(array $users)
{
foreach ($users as $userId)
{
$crmData = CVoxImplantCrmHelper::GetDataForPopup(
$this->call->getCallId(), $this->call->getCallerId(), $userId
);
$params = Array(
"callId" => $this->call->getCallId(),
"CRM" => $crmData,
"showCrmCard" => $this->call->isCrmEnabled(),
"crmEntityType" => $this->call->getPrimaryEntityType(),
"crmEntityId" => $this->call->getPrimaryEntityId(),
"crmActivityId" => $this->call->getCrmActivityId(),
"crmActivityEditUrl" => CVoxImplantCrmHelper::getActivityEditUrl($this->call->getCrmActivityId()),
"crmBindings" => CVoxImplantCrmHelper::resolveBindingNames($this->call->getCrmBindings())
);
$this->send([$userId], static::COMMAND_UPDATE_CRM, $params);
}
}