25 if (!Loader::includeModule(self::$moduleId))
32 $params = Option::get(self::$moduleId, $this->getOptionName());
38 $params = $this->fillNewParams();
46 $result[
"title"] = Loc::getMessage(
"IM_UPDATE_CHAT_INDEX");
51 $cursor = ChatTable::getList([
52 'order' => [
'ID' =>
'DESC'],
55 '=TYPE' => $this->getTypes(),
57 'select' => [
'ID',
'ENTITY_TYPE'],
63 while ($row = $cursor->fetch())
65 if ($row[
'ENTITY_TYPE'] !==
'LIVECHAT')
67 \CIMChat::index($row[
'ID']);
77 Option::set(self::$moduleId, $this->getOptionName(), serialize(
$params));
86 $this->sendAdminMessage();
119 Option::delete(self::$moduleId, [
"name" => $this->getOptionName()]);