• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/crm/common.php
  • Класс: BitrixImOpenLinesCrmCommon
  • Вызов: Common::getSourceName
static function getSourceName($userCode, $lineTitle = '')
{
	$parsedUserCode = SessionCommon::parseUserCode($userCode);
	$messengerType = $parsedUserCode['CONNECTOR_ID'];

	$lineName = Loc::getMessage('IMOL_CRM_LINE_TYPE_'.mb_strtoupper($messengerType));

	if (!$lineName && Loader::includeModule("imconnector"))
	{
		$lineName = Connector::getNameConnector($messengerType);
	}

	return ($lineName ? $lineName : $messengerType) . ($lineTitle ? ' - ' . $lineTitle : '');
}