• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/session/update.php
  • Класс: BitrixImOpenLinesSessionUpdate
  • Вызов: Update::save
public function save(): bool
{
	$this->setConfig();

	$this->updateSessionDate();

	$this->closeSession();

	$this->checkVote();

	if (!empty($this->updateChatSession))
	{
		$this->session->getChat()->updateFieldData([Chat::FIELD_SESSION => $this->updateChatSession]);
	}

	$this->updateSessionCheck();

	$this->crmUpdateCloseDate();

	$this->updateStatus();

	$this->saveData();

	$this->responseOperator();

	Debug::addSession($this->session,  __METHOD__, [
		'fields' => $this->newData,
		'updateCheckTable' => $this->updateCheckTable,
		'updateChatSession' => $this->updateChatSession,
		'updateDateCrmClose' => $this->updateDateCrmClose
	]);

	return true;
}