Commit 7b8b7c08 authored by Kulya's avatar Kulya 😊

Показ звонков в IVR

parent 284217c8
......@@ -282,6 +282,7 @@ function getQuesue() {
this._conf = {
calls: {
keys: {
ivr: ['ivr'],
in: ['Incom'],
out: ["Out", "Outlines"],
}
......@@ -1024,7 +1025,15 @@ function getQuesue() {
duration: "",
}
console.log("CHECK: ", "_getCurrentCallData", data);
switch (data._type) {
case "ivr":
// IVR
result.phone1 = data.calleridnum // номер звонящего
result.phone2 = data.language // внутренний номер агента
//result.queue = "" //data.queue_number // номер очереди агента
break
case "incom":
// входящий выхов
result.phone1 = data.calleridnum // номер звонящего
......@@ -1052,6 +1061,10 @@ function getQuesue() {
_getCurrentQueuesCalls(data) {
let result = {
ivr: {
title: 'IVR',
data: []
},
in: {
title: 'Входящие',
data: []
......@@ -1062,6 +1075,7 @@ function getQuesue() {
}
}
setData("ivr", this._conf.calls.keys.ivr)
setData("in", this._conf.calls.keys.in)
setData("out", this._conf.calls.keys.out)
......
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