Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index f687611..0311192 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa0a1=['updateReportFromOutboundQueue','originated','exports','available','loggedInDb','paused','ringing','answered','loggedIn','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','talking','sumBillable','sumDuration','waiting','name','strategy','abandoned','busy','inUse','invalid','onHold','notInUse','ringInUse','sumHoldTime','total','type','unavailable','unknown','unmanaged','pTalking','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','erlangCalls','erlangCallToSecond','erlangBusyFactor','startPredictive','startProgressive','statusMessage','Trunk','active','prototype','createReport','loggedin','callers','length','online','includes','status','booked','keys','queue','dialer','xcally-motion-preview','some','compareToOutboundQueue','dialActive','message'];(function(_0xfb31ee,_0x403d45){var _0xec7390=function(_0x2cadad){while(--_0x2cadad){_0xfb31ee['push'](_0xfb31ee['shift']());}};_0xec7390(++_0x403d45);}(_0xa0a1,0x15b));var _0x1a0a=function(_0x500e56,_0x3ebec5){_0x500e56=_0x500e56-0x0;var _0x1c9c49=_0xa0a1[_0x500e56];return _0x1c9c49;};'use strict';var INBOUND_COUNTERS=[_0x1a0a('0x0'),'loggedIn',_0x1a0a('0x1'),_0x1a0a('0x2'),_0x1a0a('0x3'),'talking','waiting'];var OUTBOUND_COUNTERS=[_0x1a0a('0x0'),_0x1a0a('0x4'),'inUse',_0x1a0a('0x5'),_0x1a0a('0x1'),'originated',_0x1a0a('0x6'),_0x1a0a('0x7'),_0x1a0a('0x8'),_0x1a0a('0x9'),_0x1a0a('0xa'),'outboundNoAnswerCallsDay',_0x1a0a('0xb'),_0x1a0a('0xc'),_0x1a0a('0xd'),'outboundUnknownCallsDay','paused','pTalking',_0x1a0a('0xe'),_0x1a0a('0xf'),_0x1a0a('0x10'),'total',_0x1a0a('0x11')];function VoiceQueueSummary(_0x4a0eda){this['id']=_0x4a0eda['id'];this[_0x1a0a('0x12')]=_0x4a0eda[_0x1a0a('0x12')];this[_0x1a0a('0x13')]=_0x4a0eda[_0x1a0a('0x13')];this[_0x1a0a('0x14')]=_0x4a0eda[_0x1a0a('0x14')]||0x0;this[_0x1a0a('0x4')]=_0x4a0eda['answered']||0x0;this[_0x1a0a('0x0')]=_0x4a0eda[_0x1a0a('0x0')]||0x0;this[_0x1a0a('0x15')]=_0x4a0eda[_0x1a0a('0x15')]||0x0;this[_0x1a0a('0x16')]=_0x4a0eda['inUse']||0x0;this[_0x1a0a('0x17')]=_0x4a0eda[_0x1a0a('0x17')]||0x0;this[_0x1a0a('0x5')]=_0x4a0eda['loggedIn']||0x0;this[_0x1a0a('0x1')]=_0x4a0eda['loggedInDb']||0x0;this[_0x1a0a('0x18')]=_0x4a0eda['onHold']||0x0;this['notInUse']=_0x4a0eda[_0x1a0a('0x19')]||0x0;this[_0x1a0a('0x2')]=_0x4a0eda[_0x1a0a('0x2')]||0x0;this[_0x1a0a('0x3')]=_0x4a0eda['ringing']||0x0;this['ringInUse']=_0x4a0eda[_0x1a0a('0x1a')];this[_0x1a0a('0xf')]=_0x4a0eda[_0x1a0a('0xf')];this['sumDuration']=_0x4a0eda[_0x1a0a('0x10')];this[_0x1a0a('0x1b')]=_0x4a0eda['sumHoldTime']||0x0;this[_0x1a0a('0xe')]=_0x4a0eda[_0x1a0a('0xe')]||0x0;this[_0x1a0a('0x1c')]=_0x4a0eda['total']||0x0;this[_0x1a0a('0x1d')]=_0x4a0eda[_0x1a0a('0x1d')];this[_0x1a0a('0x1e')]=_0x4a0eda['unavailable']||0x0;this[_0x1a0a('0x1f')]=_0x4a0eda['unknown']||0x0;this[_0x1a0a('0x20')]=_0x4a0eda[_0x1a0a('0x20')]||0x0;this[_0x1a0a('0x11')]=_0x4a0eda[_0x1a0a('0x11')]||0x0;if(_0x4a0eda[_0x1a0a('0x1d')]==='outbound'){this[_0x1a0a('0x21')]=_0x4a0eda[_0x1a0a('0x21')]||0x0;this['dialActive']=_0x4a0eda['dialActive'];this[_0x1a0a('0x22')]=_0x4a0eda[_0x1a0a('0x22')];this[_0x1a0a('0x23')]=_0x4a0eda[_0x1a0a('0x23')];this[_0x1a0a('0x24')]=_0x4a0eda[_0x1a0a('0x24')];this[_0x1a0a('0x25')]=_0x4a0eda[_0x1a0a('0x25')];this[_0x1a0a('0x26')]=_0x4a0eda[_0x1a0a('0x26')];this[_0x1a0a('0x27')]=_0x4a0eda[_0x1a0a('0x27')];this[_0x1a0a('0x28')]=_0x4a0eda[_0x1a0a('0x28')];this[_0x1a0a('0x7')]=_0x4a0eda[_0x1a0a('0x7')];this[_0x1a0a('0x8')]=_0x4a0eda['outboundBlacklistCallsDay'];this[_0x1a0a('0x9')]=_0x4a0eda[_0x1a0a('0x9')];this[_0x1a0a('0xa')]=_0x4a0eda[_0x1a0a('0xa')];this[_0x1a0a('0x29')]=_0x4a0eda[_0x1a0a('0x29')];this[_0x1a0a('0x2a')]=_0x4a0eda[_0x1a0a('0x2a')];this[_0x1a0a('0x2b')]=_0x4a0eda[_0x1a0a('0x2b')];this['outboundNoAnswerCallsDay']=_0x4a0eda[_0x1a0a('0x2c')];this[_0x1a0a('0xb')]=_0x4a0eda['outboundNoSuchCallsDay'];this[_0x1a0a('0x2d')]=_0x4a0eda['outboundOriginateFailureCallsDay'];this['outboundReCallsDay']=_0x4a0eda[_0x1a0a('0xc')];this[_0x1a0a('0xd')]=_0x4a0eda['outboundRejectCallsDay'];this[_0x1a0a('0x2e')]=_0x4a0eda[_0x1a0a('0x2e')];this[_0x1a0a('0x2f')]=_0x4a0eda['predictiveIntervalAnsweredCalls'];this[_0x1a0a('0x30')]=_0x4a0eda[_0x1a0a('0x30')];this['predictiveIntervalAvgTalktime']=_0x4a0eda[_0x1a0a('0x31')];this[_0x1a0a('0x32')]=_0x4a0eda['predictiveIntervalDroppedCallsCallersExit'];this[_0x1a0a('0x33')]=_0x4a0eda[_0x1a0a('0x33')];this[_0x1a0a('0x34')]=_0x4a0eda[_0x1a0a('0x34')];this['predictiveIntervalErlangCallsDroppedCalls']=_0x4a0eda[_0x1a0a('0x35')];this[_0x1a0a('0x36')]=_0x4a0eda[_0x1a0a('0x36')];this[_0x1a0a('0x37')]=_0x4a0eda[_0x1a0a('0x37')];this[_0x1a0a('0x38')]=_0x4a0eda[_0x1a0a('0x38')];this[_0x1a0a('0x39')]=_0x4a0eda[_0x1a0a('0x39')];this['predictiveIntervalTotalCalls']=_0x4a0eda['predictiveIntervalTotalCalls'];this['originated']=_0x4a0eda['originated'];this[_0x1a0a('0x3a')]=_0x4a0eda['erlangCalls'];this[_0x1a0a('0x3b')]=_0x4a0eda[_0x1a0a('0x3b')];this['erlangAbandonmentRate']=_0x4a0eda['erlangAbandonmentRate'];this[_0x1a0a('0x3c')]=_0x4a0eda[_0x1a0a('0x3c')];this[_0x1a0a('0x3d')]=_0x4a0eda[_0x1a0a('0x3d')];this['startProgressive']=_0x4a0eda[_0x1a0a('0x3e')];this['message']=_0x4a0eda['message'];this['statusMessage']=_0x4a0eda[_0x1a0a('0x3f')];}if(_0x4a0eda[_0x1a0a('0x40')]){this['Trunk']={'id':_0x4a0eda[_0x1a0a('0x40')]['id'],'name':_0x4a0eda[_0x1a0a('0x40')]['name'],'active':_0x4a0eda['Trunk'][_0x1a0a('0x41')],'callerid':_0x4a0eda[_0x1a0a('0x40')]['callerid']};}}VoiceQueueSummary[_0x1a0a('0x42')][_0x1a0a('0x43')]=function(_0x56cfd6,_0x2f3ba1,_0x59bad4,_0x3a80be){this['loggedInDb']=0x0;this[_0x1a0a('0xe')]=0x0;this[_0x1a0a('0x2')]=0x0;this[_0x1a0a('0x1f')]=0x0;this[_0x1a0a('0x19')]=0x0;this['inUse']=0x0;this[_0x1a0a('0x15')]=0x0;this[_0x1a0a('0x17')]=0x0;this[_0x1a0a('0x1e')]=0x0;this[_0x1a0a('0x3')]=0x0;this['ringInUse']=0x0;this[_0x1a0a('0x18')]=0x0;if(_0x59bad4){if(_0x59bad4[_0x1a0a('0x0')]){this['available']=Number(_0x59bad4[_0x1a0a('0x0')]);}if(_0x59bad4[_0x1a0a('0x44')]){this[_0x1a0a('0x5')]=Number(_0x59bad4[_0x1a0a('0x44')]);}if(_0x59bad4[_0x1a0a('0x45')]){this[_0x1a0a('0x11')]=Number(_0x59bad4[_0x1a0a('0x45')]);}}for(var _0xf6df6c=0x0;_0xf6df6c<_0x56cfd6[_0x1a0a('0x46')];_0xf6df6c++){var _0xc1e997=_0x2f3ba1['SIP/'+_0x56cfd6[_0xf6df6c][_0x1a0a('0x12')]];if(_0xc1e997&&_0xc1e997[_0x1a0a('0x47')]){this['loggedInDb']+=0x1;}if(_0x56cfd6[_0xf6df6c]['incall']==='1'){this['talking']+=0x1;}if(_0x56cfd6[_0xf6df6c]['paused']==='1'&&!['2','7','8'][_0x1a0a('0x48')](_0x56cfd6[_0xf6df6c][_0x1a0a('0x49')])){this['paused']+=0x1;}switch(_0x56cfd6[_0xf6df6c]['status']){case'0':this['unknown']+=0x1;break;case'1':this[_0x1a0a('0x19')]+=0x1;break;case'2':this[_0x1a0a('0x16')]+=0x1;break;case'3':this[_0x1a0a('0x15')]+=0x1;break;case'4':this[_0x1a0a('0x17')]+=0x1;break;case'5':this[_0x1a0a('0x1e')]+=0x1;break;case'6':this[_0x1a0a('0x3')]+=0x1;break;case'7':this[_0x1a0a('0x1a')]+=0x1;break;case'8':this[_0x1a0a('0x18')]+=0x1;break;}}if(this[_0x1a0a('0x22')]===_0x1a0a('0x4a')){var _0x1ed012=Object[_0x1a0a('0x4b')](_0x3a80be);for(var _0x23a985=0x0;_0x23a985<_0x1ed012['length'];_0x23a985++){var _0x3d0c86=_0x1ed012[_0x23a985];var _0x3f4967=_0x3a80be[_0x3d0c86];if(_0x3f4967[_0x1a0a('0x4c')]===this['name']&&_0x3f4967[_0x1a0a('0x1d')]===_0x1a0a('0x4d')&&_0x3f4967['exten']===_0x1a0a('0x4e')){this[_0x1a0a('0xe')]+=0x1;}}if(this['talking']>this['inUse']){this[_0x1a0a('0xe')]=this['inUse'];}this['pTalking']=0x0;}return this;};VoiceQueueSummary[_0x1a0a('0x42')]['compareToInboundQueue']=function(_0x54f016){var _0x217073=![];if(_0x54f016){_0x217073=INBOUND_COUNTERS[_0x1a0a('0x4f')](function(_0x3678c7){return this[_0x3678c7]!==_0x54f016[_0x3678c7];},this);}return _0x217073;};VoiceQueueSummary[_0x1a0a('0x42')][_0x1a0a('0x50')]=function(_0x1adef6){var _0x89d031=![];var _0x2fd9b5=![];var _0x3eb3f8=![];if(_0x1adef6){_0x89d031=this['dialMethod']!==_0x1adef6[_0x1a0a('0x22')]||this['dialActive']!==_0x1adef6[_0x1a0a('0x51')]||this[_0x1a0a('0x52')]!==_0x1adef6['message']||this['statusMessage']!==_0x1adef6[_0x1a0a('0x3f')];_0x2fd9b5=OUTBOUND_COUNTERS[_0x1a0a('0x4f')](function(_0x554907){return this[_0x554907]!==_0x1adef6[_0x554907];},this);if(this['Trunk']&&_0x1adef6[_0x1a0a('0x40')]){_0x3eb3f8=this['Trunk'][_0x1a0a('0x12')]!==_0x1adef6[_0x1a0a('0x40')]['name']||this[_0x1a0a('0x40')]['active']!==_0x1adef6[_0x1a0a('0x40')][_0x1a0a('0x41')];}}return _0x89d031||_0x2fd9b5||_0x3eb3f8;};VoiceQueueSummary['prototype'][_0x1a0a('0x53')]=function(_0x1f1f51){this[_0x1a0a('0x4')]=_0x1f1f51['answered'];this[_0x1a0a('0x52')]=_0x1f1f51[_0x1a0a('0x52')];this['statusMessage']=_0x1f1f51['statusMessage'];this[_0x1a0a('0x54')]=_0x1f1f51[_0x1a0a('0x54')];this[_0x1a0a('0x6')]=_0x1f1f51[_0x1a0a('0x6')];this['outboundAnswerCallsDay']=_0x1f1f51['outboundAnswerCallsDay'];this['outboundBlacklistCallsDay']=_0x1f1f51[_0x1a0a('0x8')];this['outboundBusyCallsDay']=_0x1f1f51[_0x1a0a('0x9')];this[_0x1a0a('0xa')]=_0x1f1f51[_0x1a0a('0xa')];this[_0x1a0a('0x2c')]=_0x1f1f51[_0x1a0a('0x2c')];this[_0x1a0a('0xb')]=_0x1f1f51[_0x1a0a('0xb')];this[_0x1a0a('0xc')]=_0x1f1f51[_0x1a0a('0xc')];this[_0x1a0a('0xd')]=_0x1f1f51[_0x1a0a('0xd')];this[_0x1a0a('0x2e')]=_0x1f1f51[_0x1a0a('0x2e')];this[_0x1a0a('0xf')]=_0x1f1f51[_0x1a0a('0xf')];this['sumDuration']=_0x1f1f51[_0x1a0a('0x10')];this[_0x1a0a('0x1c')]=_0x1f1f51[_0x1a0a('0x1c')];if(this[_0x1a0a('0x22')]==='preview'){this[_0x1a0a('0x21')]=_0x1f1f51[_0x1a0a('0x21')];}};module[_0x1a0a('0x55')]=VoiceQueueSummary;
\ No newline at end of file
+var _0x17c4=['outboundBlacklistCallsDay','outboundBusyCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','sumDuration','total','strategy','busy','invalid','onHold','notInUse','ringInUse','sumBillable','sumHoldTime','type','unavailable','unknown','unmanaged','outbound','pTalking','dialActive','dialMethod','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundCongestionCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startProgressive','message','statusMessage','Trunk','active','callerid','createReport','loggedin','callers','length','online','incall','includes','status','booked','keys','name','dialer','exten','xcally-motion-preview','compareToInboundQueue','some','prototype','compareToOutboundQueue','updateReportFromOutboundQueue','preview','exports','available','loggedIn','loggedInDb','paused','ringing','talking','waiting','answered','inUse','originated','outboundAbandonedCallsDay','outboundAnswerCallsDay'];(function(_0xd582c5,_0xb3ea1b){var _0x40539c=function(_0x4e0953){while(--_0x4e0953){_0xd582c5['push'](_0xd582c5['shift']());}};_0x40539c(++_0xb3ea1b);}(_0x17c4,0x102));var _0x417c=function(_0x3dd174,_0x31fcf6){_0x3dd174=_0x3dd174-0x0;var _0x2d0e06=_0x17c4[_0x3dd174];return _0x2d0e06;};'use strict';var INBOUND_COUNTERS=[_0x417c('0x0'),_0x417c('0x1'),_0x417c('0x2'),_0x417c('0x3'),_0x417c('0x4'),_0x417c('0x5'),_0x417c('0x6')];var OUTBOUND_COUNTERS=[_0x417c('0x0'),_0x417c('0x7'),_0x417c('0x8'),_0x417c('0x1'),'loggedInDb',_0x417c('0x9'),_0x417c('0xa'),_0x417c('0xb'),_0x417c('0xc'),_0x417c('0xd'),'outboundCongestionCallsDay','outboundNoAnswerCallsDay',_0x417c('0xe'),_0x417c('0xf'),_0x417c('0x10'),_0x417c('0x11'),_0x417c('0x3'),'pTalking',_0x417c('0x5'),'sumBillable',_0x417c('0x12'),_0x417c('0x13'),_0x417c('0x6')];function VoiceQueueSummary(_0xbc0548){this['id']=_0xbc0548['id'];this['name']=_0xbc0548['name'];this[_0x417c('0x14')]=_0xbc0548['strategy'];this['abandoned']=_0xbc0548['abandoned']||0x0;this[_0x417c('0x7')]=_0xbc0548['answered']||0x0;this[_0x417c('0x0')]=_0xbc0548[_0x417c('0x0')]||0x0;this['busy']=_0xbc0548[_0x417c('0x15')]||0x0;this[_0x417c('0x8')]=_0xbc0548[_0x417c('0x8')]||0x0;this[_0x417c('0x16')]=_0xbc0548['invalid']||0x0;this['loggedIn']=_0xbc0548[_0x417c('0x1')]||0x0;this[_0x417c('0x2')]=_0xbc0548[_0x417c('0x2')]||0x0;this['onHold']=_0xbc0548[_0x417c('0x17')]||0x0;this[_0x417c('0x18')]=_0xbc0548[_0x417c('0x18')]||0x0;this[_0x417c('0x3')]=_0xbc0548[_0x417c('0x3')]||0x0;this[_0x417c('0x4')]=_0xbc0548[_0x417c('0x4')]||0x0;this[_0x417c('0x19')]=_0xbc0548[_0x417c('0x19')];this[_0x417c('0x1a')]=_0xbc0548[_0x417c('0x1a')];this[_0x417c('0x12')]=_0xbc0548[_0x417c('0x12')];this[_0x417c('0x1b')]=_0xbc0548[_0x417c('0x1b')]||0x0;this[_0x417c('0x5')]=_0xbc0548[_0x417c('0x5')]||0x0;this[_0x417c('0x13')]=_0xbc0548[_0x417c('0x13')]||0x0;this[_0x417c('0x1c')]=_0xbc0548[_0x417c('0x1c')];this[_0x417c('0x1d')]=_0xbc0548['unavailable']||0x0;this['unknown']=_0xbc0548[_0x417c('0x1e')]||0x0;this[_0x417c('0x1f')]=_0xbc0548[_0x417c('0x1f')]||0x0;this[_0x417c('0x6')]=_0xbc0548[_0x417c('0x6')]||0x0;if(_0xbc0548[_0x417c('0x1c')]===_0x417c('0x20')){this[_0x417c('0x21')]=_0xbc0548[_0x417c('0x21')]||0x0;this['dialActive']=_0xbc0548[_0x417c('0x22')];this[_0x417c('0x23')]=_0xbc0548['dialMethod'];this['dialOriginateCallerIdName']=_0xbc0548['dialOriginateCallerIdName'];this[_0x417c('0x24')]=_0xbc0548['dialOriginateCallerIdNumber'];this[_0x417c('0x25')]=_0xbc0548[_0x417c('0x25')];this[_0x417c('0x26')]=_0xbc0548[_0x417c('0x26')];this[_0x417c('0x27')]=_0xbc0548[_0x417c('0x27')];this[_0x417c('0x28')]=_0xbc0548[_0x417c('0x28')];this[_0x417c('0xb')]=_0xbc0548[_0x417c('0xb')];this['outboundBlacklistCallsDay']=_0xbc0548[_0x417c('0xc')];this[_0x417c('0xd')]=_0xbc0548[_0x417c('0xd')];this[_0x417c('0x29')]=_0xbc0548[_0x417c('0x29')];this[_0x417c('0x2a')]=_0xbc0548[_0x417c('0x2a')];this[_0x417c('0x2b')]=_0xbc0548[_0x417c('0x2b')];this[_0x417c('0x2c')]=_0xbc0548[_0x417c('0x2c')];this['outboundNoAnswerCallsDay']=_0xbc0548[_0x417c('0x2d')];this['outboundNoSuchCallsDay']=_0xbc0548['outboundNoSuchCallsDay'];this[_0x417c('0x2e')]=_0xbc0548['outboundOriginateFailureCallsDay'];this['outboundReCallsDay']=_0xbc0548['outboundReCallsDay'];this['outboundRejectCallsDay']=_0xbc0548[_0x417c('0x10')];this[_0x417c('0x11')]=_0xbc0548['outboundUnknownCallsDay'];this[_0x417c('0x2f')]=_0xbc0548['predictiveIntervalAnsweredCalls'];this[_0x417c('0x30')]=_0xbc0548[_0x417c('0x30')];this[_0x417c('0x31')]=_0xbc0548['predictiveIntervalAvgTalktime'];this[_0x417c('0x32')]=_0xbc0548[_0x417c('0x32')];this[_0x417c('0x33')]=_0xbc0548[_0x417c('0x33')];this[_0x417c('0x34')]=_0xbc0548[_0x417c('0x34')];this[_0x417c('0x35')]=_0xbc0548['predictiveIntervalErlangCallsDroppedCalls'];this['predictiveIntervalHitRate']=_0xbc0548[_0x417c('0x36')];this[_0x417c('0x37')]=_0xbc0548['predictiveIntervalMultiplicativeFactor'];this['predictiveIntervalPauses']=_0xbc0548[_0x417c('0x38')];this[_0x417c('0x39')]=_0xbc0548['predictiveIntervalAvailable'];this['predictiveIntervalTotalCalls']=_0xbc0548[_0x417c('0x3a')];this['originated']=_0xbc0548[_0x417c('0x9')];this[_0x417c('0x3b')]=_0xbc0548['erlangCalls'];this['erlangCallToSecond']=_0xbc0548[_0x417c('0x3c')];this[_0x417c('0x3d')]=_0xbc0548[_0x417c('0x3d')];this[_0x417c('0x3e')]=_0xbc0548[_0x417c('0x3e')];this['startPredictive']=_0xbc0548['startPredictive'];this[_0x417c('0x3f')]=_0xbc0548[_0x417c('0x3f')];this['message']=_0xbc0548[_0x417c('0x40')];this[_0x417c('0x41')]=_0xbc0548[_0x417c('0x41')];}if(_0xbc0548[_0x417c('0x42')]){this[_0x417c('0x42')]={'id':_0xbc0548[_0x417c('0x42')]['id'],'name':_0xbc0548['Trunk']['name'],'active':_0xbc0548[_0x417c('0x42')][_0x417c('0x43')],'callerid':_0xbc0548[_0x417c('0x42')][_0x417c('0x44')]};}}VoiceQueueSummary['prototype'][_0x417c('0x45')]=function(_0x3d7ec3,_0x195ba0,_0x12ea90,_0x43ab2a){this[_0x417c('0x2')]=0x0;this[_0x417c('0x5')]=0x0;this[_0x417c('0x3')]=0x0;this[_0x417c('0x1e')]=0x0;this[_0x417c('0x18')]=0x0;this[_0x417c('0x8')]=0x0;this[_0x417c('0x15')]=0x0;this[_0x417c('0x16')]=0x0;this[_0x417c('0x1d')]=0x0;this[_0x417c('0x4')]=0x0;this[_0x417c('0x19')]=0x0;this['onHold']=0x0;if(_0x12ea90){if(_0x12ea90[_0x417c('0x0')]){this[_0x417c('0x0')]=Number(_0x12ea90['available']);}if(_0x12ea90[_0x417c('0x46')]){this[_0x417c('0x1')]=Number(_0x12ea90[_0x417c('0x46')]);}if(_0x12ea90[_0x417c('0x47')]){this[_0x417c('0x6')]=Number(_0x12ea90[_0x417c('0x47')]);}}for(var _0x2616f3=0x0;_0x2616f3<_0x3d7ec3[_0x417c('0x48')];_0x2616f3++){var _0x397e12=_0x195ba0['SIP/'+_0x3d7ec3[_0x2616f3]['name']];if(_0x397e12&&_0x397e12[_0x417c('0x49')]){this[_0x417c('0x2')]+=0x1;}if(_0x3d7ec3[_0x2616f3][_0x417c('0x4a')]==='1'){this[_0x417c('0x5')]+=0x1;}if(_0x3d7ec3[_0x2616f3][_0x417c('0x3')]==='1'&&!['2','7','8'][_0x417c('0x4b')](_0x3d7ec3[_0x2616f3][_0x417c('0x4c')])){this['paused']+=0x1;}switch(_0x3d7ec3[_0x2616f3][_0x417c('0x4c')]){case'0':this['unknown']+=0x1;break;case'1':this['notInUse']+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this['busy']+=0x1;break;case'4':this[_0x417c('0x16')]+=0x1;break;case'5':this[_0x417c('0x1d')]+=0x1;break;case'6':this[_0x417c('0x4')]+=0x1;break;case'7':this[_0x417c('0x19')]+=0x1;break;case'8':this[_0x417c('0x17')]+=0x1;break;}}if(this[_0x417c('0x23')]===_0x417c('0x4d')){var _0x416e42=Object[_0x417c('0x4e')](_0x43ab2a);for(var _0x19b001=0x0;_0x19b001<_0x416e42[_0x417c('0x48')];_0x19b001++){var _0x529190=_0x416e42[_0x19b001];var _0x9a4a6f=_0x43ab2a[_0x529190];if(_0x9a4a6f['queue']===this[_0x417c('0x4f')]&&_0x9a4a6f[_0x417c('0x1c')]===_0x417c('0x50')&&_0x9a4a6f[_0x417c('0x51')]===_0x417c('0x52')){this[_0x417c('0x5')]+=0x1;}}if(this[_0x417c('0x5')]>this[_0x417c('0x8')]){this['talking']=this['inUse'];}this[_0x417c('0x21')]=0x0;}return this;};VoiceQueueSummary['prototype'][_0x417c('0x53')]=function(_0xf16f53){var _0x41b516=![];if(_0xf16f53){_0x41b516=INBOUND_COUNTERS[_0x417c('0x54')](function(_0x2abf02){return this[_0x2abf02]!==_0xf16f53[_0x2abf02];},this);}return _0x41b516;};VoiceQueueSummary[_0x417c('0x55')][_0x417c('0x56')]=function(_0x4cc021){var _0xee3f78=![];var _0x4bd14f=![];var _0x591678=![];if(_0x4cc021){_0xee3f78=this[_0x417c('0x23')]!==_0x4cc021[_0x417c('0x23')]||this['dialActive']!==_0x4cc021[_0x417c('0x22')]||this[_0x417c('0x40')]!==_0x4cc021[_0x417c('0x40')]||this[_0x417c('0x41')]!==_0x4cc021[_0x417c('0x41')];_0x4bd14f=OUTBOUND_COUNTERS[_0x417c('0x54')](function(_0x166cd4){return this[_0x166cd4]!==_0x4cc021[_0x166cd4];},this);if(this['Trunk']&&_0x4cc021[_0x417c('0x42')]){_0x591678=this[_0x417c('0x42')]['name']!==_0x4cc021[_0x417c('0x42')][_0x417c('0x4f')]||this[_0x417c('0x42')]['active']!==_0x4cc021['Trunk'][_0x417c('0x43')];}}return _0xee3f78||_0x4bd14f||_0x591678;};VoiceQueueSummary[_0x417c('0x55')][_0x417c('0x57')]=function(_0x36de64){this[_0x417c('0x7')]=_0x36de64['answered'];this[_0x417c('0x40')]=_0x36de64[_0x417c('0x40')];this['statusMessage']=_0x36de64['statusMessage'];this[_0x417c('0x9')]=_0x36de64['originated'];this['outboundAbandonedCallsDay']=_0x36de64[_0x417c('0xa')];this[_0x417c('0xb')]=_0x36de64[_0x417c('0xb')];this[_0x417c('0xc')]=_0x36de64[_0x417c('0xc')];this[_0x417c('0xd')]=_0x36de64[_0x417c('0xd')];this[_0x417c('0x29')]=_0x36de64[_0x417c('0x29')];this[_0x417c('0x2d')]=_0x36de64[_0x417c('0x2d')];this[_0x417c('0xe')]=_0x36de64[_0x417c('0xe')];this['outboundReCallsDay']=_0x36de64[_0x417c('0xf')];this['outboundRejectCallsDay']=_0x36de64[_0x417c('0x10')];this[_0x417c('0x11')]=_0x36de64[_0x417c('0x11')];this[_0x417c('0x1a')]=_0x36de64[_0x417c('0x1a')];this['sumDuration']=_0x36de64[_0x417c('0x12')];this[_0x417c('0x13')]=_0x36de64[_0x417c('0x13')];if(this[_0x417c('0x23')]===_0x417c('0x58')){this[_0x417c('0x21')]=_0x36de64[_0x417c('0x21')];}};module[_0x417c('0x59')]=VoiceQueueSummary;
\ No newline at end of file