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
f740737b
Commit
f740737b
authored
Dec 01, 2021
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Tabs All changeds
parent
2adc2986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
29 deletions
+53
-29
AloVoiceConnector.php
vendor/alovoice/src/AloVoiceConnector.php
+3
-3
AloVoiceRest.php
vendor/alovoice/src/AloVoiceRest.php
+26
-26
tgm.log
vendor/tg/src/tgm.log
+24
-0
No files found.
vendor/alovoice/src/AloVoiceConnector.php
View file @
f740737b
...
...
@@ -1174,10 +1174,10 @@ class AloVoiceConnector
$arAlvSections
=
array
(
"dashboard"
=>
array
(
"name"
=>
"АлоВойс"
,
"perms"
=>
"all"
),
"queues"
=>
array
(
"name"
=>
"Звонки"
,
"perms"
=>
"all"
),
"chdongles"
=>
array
(
"name"
=>
"GSM линии"
,
"perms"
=>
"admin"
),
//
"chdongles" => array( "name" => "GSM линии", "perms" => "admin"),
"trunks"
=>
array
(
"name"
=>
"Линии"
,
"perms"
=>
"admin"
),
"peers"
=>
array
(
"name"
=>
"Внут.номера"
,
"perms"
=>
"admin"
),
"stats"
=>
array
(
"name"
=>
"Статистика агентов"
,
"perms"
=>
"all"
),
//
"stats" => array( "name" => "Статистика агентов", "perms" => "all"),
);
if
(
$this
->
isAdmin
){
...
...
@@ -1187,7 +1187,7 @@ class AloVoiceConnector
$arAlvSections
[
"crmsettings"
]
=
array
(
"name"
=>
"CRM Настройки"
,
"perms"
=>
"admin"
);
$arAlvSections
[
"tgsettings"
]
=
array
(
"name"
=>
"Телеграм"
,
"perms"
=>
"admin"
);
$arAlvSections
[
"integrations"
]
=
array
(
"name"
=>
"Интеграции"
,
"perms"
=>
"admin"
);
$arAlvSections
[
"tests"
]
=
array
(
"name"
=>
"Тест"
,
"perms"
=>
"admin"
);
//
$arAlvSections["tests"] = array( "name" => "Тест", "perms" => "admin");
}
}
...
...
vendor/alovoice/src/AloVoiceRest.php
View file @
f740737b
...
...
@@ -849,40 +849,40 @@ function(result){
'title'
=>
'Событие дел'
,
'status'
=>
'off'
,
)];
$res
[
'nextintegration'
]
=
'status_
callback
'
;
$res
[
'nextintegration'
]
=
'status_
alotg
'
;
$res
[
'rescheck'
]
=
$arResults
;
return
$res
;
}
private
function
status_callback
(
$r
=
false
)
{
// private function status_callback($r=false) { //todo
$arResults
=
BxRest
::
call
(
'event.get'
);
$integrations
=
[];
//
$arResults = BxRest::call('event.get');
//
$integrations = [];
if
(
!
empty
(
$arResults
[
"result"
])){
foreach
(
$arResults
[
"result"
]
as
$itg
){
if
(
$itg
[
"event"
]
==
"ONEXTERNALCALLBACKSTART"
){
if
(
$itg
[
"handler"
]
==
$this
->
config
[
"alovoice_host"
]
){
$integrations
[]
=
array
(
'code'
=>
'callbackcalls'
,
'title'
=>
'Обратный звонок'
,
'status'
=>
'on'
,
);
}
}
}
}
$res
[
'lines'
]
=
(
!
empty
(
$integrations
))
?
$integrations
:
[
array
(
'code'
=>
'callbackcalls'
,
'title'
=>
'Обратный звонок'
,
'status'
=>
'off'
,
)];
$res
[
'nextintegration'
]
=
'status_alotg'
;
$res
[
'rescheck'
]
=
$arResults
;
//
if(!empty($arResults["result"])){
//
foreach($arResults["result"] as $itg){
//
if( $itg["event"] == "ONEXTERNALCALLBACKSTART" ){
//
if( $itg["handler"] == $this->config["alovoice_host"] ){
//
$integrations[] = array(
//
'code'=>'callbackcalls',
//
'title'=>'Обратный звонок',
//
'status'=>'on',
//
);
//
}
//
}
//
}
//
}
//
$res['lines'] = (!empty($integrations)) ? $integrations : [array(
//
'code'=>'callbackcalls',
//
'title'=>'Обратный звонок',
//
'status'=>'off',
//
)];
//
$res['nextintegration'] = 'status_alotg';
//
$res['rescheck'] = $arResults;
return
$res
;
}
//
return $res;
//
}
// private function status_alosms($r=false) {
...
...
vendor/tg/src/tgm.log
View file @
f740737b
...
...
@@ -132347,4 +132347,28 @@ arr: []
arr: {"tgevent":"incom_tgmessage","datas":"{\"to\":{\"peer_type\":\"channel\",\"id\":\"$050000005a9f625d05d03b2dc694fc0c\",\"kicked_count\":0,\"flags\":655425,\"title\":\"Astrum | Technounit\",\"admins_count\":0,\"peer_id\":1566744410,\"print_name\":\"Astrum_|_Technounit\",\"participants_count\":0},\"date\":1638351484,\"unread\":false,\"flags\":256,\"out\":false,\"text\":\"\u0441\u043f\u0430\u0441\u0438\u0431\u043e\",\"service\":false,\"from\":{\"last_name\":\"Azimov\",\"peer_type\":\"user\",\"id\":\"$01000000afc4741b54fa575107e4efee\",\"username\":\"azimovjz\",\"access_hash\":1,\"peer_id\":460637359,\"print_name\":\"Javoxir_Azimov\",\"flags\":65537,\"first_name\":\"Javoxir\"},\"id\":\"050000005a9f625d550f00000000000005d03b2dc694fc0c\"}"}
------------------------
2021.12.01 14:38:04 - --== TELEGRAM LUA INCOMING FILES:
arr: []
------------------------
2021.12.01 14:52:28 - str:-------------------==ATG incom_tgmessage ==----------------
------------------------
2021.12.01 14:52:28 - --== TELEGRAM LUA INCOMING REQUEST:
arr: {"tgevent":"incom_tgmessage","datas":"{\"to\":{\"peer_type\":\"channel\",\"id\":\"$050000007c2ca747a53be3016e4b143b\",\"kicked_count\":0,\"flags\":524289,\"title\":\"Didox.uz - Savol-javob | \u0412\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b\",\"admins_count\":0,\"peer_id\":1202138236,\"print_name\":\"Didox.uz_-_Savol-javob_|_\u0412\u043e\u043f\u0440\u043e\u0441\u044b_\u0438_\u043e\u0442\u0432\u0435\u0442\u044b\",\"participants_count\":0},\"id\":\"050000007c2ca747cebc080000000000a53be3016e4b143b\",\"unread\":false,\"flags\":256,\"text\":\"\u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0432 \u0434\u0438\u0434\u043e\u043a\u0441\u0435 \u043d\u0435 \u0432\u0438\u0434\u043d\u0430\",\"out\":false,\"service\":false,\"date\":1638352344,\"from\":{\"flags\":1,\"last_name\":\"\u0413\u043b\u0430\u0441\u0441 \u0422\u0440\u0435\u0439\u0434\",\"peer_type\":\"user\",\"access_hash\":1,\"peer_id\":1804506356,\"print_name\":\"\u0421\u0438\u0444\u0430\u0442_\u0413\u043b\u0430\u0441\u0441_\u0422\u0440\u0435\u0439\u0434\",\"first_name\":\"\u0421\u0438\u0444\u0430\u0442\",\"id\":\"$01000000f4948e6b159f6ad3d0872da2\"},\"reply_id\":\"050000007c2ca747ccbc080000000000a53be3016e4b143b\"}"}
------------------------
2021.12.01 14:52:28 - --== TELEGRAM LUA INCOMING FILES:
arr: []
------------------------
2021.12.01 14:52:28 - str:-------------------==ATG incom_tgmessage ==----------------
------------------------
2021.12.01 14:52:28 - --== TELEGRAM LUA INCOMING REQUEST:
arr: {"tgevent":"incom_tgmessage","datas":"{\"to\":{\"peer_type\":\"channel\",\"id\":\"$05000000bc86f14b0f5fe3763515480d\",\"kicked_count\":0,\"flags\":524289,\"title\":\"\u0422\u0430\u0434\u0431\u0438\u0440\u043a\u043e\u0440 \u0432\u0430 \u0421\u043e\u043b\u0438\u049b\u0447\u0438\",\"admins_count\":0,\"peer_id\":1274119868,\"print_name\":\"\u0422\u0430\u0434\u0431\u0438\u0440\u043a\u043e\u0440_\u0432\u0430_\u0421\u043e\u043b\u0438\u049b\u0447\u0438\",\"participants_count\":0},\"date\":1638352348,\"unread\":false,\"flags\":258,\"out\":true,\"text\":\"\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0434\u043d\u044f\\n\\n\u041a \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0443 \u21167775073 \u043e\u0442 11 \u0438\u044e\u043b\u044f 2021 \u0433., \u0437\u0430\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u043c \u0447\u0435\u0440\u0435\u0437 http:\\\/\\\/milliydokon.uzex.uz\\\/ \u0433\u043e\u0434\u0430 \u043f\u043e \u043b\u043e\u0442\u0443 \u21163226255, \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u042d\u0421\u0424 \u0414\u0418\u0414\u041e\u041a\u0421 \u0431\u044b\u043b\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d \u0441\u0447\u0451\u0442-\u0444\u0430\u043a\u0442\u0443\u0440\u0430 \u211637 \u043e\u0442 05.08.2021 ID \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 11EBF5F3BA7A68EA8EE01E0008000075\\n\\n\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430 (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435) \u0432 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \\\"\u041b\u0418\u0426\u0415\u041d\u0417\u0418\u042f\\\"\\n\\n\u0421\u0447\u0451\u0442-\u0444\u0430\u043a\u0442\u0443\u0440\u0430 \u0431\u044b\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u0430 \u0432\u044b\u043f\u0438\u0441\u0430\u043d\u043d\u0430 \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c, \u043d\u043e \u0443 \u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0435\u0451, \u0432\u044b\u0434\u0430\u0451\u0442 \u043e\u0448\u0438\u0431\u043a\u0443, \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0447\u0442\u043e \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u0439, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0432 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0435.\\n\\n\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0437\u0430\u0442\u044f\u043d\u0443\u0432\u0448\u0438\u043c\u0441\u044f \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0443\u0436\u0435 \u0432\u044b\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0441\u0447\u0451\u0442-\u0444\u0430\u043a\u0442\u0443\u0440\u0443 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u0441\u0447\u0451\u0442-\u0444\u0430\u043a\u0442\u0443\u0440\u0435 \u043d\u0430 \\\"\u0448\u0442.\\\", \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u043e\u0434\u0443 \u0418\u041a\u041f\u0423, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0447\u0451\u0442-\u0444\u0430\u043a\u0442\u0443\u0440\u0430 \u0443 \u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0435\u0434.\u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u0441\u0447\u0451\u0442-\u0444\u0430\u043a\u0442\u0443\u0440\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0434\u0438\u043d\u0438\u0446\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0435\\n\\n\u041a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441?\\n\u0418\u041d\u041d \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 303903621\\n\u0418\u041d\u041d \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430 305166715\",\"service\":false,\"from\":{\"last_name\":\"Unit\",\"peer_type\":\"user\",\"id\":\"$010000008f2eca0cb4c16968733747e7\",\"flags\":720897,\"access_hash\":1,\"username\":\"technounit\",\"peer_id\":214576783,\"print_name\":\"Techno_Unit\",\"phone\":\"998974244100\",\"first_name\":\"Techno\"},\"id\":\"05000000bc86f14b075e0100000000000f5fe3763515480d\"}"}
------------------------
2021.12.01 14:52:28 - --== TELEGRAM LUA INCOMING FILES:
arr: []
------------------------
2021.12.01 14:53:07 - str:-------------------==ATG incom_tgmessage ==----------------
------------------------
2021.12.01 14:53:07 - --== TELEGRAM LUA INCOMING REQUEST:
arr: {"tgevent":"incom_tgmessage","datas":"{\"to\":{\"peer_type\":\"channel\",\"id\":\"$05000000bc86f14b0f5fe3763515480d\",\"kicked_count\":0,\"flags\":524289,\"title\":\"\u0422\u0430\u0434\u0431\u0438\u0440\u043a\u043e\u0440 \u0432\u0430 \u0421\u043e\u043b\u0438\u049b\u0447\u0438\",\"admins_count\":0,\"peer_id\":1274119868,\"print_name\":\"\u0422\u0430\u0434\u0431\u0438\u0440\u043a\u043e\u0440_\u0432\u0430_\u0421\u043e\u043b\u0438\u049b\u0447\u0438\",\"participants_count\":0},\"reply_id\":\"05000000bc86f14b075e0100000000000f5fe3763515480d\",\"unread\":false,\"flags\":272,\"mention\":true,\"text\":\"\u0412\u0430\u0448\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e.\\nID 8765\",\"out\":false,\"service\":false,\"date\":1638352387,\"from\":{\"last_name\":\"Pressa\",\"peer_type\":\"user\",\"id\":\"$01000000572a1b39ef1da28416a787e2\",\"username\":\"DSQ_Pressa\",\"access_hash\":1,\"peer_id\":958081623,\"print_name\":\"DSQ_Pressa\",\"flags\":1,\"first_name\":\"DSQ\"},\"id\":\"05000000bc86f14b095e0100000000000f5fe3763515480d\"}"}
------------------------
2021.12.01 14:53:07 - --== TELEGRAM LUA INCOMING FILES:
arr: []
\ No newline at end of file
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