- Модуль: imopenlines
- Путь к файлу: ~/bitrix/modules/imopenlines/lib/queue/event/queue.php
- Класс: BitrixImOpenLinesQueueEventQueue
- Вызов: Queue::returnNotDistributedSessionsToQueue
public function returnNotDistributedSessionsToQueue(string $reasonReturn = ImOpenLinesQueue::REASON_DEFAULT): void
{
$sessionListManager = SessionCheckTable::getList([
'select' => [
'SESSION_ID'
],
'filter' => [
'=SESSION.OPERATOR_ID' => 0,
'=SESSION.CONFIG_ID' => $this->configLine['ID'],
'=UNDISTRIBUTED' => 'Y'
],
'order' => ['SESSION_ID' => 'ASC'],
'limit' => self::getMaxInteractionCount(),
]);
while ($sessionId = $sessionListManager->fetch()['SESSION_ID'])
{
ImOpenLinesQueue::returnSessionToQueue($sessionId, $reasonReturn);
}
}