Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index 537dc12..37dcf7e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbcc7=['ringInUse','sumBillable','sumHoldTime','type','unavailable','unknown','unmanaged','outbound','pTalking','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundCongestionCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoSuchCallsDay','outboundOriginateFailureCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','startPredictive','startProgressive','message','statusMessage','Trunk','active','callerid','prototype','createReport','talking','loggedin','callers','length','online','incall','status','queue','dialer','exten','xcally-motion-preview','compareToInboundQueue','some','compareToOutboundQueue','dialActive','updateReportFromOutboundQueue','preview','available','loggedIn','paused','waiting','answered','inUse','loggedInDb','originated','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundNoAnswerCallsDay','outboundReCallsDay','outboundRejectCallsDay','sumDuration','total','name','strategy','abandoned','busy','invalid','onHold','notInUse','ringing'];(function(_0x19b052,_0x377aaf){var _0x47e39f=function(_0x221b30){while(--_0x221b30){_0x19b052['push'](_0x19b052['shift']());}};_0x47e39f(++_0x377aaf);}(_0xbcc7,0x19a));var _0x7bcc=function(_0x46ab39,_0x231cb6){_0x46ab39=_0x46ab39-0x0;var _0x459b2e=_0xbcc7[_0x46ab39];return _0x459b2e;};'use strict';var INBOUND_COUNTERS=[_0x7bcc('0x0'),_0x7bcc('0x1'),'loggedInDb',_0x7bcc('0x2'),'ringing','talking',_0x7bcc('0x3')];var OUTBOUND_COUNTERS=['available',_0x7bcc('0x4'),_0x7bcc('0x5'),'loggedIn',_0x7bcc('0x6'),_0x7bcc('0x7'),_0x7bcc('0x8'),_0x7bcc('0x9'),_0x7bcc('0xa'),_0x7bcc('0xb'),'outboundCongestionCallsDay',_0x7bcc('0xc'),'outboundNoSuchCallsDay',_0x7bcc('0xd'),_0x7bcc('0xe'),'outboundUnknownCallsDay',_0x7bcc('0x2'),'pTalking','talking','sumBillable',_0x7bcc('0xf'),_0x7bcc('0x10'),_0x7bcc('0x3')];function VoiceQueueSummary(_0x1121d1){this['id']=_0x1121d1['id'];this[_0x7bcc('0x11')]=_0x1121d1[_0x7bcc('0x11')];this[_0x7bcc('0x12')]=_0x1121d1['strategy'];this[_0x7bcc('0x13')]=_0x1121d1[_0x7bcc('0x13')]||0x0;this[_0x7bcc('0x4')]=_0x1121d1[_0x7bcc('0x4')]||0x0;this[_0x7bcc('0x0')]=_0x1121d1[_0x7bcc('0x0')]||0x0;this['busy']=_0x1121d1[_0x7bcc('0x14')]||0x0;this[_0x7bcc('0x5')]=_0x1121d1[_0x7bcc('0x5')]||0x0;this[_0x7bcc('0x15')]=_0x1121d1[_0x7bcc('0x15')]||0x0;this[_0x7bcc('0x1')]=_0x1121d1[_0x7bcc('0x1')]||0x0;this['loggedInDb']=_0x1121d1[_0x7bcc('0x6')]||0x0;this['onHold']=_0x1121d1[_0x7bcc('0x16')]||0x0;this[_0x7bcc('0x17')]=_0x1121d1[_0x7bcc('0x17')]||0x0;this[_0x7bcc('0x2')]=_0x1121d1['paused']||0x0;this['ringing']=_0x1121d1[_0x7bcc('0x18')]||0x0;this[_0x7bcc('0x19')]=_0x1121d1[_0x7bcc('0x19')];this[_0x7bcc('0x1a')]=_0x1121d1[_0x7bcc('0x1a')];this[_0x7bcc('0xf')]=_0x1121d1[_0x7bcc('0xf')];this[_0x7bcc('0x1b')]=_0x1121d1[_0x7bcc('0x1b')]||0x0;this['talking']=_0x1121d1['talking']||0x0;this[_0x7bcc('0x10')]=_0x1121d1[_0x7bcc('0x10')]||0x0;this[_0x7bcc('0x1c')]=_0x1121d1[_0x7bcc('0x1c')];this[_0x7bcc('0x1d')]=_0x1121d1[_0x7bcc('0x1d')]||0x0;this[_0x7bcc('0x1e')]=_0x1121d1[_0x7bcc('0x1e')]||0x0;this[_0x7bcc('0x1f')]=_0x1121d1['unmanaged']||0x0;this[_0x7bcc('0x3')]=_0x1121d1[_0x7bcc('0x3')]||0x0;if(_0x1121d1[_0x7bcc('0x1c')]===_0x7bcc('0x20')){this[_0x7bcc('0x21')]=_0x1121d1[_0x7bcc('0x21')]||0x0;this['dialActive']=_0x1121d1['dialActive'];this[_0x7bcc('0x22')]=_0x1121d1['dialMethod'];this['dialOriginateCallerIdName']=_0x1121d1[_0x7bcc('0x23')];this['dialOriginateCallerIdNumber']=_0x1121d1[_0x7bcc('0x24')];this[_0x7bcc('0x25')]=_0x1121d1[_0x7bcc('0x25')];this['dialPrefix']=_0x1121d1[_0x7bcc('0x26')];this[_0x7bcc('0x27')]=_0x1121d1[_0x7bcc('0x27')];this[_0x7bcc('0x28')]=_0x1121d1[_0x7bcc('0x28')];this[_0x7bcc('0x9')]=_0x1121d1[_0x7bcc('0x9')];this['outboundBlacklistCallsDay']=_0x1121d1[_0x7bcc('0xa')];this[_0x7bcc('0xb')]=_0x1121d1['outboundBusyCallsDay'];this['outboundCongestionCallsDay']=_0x1121d1[_0x7bcc('0x29')];this['outboundDropCallsDayACS']=_0x1121d1[_0x7bcc('0x2a')];this[_0x7bcc('0x2b')]=_0x1121d1[_0x7bcc('0x2b')];this[_0x7bcc('0x2c')]=_0x1121d1['outboundDropCallsDayTimeout'];this[_0x7bcc('0xc')]=_0x1121d1[_0x7bcc('0xc')];this[_0x7bcc('0x2d')]=_0x1121d1['outboundNoSuchCallsDay'];this[_0x7bcc('0x2e')]=_0x1121d1[_0x7bcc('0x2e')];this[_0x7bcc('0xd')]=_0x1121d1[_0x7bcc('0xd')];this[_0x7bcc('0xe')]=_0x1121d1[_0x7bcc('0xe')];this[_0x7bcc('0x2f')]=_0x1121d1[_0x7bcc('0x2f')];this[_0x7bcc('0x30')]=_0x1121d1[_0x7bcc('0x30')];this[_0x7bcc('0x31')]=_0x1121d1['predictiveIntervalAvgHoldtime'];this[_0x7bcc('0x32')]=_0x1121d1[_0x7bcc('0x32')];this[_0x7bcc('0x33')]=_0x1121d1['predictiveIntervalDroppedCallsCallersExit'];this['predictiveIntervalDroppedCallsTimeout']=_0x1121d1[_0x7bcc('0x34')];this[_0x7bcc('0x35')]=_0x1121d1[_0x7bcc('0x35')];this[_0x7bcc('0x36')]=_0x1121d1[_0x7bcc('0x36')];this[_0x7bcc('0x37')]=_0x1121d1[_0x7bcc('0x37')];this['predictiveIntervalMultiplicativeFactor']=_0x1121d1['predictiveIntervalMultiplicativeFactor'];this['predictiveIntervalPauses']=_0x1121d1['predictiveIntervalPauses'];this[_0x7bcc('0x38')]=_0x1121d1[_0x7bcc('0x38')];this[_0x7bcc('0x39')]=_0x1121d1['predictiveIntervalTotalCalls'];this[_0x7bcc('0x7')]=_0x1121d1[_0x7bcc('0x7')];this[_0x7bcc('0x3a')]=_0x1121d1['erlangCalls'];this['erlangCallToSecond']=_0x1121d1[_0x7bcc('0x3b')];this[_0x7bcc('0x3c')]=_0x1121d1[_0x7bcc('0x3c')];this['erlangBusyFactor']=_0x1121d1['erlangBusyFactor'];this[_0x7bcc('0x3d')]=_0x1121d1[_0x7bcc('0x3d')];this[_0x7bcc('0x3e')]=_0x1121d1['startProgressive'];this[_0x7bcc('0x3f')]=_0x1121d1[_0x7bcc('0x3f')];this[_0x7bcc('0x40')]=_0x1121d1[_0x7bcc('0x40')];}if(_0x1121d1[_0x7bcc('0x41')]){this[_0x7bcc('0x41')]={'id':_0x1121d1['Trunk']['id'],'name':_0x1121d1[_0x7bcc('0x41')][_0x7bcc('0x11')],'active':_0x1121d1['Trunk'][_0x7bcc('0x42')],'callerid':_0x1121d1[_0x7bcc('0x41')][_0x7bcc('0x43')]};}}VoiceQueueSummary[_0x7bcc('0x44')][_0x7bcc('0x45')]=function(_0x1b4d75,_0x632cff,_0xeaeac5,_0x5d67a0){this[_0x7bcc('0x6')]=0x0;this[_0x7bcc('0x46')]=0x0;this[_0x7bcc('0x2')]=0x0;this[_0x7bcc('0x1e')]=0x0;this[_0x7bcc('0x17')]=0x0;this[_0x7bcc('0x5')]=0x0;this['busy']=0x0;this['invalid']=0x0;this[_0x7bcc('0x1d')]=0x0;this[_0x7bcc('0x18')]=0x0;this['ringInUse']=0x0;this[_0x7bcc('0x16')]=0x0;if(_0xeaeac5){if(_0xeaeac5[_0x7bcc('0x0')]){this[_0x7bcc('0x0')]=Number(_0xeaeac5[_0x7bcc('0x0')]);}if(_0xeaeac5[_0x7bcc('0x47')]){this[_0x7bcc('0x1')]=Number(_0xeaeac5[_0x7bcc('0x47')]);}if(_0xeaeac5['callers']){this[_0x7bcc('0x3')]=Number(_0xeaeac5[_0x7bcc('0x48')]);}}for(var _0x2a490d=0x0;_0x2a490d<_0x1b4d75[_0x7bcc('0x49')];_0x2a490d++){var _0x144510=_0x632cff['SIP/'+_0x1b4d75[_0x2a490d][_0x7bcc('0x11')]];if(_0x144510&&_0x144510[_0x7bcc('0x4a')]){this['loggedInDb']+=0x1;}if(_0x1b4d75[_0x2a490d][_0x7bcc('0x4b')]==='1'){this[_0x7bcc('0x46')]+=0x1;}if(_0x1b4d75[_0x2a490d][_0x7bcc('0x2')]==='1'&&!['2','7','8']['includes'](_0x1b4d75[_0x2a490d][_0x7bcc('0x4c')])){this[_0x7bcc('0x2')]+=0x1;}switch(_0x1b4d75[_0x2a490d]['status']){case'0':this[_0x7bcc('0x1e')]+=0x1;break;case'1':this[_0x7bcc('0x17')]+=0x1;break;case'2':this[_0x7bcc('0x5')]+=0x1;break;case'3':this[_0x7bcc('0x14')]+=0x1;break;case'4':this[_0x7bcc('0x15')]+=0x1;break;case'5':this['unavailable']+=0x1;break;case'6':this[_0x7bcc('0x18')]+=0x1;break;case'7':this[_0x7bcc('0x19')]+=0x1;break;case'8':this['onHold']+=0x1;break;}}if(this[_0x7bcc('0x22')]==='booked'){var _0x415de9=Object['keys'](_0x5d67a0);for(var _0x29cb88=0x0;_0x29cb88<_0x415de9['length'];_0x29cb88++){var _0x5748ca=_0x415de9[_0x29cb88];var _0x11dec2=_0x5d67a0[_0x5748ca];if(_0x11dec2[_0x7bcc('0x4d')]===this[_0x7bcc('0x11')]&&_0x11dec2[_0x7bcc('0x1c')]===_0x7bcc('0x4e')&&_0x11dec2[_0x7bcc('0x4f')]===_0x7bcc('0x50')){this[_0x7bcc('0x46')]+=0x1;}}if(this[_0x7bcc('0x46')]>this[_0x7bcc('0x5')]){this[_0x7bcc('0x46')]=this[_0x7bcc('0x5')];}this[_0x7bcc('0x21')]=0x0;}return this;};VoiceQueueSummary[_0x7bcc('0x44')][_0x7bcc('0x51')]=function(_0x4c12f2){var _0x281c21=![];if(_0x4c12f2){_0x281c21=INBOUND_COUNTERS[_0x7bcc('0x52')](function(_0x54bb61){return this[_0x54bb61]!==_0x4c12f2[_0x54bb61];},this);}return _0x281c21;};VoiceQueueSummary['prototype'][_0x7bcc('0x53')]=function(_0x38240d){var _0x55deaf=![];var _0x5cf572=![];var _0x5268f2=![];if(_0x38240d){_0x55deaf=this['dialMethod']!==_0x38240d['dialMethod']||this[_0x7bcc('0x54')]!==_0x38240d[_0x7bcc('0x54')]||this['message']!==_0x38240d['message']||this[_0x7bcc('0x40')]!==_0x38240d[_0x7bcc('0x40')];_0x5cf572=OUTBOUND_COUNTERS[_0x7bcc('0x52')](function(_0x33c052){return this[_0x33c052]!==_0x38240d[_0x33c052];},this);if(this[_0x7bcc('0x41')]&&_0x38240d[_0x7bcc('0x41')]){_0x5268f2=this['Trunk']['name']!==_0x38240d[_0x7bcc('0x41')][_0x7bcc('0x11')]||this[_0x7bcc('0x41')][_0x7bcc('0x42')]!==_0x38240d['Trunk']['active'];}}return _0x55deaf||_0x5cf572||_0x5268f2;};VoiceQueueSummary['prototype'][_0x7bcc('0x55')]=function(_0x583592){this[_0x7bcc('0x4')]=_0x583592[_0x7bcc('0x4')];this[_0x7bcc('0x3f')]=_0x583592['message'];this[_0x7bcc('0x40')]=_0x583592['statusMessage'];this['originated']=_0x583592[_0x7bcc('0x7')];this[_0x7bcc('0x8')]=_0x583592[_0x7bcc('0x8')];this[_0x7bcc('0x9')]=_0x583592[_0x7bcc('0x9')];this[_0x7bcc('0xa')]=_0x583592[_0x7bcc('0xa')];this[_0x7bcc('0xb')]=_0x583592[_0x7bcc('0xb')];this['outboundCongestionCallsDay']=_0x583592[_0x7bcc('0x29')];this[_0x7bcc('0xc')]=_0x583592[_0x7bcc('0xc')];this['outboundNoSuchCallsDay']=_0x583592[_0x7bcc('0x2d')];this[_0x7bcc('0xd')]=_0x583592[_0x7bcc('0xd')];this[_0x7bcc('0xe')]=_0x583592[_0x7bcc('0xe')];this[_0x7bcc('0x2f')]=_0x583592[_0x7bcc('0x2f')];this[_0x7bcc('0x1a')]=_0x583592[_0x7bcc('0x1a')];this[_0x7bcc('0xf')]=_0x583592['sumDuration'];this[_0x7bcc('0x10')]=_0x583592[_0x7bcc('0x10')];if(this['dialMethod']===_0x7bcc('0x56')){this[_0x7bcc('0x21')]=_0x583592[_0x7bcc('0x21')];}};module['exports']=VoiceQueueSummary;
\ No newline at end of file
+var _0xff16=['outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundOriginateFailureCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','active','busy','unavailable','loggedin','callers','length','SIP/','incall','status','dialMethod','booked','queue','xcally-motion-preview','some','compareToOutboundQueue','prototype','updateReportFromOutboundQueue','outboundAbandonedCallsDay','preview','exports','available','loggedIn','paused','ringing','talking','waiting','answered','inUse','originated','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','pTalking','sumBillable','sumDuration','total','name','abandoned','invalid','loggedInDb','onHold','notInUse','ringInUse','sumHoldTime','type','unknown','unmanaged','outbound','dialActive','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS'];(function(_0x1fbd72,_0x5b353f){var _0x47e61a=function(_0x24581a){while(--_0x24581a){_0x1fbd72['push'](_0x1fbd72['shift']());}};_0x47e61a(++_0x5b353f);}(_0xff16,0x7f));var _0x6ff1=function(_0x10f0f5,_0x18ef35){_0x10f0f5=_0x10f0f5-0x0;var _0x1f5e1c=_0xff16[_0x10f0f5];return _0x1f5e1c;};'use strict';var INBOUND_COUNTERS=[_0x6ff1('0x0'),_0x6ff1('0x1'),'loggedInDb',_0x6ff1('0x2'),_0x6ff1('0x3'),_0x6ff1('0x4'),_0x6ff1('0x5')];var OUTBOUND_COUNTERS=[_0x6ff1('0x0'),_0x6ff1('0x6'),_0x6ff1('0x7'),_0x6ff1('0x1'),'loggedInDb',_0x6ff1('0x8'),'outboundAbandonedCallsDay',_0x6ff1('0x9'),_0x6ff1('0xa'),_0x6ff1('0xb'),_0x6ff1('0xc'),_0x6ff1('0xd'),_0x6ff1('0xe'),_0x6ff1('0xf'),_0x6ff1('0x10'),'outboundUnknownCallsDay',_0x6ff1('0x2'),_0x6ff1('0x11'),_0x6ff1('0x4'),_0x6ff1('0x12'),_0x6ff1('0x13'),_0x6ff1('0x14'),_0x6ff1('0x5')];function VoiceQueueSummary(_0x5a6f92){this['id']=_0x5a6f92['id'];this[_0x6ff1('0x15')]=_0x5a6f92[_0x6ff1('0x15')];this['strategy']=_0x5a6f92['strategy'];this[_0x6ff1('0x16')]=_0x5a6f92['abandoned']||0x0;this[_0x6ff1('0x6')]=_0x5a6f92[_0x6ff1('0x6')]||0x0;this[_0x6ff1('0x0')]=_0x5a6f92['available']||0x0;this['busy']=_0x5a6f92['busy']||0x0;this[_0x6ff1('0x7')]=_0x5a6f92[_0x6ff1('0x7')]||0x0;this[_0x6ff1('0x17')]=_0x5a6f92[_0x6ff1('0x17')]||0x0;this[_0x6ff1('0x1')]=_0x5a6f92[_0x6ff1('0x1')]||0x0;this['loggedInDb']=_0x5a6f92[_0x6ff1('0x18')]||0x0;this[_0x6ff1('0x19')]=_0x5a6f92[_0x6ff1('0x19')]||0x0;this[_0x6ff1('0x1a')]=_0x5a6f92[_0x6ff1('0x1a')]||0x0;this[_0x6ff1('0x2')]=_0x5a6f92['paused']||0x0;this[_0x6ff1('0x3')]=_0x5a6f92[_0x6ff1('0x3')]||0x0;this[_0x6ff1('0x1b')]=_0x5a6f92[_0x6ff1('0x1b')];this[_0x6ff1('0x12')]=_0x5a6f92[_0x6ff1('0x12')];this['sumDuration']=_0x5a6f92[_0x6ff1('0x13')];this[_0x6ff1('0x1c')]=_0x5a6f92[_0x6ff1('0x1c')]||0x0;this[_0x6ff1('0x4')]=_0x5a6f92[_0x6ff1('0x4')]||0x0;this[_0x6ff1('0x14')]=_0x5a6f92[_0x6ff1('0x14')]||0x0;this['type']=_0x5a6f92[_0x6ff1('0x1d')];this['unavailable']=_0x5a6f92['unavailable']||0x0;this[_0x6ff1('0x1e')]=_0x5a6f92[_0x6ff1('0x1e')]||0x0;this[_0x6ff1('0x1f')]=_0x5a6f92[_0x6ff1('0x1f')]||0x0;this[_0x6ff1('0x5')]=_0x5a6f92[_0x6ff1('0x5')]||0x0;if(_0x5a6f92[_0x6ff1('0x1d')]===_0x6ff1('0x20')){this['pTalking']=_0x5a6f92[_0x6ff1('0x11')]||0x0;this[_0x6ff1('0x21')]=_0x5a6f92[_0x6ff1('0x21')];this['dialMethod']=_0x5a6f92['dialMethod'];this[_0x6ff1('0x22')]=_0x5a6f92[_0x6ff1('0x22')];this['dialOriginateCallerIdNumber']=_0x5a6f92[_0x6ff1('0x23')];this[_0x6ff1('0x24')]=_0x5a6f92['dialOriginateTimeout'];this[_0x6ff1('0x25')]=_0x5a6f92[_0x6ff1('0x25')];this['temp']=_0x5a6f92[_0x6ff1('0x26')];this[_0x6ff1('0x27')]=_0x5a6f92[_0x6ff1('0x27')];this[_0x6ff1('0x9')]=_0x5a6f92['outboundAnswerCallsDay'];this[_0x6ff1('0xa')]=_0x5a6f92[_0x6ff1('0xa')];this[_0x6ff1('0xb')]=_0x5a6f92[_0x6ff1('0xb')];this[_0x6ff1('0xc')]=_0x5a6f92['outboundCongestionCallsDay'];this[_0x6ff1('0x28')]=_0x5a6f92[_0x6ff1('0x28')];this[_0x6ff1('0x29')]=_0x5a6f92['outboundDropCallsDayCallersExit'];this[_0x6ff1('0x2a')]=_0x5a6f92['outboundDropCallsDayTimeout'];this[_0x6ff1('0xd')]=_0x5a6f92[_0x6ff1('0xd')];this[_0x6ff1('0xe')]=_0x5a6f92[_0x6ff1('0xe')];this[_0x6ff1('0x2b')]=_0x5a6f92[_0x6ff1('0x2b')];this[_0x6ff1('0xf')]=_0x5a6f92['outboundReCallsDay'];this['outboundRejectCallsDay']=_0x5a6f92[_0x6ff1('0x10')];this[_0x6ff1('0x2c')]=_0x5a6f92[_0x6ff1('0x2c')];this[_0x6ff1('0x2d')]=_0x5a6f92[_0x6ff1('0x2d')];this[_0x6ff1('0x2e')]=_0x5a6f92['predictiveIntervalAvgHoldtime'];this[_0x6ff1('0x2f')]=_0x5a6f92[_0x6ff1('0x2f')];this[_0x6ff1('0x30')]=_0x5a6f92['predictiveIntervalDroppedCallsCallersExit'];this[_0x6ff1('0x31')]=_0x5a6f92['predictiveIntervalDroppedCallsTimeout'];this[_0x6ff1('0x32')]=_0x5a6f92['predictiveIntervalErlangCalls'];this[_0x6ff1('0x33')]=_0x5a6f92[_0x6ff1('0x33')];this['predictiveIntervalHitRate']=_0x5a6f92['predictiveIntervalHitRate'];this['predictiveIntervalMultiplicativeFactor']=_0x5a6f92[_0x6ff1('0x34')];this[_0x6ff1('0x35')]=_0x5a6f92[_0x6ff1('0x35')];this[_0x6ff1('0x36')]=_0x5a6f92[_0x6ff1('0x36')];this['predictiveIntervalTotalCalls']=_0x5a6f92[_0x6ff1('0x37')];this['originated']=_0x5a6f92[_0x6ff1('0x8')];this['erlangCalls']=_0x5a6f92['erlangCalls'];this[_0x6ff1('0x38')]=_0x5a6f92[_0x6ff1('0x38')];this[_0x6ff1('0x39')]=_0x5a6f92[_0x6ff1('0x39')];this[_0x6ff1('0x3a')]=_0x5a6f92[_0x6ff1('0x3a')];this['startPredictive']=_0x5a6f92[_0x6ff1('0x3b')];this[_0x6ff1('0x3c')]=_0x5a6f92['startProgressive'];this['message']=_0x5a6f92[_0x6ff1('0x3d')];this['statusMessage']=_0x5a6f92[_0x6ff1('0x3e')];}if(_0x5a6f92[_0x6ff1('0x3f')]){this[_0x6ff1('0x3f')]={'id':_0x5a6f92[_0x6ff1('0x3f')]['id'],'name':_0x5a6f92[_0x6ff1('0x3f')][_0x6ff1('0x15')],'active':_0x5a6f92['Trunk'][_0x6ff1('0x40')],'callerid':_0x5a6f92[_0x6ff1('0x3f')]['callerid']};}}VoiceQueueSummary['prototype']['createReport']=function(_0xc8ae37,_0x6bc8bb,_0x3e01e6,_0x5f7999){this[_0x6ff1('0x18')]=0x0;this[_0x6ff1('0x4')]=0x0;this[_0x6ff1('0x2')]=0x0;this['unknown']=0x0;this[_0x6ff1('0x1a')]=0x0;this[_0x6ff1('0x7')]=0x0;this[_0x6ff1('0x41')]=0x0;this[_0x6ff1('0x17')]=0x0;this[_0x6ff1('0x42')]=0x0;this['ringing']=0x0;this[_0x6ff1('0x1b')]=0x0;this[_0x6ff1('0x19')]=0x0;if(_0x3e01e6){if(_0x3e01e6[_0x6ff1('0x0')]){this[_0x6ff1('0x0')]=Number(_0x3e01e6[_0x6ff1('0x0')]);}if(_0x3e01e6[_0x6ff1('0x43')]){this['loggedIn']=Number(_0x3e01e6[_0x6ff1('0x43')]);}if(_0x3e01e6[_0x6ff1('0x44')]){this['waiting']=Number(_0x3e01e6[_0x6ff1('0x44')]);}}for(var _0x5cbff8=0x0;_0x5cbff8<_0xc8ae37[_0x6ff1('0x45')];_0x5cbff8++){var _0x1c07c1=_0x6bc8bb[_0x6ff1('0x46')+_0xc8ae37[_0x5cbff8][_0x6ff1('0x15')]];if(_0x1c07c1&&_0x1c07c1['online']){this['loggedInDb']+=0x1;}if(_0xc8ae37[_0x5cbff8][_0x6ff1('0x47')]==='1'){this['talking']+=0x1;}if(_0xc8ae37[_0x5cbff8][_0x6ff1('0x2')]==='1'&&!['2','7','8']['includes'](_0xc8ae37[_0x5cbff8]['status'])){this[_0x6ff1('0x2')]+=0x1;}switch(_0xc8ae37[_0x5cbff8][_0x6ff1('0x48')]){case'0':this[_0x6ff1('0x1e')]+=0x1;break;case'1':this[_0x6ff1('0x1a')]+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this[_0x6ff1('0x41')]+=0x1;break;case'4':this['invalid']+=0x1;break;case'5':this['unavailable']+=0x1;break;case'6':this[_0x6ff1('0x3')]+=0x1;break;case'7':this[_0x6ff1('0x1b')]+=0x1;break;case'8':this[_0x6ff1('0x19')]+=0x1;break;}}if(this[_0x6ff1('0x49')]===_0x6ff1('0x4a')){var _0x25141b=Object['keys'](_0x5f7999);for(var _0x143492=0x0;_0x143492<_0x25141b['length'];_0x143492++){var _0x9ab9f4=_0x25141b[_0x143492];var _0x4481ee=_0x5f7999[_0x9ab9f4];if(_0x4481ee[_0x6ff1('0x4b')]===this[_0x6ff1('0x15')]&&_0x4481ee['type']==='dialer'&&_0x4481ee['exten']===_0x6ff1('0x4c')){this[_0x6ff1('0x4')]+=0x1;}}if(this[_0x6ff1('0x4')]>this[_0x6ff1('0x7')]){this[_0x6ff1('0x4')]=this[_0x6ff1('0x7')];}this['pTalking']=0x0;}return this;};VoiceQueueSummary['prototype']['compareToInboundQueue']=function(_0x2ba240){var _0xd6d344=![];if(_0x2ba240){_0xd6d344=INBOUND_COUNTERS[_0x6ff1('0x4d')](function(_0x880490){return this[_0x880490]!==_0x2ba240[_0x880490];},this);}return _0xd6d344;};VoiceQueueSummary['prototype'][_0x6ff1('0x4e')]=function(_0x40a53a){var _0x33a32f=![];var _0x5cec60=![];var _0x2b62d6=![];if(_0x40a53a){_0x33a32f=this[_0x6ff1('0x49')]!==_0x40a53a['dialMethod']||this[_0x6ff1('0x21')]!==_0x40a53a[_0x6ff1('0x21')]||this['message']!==_0x40a53a[_0x6ff1('0x3d')]||this['statusMessage']!==_0x40a53a[_0x6ff1('0x3e')];_0x5cec60=OUTBOUND_COUNTERS[_0x6ff1('0x4d')](function(_0x4a5a0d){return this[_0x4a5a0d]!==_0x40a53a[_0x4a5a0d];},this);if(this['Trunk']&&_0x40a53a[_0x6ff1('0x3f')]){_0x2b62d6=this[_0x6ff1('0x3f')]['name']!==_0x40a53a[_0x6ff1('0x3f')]['name']||this[_0x6ff1('0x3f')][_0x6ff1('0x40')]!==_0x40a53a[_0x6ff1('0x3f')]['active'];}}return _0x33a32f||_0x5cec60||_0x2b62d6;};VoiceQueueSummary[_0x6ff1('0x4f')][_0x6ff1('0x50')]=function(_0x3ee52e){this[_0x6ff1('0x6')]=_0x3ee52e[_0x6ff1('0x6')];this['message']=_0x3ee52e[_0x6ff1('0x3d')];this[_0x6ff1('0x3e')]=_0x3ee52e[_0x6ff1('0x3e')];this[_0x6ff1('0x8')]=_0x3ee52e[_0x6ff1('0x8')];this[_0x6ff1('0x51')]=_0x3ee52e['outboundAbandonedCallsDay'];this['outboundAnswerCallsDay']=_0x3ee52e['outboundAnswerCallsDay'];this['outboundBlacklistCallsDay']=_0x3ee52e[_0x6ff1('0xa')];this[_0x6ff1('0xb')]=_0x3ee52e[_0x6ff1('0xb')];this[_0x6ff1('0xc')]=_0x3ee52e['outboundCongestionCallsDay'];this['outboundNoAnswerCallsDay']=_0x3ee52e[_0x6ff1('0xd')];this[_0x6ff1('0xe')]=_0x3ee52e[_0x6ff1('0xe')];this[_0x6ff1('0xf')]=_0x3ee52e[_0x6ff1('0xf')];this[_0x6ff1('0x10')]=_0x3ee52e[_0x6ff1('0x10')];this['outboundUnknownCallsDay']=_0x3ee52e[_0x6ff1('0x2c')];this['sumBillable']=_0x3ee52e[_0x6ff1('0x12')];this[_0x6ff1('0x13')]=_0x3ee52e['sumDuration'];this[_0x6ff1('0x14')]=_0x3ee52e['total'];if(this[_0x6ff1('0x49')]===_0x6ff1('0x52')){this[_0x6ff1('0x11')]=_0x3ee52e['pTalking'];}};module[_0x6ff1('0x53')]=VoiceQueueSummary;
\ No newline at end of file