Commit 7b8b7c08 authored by Kulya's avatar Kulya 😊

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

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