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

	$entityTypeName = CCrmOwnerType::ResolveName($this->getEntityTypeId());
	if (in_array($entityTypeName, ['LEAD', 'COMPANY', 'CONTACT'], true))
	{
		$result =
			'Bitrix\\Crm\\Agent\\Duplicate\\Background\\'
			. ucfirst(strtolower($entityTypeName))
			. 'Merge'
		;
	}

	return $result;
}