• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/sitebutton/channel/channelopenline.php
  • Класс: Bitrix\Crm\SiteButton\Channel\ChannelOpenLine
  • Вызов: ChannelOpenLine::getPresets
static function getPresets()
{
	if (!self::canUse())
	{
		return [];
	}

	return Imopenlines\Model\LivechatTable::getList([
		'select' => [
			'ID' => 'CONFIG_ID',
			'NAME' => 'CONFIG.LINE_NAME'
		],
		'filter' => [
			'=CONFIG.ACTIVE' => 'Y'
		],
	])->fetchAll();
}