• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/queue/queue.php
  • Класс: BitrixImOpenLinesQueueQueue
  • Вызов: Queue::processingEmptyQueue
protected function processingEmptyQueue(int $configId, $fullCountOperators): void
{
	if (!empty($configId))
	{
		if ($fullCountOperators > 0)
		{
			if ($this->config['SEND_NOTIFICATION_EMPTY_QUEUE'] === 'Y')
			{
				$this->config['SEND_NOTIFICATION_EMPTY_QUEUE'] = 'N';
				ConfigTable::update($configId, ['SEND_NOTIFICATION_EMPTY_QUEUE' => 'N']);
			}
		}
		elseif ($fullCountOperators === 0)
		{
			if ($this->config['SEND_NOTIFICATION_EMPTY_QUEUE'] === 'N')
			{
				ConfigTable::update($configId, ['SEND_NOTIFICATION_EMPTY_QUEUE' => 'Y']);
				$this->sendNotificationEmptyQueue($configId);
			}
		}
	}
}