Built motion from commit d69f4380.|2.6.29
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index 2ae03c9..b6cb9ed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc01b=['SIP/','incall','status','keys','queue','compareToInboundQueue','some','compareToOutboundQueue','updateReportFromOutboundQueue','outboundAbandonedCallsDay','preview','exports','available','loggedIn','loggedInDb','paused','talking','waiting','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundUnknownCallsDay','pTalking','sumBillable','sumDuration','total','name','strategy','abandoned','answered','busy','inUse','invalid','onHold','notInUse','ringing','ringInUse','sumHoldTime','type','unavailable','unknown','unmanaged','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundOriginateFailureCallsDay','outboundRejectCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','originated','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','active','callerid','prototype','createReport','loggedin','callers','length'];(function(_0x423981,_0x15f222){var _0x2e94cd=function(_0x3a78a0){while(--_0x3a78a0){_0x423981['push'](_0x423981['shift']());}};_0x2e94cd(++_0x15f222);}(_0xc01b,0x65));var _0xbc01=function(_0x1cf8a4,_0x16fcfe){_0x1cf8a4=_0x1cf8a4-0x0;var _0x1c8e1e=_0xc01b[_0x1cf8a4];return _0x1c8e1e;};'use strict';var INBOUND_COUNTERS=[_0xbc01('0x0'),_0xbc01('0x1'),_0xbc01('0x2'),_0xbc01('0x3'),'ringing',_0xbc01('0x4'),_0xbc01('0x5')];var OUTBOUND_COUNTERS=['available','answered','inUse',_0xbc01('0x1'),_0xbc01('0x2'),'originated','outboundAbandonedCallsDay',_0xbc01('0x6'),_0xbc01('0x7'),_0xbc01('0x8'),_0xbc01('0x9'),_0xbc01('0xa'),_0xbc01('0xb'),_0xbc01('0xc'),'outboundRejectCallsDay',_0xbc01('0xd'),_0xbc01('0x3'),_0xbc01('0xe'),_0xbc01('0x4'),_0xbc01('0xf'),_0xbc01('0x10'),_0xbc01('0x11'),_0xbc01('0x5')];function VoiceQueueSummary(_0x372325){this['id']=_0x372325['id'];this[_0xbc01('0x12')]=_0x372325[_0xbc01('0x12')];this[_0xbc01('0x13')]=_0x372325[_0xbc01('0x13')];this[_0xbc01('0x14')]=_0x372325['abandoned']||0x0;this[_0xbc01('0x15')]=_0x372325[_0xbc01('0x15')]||0x0;this[_0xbc01('0x0')]=_0x372325['available']||0x0;this[_0xbc01('0x16')]=_0x372325[_0xbc01('0x16')]||0x0;this['inUse']=_0x372325[_0xbc01('0x17')]||0x0;this[_0xbc01('0x18')]=_0x372325[_0xbc01('0x18')]||0x0;this[_0xbc01('0x1')]=_0x372325['loggedIn']||0x0;this['loggedInDb']=_0x372325[_0xbc01('0x2')]||0x0;this[_0xbc01('0x19')]=_0x372325['onHold']||0x0;this[_0xbc01('0x1a')]=_0x372325['notInUse']||0x0;this[_0xbc01('0x3')]=_0x372325[_0xbc01('0x3')]||0x0;this[_0xbc01('0x1b')]=_0x372325[_0xbc01('0x1b')]||0x0;this['ringInUse']=_0x372325[_0xbc01('0x1c')];this[_0xbc01('0xf')]=_0x372325[_0xbc01('0xf')];this['sumDuration']=_0x372325[_0xbc01('0x10')];this[_0xbc01('0x1d')]=_0x372325['sumHoldTime']||0x0;this['talking']=_0x372325['talking']||0x0;this[_0xbc01('0x11')]=_0x372325[_0xbc01('0x11')]||0x0;this[_0xbc01('0x1e')]=_0x372325[_0xbc01('0x1e')];this[_0xbc01('0x1f')]=_0x372325[_0xbc01('0x1f')]||0x0;this['unknown']=_0x372325[_0xbc01('0x20')]||0x0;this['unmanaged']=_0x372325[_0xbc01('0x21')]||0x0;this['waiting']=_0x372325[_0xbc01('0x5')]||0x0;if(_0x372325[_0xbc01('0x1e')]===_0xbc01('0x22')){this['pTalking']=_0x372325[_0xbc01('0xe')]||0x0;this[_0xbc01('0x23')]=_0x372325['dialActive'];this[_0xbc01('0x24')]=_0x372325[_0xbc01('0x24')];this[_0xbc01('0x25')]=_0x372325[_0xbc01('0x25')];this[_0xbc01('0x26')]=_0x372325[_0xbc01('0x26')];this[_0xbc01('0x27')]=_0x372325[_0xbc01('0x27')];this[_0xbc01('0x28')]=_0x372325[_0xbc01('0x28')];this[_0xbc01('0x29')]=_0x372325['temp'];this[_0xbc01('0x2a')]=_0x372325[_0xbc01('0x2a')];this[_0xbc01('0x6')]=_0x372325[_0xbc01('0x6')];this[_0xbc01('0x7')]=_0x372325[_0xbc01('0x7')];this[_0xbc01('0x8')]=_0x372325['outboundBusyCallsDay'];this[_0xbc01('0x9')]=_0x372325['outboundCongestionCallsDay'];this[_0xbc01('0x2b')]=_0x372325[_0xbc01('0x2b')];this['outboundDropCallsDayCallersExit']=_0x372325[_0xbc01('0x2c')];this[_0xbc01('0x2d')]=_0x372325['outboundDropCallsDayTimeout'];this[_0xbc01('0xa')]=_0x372325[_0xbc01('0xa')];this[_0xbc01('0xb')]=_0x372325['outboundNoSuchCallsDay'];this[_0xbc01('0x2e')]=_0x372325[_0xbc01('0x2e')];this[_0xbc01('0xc')]=_0x372325[_0xbc01('0xc')];this[_0xbc01('0x2f')]=_0x372325['outboundRejectCallsDay'];this[_0xbc01('0xd')]=_0x372325[_0xbc01('0xd')];this['predictiveIntervalAnsweredCalls']=_0x372325[_0xbc01('0x30')];this[_0xbc01('0x31')]=_0x372325[_0xbc01('0x31')];this[_0xbc01('0x32')]=_0x372325[_0xbc01('0x32')];this[_0xbc01('0x33')]=_0x372325[_0xbc01('0x33')];this[_0xbc01('0x34')]=_0x372325[_0xbc01('0x34')];this[_0xbc01('0x35')]=_0x372325[_0xbc01('0x35')];this['predictiveIntervalErlangCallsDroppedCalls']=_0x372325[_0xbc01('0x36')];this[_0xbc01('0x37')]=_0x372325['predictiveIntervalHitRate'];this[_0xbc01('0x38')]=_0x372325[_0xbc01('0x38')];this['predictiveIntervalPauses']=_0x372325[_0xbc01('0x39')];this[_0xbc01('0x3a')]=_0x372325[_0xbc01('0x3a')];this[_0xbc01('0x3b')]=_0x372325[_0xbc01('0x3b')];this[_0xbc01('0x3c')]=_0x372325[_0xbc01('0x3c')];this[_0xbc01('0x3d')]=_0x372325[_0xbc01('0x3d')];this[_0xbc01('0x3e')]=_0x372325[_0xbc01('0x3e')];this['erlangAbandonmentRate']=_0x372325[_0xbc01('0x3f')];this['erlangBusyFactor']=_0x372325[_0xbc01('0x40')];this[_0xbc01('0x41')]=_0x372325[_0xbc01('0x41')];this[_0xbc01('0x42')]=_0x372325[_0xbc01('0x42')];this['message']=_0x372325[_0xbc01('0x43')];this[_0xbc01('0x44')]=_0x372325[_0xbc01('0x44')];}if(_0x372325['Trunk']){this[_0xbc01('0x45')]={'id':_0x372325['Trunk']['id'],'name':_0x372325[_0xbc01('0x45')]['name'],'active':_0x372325[_0xbc01('0x45')][_0xbc01('0x46')],'callerid':_0x372325['Trunk'][_0xbc01('0x47')]};}}VoiceQueueSummary[_0xbc01('0x48')][_0xbc01('0x49')]=function(_0x4eaa07,_0x3e9114,_0x2dc114,_0x98aa6b){this['loggedInDb']=0x0;this[_0xbc01('0x4')]=0x0;this['paused']=0x0;this[_0xbc01('0x20')]=0x0;this['notInUse']=0x0;this[_0xbc01('0x17')]=0x0;this[_0xbc01('0x16')]=0x0;this[_0xbc01('0x18')]=0x0;this[_0xbc01('0x1f')]=0x0;this[_0xbc01('0x1b')]=0x0;this[_0xbc01('0x1c')]=0x0;this['onHold']=0x0;if(_0x2dc114){if(_0x2dc114['available']){this[_0xbc01('0x0')]=Number(_0x2dc114[_0xbc01('0x0')]);}if(_0x2dc114[_0xbc01('0x4a')]){this[_0xbc01('0x1')]=Number(_0x2dc114['loggedin']);}if(_0x2dc114['callers']){this[_0xbc01('0x5')]=Number(_0x2dc114[_0xbc01('0x4b')]);}}for(var _0x22589d=0x0;_0x22589d<_0x4eaa07[_0xbc01('0x4c')];_0x22589d++){var _0xd78e9d=_0x3e9114[_0xbc01('0x4d')+_0x4eaa07[_0x22589d][_0xbc01('0x12')]];if(_0xd78e9d&&_0xd78e9d['online']){this['loggedInDb']+=0x1;}if(_0x4eaa07[_0x22589d][_0xbc01('0x4e')]==='1'){this[_0xbc01('0x4')]+=0x1;}if(_0x4eaa07[_0x22589d][_0xbc01('0x3')]==='1'&&!['2','7','8']['includes'](_0x4eaa07[_0x22589d][_0xbc01('0x4f')])){this[_0xbc01('0x3')]+=0x1;}switch(_0x4eaa07[_0x22589d][_0xbc01('0x4f')]){case'0':this[_0xbc01('0x20')]+=0x1;break;case'1':this[_0xbc01('0x1a')]+=0x1;break;case'2':this[_0xbc01('0x17')]+=0x1;break;case'3':this[_0xbc01('0x16')]+=0x1;break;case'4':this[_0xbc01('0x18')]+=0x1;break;case'5':this[_0xbc01('0x1f')]+=0x1;break;case'6':this['ringing']+=0x1;break;case'7':this[_0xbc01('0x1c')]+=0x1;break;case'8':this[_0xbc01('0x19')]+=0x1;break;}}if(this[_0xbc01('0x24')]==='booked'){var _0x30185e=Object[_0xbc01('0x50')](_0x98aa6b);for(var _0x83b750=0x0;_0x83b750<_0x30185e[_0xbc01('0x4c')];_0x83b750++){var _0x57e62f=_0x30185e[_0x83b750];var _0x5e22d7=_0x98aa6b[_0x57e62f];if(_0x5e22d7[_0xbc01('0x51')]===this[_0xbc01('0x12')]&&_0x5e22d7['type']==='dialer'&&_0x5e22d7['exten']==='xcally-motion-preview'){this[_0xbc01('0x4')]+=0x1;}}if(this['talking']>this['inUse']){this[_0xbc01('0x4')]=this[_0xbc01('0x17')];}this[_0xbc01('0xe')]=0x0;}return this;};VoiceQueueSummary[_0xbc01('0x48')][_0xbc01('0x52')]=function(_0x323986){var _0x286b15=![];if(_0x323986){_0x286b15=INBOUND_COUNTERS[_0xbc01('0x53')](function(_0xf03ed3){return this[_0xf03ed3]!==_0x323986[_0xf03ed3];},this);}return _0x286b15;};VoiceQueueSummary['prototype'][_0xbc01('0x54')]=function(_0x49ec33){var _0x4a1a26=![];var _0x4f2dc0=![];var _0x13126f=![];if(_0x49ec33){_0x4a1a26=this[_0xbc01('0x24')]!==_0x49ec33[_0xbc01('0x24')]||this[_0xbc01('0x23')]!==_0x49ec33['dialActive']||this[_0xbc01('0x43')]!==_0x49ec33['message']||this[_0xbc01('0x44')]!==_0x49ec33[_0xbc01('0x44')];_0x4f2dc0=OUTBOUND_COUNTERS[_0xbc01('0x53')](function(_0xba2e1d){return this[_0xba2e1d]!==_0x49ec33[_0xba2e1d];},this);if(this[_0xbc01('0x45')]&&_0x49ec33[_0xbc01('0x45')]){_0x13126f=this['Trunk'][_0xbc01('0x12')]!==_0x49ec33[_0xbc01('0x45')][_0xbc01('0x12')]||this['Trunk'][_0xbc01('0x46')]!==_0x49ec33[_0xbc01('0x45')]['active'];}}return _0x4a1a26||_0x4f2dc0||_0x13126f;};VoiceQueueSummary[_0xbc01('0x48')][_0xbc01('0x55')]=function(_0x2c8aab){this['answered']=_0x2c8aab['answered'];this[_0xbc01('0x43')]=_0x2c8aab[_0xbc01('0x43')];this[_0xbc01('0x44')]=_0x2c8aab['statusMessage'];this[_0xbc01('0x3c')]=_0x2c8aab['originated'];this['outboundAbandonedCallsDay']=_0x2c8aab[_0xbc01('0x56')];this[_0xbc01('0x6')]=_0x2c8aab[_0xbc01('0x6')];this[_0xbc01('0x7')]=_0x2c8aab['outboundBlacklistCallsDay'];this[_0xbc01('0x8')]=_0x2c8aab[_0xbc01('0x8')];this['outboundCongestionCallsDay']=_0x2c8aab[_0xbc01('0x9')];this[_0xbc01('0xa')]=_0x2c8aab['outboundNoAnswerCallsDay'];this[_0xbc01('0xb')]=_0x2c8aab[_0xbc01('0xb')];this['outboundReCallsDay']=_0x2c8aab['outboundReCallsDay'];this['outboundRejectCallsDay']=_0x2c8aab['outboundRejectCallsDay'];this[_0xbc01('0xd')]=_0x2c8aab[_0xbc01('0xd')];this[_0xbc01('0xf')]=_0x2c8aab[_0xbc01('0xf')];this[_0xbc01('0x10')]=_0x2c8aab['sumDuration'];this[_0xbc01('0x11')]=_0x2c8aab['total'];if(this[_0xbc01('0x24')]===_0xbc01('0x57')){this['pTalking']=_0x2c8aab[_0xbc01('0xe')];}};module[_0xbc01('0x58')]=VoiceQueueSummary;
\ No newline at end of file
+var _0x29b1=['outboundBlacklistCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundOriginateFailureCallsDay','outboundRejectCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','active','callerid','prototype','createReport','callers','length','SIP/','includes','status','keys','queue','exten','xcally-motion-preview','compareToInboundQueue','some','compareToOutboundQueue','updateReportFromOutboundQueue','outboundAbandonedCallsDay','preview','exports','loggedInDb','paused','ringing','talking','waiting','available','answered','inUse','loggedIn','originated','outboundAnswerCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundReCallsDay','outboundUnknownCallsDay','pTalking','sumBillable','sumDuration','name','strategy','abandoned','busy','invalid','onHold','notInUse','ringInUse','sumHoldTime','total','type','unavailable','unknown','unmanaged','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay'];(function(_0x568bd7,_0x23eea6){var _0x203cda=function(_0x26d94f){while(--_0x26d94f){_0x568bd7['push'](_0x568bd7['shift']());}};_0x203cda(++_0x23eea6);}(_0x29b1,0x13b));var _0x129b=function(_0x42f009,_0x5e27b1){_0x42f009=_0x42f009-0x0;var _0x22a1e0=_0x29b1[_0x42f009];return _0x22a1e0;};'use strict';var INBOUND_COUNTERS=['available','loggedIn',_0x129b('0x0'),_0x129b('0x1'),_0x129b('0x2'),_0x129b('0x3'),_0x129b('0x4')];var OUTBOUND_COUNTERS=[_0x129b('0x5'),_0x129b('0x6'),_0x129b('0x7'),_0x129b('0x8'),_0x129b('0x0'),_0x129b('0x9'),'outboundAbandonedCallsDay',_0x129b('0xa'),'outboundBlacklistCallsDay',_0x129b('0xb'),_0x129b('0xc'),'outboundNoAnswerCallsDay','outboundNoSuchCallsDay',_0x129b('0xd'),'outboundRejectCallsDay',_0x129b('0xe'),_0x129b('0x1'),_0x129b('0xf'),_0x129b('0x3'),_0x129b('0x10'),_0x129b('0x11'),'total',_0x129b('0x4')];function VoiceQueueSummary(_0x16c6fd){this['id']=_0x16c6fd['id'];this['name']=_0x16c6fd[_0x129b('0x12')];this[_0x129b('0x13')]=_0x16c6fd['strategy'];this[_0x129b('0x14')]=_0x16c6fd[_0x129b('0x14')]||0x0;this[_0x129b('0x6')]=_0x16c6fd[_0x129b('0x6')]||0x0;this[_0x129b('0x5')]=_0x16c6fd['available']||0x0;this[_0x129b('0x15')]=_0x16c6fd[_0x129b('0x15')]||0x0;this[_0x129b('0x7')]=_0x16c6fd['inUse']||0x0;this[_0x129b('0x16')]=_0x16c6fd[_0x129b('0x16')]||0x0;this['loggedIn']=_0x16c6fd[_0x129b('0x8')]||0x0;this['loggedInDb']=_0x16c6fd[_0x129b('0x0')]||0x0;this[_0x129b('0x17')]=_0x16c6fd[_0x129b('0x17')]||0x0;this[_0x129b('0x18')]=_0x16c6fd[_0x129b('0x18')]||0x0;this[_0x129b('0x1')]=_0x16c6fd['paused']||0x0;this[_0x129b('0x2')]=_0x16c6fd[_0x129b('0x2')]||0x0;this['ringInUse']=_0x16c6fd[_0x129b('0x19')];this[_0x129b('0x10')]=_0x16c6fd[_0x129b('0x10')];this[_0x129b('0x11')]=_0x16c6fd[_0x129b('0x11')];this[_0x129b('0x1a')]=_0x16c6fd['sumHoldTime']||0x0;this[_0x129b('0x3')]=_0x16c6fd[_0x129b('0x3')]||0x0;this['total']=_0x16c6fd[_0x129b('0x1b')]||0x0;this['type']=_0x16c6fd[_0x129b('0x1c')];this['unavailable']=_0x16c6fd[_0x129b('0x1d')]||0x0;this['unknown']=_0x16c6fd[_0x129b('0x1e')]||0x0;this[_0x129b('0x1f')]=_0x16c6fd[_0x129b('0x1f')]||0x0;this['waiting']=_0x16c6fd[_0x129b('0x4')]||0x0;if(_0x16c6fd[_0x129b('0x1c')]===_0x129b('0x20')){this['pTalking']=_0x16c6fd['pTalking']||0x0;this[_0x129b('0x21')]=_0x16c6fd[_0x129b('0x21')];this['dialMethod']=_0x16c6fd[_0x129b('0x22')];this[_0x129b('0x23')]=_0x16c6fd[_0x129b('0x23')];this[_0x129b('0x24')]=_0x16c6fd[_0x129b('0x24')];this[_0x129b('0x25')]=_0x16c6fd[_0x129b('0x25')];this[_0x129b('0x26')]=_0x16c6fd[_0x129b('0x26')];this[_0x129b('0x27')]=_0x16c6fd[_0x129b('0x27')];this[_0x129b('0x28')]=_0x16c6fd[_0x129b('0x28')];this[_0x129b('0xa')]=_0x16c6fd[_0x129b('0xa')];this[_0x129b('0x29')]=_0x16c6fd['outboundBlacklistCallsDay'];this[_0x129b('0xb')]=_0x16c6fd[_0x129b('0xb')];this['outboundCongestionCallsDay']=_0x16c6fd[_0x129b('0xc')];this[_0x129b('0x2a')]=_0x16c6fd['outboundDropCallsDayACS'];this['outboundDropCallsDayCallersExit']=_0x16c6fd[_0x129b('0x2b')];this['outboundDropCallsDayTimeout']=_0x16c6fd[_0x129b('0x2c')];this[_0x129b('0x2d')]=_0x16c6fd[_0x129b('0x2d')];this[_0x129b('0x2e')]=_0x16c6fd[_0x129b('0x2e')];this[_0x129b('0x2f')]=_0x16c6fd[_0x129b('0x2f')];this[_0x129b('0xd')]=_0x16c6fd[_0x129b('0xd')];this[_0x129b('0x30')]=_0x16c6fd[_0x129b('0x30')];this['outboundUnknownCallsDay']=_0x16c6fd['outboundUnknownCallsDay'];this[_0x129b('0x31')]=_0x16c6fd[_0x129b('0x31')];this['predictiveIntervalAvgHoldtime']=_0x16c6fd[_0x129b('0x32')];this[_0x129b('0x33')]=_0x16c6fd['predictiveIntervalAvgTalktime'];this['predictiveIntervalDroppedCallsCallersExit']=_0x16c6fd['predictiveIntervalDroppedCallsCallersExit'];this[_0x129b('0x34')]=_0x16c6fd[_0x129b('0x34')];this[_0x129b('0x35')]=_0x16c6fd['predictiveIntervalErlangCalls'];this['predictiveIntervalErlangCallsDroppedCalls']=_0x16c6fd[_0x129b('0x36')];this[_0x129b('0x37')]=_0x16c6fd[_0x129b('0x37')];this[_0x129b('0x38')]=_0x16c6fd[_0x129b('0x38')];this[_0x129b('0x39')]=_0x16c6fd[_0x129b('0x39')];this['predictiveIntervalAvailable']=_0x16c6fd[_0x129b('0x3a')];this[_0x129b('0x3b')]=_0x16c6fd[_0x129b('0x3b')];this[_0x129b('0x9')]=_0x16c6fd[_0x129b('0x9')];this[_0x129b('0x3c')]=_0x16c6fd[_0x129b('0x3c')];this[_0x129b('0x3d')]=_0x16c6fd[_0x129b('0x3d')];this[_0x129b('0x3e')]=_0x16c6fd[_0x129b('0x3e')];this[_0x129b('0x3f')]=_0x16c6fd['erlangBusyFactor'];this[_0x129b('0x40')]=_0x16c6fd[_0x129b('0x40')];this[_0x129b('0x41')]=_0x16c6fd[_0x129b('0x41')];this['message']=_0x16c6fd[_0x129b('0x42')];this[_0x129b('0x43')]=_0x16c6fd[_0x129b('0x43')];}if(_0x16c6fd[_0x129b('0x44')]){this[_0x129b('0x44')]={'id':_0x16c6fd[_0x129b('0x44')]['id'],'name':_0x16c6fd[_0x129b('0x44')][_0x129b('0x12')],'active':_0x16c6fd[_0x129b('0x44')][_0x129b('0x45')],'callerid':_0x16c6fd['Trunk'][_0x129b('0x46')]};}}VoiceQueueSummary[_0x129b('0x47')][_0x129b('0x48')]=function(_0x49bdce,_0x3dfe1d,_0xb16c52,_0x36d2e2){this[_0x129b('0x0')]=0x0;this[_0x129b('0x3')]=0x0;this[_0x129b('0x1')]=0x0;this['unknown']=0x0;this['notInUse']=0x0;this[_0x129b('0x7')]=0x0;this[_0x129b('0x15')]=0x0;this['invalid']=0x0;this['unavailable']=0x0;this['ringing']=0x0;this[_0x129b('0x19')]=0x0;this['onHold']=0x0;if(_0xb16c52){if(_0xb16c52['available']){this[_0x129b('0x5')]=Number(_0xb16c52[_0x129b('0x5')]);}if(_0xb16c52['loggedin']){this[_0x129b('0x8')]=Number(_0xb16c52['loggedin']);}if(_0xb16c52[_0x129b('0x49')]){this['waiting']=Number(_0xb16c52['callers']);}}for(var _0x457c70=0x0;_0x457c70<_0x49bdce[_0x129b('0x4a')];_0x457c70++){var _0x2fea05=_0x3dfe1d[_0x129b('0x4b')+_0x49bdce[_0x457c70][_0x129b('0x12')]];if(_0x2fea05&&_0x2fea05['online']){this[_0x129b('0x0')]+=0x1;}if(_0x49bdce[_0x457c70]['incall']==='1'){this[_0x129b('0x3')]+=0x1;}if(_0x49bdce[_0x457c70][_0x129b('0x1')]==='1'&&!['2','7','8'][_0x129b('0x4c')](_0x49bdce[_0x457c70][_0x129b('0x4d')])){this[_0x129b('0x1')]+=0x1;}switch(_0x49bdce[_0x457c70]['status']){case'0':this[_0x129b('0x1e')]+=0x1;break;case'1':this['notInUse']+=0x1;break;case'2':this[_0x129b('0x7')]+=0x1;break;case'3':this[_0x129b('0x15')]+=0x1;break;case'4':this[_0x129b('0x16')]+=0x1;break;case'5':this[_0x129b('0x1d')]+=0x1;break;case'6':this[_0x129b('0x2')]+=0x1;break;case'7':this[_0x129b('0x19')]+=0x1;break;case'8':this[_0x129b('0x17')]+=0x1;break;}}if(this['dialMethod']==='booked'){var _0x1bb7de=Object[_0x129b('0x4e')](_0x36d2e2);for(var _0x1989f6=0x0;_0x1989f6<_0x1bb7de[_0x129b('0x4a')];_0x1989f6++){var _0xc33582=_0x1bb7de[_0x1989f6];var _0x1cf89e=_0x36d2e2[_0xc33582];if(_0x1cf89e[_0x129b('0x4f')]===this[_0x129b('0x12')]&&_0x1cf89e[_0x129b('0x1c')]==='dialer'&&_0x1cf89e[_0x129b('0x50')]===_0x129b('0x51')){this['talking']+=0x1;}}if(this[_0x129b('0x3')]>this[_0x129b('0x7')]){this[_0x129b('0x3')]=this[_0x129b('0x7')];}this['pTalking']=0x0;}return this;};VoiceQueueSummary['prototype'][_0x129b('0x52')]=function(_0x18ffcf){var _0x4543d9=![];if(_0x18ffcf){_0x4543d9=INBOUND_COUNTERS[_0x129b('0x53')](function(_0x22560b){return this[_0x22560b]!==_0x18ffcf[_0x22560b];},this);}return _0x4543d9;};VoiceQueueSummary[_0x129b('0x47')][_0x129b('0x54')]=function(_0x17c311){var _0x647f99=![];var _0x241a27=![];var _0x357b3a=![];if(_0x17c311){_0x647f99=this[_0x129b('0x22')]!==_0x17c311['dialMethod']||this[_0x129b('0x21')]!==_0x17c311[_0x129b('0x21')]||this['message']!==_0x17c311[_0x129b('0x42')]||this['statusMessage']!==_0x17c311['statusMessage'];_0x241a27=OUTBOUND_COUNTERS['some'](function(_0x1ef884){return this[_0x1ef884]!==_0x17c311[_0x1ef884];},this);if(this[_0x129b('0x44')]&&_0x17c311[_0x129b('0x44')]){_0x357b3a=this[_0x129b('0x44')][_0x129b('0x12')]!==_0x17c311[_0x129b('0x44')][_0x129b('0x12')]||this[_0x129b('0x44')][_0x129b('0x45')]!==_0x17c311[_0x129b('0x44')][_0x129b('0x45')];}}return _0x647f99||_0x241a27||_0x357b3a;};VoiceQueueSummary['prototype'][_0x129b('0x55')]=function(_0xed7396){this['answered']=_0xed7396[_0x129b('0x6')];this['message']=_0xed7396['message'];this['statusMessage']=_0xed7396[_0x129b('0x43')];this['originated']=_0xed7396['originated'];this[_0x129b('0x56')]=_0xed7396['outboundAbandonedCallsDay'];this[_0x129b('0xa')]=_0xed7396[_0x129b('0xa')];this['outboundBlacklistCallsDay']=_0xed7396[_0x129b('0x29')];this['outboundBusyCallsDay']=_0xed7396[_0x129b('0xb')];this[_0x129b('0xc')]=_0xed7396[_0x129b('0xc')];this['outboundNoAnswerCallsDay']=_0xed7396[_0x129b('0x2d')];this[_0x129b('0x2e')]=_0xed7396[_0x129b('0x2e')];this[_0x129b('0xd')]=_0xed7396[_0x129b('0xd')];this['outboundRejectCallsDay']=_0xed7396['outboundRejectCallsDay'];this[_0x129b('0xe')]=_0xed7396[_0x129b('0xe')];this[_0x129b('0x10')]=_0xed7396[_0x129b('0x10')];this['sumDuration']=_0xed7396['sumDuration'];this[_0x129b('0x1b')]=_0xed7396[_0x129b('0x1b')];if(this[_0x129b('0x22')]===_0x129b('0x57')){this[_0x129b('0xf')]=_0xed7396[_0x129b('0xf')];}};module[_0x129b('0x58')]=VoiceQueueSummary;
\ No newline at end of file