• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/session/agent.php
  • Класс: BitrixImOpenLinesSessionAgent
  • Вызов: Agent::getTimeOutTransferToNextInQueue
static function getTimeOutTransferToNextInQueue()
{
	$time = 30;

	$type = self::getTypeRunAgent();

	switch ($type)
	{
		//agent on the hit
		case self::TYPE_AGENT_HIT:
			$time = 5;
			break;
		//agent on special cron open lines
		case self::TYPE_AGENT_CRON_OL:
			$time = 180;
			break;
		//the agent in the cloud-bitrix24
		case self::TYPE_AGENT_B24:
			$time = 50;
			break;
		//agent on cron
		case self::TYPE_AGENT_CRON:
			$time = 60;
			break;
	}

	return $time;
}