Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmiBX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitrix
AmiBX
Commits
0fca9031
Commit
0fca9031
authored
Jan 10, 2022
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Последние исправления по звонкам
parent
2407b4aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
AloVoiceConnector.php
vendor/alovoice/src/AloVoiceConnector.php
+16
-4
No files found.
vendor/alovoice/src/AloVoiceConnector.php
View file @
0fca9031
...
...
@@ -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");
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment