• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/communicationdedupedatasource.php
  • Класс: Bitrix\Crm\Integrity\CommunicationDedupeDataSource
  • Вызов: CommunicationDedupeDataSource::getCommunicationType
protected function getCommunicationType()
{
	$result = 'PHONE';

	if ($this->typeID === DuplicateIndexType::COMMUNICATION_EMAIL)
	{
		$result = 'EMAIL';
	}
	elseif ($this->typeID === DuplicateIndexType::COMMUNICATION_PHONE)
	{
		$result = 'PHONE';
	}
	elseif ($this->typeID === DuplicateIndexType::COMMUNICATION_SLUSER)
	{
		$result = 'SLUSER';
	}

	return $result;
}