• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatecommunicationcriterion.php
  • Класс: Bitrix\Crm\Integrity\DuplicateCommunicationCriterion
  • Вызов: DuplicateCommunicationCriterion::resolveTypeByIndexTypeID
static function resolveTypeByIndexTypeID($indexTypeID)
{
	if($indexTypeID === DuplicateIndexType::COMMUNICATION_PHONE)
	{
		return CommunicationType::PHONE_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_EMAIL)
	{
		return CommunicationType::EMAIL_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_SLUSER)
	{
		return CommunicationType::SLUSER_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_FACEBOOK)
	{
		return CommunicationType::FACEBOOK_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_TELEGRAM)
	{
		return CommunicationType::TELEGRAM_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_VK)
	{
		return CommunicationType::VK_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_SKYPE)
	{
		return CommunicationType::SKYPE_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_BITRIX24)
	{
		return CommunicationType::BITRIX24_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_OPENLINE)
	{
		return CommunicationType::OPENLINE_NAME;
	}
	elseif($indexTypeID === DuplicateIndexType::COMMUNICATION_VIBER)
	{
		return CommunicationType::VIBER_NAME;
	}

	return '';
}