• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/preset.php
  • Класс: BitrixImOpenlinesPreset
  • Вызов: Preset::findActiveLineId
static function findActiveLineId(): ?int
{
	$row = BitrixImOpenLinesModelConfigTable::getRow([
		'select' => ['ID'],
		'filter' => [
			'=ACTIVE' => 'Y'
		],
		'order' => [
			'STATISTIC.IN_WORK' => 'DESC',
			'STATISTIC.SESSION' => 'DESC'
		],
	]);

	return $row ? (int)$row['ID'] : null;
}