• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/agent/duplicate/background/helper.php
  • Класс: Bitrix\Crm\Agent\Duplicate\Background\Helper
  • Вызов: Helper::getAgentClassName
public function getAgentClassName(string $entityTypeName, string $agentName): string
{
	$result = '';

	if (in_array($entityTypeName, ['LEAD', 'COMPANY', 'CONTACT'], true))
	{
		$result =
			'Bitrix\\Crm\\Agent\\Duplicate\\Background\\'
			. ucfirst(strtolower($entityTypeName))
			. $agentName
		;
	}

	return $result;
}