uawdijnntqw1x1x1
IP : 18.220.204.192
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
kirov.axolotls.ru
/
bitrix
/
modules
/
imopenlines
/
lib
/
automaticaction.php
/
/
<?php namespace Bitrix\ImOpenLines; /** * Class AutomaticAction * @package Bitrix\ImOpenLines */ class AutomaticAction { /**Session*/ protected $sessionManager = null; protected $session = []; protected $config = []; /**Chat*/ protected $chat = null; /** * AutomaticAction constructor. * @param Session $session */ function __construct($session) { $this->sessionManager = $session; $this->session = $session->getData(); $this->config = $session->getConfig(); $this->chat = $session->getChat(); } /** * The automatic action for an incoming message from an external source * * @param $messageId * @param bool $finish * @param bool $vote * @return bool * @throws \Bitrix\Main\ArgumentException * @throws \Bitrix\Main\LoaderException * @throws \Bitrix\Main\ObjectException * @throws \Bitrix\Main\ObjectPropertyException * @throws \Bitrix\Main\SystemException */ public function automaticAddMessage($messageId, $finish = false, $vote = false) { //Welcome (new AutomaticAction\Welcome($this->sessionManager))->automaticAddMessage(); //Work Time (new AutomaticAction\WorkTime($this->sessionManager))->automaticAddMessage($finish, $vote); //Automatic action $this->sessionManager->execAutoAction([ 'MESSAGE_ID' => $messageId ]); return true; } /** * Outbound message to an external channel. * * @param $messageId * @return bool * @throws \Bitrix\Main\ArgumentException * @throws \Bitrix\Main\LoaderException * @throws \Bitrix\Main\ObjectException * @throws \Bitrix\Main\ObjectPropertyException * @throws \Bitrix\Main\SystemException */ public function automaticSendMessage($messageId) { //Welcome (new AutomaticAction\Welcome($this->sessionManager))->automaticSendMessage(); //Work Time (new AutomaticAction\WorkTime($this->sessionManager))->automaticSendMessage(); //Automatic action $this->sessionManager->execAutoAction([ 'MESSAGE_ID' => $messageId ]); return true; } }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/modules/imopenlines/lib/automaticaction.php