- Модуль: voximplant
- Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_history.php
- Класс: CVoxImplantHistory
- Вызов: CVoxImplantHistory::GetAttachForChat
static function GetAttachForChat($callFields, $hasRecord = false, $prependPlus = true)
{
if(!CModule::IncludeModule('im'))
return null;
$entityData = CVoxImplantCrmHelper::getEntityFields($callFields['CRM_ENTITY_TYPE'], $callFields['CRM_ENTITY_ID']);
if(!$entityData)
return null;
$result = new CIMMessageParamAttach(null, '#dfe2e5');
$result->AddMessage(static::GetMessageForChat($callFields, $hasRecord, $prependPlus));
$result->AddLink(array(
"NAME" => $entityData["DESCRIPTION"].": ".$entityData["NAME"],
"LINK" => $entityData["SHOW_URL"]
));
return $result;
}