Built motion from commit cb845558.|2.6.34
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index 1df05a7..cb302c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe767=['statusMessage','Trunk','active','callerid','prototype','createReport','loggedin','callers','length','SIP/','online','incall','status','booked','keys','queue','dialer','exten','xcally-motion-preview','compareToInboundQueue','some','exports','loggedIn','loggedInDb','paused','ringing','talking','waiting','inUse','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','pTalking','sumBillable','name','strategy','abandoned','answered','available','busy','invalid','onHold','notInUse','ringInUse','sumDuration','sumHoldTime','total','type','unavailable','unknown','unmanaged','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundOriginateFailureCallsDay','outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalTotalCalls','originated','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message'];(function(_0x53ee38,_0x7ccc5c){var _0xa65ff7=function(_0x44707b){while(--_0x44707b){_0x53ee38['push'](_0x53ee38['shift']());}};_0xa65ff7(++_0x7ccc5c);}(_0xe767,0x11e));var _0x7e76=function(_0x1c3ade,_0x611c4c){_0x1c3ade=_0x1c3ade-0x0;var _0x1fbd3f=_0xe767[_0x1c3ade];return _0x1fbd3f;};'use strict';var INBOUND_COUNTERS=['available',_0x7e76('0x0'),_0x7e76('0x1'),_0x7e76('0x2'),_0x7e76('0x3'),_0x7e76('0x4'),_0x7e76('0x5')];var OUTBOUND_COUNTERS=['available','answered',_0x7e76('0x6'),'loggedIn',_0x7e76('0x1'),'originated',_0x7e76('0x7'),_0x7e76('0x8'),_0x7e76('0x9'),_0x7e76('0xa'),_0x7e76('0xb'),_0x7e76('0xc'),_0x7e76('0xd'),'outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','paused',_0x7e76('0xe'),_0x7e76('0x4'),_0x7e76('0xf'),'sumDuration','total',_0x7e76('0x5')];function VoiceQueueSummary(_0x5127bd){this['id']=_0x5127bd['id'];this[_0x7e76('0x10')]=_0x5127bd[_0x7e76('0x10')];this[_0x7e76('0x11')]=_0x5127bd['strategy'];this[_0x7e76('0x12')]=_0x5127bd[_0x7e76('0x12')]||0x0;this[_0x7e76('0x13')]=_0x5127bd[_0x7e76('0x13')]||0x0;this[_0x7e76('0x14')]=_0x5127bd[_0x7e76('0x14')]||0x0;this[_0x7e76('0x15')]=_0x5127bd[_0x7e76('0x15')]||0x0;this[_0x7e76('0x6')]=_0x5127bd[_0x7e76('0x6')]||0x0;this['invalid']=_0x5127bd[_0x7e76('0x16')]||0x0;this[_0x7e76('0x0')]=_0x5127bd[_0x7e76('0x0')]||0x0;this[_0x7e76('0x1')]=_0x5127bd['loggedInDb']||0x0;this[_0x7e76('0x17')]=_0x5127bd[_0x7e76('0x17')]||0x0;this[_0x7e76('0x18')]=_0x5127bd['notInUse']||0x0;this[_0x7e76('0x2')]=_0x5127bd[_0x7e76('0x2')]||0x0;this[_0x7e76('0x3')]=_0x5127bd['ringing']||0x0;this[_0x7e76('0x19')]=_0x5127bd[_0x7e76('0x19')];this['sumBillable']=_0x5127bd[_0x7e76('0xf')];this['sumDuration']=_0x5127bd[_0x7e76('0x1a')];this[_0x7e76('0x1b')]=_0x5127bd[_0x7e76('0x1b')]||0x0;this[_0x7e76('0x4')]=_0x5127bd[_0x7e76('0x4')]||0x0;this[_0x7e76('0x1c')]=_0x5127bd['total']||0x0;this[_0x7e76('0x1d')]=_0x5127bd['type'];this[_0x7e76('0x1e')]=_0x5127bd[_0x7e76('0x1e')]||0x0;this[_0x7e76('0x1f')]=_0x5127bd['unknown']||0x0;this[_0x7e76('0x20')]=_0x5127bd[_0x7e76('0x20')]||0x0;this['waiting']=_0x5127bd['waiting']||0x0;if(_0x5127bd['type']===_0x7e76('0x21')){this[_0x7e76('0xe')]=_0x5127bd[_0x7e76('0xe')]||0x0;this[_0x7e76('0x22')]=_0x5127bd[_0x7e76('0x22')];this['dialMethod']=_0x5127bd[_0x7e76('0x23')];this[_0x7e76('0x24')]=_0x5127bd[_0x7e76('0x24')];this[_0x7e76('0x25')]=_0x5127bd[_0x7e76('0x25')];this[_0x7e76('0x26')]=_0x5127bd[_0x7e76('0x26')];this['dialPrefix']=_0x5127bd[_0x7e76('0x27')];this['temp']=_0x5127bd[_0x7e76('0x28')];this['outboundAnswerAgiCallsDay']=_0x5127bd['outboundAnswerAgiCallsDay'];this[_0x7e76('0x8')]=_0x5127bd[_0x7e76('0x8')];this['outboundBlacklistCallsDay']=_0x5127bd[_0x7e76('0x9')];this['outboundBusyCallsDay']=_0x5127bd['outboundBusyCallsDay'];this[_0x7e76('0xb')]=_0x5127bd['outboundCongestionCallsDay'];this[_0x7e76('0x29')]=_0x5127bd[_0x7e76('0x29')];this[_0x7e76('0x2a')]=_0x5127bd[_0x7e76('0x2a')];this[_0x7e76('0x2b')]=_0x5127bd['outboundDropCallsDayTimeout'];this['outboundNoAnswerCallsDay']=_0x5127bd[_0x7e76('0xc')];this['outboundNoSuchCallsDay']=_0x5127bd['outboundNoSuchCallsDay'];this[_0x7e76('0x2c')]=_0x5127bd[_0x7e76('0x2c')];this['outboundReCallsDay']=_0x5127bd[_0x7e76('0x2d')];this[_0x7e76('0x2e')]=_0x5127bd[_0x7e76('0x2e')];this[_0x7e76('0x2f')]=_0x5127bd[_0x7e76('0x2f')];this[_0x7e76('0x30')]=_0x5127bd['predictiveIntervalAnsweredCalls'];this['predictiveIntervalAvgHoldtime']=_0x5127bd[_0x7e76('0x31')];this[_0x7e76('0x32')]=_0x5127bd[_0x7e76('0x32')];this['predictiveIntervalDroppedCallsCallersExit']=_0x5127bd[_0x7e76('0x33')];this[_0x7e76('0x34')]=_0x5127bd[_0x7e76('0x34')];this[_0x7e76('0x35')]=_0x5127bd[_0x7e76('0x35')];this[_0x7e76('0x36')]=_0x5127bd[_0x7e76('0x36')];this['predictiveIntervalHitRate']=_0x5127bd['predictiveIntervalHitRate'];this[_0x7e76('0x37')]=_0x5127bd[_0x7e76('0x37')];this[_0x7e76('0x38')]=_0x5127bd[_0x7e76('0x38')];this['predictiveIntervalAvailable']=_0x5127bd['predictiveIntervalAvailable'];this[_0x7e76('0x39')]=_0x5127bd[_0x7e76('0x39')];this[_0x7e76('0x3a')]=_0x5127bd['originated'];this[_0x7e76('0x3b')]=_0x5127bd[_0x7e76('0x3b')];this[_0x7e76('0x3c')]=_0x5127bd[_0x7e76('0x3c')];this['erlangAbandonmentRate']=_0x5127bd[_0x7e76('0x3d')];this['erlangBusyFactor']=_0x5127bd[_0x7e76('0x3e')];this[_0x7e76('0x3f')]=_0x5127bd[_0x7e76('0x3f')];this[_0x7e76('0x40')]=_0x5127bd[_0x7e76('0x40')];this['message']=_0x5127bd[_0x7e76('0x41')];this[_0x7e76('0x42')]=_0x5127bd[_0x7e76('0x42')];}if(_0x5127bd[_0x7e76('0x43')]){this[_0x7e76('0x43')]={'id':_0x5127bd[_0x7e76('0x43')]['id'],'name':_0x5127bd['Trunk']['name'],'active':_0x5127bd[_0x7e76('0x43')][_0x7e76('0x44')],'callerid':_0x5127bd[_0x7e76('0x43')][_0x7e76('0x45')]};}}VoiceQueueSummary[_0x7e76('0x46')][_0x7e76('0x47')]=function(_0x1cdc00,_0x281620,_0x3aa8ca,_0x2022f6){this[_0x7e76('0x1')]=0x0;this[_0x7e76('0x4')]=0x0;this['paused']=0x0;this[_0x7e76('0x1f')]=0x0;this[_0x7e76('0x18')]=0x0;this[_0x7e76('0x6')]=0x0;this[_0x7e76('0x15')]=0x0;this[_0x7e76('0x16')]=0x0;this['unavailable']=0x0;this[_0x7e76('0x3')]=0x0;this['ringInUse']=0x0;this[_0x7e76('0x17')]=0x0;if(_0x3aa8ca){if(_0x3aa8ca[_0x7e76('0x14')]){this[_0x7e76('0x14')]=Number(_0x3aa8ca[_0x7e76('0x14')]);}if(_0x3aa8ca[_0x7e76('0x48')]){this[_0x7e76('0x0')]=Number(_0x3aa8ca[_0x7e76('0x48')]);}if(_0x3aa8ca[_0x7e76('0x49')]){this[_0x7e76('0x5')]=Number(_0x3aa8ca[_0x7e76('0x49')]);}}for(var _0x3a04a4=0x0;_0x3a04a4<_0x1cdc00[_0x7e76('0x4a')];_0x3a04a4++){var _0x4e6641=_0x281620[_0x7e76('0x4b')+_0x1cdc00[_0x3a04a4][_0x7e76('0x10')]];if(_0x4e6641&&_0x4e6641[_0x7e76('0x4c')]){this[_0x7e76('0x1')]+=0x1;}if(_0x1cdc00[_0x3a04a4][_0x7e76('0x4d')]==='1'){this['talking']+=0x1;}if(_0x1cdc00[_0x3a04a4][_0x7e76('0x2')]==='1'&&!['2','7','8']['includes'](_0x1cdc00[_0x3a04a4]['status'])){this[_0x7e76('0x2')]+=0x1;}switch(_0x1cdc00[_0x3a04a4][_0x7e76('0x4e')]){case'0':this[_0x7e76('0x1f')]+=0x1;break;case'1':this[_0x7e76('0x18')]+=0x1;break;case'2':this[_0x7e76('0x6')]+=0x1;break;case'3':this[_0x7e76('0x15')]+=0x1;break;case'4':this[_0x7e76('0x16')]+=0x1;break;case'5':this[_0x7e76('0x1e')]+=0x1;break;case'6':this[_0x7e76('0x3')]+=0x1;break;case'7':this[_0x7e76('0x19')]+=0x1;break;case'8':this[_0x7e76('0x17')]+=0x1;break;}}if(this[_0x7e76('0x23')]===_0x7e76('0x4f')){var _0x36df82=Object[_0x7e76('0x50')](_0x2022f6);for(var _0x840be7=0x0;_0x840be7<_0x36df82[_0x7e76('0x4a')];_0x840be7++){var _0x2a99dc=_0x36df82[_0x840be7];var _0x518d45=_0x2022f6[_0x2a99dc];if(_0x518d45[_0x7e76('0x51')]===this[_0x7e76('0x10')]&&_0x518d45['type']===_0x7e76('0x52')&&_0x518d45[_0x7e76('0x53')]===_0x7e76('0x54')){this[_0x7e76('0x4')]+=0x1;}}if(this[_0x7e76('0x4')]>this[_0x7e76('0x6')]){this[_0x7e76('0x4')]=this[_0x7e76('0x6')];}this[_0x7e76('0xe')]=0x0;}return this;};VoiceQueueSummary[_0x7e76('0x46')][_0x7e76('0x55')]=function(_0x316840){var _0x33d6d3=![];if(_0x316840){_0x33d6d3=INBOUND_COUNTERS[_0x7e76('0x56')](function(_0x4a1265){return this[_0x4a1265]!==_0x316840[_0x4a1265];},this);}return _0x33d6d3;};VoiceQueueSummary[_0x7e76('0x46')]['compareToOutboundQueue']=function(_0x51daa0){var _0x4b16bb=![];var _0x53012a=![];var _0x125e7e=![];if(_0x51daa0){_0x4b16bb=this[_0x7e76('0x23')]!==_0x51daa0['dialMethod']||this[_0x7e76('0x22')]!==_0x51daa0[_0x7e76('0x22')]||this[_0x7e76('0x41')]!==_0x51daa0['message']||this[_0x7e76('0x42')]!==_0x51daa0[_0x7e76('0x42')];_0x53012a=OUTBOUND_COUNTERS[_0x7e76('0x56')](function(_0xa8b4e0){return this[_0xa8b4e0]!==_0x51daa0[_0xa8b4e0];},this);if(this[_0x7e76('0x43')]&&_0x51daa0[_0x7e76('0x43')]){_0x125e7e=this[_0x7e76('0x43')][_0x7e76('0x10')]!==_0x51daa0[_0x7e76('0x43')][_0x7e76('0x10')]||this[_0x7e76('0x43')][_0x7e76('0x44')]!==_0x51daa0[_0x7e76('0x43')][_0x7e76('0x44')];}}return _0x4b16bb||_0x53012a||_0x125e7e;};VoiceQueueSummary[_0x7e76('0x46')]['updateReportFromOutboundQueue']=function(_0x1b4247){this['answered']=_0x1b4247[_0x7e76('0x13')];this['message']=_0x1b4247[_0x7e76('0x41')];this[_0x7e76('0x42')]=_0x1b4247['statusMessage'];this[_0x7e76('0x3a')]=_0x1b4247[_0x7e76('0x3a')];this[_0x7e76('0x7')]=_0x1b4247['outboundAbandonedCallsDay'];this[_0x7e76('0x8')]=_0x1b4247[_0x7e76('0x8')];this[_0x7e76('0x9')]=_0x1b4247[_0x7e76('0x9')];this['outboundBusyCallsDay']=_0x1b4247[_0x7e76('0xa')];this[_0x7e76('0xb')]=_0x1b4247[_0x7e76('0xb')];this['outboundNoAnswerCallsDay']=_0x1b4247['outboundNoAnswerCallsDay'];this[_0x7e76('0xd')]=_0x1b4247['outboundNoSuchCallsDay'];this['outboundReCallsDay']=_0x1b4247[_0x7e76('0x2d')];this[_0x7e76('0x2e')]=_0x1b4247[_0x7e76('0x2e')];this[_0x7e76('0x2f')]=_0x1b4247[_0x7e76('0x2f')];this['sumBillable']=_0x1b4247[_0x7e76('0xf')];this['sumDuration']=_0x1b4247[_0x7e76('0x1a')];this[_0x7e76('0x1c')]=_0x1b4247['total'];if(this[_0x7e76('0x23')]==='preview'){this['pTalking']=_0x1b4247[_0x7e76('0xe')];}};module[_0x7e76('0x57')]=VoiceQueueSummary;
\ No newline at end of file
+var _0xf8bb=['available','loggedIn','loggedInDb','ringing','talking','waiting','answered','inUse','originated','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundNoAnswerCallsDay','outboundRejectCallsDay','paused','sumBillable','sumDuration','total','name','strategy','abandoned','busy','invalid','onHold','notInUse','ringInUse','sumHoldTime','type','unavailable','unknown','unmanaged','outbound','pTalking','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundCongestionCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoSuchCallsDay','outboundOriginateFailureCallsDay','outboundReCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','callerid','prototype','createReport','loggedin','length','SIP/','online','incall','includes','status','booked','keys','queue','exten','xcally-motion-preview','compareToInboundQueue','some','active','updateReportFromOutboundQueue','preview','exports'];(function(_0x176329,_0x568c84){var _0x31997c=function(_0x3d64df){while(--_0x3d64df){_0x176329['push'](_0x176329['shift']());}};_0x31997c(++_0x568c84);}(_0xf8bb,0x111));var _0xbf8b=function(_0x3c2700,_0x1aebb7){_0x3c2700=_0x3c2700-0x0;var _0x56b57c=_0xf8bb[_0x3c2700];return _0x56b57c;};'use strict';var INBOUND_COUNTERS=[_0xbf8b('0x0'),_0xbf8b('0x1'),_0xbf8b('0x2'),'paused',_0xbf8b('0x3'),_0xbf8b('0x4'),_0xbf8b('0x5')];var OUTBOUND_COUNTERS=[_0xbf8b('0x0'),_0xbf8b('0x6'),_0xbf8b('0x7'),_0xbf8b('0x1'),_0xbf8b('0x2'),_0xbf8b('0x8'),_0xbf8b('0x9'),_0xbf8b('0xa'),_0xbf8b('0xb'),_0xbf8b('0xc'),'outboundCongestionCallsDay',_0xbf8b('0xd'),'outboundNoSuchCallsDay','outboundReCallsDay',_0xbf8b('0xe'),'outboundUnknownCallsDay',_0xbf8b('0xf'),'pTalking',_0xbf8b('0x4'),_0xbf8b('0x10'),_0xbf8b('0x11'),_0xbf8b('0x12'),_0xbf8b('0x5')];function VoiceQueueSummary(_0x416471){this['id']=_0x416471['id'];this[_0xbf8b('0x13')]=_0x416471[_0xbf8b('0x13')];this['strategy']=_0x416471[_0xbf8b('0x14')];this[_0xbf8b('0x15')]=_0x416471['abandoned']||0x0;this[_0xbf8b('0x6')]=_0x416471[_0xbf8b('0x6')]||0x0;this[_0xbf8b('0x0')]=_0x416471[_0xbf8b('0x0')]||0x0;this[_0xbf8b('0x16')]=_0x416471[_0xbf8b('0x16')]||0x0;this[_0xbf8b('0x7')]=_0x416471[_0xbf8b('0x7')]||0x0;this[_0xbf8b('0x17')]=_0x416471[_0xbf8b('0x17')]||0x0;this['loggedIn']=_0x416471[_0xbf8b('0x1')]||0x0;this[_0xbf8b('0x2')]=_0x416471[_0xbf8b('0x2')]||0x0;this[_0xbf8b('0x18')]=_0x416471[_0xbf8b('0x18')]||0x0;this['notInUse']=_0x416471[_0xbf8b('0x19')]||0x0;this[_0xbf8b('0xf')]=_0x416471[_0xbf8b('0xf')]||0x0;this['ringing']=_0x416471[_0xbf8b('0x3')]||0x0;this[_0xbf8b('0x1a')]=_0x416471[_0xbf8b('0x1a')];this['sumBillable']=_0x416471[_0xbf8b('0x10')];this[_0xbf8b('0x11')]=_0x416471[_0xbf8b('0x11')];this[_0xbf8b('0x1b')]=_0x416471[_0xbf8b('0x1b')]||0x0;this[_0xbf8b('0x4')]=_0x416471['talking']||0x0;this['total']=_0x416471['total']||0x0;this[_0xbf8b('0x1c')]=_0x416471['type'];this[_0xbf8b('0x1d')]=_0x416471['unavailable']||0x0;this[_0xbf8b('0x1e')]=_0x416471['unknown']||0x0;this['unmanaged']=_0x416471[_0xbf8b('0x1f')]||0x0;this[_0xbf8b('0x5')]=_0x416471[_0xbf8b('0x5')]||0x0;if(_0x416471[_0xbf8b('0x1c')]===_0xbf8b('0x20')){this[_0xbf8b('0x21')]=_0x416471[_0xbf8b('0x21')]||0x0;this[_0xbf8b('0x22')]=_0x416471['dialActive'];this[_0xbf8b('0x23')]=_0x416471[_0xbf8b('0x23')];this[_0xbf8b('0x24')]=_0x416471[_0xbf8b('0x24')];this['dialOriginateCallerIdNumber']=_0x416471[_0xbf8b('0x25')];this[_0xbf8b('0x26')]=_0x416471['dialOriginateTimeout'];this[_0xbf8b('0x27')]=_0x416471[_0xbf8b('0x27')];this[_0xbf8b('0x28')]=_0x416471[_0xbf8b('0x28')];this[_0xbf8b('0x29')]=_0x416471[_0xbf8b('0x29')];this[_0xbf8b('0xa')]=_0x416471[_0xbf8b('0xa')];this[_0xbf8b('0xb')]=_0x416471[_0xbf8b('0xb')];this[_0xbf8b('0xc')]=_0x416471[_0xbf8b('0xc')];this[_0xbf8b('0x2a')]=_0x416471['outboundCongestionCallsDay'];this[_0xbf8b('0x2b')]=_0x416471[_0xbf8b('0x2b')];this[_0xbf8b('0x2c')]=_0x416471[_0xbf8b('0x2c')];this['outboundDropCallsDayTimeout']=_0x416471[_0xbf8b('0x2d')];this[_0xbf8b('0xd')]=_0x416471[_0xbf8b('0xd')];this[_0xbf8b('0x2e')]=_0x416471[_0xbf8b('0x2e')];this[_0xbf8b('0x2f')]=_0x416471[_0xbf8b('0x2f')];this[_0xbf8b('0x30')]=_0x416471[_0xbf8b('0x30')];this[_0xbf8b('0xe')]=_0x416471[_0xbf8b('0xe')];this[_0xbf8b('0x31')]=_0x416471['outboundUnknownCallsDay'];this[_0xbf8b('0x32')]=_0x416471['predictiveIntervalAnsweredCalls'];this['predictiveIntervalAvgHoldtime']=_0x416471[_0xbf8b('0x33')];this[_0xbf8b('0x34')]=_0x416471[_0xbf8b('0x34')];this[_0xbf8b('0x35')]=_0x416471[_0xbf8b('0x35')];this['predictiveIntervalDroppedCallsTimeout']=_0x416471['predictiveIntervalDroppedCallsTimeout'];this[_0xbf8b('0x36')]=_0x416471[_0xbf8b('0x36')];this[_0xbf8b('0x37')]=_0x416471[_0xbf8b('0x37')];this[_0xbf8b('0x38')]=_0x416471[_0xbf8b('0x38')];this[_0xbf8b('0x39')]=_0x416471[_0xbf8b('0x39')];this[_0xbf8b('0x3a')]=_0x416471[_0xbf8b('0x3a')];this['predictiveIntervalAvailable']=_0x416471[_0xbf8b('0x3b')];this[_0xbf8b('0x3c')]=_0x416471['predictiveIntervalTotalCalls'];this[_0xbf8b('0x8')]=_0x416471[_0xbf8b('0x8')];this[_0xbf8b('0x3d')]=_0x416471[_0xbf8b('0x3d')];this[_0xbf8b('0x3e')]=_0x416471['erlangCallToSecond'];this[_0xbf8b('0x3f')]=_0x416471[_0xbf8b('0x3f')];this[_0xbf8b('0x40')]=_0x416471[_0xbf8b('0x40')];this[_0xbf8b('0x41')]=_0x416471[_0xbf8b('0x41')];this[_0xbf8b('0x42')]=_0x416471[_0xbf8b('0x42')];this[_0xbf8b('0x43')]=_0x416471['message'];this[_0xbf8b('0x44')]=_0x416471[_0xbf8b('0x44')];}if(_0x416471[_0xbf8b('0x45')]){this[_0xbf8b('0x45')]={'id':_0x416471[_0xbf8b('0x45')]['id'],'name':_0x416471[_0xbf8b('0x45')][_0xbf8b('0x13')],'active':_0x416471[_0xbf8b('0x45')]['active'],'callerid':_0x416471[_0xbf8b('0x45')][_0xbf8b('0x46')]};}}VoiceQueueSummary[_0xbf8b('0x47')][_0xbf8b('0x48')]=function(_0x238df1,_0x53e080,_0x4c1570,_0x16d660){this[_0xbf8b('0x2')]=0x0;this['talking']=0x0;this[_0xbf8b('0xf')]=0x0;this[_0xbf8b('0x1e')]=0x0;this[_0xbf8b('0x19')]=0x0;this[_0xbf8b('0x7')]=0x0;this[_0xbf8b('0x16')]=0x0;this[_0xbf8b('0x17')]=0x0;this['unavailable']=0x0;this[_0xbf8b('0x3')]=0x0;this[_0xbf8b('0x1a')]=0x0;this[_0xbf8b('0x18')]=0x0;if(_0x4c1570){if(_0x4c1570[_0xbf8b('0x0')]){this[_0xbf8b('0x0')]=Number(_0x4c1570['available']);}if(_0x4c1570[_0xbf8b('0x49')]){this[_0xbf8b('0x1')]=Number(_0x4c1570[_0xbf8b('0x49')]);}if(_0x4c1570['callers']){this['waiting']=Number(_0x4c1570['callers']);}}for(var _0x1fc1c3=0x0;_0x1fc1c3<_0x238df1[_0xbf8b('0x4a')];_0x1fc1c3++){var _0x58fd9d=_0x53e080[_0xbf8b('0x4b')+_0x238df1[_0x1fc1c3][_0xbf8b('0x13')]];if(_0x58fd9d&&_0x58fd9d[_0xbf8b('0x4c')]){this[_0xbf8b('0x2')]+=0x1;}if(_0x238df1[_0x1fc1c3][_0xbf8b('0x4d')]==='1'){this[_0xbf8b('0x4')]+=0x1;}if(_0x238df1[_0x1fc1c3][_0xbf8b('0xf')]==='1'&&!['2','7','8'][_0xbf8b('0x4e')](_0x238df1[_0x1fc1c3][_0xbf8b('0x4f')])){this[_0xbf8b('0xf')]+=0x1;}switch(_0x238df1[_0x1fc1c3][_0xbf8b('0x4f')]){case'0':this[_0xbf8b('0x1e')]+=0x1;break;case'1':this[_0xbf8b('0x19')]+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this[_0xbf8b('0x16')]+=0x1;break;case'4':this[_0xbf8b('0x17')]+=0x1;break;case'5':this[_0xbf8b('0x1d')]+=0x1;break;case'6':this[_0xbf8b('0x3')]+=0x1;break;case'7':this['ringInUse']+=0x1;break;case'8':this[_0xbf8b('0x18')]+=0x1;break;}}if(this[_0xbf8b('0x23')]===_0xbf8b('0x50')){var _0x506b4f=Object[_0xbf8b('0x51')](_0x16d660);for(var _0x2ee446=0x0;_0x2ee446<_0x506b4f[_0xbf8b('0x4a')];_0x2ee446++){var _0x5fc380=_0x506b4f[_0x2ee446];var _0x45df9e=_0x16d660[_0x5fc380];if(_0x45df9e[_0xbf8b('0x52')]===this['name']&&_0x45df9e['type']==='dialer'&&_0x45df9e[_0xbf8b('0x53')]===_0xbf8b('0x54')){this[_0xbf8b('0x4')]+=0x1;}}if(this['talking']>this['inUse']){this[_0xbf8b('0x4')]=this[_0xbf8b('0x7')];}this['pTalking']=0x0;}return this;};VoiceQueueSummary[_0xbf8b('0x47')][_0xbf8b('0x55')]=function(_0x3774c0){var _0x10e395=![];if(_0x3774c0){_0x10e395=INBOUND_COUNTERS[_0xbf8b('0x56')](function(_0x83800){return this[_0x83800]!==_0x3774c0[_0x83800];},this);}return _0x10e395;};VoiceQueueSummary['prototype']['compareToOutboundQueue']=function(_0x1832d8){var _0x48f18e=![];var _0x845bbe=![];var _0x50cbcd=![];if(_0x1832d8){_0x48f18e=this['dialMethod']!==_0x1832d8[_0xbf8b('0x23')]||this[_0xbf8b('0x22')]!==_0x1832d8[_0xbf8b('0x22')]||this[_0xbf8b('0x43')]!==_0x1832d8[_0xbf8b('0x43')]||this[_0xbf8b('0x44')]!==_0x1832d8[_0xbf8b('0x44')];_0x845bbe=OUTBOUND_COUNTERS['some'](function(_0x38331b){return this[_0x38331b]!==_0x1832d8[_0x38331b];},this);if(this[_0xbf8b('0x45')]&&_0x1832d8[_0xbf8b('0x45')]){_0x50cbcd=this['Trunk'][_0xbf8b('0x13')]!==_0x1832d8[_0xbf8b('0x45')][_0xbf8b('0x13')]||this['Trunk'][_0xbf8b('0x57')]!==_0x1832d8['Trunk']['active'];}}return _0x48f18e||_0x845bbe||_0x50cbcd;};VoiceQueueSummary[_0xbf8b('0x47')][_0xbf8b('0x58')]=function(_0x24e672){this['answered']=_0x24e672[_0xbf8b('0x6')];this[_0xbf8b('0x43')]=_0x24e672['message'];this[_0xbf8b('0x44')]=_0x24e672['statusMessage'];this[_0xbf8b('0x8')]=_0x24e672['originated'];this[_0xbf8b('0x9')]=_0x24e672['outboundAbandonedCallsDay'];this['outboundAnswerCallsDay']=_0x24e672[_0xbf8b('0xa')];this[_0xbf8b('0xb')]=_0x24e672[_0xbf8b('0xb')];this[_0xbf8b('0xc')]=_0x24e672[_0xbf8b('0xc')];this[_0xbf8b('0x2a')]=_0x24e672[_0xbf8b('0x2a')];this[_0xbf8b('0xd')]=_0x24e672[_0xbf8b('0xd')];this[_0xbf8b('0x2e')]=_0x24e672[_0xbf8b('0x2e')];this[_0xbf8b('0x30')]=_0x24e672[_0xbf8b('0x30')];this[_0xbf8b('0xe')]=_0x24e672['outboundRejectCallsDay'];this[_0xbf8b('0x31')]=_0x24e672['outboundUnknownCallsDay'];this[_0xbf8b('0x10')]=_0x24e672[_0xbf8b('0x10')];this[_0xbf8b('0x11')]=_0x24e672[_0xbf8b('0x11')];this['total']=_0x24e672['total'];if(this[_0xbf8b('0x23')]===_0xbf8b('0x59')){this['pTalking']=_0x24e672[_0xbf8b('0x21')];}};module[_0xbf8b('0x5a')]=VoiceQueueSummary;
\ No newline at end of file