Commit 0fca9031 authored by Kulya's avatar Kulya 😊

Последние исправления по звонкам

parent 2407b4aa
......@@ -32,6 +32,14 @@ class AloVoiceConnector
$this->alvagents=[];
}
public function isDevelopServer(){
return ($_SERVER["HTTP_HOST"]=="tug.alovoice.uz");
}
public function isBillz(){
return ($_SERVER["HTTP_HOST"]=="qamar.alovoice.uz");
}
public function consoleleads(){
//consolerest.php
$this->eLog($_SERVER['argv'],"------ AloVoiceConnector: Leads RUN ----------");
......@@ -1183,10 +1191,14 @@ class AloVoiceConnector
if($this->isAdmin){
$arAlvSections["soundsettings"] = array( "name" => "Записи", "perms" => "admin");
$arAlvSections["settings"] = array( "name" => "Настройки", "perms" => "admin");
$arAlvSections["callscripts"] = array( "name" => "Скрипты звонков", "perms" => "admin");
$arAlvSections["crmsettings"] = array( "name" => "CRM Настройки", "perms" => "admin");
$arAlvSections["billzsettings"] = array( "name" => "Billz Настройки", "perms" => "admin");
$arAlvSections["tgsettings"] = array( "name" => "Телеграм", "perms" => "admin");
if($this->isDevelopServer()){
$arAlvSections["callscripts"] = array( "name" => "Скрипты звонков", "perms" => "admin");
$arAlvSections["crmsettings"] = array( "name" => "CRM Настройки", "perms" => "admin");
$arAlvSections["tgsettings"] = array( "name" => "Телеграм", "perms" => "admin");
}
if($this->isBillz()){
$arAlvSections["billzsettings"] = array( "name" => "Billz Настройки", "perms" => "admin");
}
$arAlvSections["integrations"] = array( "name" => "Интеграции", "perms" => "admin");
// $arAlvSections["tests"] = array( "name" => "Тест", "perms" => "admin");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment