• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/sender/rc/service.php
  • Класс: Bitrix\Crm\Integration\Sender\Rc\Service
  • Вызов: Service::getDealWorkerUrl
static function getDealWorkerUrl($categoryId = null)
{
	if (!self::canUse())
	{
		return null;
	}

	$uri = new Uri('/marketing/rc/');
	$uri->addParams([
		'apply_filter' => 'Y',
		'REITERATE' => 'Y',
		'STATE' => Sender\Dispatch\Semantics::getWorkStates(),
		'MESSAGE_CODE' => 'rc_deal',
	]);
	if ($categoryId !== null)
	{
		$uri->addParams([
			'CATEGORY_ID' => $categoryId == '0' ? 'common' : $categoryId
		]);
	}
	return $uri->getLocator();
}