Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index df13483..49d5527 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x14f5=['ringing','talking','available','answered','loggedInDb','originated','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundNoAnswerCallsDay','outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','pTalking','sumBillable','name','strategy','abandoned','busy','inUse','invalid','onHold','notInUse','sumDuration','sumHoldTime','total','type','unavailable','waiting','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundCongestionCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundOriginateFailureCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','active','callerid','prototype','unknown','ringInUse','loggedin','callers','SIP/','online','status','booked','keys','length','dialer','exten','xcally-motion-preview','compareToInboundQueue','some','updateReportFromOutboundQueue','outboundNoSuchCallsDay','preview','exports','loggedIn','paused'];(function(_0x14ea65,_0x4eba12){var _0xe601d=function(_0x491688){while(--_0x491688){_0x14ea65['push'](_0x14ea65['shift']());}};_0xe601d(++_0x4eba12);}(_0x14f5,0xae));var _0x514f=function(_0x1b76a8,_0x4ec861){_0x1b76a8=_0x1b76a8-0x0;var _0x1c6904=_0x14f5[_0x1b76a8];return _0x1c6904;};'use strict';var INBOUND_COUNTERS=['available',_0x514f('0x0'),'loggedInDb',_0x514f('0x1'),_0x514f('0x2'),_0x514f('0x3'),'waiting'];var OUTBOUND_COUNTERS=[_0x514f('0x4'),_0x514f('0x5'),'inUse',_0x514f('0x0'),_0x514f('0x6'),_0x514f('0x7'),_0x514f('0x8'),_0x514f('0x9'),_0x514f('0xa'),_0x514f('0xb'),'outboundCongestionCallsDay',_0x514f('0xc'),'outboundNoSuchCallsDay',_0x514f('0xd'),_0x514f('0xe'),_0x514f('0xf'),_0x514f('0x1'),_0x514f('0x10'),_0x514f('0x3'),_0x514f('0x11'),'sumDuration','total','waiting'];function VoiceQueueSummary(_0x1d3d2b){this['id']=_0x1d3d2b['id'];this[_0x514f('0x12')]=_0x1d3d2b[_0x514f('0x12')];this[_0x514f('0x13')]=_0x1d3d2b[_0x514f('0x13')];this[_0x514f('0x14')]=_0x1d3d2b[_0x514f('0x14')]||0x0;this[_0x514f('0x5')]=_0x1d3d2b[_0x514f('0x5')]||0x0;this[_0x514f('0x4')]=_0x1d3d2b[_0x514f('0x4')]||0x0;this[_0x514f('0x15')]=_0x1d3d2b[_0x514f('0x15')]||0x0;this[_0x514f('0x16')]=_0x1d3d2b[_0x514f('0x16')]||0x0;this['invalid']=_0x1d3d2b[_0x514f('0x17')]||0x0;this[_0x514f('0x0')]=_0x1d3d2b['loggedIn']||0x0;this[_0x514f('0x6')]=_0x1d3d2b['loggedInDb']||0x0;this[_0x514f('0x18')]=_0x1d3d2b[_0x514f('0x18')]||0x0;this[_0x514f('0x19')]=_0x1d3d2b['notInUse']||0x0;this[_0x514f('0x1')]=_0x1d3d2b[_0x514f('0x1')]||0x0;this[_0x514f('0x2')]=_0x1d3d2b[_0x514f('0x2')]||0x0;this['ringInUse']=_0x1d3d2b['ringInUse'];this[_0x514f('0x11')]=_0x1d3d2b[_0x514f('0x11')];this[_0x514f('0x1a')]=_0x1d3d2b['sumDuration'];this[_0x514f('0x1b')]=_0x1d3d2b[_0x514f('0x1b')]||0x0;this['talking']=_0x1d3d2b[_0x514f('0x3')]||0x0;this[_0x514f('0x1c')]=_0x1d3d2b['total']||0x0;this[_0x514f('0x1d')]=_0x1d3d2b[_0x514f('0x1d')];this[_0x514f('0x1e')]=_0x1d3d2b[_0x514f('0x1e')]||0x0;this['unknown']=_0x1d3d2b['unknown']||0x0;this['unmanaged']=_0x1d3d2b['unmanaged']||0x0;this[_0x514f('0x1f')]=_0x1d3d2b[_0x514f('0x1f')]||0x0;if(_0x1d3d2b[_0x514f('0x1d')]===_0x514f('0x20')){this[_0x514f('0x10')]=_0x1d3d2b[_0x514f('0x10')]||0x0;this[_0x514f('0x21')]=_0x1d3d2b[_0x514f('0x21')];this[_0x514f('0x22')]=_0x1d3d2b['dialMethod'];this[_0x514f('0x23')]=_0x1d3d2b[_0x514f('0x23')];this[_0x514f('0x24')]=_0x1d3d2b[_0x514f('0x24')];this[_0x514f('0x25')]=_0x1d3d2b[_0x514f('0x25')];this[_0x514f('0x26')]=_0x1d3d2b[_0x514f('0x26')];this[_0x514f('0x27')]=_0x1d3d2b['temp'];this[_0x514f('0x28')]=_0x1d3d2b['outboundAnswerAgiCallsDay'];this[_0x514f('0x9')]=_0x1d3d2b['outboundAnswerCallsDay'];this[_0x514f('0xa')]=_0x1d3d2b[_0x514f('0xa')];this[_0x514f('0xb')]=_0x1d3d2b[_0x514f('0xb')];this[_0x514f('0x29')]=_0x1d3d2b['outboundCongestionCallsDay'];this['outboundDropCallsDayACS']=_0x1d3d2b[_0x514f('0x2a')];this['outboundDropCallsDayCallersExit']=_0x1d3d2b[_0x514f('0x2b')];this[_0x514f('0x2c')]=_0x1d3d2b[_0x514f('0x2c')];this[_0x514f('0xc')]=_0x1d3d2b[_0x514f('0xc')];this['outboundNoSuchCallsDay']=_0x1d3d2b['outboundNoSuchCallsDay'];this['outboundOriginateFailureCallsDay']=_0x1d3d2b[_0x514f('0x2d')];this[_0x514f('0xd')]=_0x1d3d2b[_0x514f('0xd')];this[_0x514f('0xe')]=_0x1d3d2b[_0x514f('0xe')];this[_0x514f('0xf')]=_0x1d3d2b[_0x514f('0xf')];this[_0x514f('0x2e')]=_0x1d3d2b[_0x514f('0x2e')];this[_0x514f('0x2f')]=_0x1d3d2b['predictiveIntervalAvgHoldtime'];this['predictiveIntervalAvgTalktime']=_0x1d3d2b['predictiveIntervalAvgTalktime'];this[_0x514f('0x30')]=_0x1d3d2b['predictiveIntervalDroppedCallsCallersExit'];this[_0x514f('0x31')]=_0x1d3d2b['predictiveIntervalDroppedCallsTimeout'];this[_0x514f('0x32')]=_0x1d3d2b['predictiveIntervalErlangCalls'];this['predictiveIntervalErlangCallsDroppedCalls']=_0x1d3d2b[_0x514f('0x33')];this['predictiveIntervalHitRate']=_0x1d3d2b[_0x514f('0x34')];this[_0x514f('0x35')]=_0x1d3d2b[_0x514f('0x35')];this[_0x514f('0x36')]=_0x1d3d2b[_0x514f('0x36')];this['predictiveIntervalAvailable']=_0x1d3d2b[_0x514f('0x37')];this[_0x514f('0x38')]=_0x1d3d2b[_0x514f('0x38')];this[_0x514f('0x7')]=_0x1d3d2b['originated'];this[_0x514f('0x39')]=_0x1d3d2b[_0x514f('0x39')];this[_0x514f('0x3a')]=_0x1d3d2b[_0x514f('0x3a')];this['erlangAbandonmentRate']=_0x1d3d2b[_0x514f('0x3b')];this[_0x514f('0x3c')]=_0x1d3d2b[_0x514f('0x3c')];this[_0x514f('0x3d')]=_0x1d3d2b['startPredictive'];this[_0x514f('0x3e')]=_0x1d3d2b['startProgressive'];this[_0x514f('0x3f')]=_0x1d3d2b[_0x514f('0x3f')];this[_0x514f('0x40')]=_0x1d3d2b['statusMessage'];}if(_0x1d3d2b['Trunk']){this[_0x514f('0x41')]={'id':_0x1d3d2b['Trunk']['id'],'name':_0x1d3d2b[_0x514f('0x41')][_0x514f('0x12')],'active':_0x1d3d2b[_0x514f('0x41')][_0x514f('0x42')],'callerid':_0x1d3d2b[_0x514f('0x41')][_0x514f('0x43')]};}}VoiceQueueSummary[_0x514f('0x44')]['createReport']=function(_0x48914e,_0x1c2fdc,_0x4fd77d,_0x12700){this[_0x514f('0x6')]=0x0;this[_0x514f('0x3')]=0x0;this[_0x514f('0x1')]=0x0;this[_0x514f('0x45')]=0x0;this['notInUse']=0x0;this[_0x514f('0x16')]=0x0;this['busy']=0x0;this['invalid']=0x0;this[_0x514f('0x1e')]=0x0;this[_0x514f('0x2')]=0x0;this[_0x514f('0x46')]=0x0;this[_0x514f('0x18')]=0x0;if(_0x4fd77d){if(_0x4fd77d[_0x514f('0x4')]){this['available']=Number(_0x4fd77d['available']);}if(_0x4fd77d[_0x514f('0x47')]){this[_0x514f('0x0')]=Number(_0x4fd77d[_0x514f('0x47')]);}if(_0x4fd77d[_0x514f('0x48')]){this[_0x514f('0x1f')]=Number(_0x4fd77d['callers']);}}for(var _0x41b5d8=0x0;_0x41b5d8<_0x48914e['length'];_0x41b5d8++){var _0x526ffe=_0x1c2fdc[_0x514f('0x49')+_0x48914e[_0x41b5d8]['name']];if(_0x526ffe&&_0x526ffe[_0x514f('0x4a')]){this['loggedInDb']+=0x1;}if(_0x48914e[_0x41b5d8]['incall']==='1'){this[_0x514f('0x3')]+=0x1;}if(_0x48914e[_0x41b5d8][_0x514f('0x1')]==='1'&&!['2','7','8']['includes'](_0x48914e[_0x41b5d8]['status'])){this[_0x514f('0x1')]+=0x1;}switch(_0x48914e[_0x41b5d8][_0x514f('0x4b')]){case'0':this[_0x514f('0x45')]+=0x1;break;case'1':this[_0x514f('0x19')]+=0x1;break;case'2':this[_0x514f('0x16')]+=0x1;break;case'3':this[_0x514f('0x15')]+=0x1;break;case'4':this[_0x514f('0x17')]+=0x1;break;case'5':this[_0x514f('0x1e')]+=0x1;break;case'6':this[_0x514f('0x2')]+=0x1;break;case'7':this['ringInUse']+=0x1;break;case'8':this[_0x514f('0x18')]+=0x1;break;}}if(this[_0x514f('0x22')]===_0x514f('0x4c')){var _0x2e9263=Object[_0x514f('0x4d')](_0x12700);for(var _0x2e6971=0x0;_0x2e6971<_0x2e9263[_0x514f('0x4e')];_0x2e6971++){var _0x4e75ee=_0x2e9263[_0x2e6971];var _0x95ee75=_0x12700[_0x4e75ee];if(_0x95ee75['queue']===this[_0x514f('0x12')]&&_0x95ee75[_0x514f('0x1d')]===_0x514f('0x4f')&&_0x95ee75[_0x514f('0x50')]===_0x514f('0x51')){this['talking']+=0x1;}}if(this['talking']>this[_0x514f('0x16')]){this['talking']=this[_0x514f('0x16')];}this['pTalking']=0x0;}return this;};VoiceQueueSummary[_0x514f('0x44')][_0x514f('0x52')]=function(_0x42be9b){var _0x4f35ba=![];if(_0x42be9b){_0x4f35ba=INBOUND_COUNTERS[_0x514f('0x53')](function(_0x41cb02){return this[_0x41cb02]!==_0x42be9b[_0x41cb02];},this);}return _0x4f35ba;};VoiceQueueSummary[_0x514f('0x44')]['compareToOutboundQueue']=function(_0x222f94){var _0x46969a=![];var _0x589d19=![];var _0x3fd3f2=![];if(_0x222f94){_0x46969a=this['dialMethod']!==_0x222f94[_0x514f('0x22')]||this[_0x514f('0x21')]!==_0x222f94[_0x514f('0x21')]||this['message']!==_0x222f94['message']||this[_0x514f('0x40')]!==_0x222f94[_0x514f('0x40')];_0x589d19=OUTBOUND_COUNTERS[_0x514f('0x53')](function(_0x1053b8){return this[_0x1053b8]!==_0x222f94[_0x1053b8];},this);if(this[_0x514f('0x41')]&&_0x222f94[_0x514f('0x41')]){_0x3fd3f2=this[_0x514f('0x41')][_0x514f('0x12')]!==_0x222f94['Trunk'][_0x514f('0x12')]||this[_0x514f('0x41')][_0x514f('0x42')]!==_0x222f94[_0x514f('0x41')]['active'];}}return _0x46969a||_0x589d19||_0x3fd3f2;};VoiceQueueSummary[_0x514f('0x44')][_0x514f('0x54')]=function(_0x34cb90){this['answered']=_0x34cb90[_0x514f('0x5')];this[_0x514f('0x3f')]=_0x34cb90['message'];this[_0x514f('0x40')]=_0x34cb90[_0x514f('0x40')];this[_0x514f('0x7')]=_0x34cb90[_0x514f('0x7')];this[_0x514f('0x8')]=_0x34cb90[_0x514f('0x8')];this[_0x514f('0x9')]=_0x34cb90[_0x514f('0x9')];this['outboundBlacklistCallsDay']=_0x34cb90[_0x514f('0xa')];this['outboundBusyCallsDay']=_0x34cb90['outboundBusyCallsDay'];this[_0x514f('0x29')]=_0x34cb90['outboundCongestionCallsDay'];this[_0x514f('0xc')]=_0x34cb90[_0x514f('0xc')];this[_0x514f('0x55')]=_0x34cb90['outboundNoSuchCallsDay'];this['outboundReCallsDay']=_0x34cb90[_0x514f('0xd')];this['outboundRejectCallsDay']=_0x34cb90[_0x514f('0xe')];this[_0x514f('0xf')]=_0x34cb90[_0x514f('0xf')];this[_0x514f('0x11')]=_0x34cb90['sumBillable'];this['sumDuration']=_0x34cb90[_0x514f('0x1a')];this[_0x514f('0x1c')]=_0x34cb90[_0x514f('0x1c')];if(this[_0x514f('0x22')]===_0x514f('0x56')){this[_0x514f('0x10')]=_0x34cb90[_0x514f('0x10')];}};module[_0x514f('0x57')]=VoiceQueueSummary;
\ No newline at end of file
+var _0x2263=['message','statusMessage','Trunk','active','callerid','prototype','createReport','loggedin','callers','SIP/','incall','status','booked','keys','queue','dialer','exten','xcally-motion-preview','some','compareToOutboundQueue','answered','preview','available','loggedIn','loggedInDb','paused','ringing','talking','waiting','inUse','originated','outboundAbandonedCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundUnknownCallsDay','pTalking','sumBillable','sumDuration','total','name','strategy','busy','invalid','onHold','notInUse','ringInUse','sumHoldTime','type','unavailable','unknown','unmanaged','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundAnswerCallsDay','outboundCongestionCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','outboundRejectCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive'];(function(_0x4d04fb,_0x400b7c){var _0xf5582a=function(_0x343f0a){while(--_0x343f0a){_0x4d04fb['push'](_0x4d04fb['shift']());}};_0xf5582a(++_0x400b7c);}(_0x2263,0x6e));var _0x3226=function(_0x151418,_0x2cbffa){_0x151418=_0x151418-0x0;var _0x40e29a=_0x2263[_0x151418];return _0x40e29a;};'use strict';var INBOUND_COUNTERS=[_0x3226('0x0'),_0x3226('0x1'),_0x3226('0x2'),_0x3226('0x3'),_0x3226('0x4'),_0x3226('0x5'),_0x3226('0x6')];var OUTBOUND_COUNTERS=[_0x3226('0x0'),'answered',_0x3226('0x7'),_0x3226('0x1'),_0x3226('0x2'),_0x3226('0x8'),_0x3226('0x9'),'outboundAnswerCallsDay',_0x3226('0xa'),_0x3226('0xb'),'outboundCongestionCallsDay','outboundNoAnswerCallsDay',_0x3226('0xc'),_0x3226('0xd'),'outboundRejectCallsDay',_0x3226('0xe'),_0x3226('0x3'),_0x3226('0xf'),_0x3226('0x5'),_0x3226('0x10'),_0x3226('0x11'),_0x3226('0x12'),'waiting'];function VoiceQueueSummary(_0x1e2c60){this['id']=_0x1e2c60['id'];this[_0x3226('0x13')]=_0x1e2c60[_0x3226('0x13')];this[_0x3226('0x14')]=_0x1e2c60['strategy'];this['abandoned']=_0x1e2c60['abandoned']||0x0;this['answered']=_0x1e2c60['answered']||0x0;this[_0x3226('0x0')]=_0x1e2c60[_0x3226('0x0')]||0x0;this[_0x3226('0x15')]=_0x1e2c60[_0x3226('0x15')]||0x0;this['inUse']=_0x1e2c60['inUse']||0x0;this[_0x3226('0x16')]=_0x1e2c60[_0x3226('0x16')]||0x0;this[_0x3226('0x1')]=_0x1e2c60['loggedIn']||0x0;this[_0x3226('0x2')]=_0x1e2c60[_0x3226('0x2')]||0x0;this[_0x3226('0x17')]=_0x1e2c60[_0x3226('0x17')]||0x0;this[_0x3226('0x18')]=_0x1e2c60[_0x3226('0x18')]||0x0;this['paused']=_0x1e2c60['paused']||0x0;this[_0x3226('0x4')]=_0x1e2c60['ringing']||0x0;this[_0x3226('0x19')]=_0x1e2c60[_0x3226('0x19')];this[_0x3226('0x10')]=_0x1e2c60[_0x3226('0x10')];this[_0x3226('0x11')]=_0x1e2c60[_0x3226('0x11')];this['sumHoldTime']=_0x1e2c60[_0x3226('0x1a')]||0x0;this[_0x3226('0x5')]=_0x1e2c60['talking']||0x0;this[_0x3226('0x12')]=_0x1e2c60[_0x3226('0x12')]||0x0;this[_0x3226('0x1b')]=_0x1e2c60['type'];this[_0x3226('0x1c')]=_0x1e2c60[_0x3226('0x1c')]||0x0;this[_0x3226('0x1d')]=_0x1e2c60[_0x3226('0x1d')]||0x0;this[_0x3226('0x1e')]=_0x1e2c60[_0x3226('0x1e')]||0x0;this[_0x3226('0x6')]=_0x1e2c60[_0x3226('0x6')]||0x0;if(_0x1e2c60['type']===_0x3226('0x1f')){this['pTalking']=_0x1e2c60[_0x3226('0xf')]||0x0;this['dialActive']=_0x1e2c60[_0x3226('0x20')];this['dialMethod']=_0x1e2c60[_0x3226('0x21')];this['dialOriginateCallerIdName']=_0x1e2c60[_0x3226('0x22')];this[_0x3226('0x23')]=_0x1e2c60['dialOriginateCallerIdNumber'];this[_0x3226('0x24')]=_0x1e2c60[_0x3226('0x24')];this[_0x3226('0x25')]=_0x1e2c60[_0x3226('0x25')];this[_0x3226('0x26')]=_0x1e2c60[_0x3226('0x26')];this[_0x3226('0x27')]=_0x1e2c60['outboundAnswerAgiCallsDay'];this[_0x3226('0x28')]=_0x1e2c60['outboundAnswerCallsDay'];this[_0x3226('0xa')]=_0x1e2c60[_0x3226('0xa')];this[_0x3226('0xb')]=_0x1e2c60['outboundBusyCallsDay'];this[_0x3226('0x29')]=_0x1e2c60['outboundCongestionCallsDay'];this['outboundDropCallsDayACS']=_0x1e2c60[_0x3226('0x2a')];this[_0x3226('0x2b')]=_0x1e2c60[_0x3226('0x2b')];this[_0x3226('0x2c')]=_0x1e2c60[_0x3226('0x2c')];this[_0x3226('0x2d')]=_0x1e2c60[_0x3226('0x2d')];this[_0x3226('0xc')]=_0x1e2c60[_0x3226('0xc')];this['outboundOriginateFailureCallsDay']=_0x1e2c60[_0x3226('0x2e')];this[_0x3226('0xd')]=_0x1e2c60[_0x3226('0xd')];this[_0x3226('0x2f')]=_0x1e2c60[_0x3226('0x2f')];this[_0x3226('0xe')]=_0x1e2c60[_0x3226('0xe')];this[_0x3226('0x30')]=_0x1e2c60[_0x3226('0x30')];this[_0x3226('0x31')]=_0x1e2c60[_0x3226('0x31')];this[_0x3226('0x32')]=_0x1e2c60[_0x3226('0x32')];this[_0x3226('0x33')]=_0x1e2c60['predictiveIntervalDroppedCallsCallersExit'];this['predictiveIntervalDroppedCallsTimeout']=_0x1e2c60[_0x3226('0x34')];this['predictiveIntervalErlangCalls']=_0x1e2c60[_0x3226('0x35')];this['predictiveIntervalErlangCallsDroppedCalls']=_0x1e2c60[_0x3226('0x36')];this[_0x3226('0x37')]=_0x1e2c60[_0x3226('0x37')];this[_0x3226('0x38')]=_0x1e2c60[_0x3226('0x38')];this['predictiveIntervalPauses']=_0x1e2c60[_0x3226('0x39')];this['predictiveIntervalAvailable']=_0x1e2c60[_0x3226('0x3a')];this['predictiveIntervalTotalCalls']=_0x1e2c60[_0x3226('0x3b')];this[_0x3226('0x8')]=_0x1e2c60[_0x3226('0x8')];this['erlangCalls']=_0x1e2c60[_0x3226('0x3c')];this[_0x3226('0x3d')]=_0x1e2c60[_0x3226('0x3d')];this[_0x3226('0x3e')]=_0x1e2c60[_0x3226('0x3e')];this[_0x3226('0x3f')]=_0x1e2c60[_0x3226('0x3f')];this[_0x3226('0x40')]=_0x1e2c60[_0x3226('0x40')];this[_0x3226('0x41')]=_0x1e2c60[_0x3226('0x41')];this[_0x3226('0x42')]=_0x1e2c60[_0x3226('0x42')];this[_0x3226('0x43')]=_0x1e2c60[_0x3226('0x43')];}if(_0x1e2c60['Trunk']){this[_0x3226('0x44')]={'id':_0x1e2c60[_0x3226('0x44')]['id'],'name':_0x1e2c60[_0x3226('0x44')][_0x3226('0x13')],'active':_0x1e2c60['Trunk'][_0x3226('0x45')],'callerid':_0x1e2c60[_0x3226('0x44')][_0x3226('0x46')]};}}VoiceQueueSummary[_0x3226('0x47')][_0x3226('0x48')]=function(_0x60a818,_0x34fe50,_0x1d0e02,_0x3f3efd){this['loggedInDb']=0x0;this[_0x3226('0x5')]=0x0;this[_0x3226('0x3')]=0x0;this[_0x3226('0x1d')]=0x0;this[_0x3226('0x18')]=0x0;this[_0x3226('0x7')]=0x0;this[_0x3226('0x15')]=0x0;this['invalid']=0x0;this['unavailable']=0x0;this[_0x3226('0x4')]=0x0;this[_0x3226('0x19')]=0x0;this['onHold']=0x0;if(_0x1d0e02){if(_0x1d0e02[_0x3226('0x0')]){this[_0x3226('0x0')]=Number(_0x1d0e02[_0x3226('0x0')]);}if(_0x1d0e02[_0x3226('0x49')]){this[_0x3226('0x1')]=Number(_0x1d0e02[_0x3226('0x49')]);}if(_0x1d0e02[_0x3226('0x4a')]){this[_0x3226('0x6')]=Number(_0x1d0e02['callers']);}}for(var _0xc63c19=0x0;_0xc63c19<_0x60a818['length'];_0xc63c19++){var _0x25664e=_0x34fe50[_0x3226('0x4b')+_0x60a818[_0xc63c19]['name']];if(_0x25664e&&_0x25664e['online']){this[_0x3226('0x2')]+=0x1;}if(_0x60a818[_0xc63c19][_0x3226('0x4c')]==='1'){this[_0x3226('0x5')]+=0x1;}if(_0x60a818[_0xc63c19][_0x3226('0x3')]==='1'&&!['2','7','8']['includes'](_0x60a818[_0xc63c19][_0x3226('0x4d')])){this[_0x3226('0x3')]+=0x1;}switch(_0x60a818[_0xc63c19]['status']){case'0':this[_0x3226('0x1d')]+=0x1;break;case'1':this[_0x3226('0x18')]+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this[_0x3226('0x15')]+=0x1;break;case'4':this[_0x3226('0x16')]+=0x1;break;case'5':this[_0x3226('0x1c')]+=0x1;break;case'6':this[_0x3226('0x4')]+=0x1;break;case'7':this[_0x3226('0x19')]+=0x1;break;case'8':this['onHold']+=0x1;break;}}if(this[_0x3226('0x21')]===_0x3226('0x4e')){var _0x3199b1=Object[_0x3226('0x4f')](_0x3f3efd);for(var _0xe890c=0x0;_0xe890c<_0x3199b1['length'];_0xe890c++){var _0x45f6bf=_0x3199b1[_0xe890c];var _0x206733=_0x3f3efd[_0x45f6bf];if(_0x206733[_0x3226('0x50')]===this[_0x3226('0x13')]&&_0x206733[_0x3226('0x1b')]===_0x3226('0x51')&&_0x206733[_0x3226('0x52')]===_0x3226('0x53')){this[_0x3226('0x5')]+=0x1;}}if(this[_0x3226('0x5')]>this[_0x3226('0x7')]){this[_0x3226('0x5')]=this[_0x3226('0x7')];}this['pTalking']=0x0;}return this;};VoiceQueueSummary[_0x3226('0x47')]['compareToInboundQueue']=function(_0x349852){var _0x4e5527=![];if(_0x349852){_0x4e5527=INBOUND_COUNTERS[_0x3226('0x54')](function(_0x222a6d){return this[_0x222a6d]!==_0x349852[_0x222a6d];},this);}return _0x4e5527;};VoiceQueueSummary['prototype'][_0x3226('0x55')]=function(_0x454144){var _0x3f673d=![];var _0x4ca7f4=![];var _0x165609=![];if(_0x454144){_0x3f673d=this[_0x3226('0x21')]!==_0x454144[_0x3226('0x21')]||this['dialActive']!==_0x454144[_0x3226('0x20')]||this[_0x3226('0x42')]!==_0x454144[_0x3226('0x42')]||this[_0x3226('0x43')]!==_0x454144['statusMessage'];_0x4ca7f4=OUTBOUND_COUNTERS['some'](function(_0x407fa5){return this[_0x407fa5]!==_0x454144[_0x407fa5];},this);if(this[_0x3226('0x44')]&&_0x454144[_0x3226('0x44')]){_0x165609=this[_0x3226('0x44')][_0x3226('0x13')]!==_0x454144[_0x3226('0x44')][_0x3226('0x13')]||this[_0x3226('0x44')][_0x3226('0x45')]!==_0x454144['Trunk'][_0x3226('0x45')];}}return _0x3f673d||_0x4ca7f4||_0x165609;};VoiceQueueSummary[_0x3226('0x47')]['updateReportFromOutboundQueue']=function(_0x75d0f2){this[_0x3226('0x56')]=_0x75d0f2[_0x3226('0x56')];this['message']=_0x75d0f2[_0x3226('0x42')];this[_0x3226('0x43')]=_0x75d0f2['statusMessage'];this[_0x3226('0x8')]=_0x75d0f2['originated'];this[_0x3226('0x9')]=_0x75d0f2[_0x3226('0x9')];this[_0x3226('0x28')]=_0x75d0f2['outboundAnswerCallsDay'];this['outboundBlacklistCallsDay']=_0x75d0f2['outboundBlacklistCallsDay'];this[_0x3226('0xb')]=_0x75d0f2[_0x3226('0xb')];this[_0x3226('0x29')]=_0x75d0f2[_0x3226('0x29')];this['outboundNoAnswerCallsDay']=_0x75d0f2['outboundNoAnswerCallsDay'];this[_0x3226('0xc')]=_0x75d0f2[_0x3226('0xc')];this[_0x3226('0xd')]=_0x75d0f2[_0x3226('0xd')];this[_0x3226('0x2f')]=_0x75d0f2[_0x3226('0x2f')];this[_0x3226('0xe')]=_0x75d0f2[_0x3226('0xe')];this['sumBillable']=_0x75d0f2[_0x3226('0x10')];this[_0x3226('0x11')]=_0x75d0f2[_0x3226('0x11')];this[_0x3226('0x12')]=_0x75d0f2['total'];if(this[_0x3226('0x21')]===_0x3226('0x57')){this[_0x3226('0xf')]=_0x75d0f2[_0x3226('0xf')];}};module['exports']=VoiceQueueSummary;
\ No newline at end of file