- Модуль: imopenlines
- Путь к файлу: ~/bitrix/modules/imopenlines/lib/config.php
- Класс: BitrixImOpenLinesConfig
- Вызов: Config::getQueueList
static function getQueueList(int $userId = 0, bool $emptyIsNotOperator = true): array
{
$result = [];
$isOperator = 0;
if($userId > 0)
{
$isOperator = self::isOperator($userId);
}
if(
$isOperator === true
|| $emptyIsNotOperator === false
)
{
$rawConfigs = ModelConfigTable::getList([
'select' => [
'ID',
'NAME' => 'LINE_NAME',
'PRIORITY' => 'SESSION_PRIORITY',
'QUEUE_TYPE'
],
'filter' => ['=ACTIVE' => 'Y'],
'order' => ['ID' => 'ASC'],
'cache' => ['ttl' => 86400]
]);
while ($rowConfigs = $rawConfigs->fetch())
{
$rowConfigs['TRANSFER_COUNT'] = CUserCounter::GetValue($userId, 'imopenlines_transfer_count_' . $rowConfigs['ID']);
$result[] = $rowConfigs;
}
}
return $result;
}