- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/automation/tunnelmanager.php
- Класс: Bitrix\Crm\Automation\TunnelManager
- Вызов: TunnelManager::createRobot
protected function createRobot(int $dstCategory, string $dstStage, string $robotAction = self::ROBOT_ACTION_COPY)
{
return new Robot([
'Name' => Robot::generateName(),
'Type' => $this->getRobotType($robotAction),
'Properties' => $this->getRobotProperties($dstCategory, $dstStage, $robotAction),
]);
}