• Модуль: imbot
  • Путь к файлу: ~/bitrix/modules/imbot/lib/restservice.php
  • Класс: BitrixImBotRestService
  • Вызов: RestService::support24QuestionSearch
static function support24QuestionSearch($params, $offset = 0, CRestServer $server)
{
	if (!self::validateRequest($params, $server))
	{
		return [];
	}

	$params = array_change_key_case($params, CASE_UPPER);
	if ($offset > 0)
	{
		$params['OFFSET'] = $offset;
	}

	$classSupport = self::detectSupportBot();

	$questions = $classSupport::getSupportQuestionList($params);

	if ($classSupport::hasError())
	{
		self::throwException($classSupport::getError());
	}

	return $questions;
}