Built motion from commit d13fb11b.|2.6.34
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index 6e6d5b3..5525ff9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9206=['predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','callerid','prototype','loggedin','callers','length','SIP/','online','incall','includes','status','booked','queue','dialer','exten','xcally-motion-preview','compareToInboundQueue','some','compareToOutboundQueue','active','outboundAbandonedCallsDay','exports','available','loggedIn','loggedInDb','paused','ringing','talking','answered','inUse','originated','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','pTalking','sumBillable','sumDuration','total','waiting','name','abandoned','busy','invalid','onHold','notInUse','ringInUse','sumHoldTime','type','unavailable','unknown','unmanaged','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundOriginateFailureCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable'];(function(_0x193f38,_0x176760){var _0x174490=function(_0x392040){while(--_0x392040){_0x193f38['push'](_0x193f38['shift']());}};_0x174490(++_0x176760);}(_0x9206,0x176));var _0x6920=function(_0x1101d0,_0x417720){_0x1101d0=_0x1101d0-0x0;var _0x2ca7f5=_0x9206[_0x1101d0];return _0x2ca7f5;};'use strict';var INBOUND_COUNTERS=[_0x6920('0x0'),_0x6920('0x1'),_0x6920('0x2'),_0x6920('0x3'),_0x6920('0x4'),_0x6920('0x5'),'waiting'];var OUTBOUND_COUNTERS=['available',_0x6920('0x6'),_0x6920('0x7'),'loggedIn','loggedInDb',_0x6920('0x8'),'outboundAbandonedCallsDay',_0x6920('0x9'),_0x6920('0xa'),_0x6920('0xb'),_0x6920('0xc'),'outboundNoAnswerCallsDay','outboundNoSuchCallsDay',_0x6920('0xd'),_0x6920('0xe'),_0x6920('0xf'),_0x6920('0x3'),_0x6920('0x10'),_0x6920('0x5'),_0x6920('0x11'),_0x6920('0x12'),_0x6920('0x13'),_0x6920('0x14')];function VoiceQueueSummary(_0xb5d14){this['id']=_0xb5d14['id'];this[_0x6920('0x15')]=_0xb5d14[_0x6920('0x15')];this['strategy']=_0xb5d14['strategy'];this[_0x6920('0x16')]=_0xb5d14[_0x6920('0x16')]||0x0;this['answered']=_0xb5d14[_0x6920('0x6')]||0x0;this[_0x6920('0x0')]=_0xb5d14[_0x6920('0x0')]||0x0;this[_0x6920('0x17')]=_0xb5d14[_0x6920('0x17')]||0x0;this['inUse']=_0xb5d14[_0x6920('0x7')]||0x0;this[_0x6920('0x18')]=_0xb5d14[_0x6920('0x18')]||0x0;this[_0x6920('0x1')]=_0xb5d14[_0x6920('0x1')]||0x0;this[_0x6920('0x2')]=_0xb5d14[_0x6920('0x2')]||0x0;this[_0x6920('0x19')]=_0xb5d14[_0x6920('0x19')]||0x0;this[_0x6920('0x1a')]=_0xb5d14[_0x6920('0x1a')]||0x0;this[_0x6920('0x3')]=_0xb5d14[_0x6920('0x3')]||0x0;this[_0x6920('0x4')]=_0xb5d14[_0x6920('0x4')]||0x0;this['ringInUse']=_0xb5d14[_0x6920('0x1b')];this[_0x6920('0x11')]=_0xb5d14[_0x6920('0x11')];this[_0x6920('0x12')]=_0xb5d14[_0x6920('0x12')];this[_0x6920('0x1c')]=_0xb5d14[_0x6920('0x1c')]||0x0;this[_0x6920('0x5')]=_0xb5d14[_0x6920('0x5')]||0x0;this[_0x6920('0x13')]=_0xb5d14[_0x6920('0x13')]||0x0;this[_0x6920('0x1d')]=_0xb5d14[_0x6920('0x1d')];this[_0x6920('0x1e')]=_0xb5d14[_0x6920('0x1e')]||0x0;this[_0x6920('0x1f')]=_0xb5d14[_0x6920('0x1f')]||0x0;this[_0x6920('0x20')]=_0xb5d14[_0x6920('0x20')]||0x0;this[_0x6920('0x14')]=_0xb5d14['waiting']||0x0;if(_0xb5d14[_0x6920('0x1d')]==='outbound'){this[_0x6920('0x10')]=_0xb5d14['pTalking']||0x0;this[_0x6920('0x21')]=_0xb5d14[_0x6920('0x21')];this[_0x6920('0x22')]=_0xb5d14[_0x6920('0x22')];this['dialOriginateCallerIdName']=_0xb5d14[_0x6920('0x23')];this[_0x6920('0x24')]=_0xb5d14[_0x6920('0x24')];this[_0x6920('0x25')]=_0xb5d14[_0x6920('0x25')];this[_0x6920('0x26')]=_0xb5d14[_0x6920('0x26')];this[_0x6920('0x27')]=_0xb5d14[_0x6920('0x27')];this[_0x6920('0x28')]=_0xb5d14[_0x6920('0x28')];this[_0x6920('0x9')]=_0xb5d14['outboundAnswerCallsDay'];this[_0x6920('0xa')]=_0xb5d14['outboundBlacklistCallsDay'];this[_0x6920('0xb')]=_0xb5d14['outboundBusyCallsDay'];this[_0x6920('0xc')]=_0xb5d14[_0x6920('0xc')];this['outboundDropCallsDayACS']=_0xb5d14[_0x6920('0x29')];this[_0x6920('0x2a')]=_0xb5d14[_0x6920('0x2a')];this['outboundDropCallsDayTimeout']=_0xb5d14['outboundDropCallsDayTimeout'];this[_0x6920('0x2b')]=_0xb5d14['outboundNoAnswerCallsDay'];this['outboundNoSuchCallsDay']=_0xb5d14[_0x6920('0x2c')];this[_0x6920('0x2d')]=_0xb5d14[_0x6920('0x2d')];this[_0x6920('0xd')]=_0xb5d14[_0x6920('0xd')];this[_0x6920('0xe')]=_0xb5d14[_0x6920('0xe')];this['outboundUnknownCallsDay']=_0xb5d14[_0x6920('0xf')];this['predictiveIntervalAnsweredCalls']=_0xb5d14[_0x6920('0x2e')];this['predictiveIntervalAvgHoldtime']=_0xb5d14['predictiveIntervalAvgHoldtime'];this[_0x6920('0x2f')]=_0xb5d14[_0x6920('0x2f')];this[_0x6920('0x30')]=_0xb5d14[_0x6920('0x30')];this[_0x6920('0x31')]=_0xb5d14[_0x6920('0x31')];this[_0x6920('0x32')]=_0xb5d14[_0x6920('0x32')];this[_0x6920('0x33')]=_0xb5d14[_0x6920('0x33')];this[_0x6920('0x34')]=_0xb5d14[_0x6920('0x34')];this['predictiveIntervalMultiplicativeFactor']=_0xb5d14[_0x6920('0x35')];this['predictiveIntervalPauses']=_0xb5d14[_0x6920('0x36')];this[_0x6920('0x37')]=_0xb5d14[_0x6920('0x37')];this['predictiveIntervalTotalCalls']=_0xb5d14[_0x6920('0x38')];this[_0x6920('0x8')]=_0xb5d14[_0x6920('0x8')];this[_0x6920('0x39')]=_0xb5d14['erlangCalls'];this[_0x6920('0x3a')]=_0xb5d14[_0x6920('0x3a')];this['erlangAbandonmentRate']=_0xb5d14['erlangAbandonmentRate'];this[_0x6920('0x3b')]=_0xb5d14[_0x6920('0x3b')];this['startPredictive']=_0xb5d14[_0x6920('0x3c')];this[_0x6920('0x3d')]=_0xb5d14['startProgressive'];this['message']=_0xb5d14[_0x6920('0x3e')];this[_0x6920('0x3f')]=_0xb5d14[_0x6920('0x3f')];}if(_0xb5d14[_0x6920('0x40')]){this[_0x6920('0x40')]={'id':_0xb5d14['Trunk']['id'],'name':_0xb5d14['Trunk']['name'],'active':_0xb5d14[_0x6920('0x40')]['active'],'callerid':_0xb5d14['Trunk'][_0x6920('0x41')]};}}VoiceQueueSummary[_0x6920('0x42')]['createReport']=function(_0x3aad11,_0x4bb5e5,_0x2755fd,_0x2627ac){this[_0x6920('0x2')]=0x0;this[_0x6920('0x5')]=0x0;this[_0x6920('0x3')]=0x0;this['unknown']=0x0;this['notInUse']=0x0;this[_0x6920('0x7')]=0x0;this['busy']=0x0;this['invalid']=0x0;this['unavailable']=0x0;this['ringing']=0x0;this[_0x6920('0x1b')]=0x0;this[_0x6920('0x19')]=0x0;if(_0x2755fd){if(_0x2755fd[_0x6920('0x0')]){this['available']=Number(_0x2755fd[_0x6920('0x0')]);}if(_0x2755fd[_0x6920('0x43')]){this[_0x6920('0x1')]=Number(_0x2755fd[_0x6920('0x43')]);}if(_0x2755fd[_0x6920('0x44')]){this[_0x6920('0x14')]=Number(_0x2755fd['callers']);}}for(var _0x2ff770=0x0;_0x2ff770<_0x3aad11[_0x6920('0x45')];_0x2ff770++){var _0x3b0570=_0x4bb5e5[_0x6920('0x46')+_0x3aad11[_0x2ff770][_0x6920('0x15')]];if(_0x3b0570&&_0x3b0570[_0x6920('0x47')]){this[_0x6920('0x2')]+=0x1;}if(_0x3aad11[_0x2ff770][_0x6920('0x48')]==='1'){this[_0x6920('0x5')]+=0x1;}if(_0x3aad11[_0x2ff770][_0x6920('0x3')]==='1'&&!['2','7','8'][_0x6920('0x49')](_0x3aad11[_0x2ff770][_0x6920('0x4a')])){this['paused']+=0x1;}switch(_0x3aad11[_0x2ff770][_0x6920('0x4a')]){case'0':this[_0x6920('0x1f')]+=0x1;break;case'1':this['notInUse']+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this[_0x6920('0x17')]+=0x1;break;case'4':this[_0x6920('0x18')]+=0x1;break;case'5':this[_0x6920('0x1e')]+=0x1;break;case'6':this[_0x6920('0x4')]+=0x1;break;case'7':this[_0x6920('0x1b')]+=0x1;break;case'8':this['onHold']+=0x1;break;}}if(this[_0x6920('0x22')]===_0x6920('0x4b')){var _0x46d4a9=Object['keys'](_0x2627ac);for(var _0x4d1c79=0x0;_0x4d1c79<_0x46d4a9[_0x6920('0x45')];_0x4d1c79++){var _0x2a5e23=_0x46d4a9[_0x4d1c79];var _0x2bdc8a=_0x2627ac[_0x2a5e23];if(_0x2bdc8a[_0x6920('0x4c')]===this['name']&&_0x2bdc8a[_0x6920('0x1d')]===_0x6920('0x4d')&&_0x2bdc8a[_0x6920('0x4e')]===_0x6920('0x4f')){this[_0x6920('0x5')]+=0x1;}}if(this['talking']>this[_0x6920('0x7')]){this[_0x6920('0x5')]=this[_0x6920('0x7')];}this[_0x6920('0x10')]=0x0;}return this;};VoiceQueueSummary[_0x6920('0x42')][_0x6920('0x50')]=function(_0x4a2a71){var _0x30dd6e=![];if(_0x4a2a71){_0x30dd6e=INBOUND_COUNTERS[_0x6920('0x51')](function(_0x1c6bba){return this[_0x1c6bba]!==_0x4a2a71[_0x1c6bba];},this);}return _0x30dd6e;};VoiceQueueSummary['prototype'][_0x6920('0x52')]=function(_0x303247){var _0x127b78=![];var _0xd5567c=![];var _0x9983bc=![];if(_0x303247){_0x127b78=this[_0x6920('0x22')]!==_0x303247[_0x6920('0x22')]||this['dialActive']!==_0x303247[_0x6920('0x21')]||this[_0x6920('0x3e')]!==_0x303247[_0x6920('0x3e')]||this[_0x6920('0x3f')]!==_0x303247['statusMessage'];_0xd5567c=OUTBOUND_COUNTERS['some'](function(_0x51bc4e){return this[_0x51bc4e]!==_0x303247[_0x51bc4e];},this);if(this[_0x6920('0x40')]&&_0x303247[_0x6920('0x40')]){_0x9983bc=this[_0x6920('0x40')]['name']!==_0x303247[_0x6920('0x40')][_0x6920('0x15')]||this[_0x6920('0x40')][_0x6920('0x53')]!==_0x303247[_0x6920('0x40')][_0x6920('0x53')];}}return _0x127b78||_0xd5567c||_0x9983bc;};VoiceQueueSummary[_0x6920('0x42')]['updateReportFromOutboundQueue']=function(_0x188507){this[_0x6920('0x6')]=_0x188507['answered'];this[_0x6920('0x3e')]=_0x188507[_0x6920('0x3e')];this[_0x6920('0x3f')]=_0x188507[_0x6920('0x3f')];this[_0x6920('0x8')]=_0x188507['originated'];this[_0x6920('0x54')]=_0x188507[_0x6920('0x54')];this['outboundAnswerCallsDay']=_0x188507[_0x6920('0x9')];this[_0x6920('0xa')]=_0x188507['outboundBlacklistCallsDay'];this['outboundBusyCallsDay']=_0x188507[_0x6920('0xb')];this[_0x6920('0xc')]=_0x188507['outboundCongestionCallsDay'];this[_0x6920('0x2b')]=_0x188507[_0x6920('0x2b')];this[_0x6920('0x2c')]=_0x188507[_0x6920('0x2c')];this[_0x6920('0xd')]=_0x188507[_0x6920('0xd')];this[_0x6920('0xe')]=_0x188507['outboundRejectCallsDay'];this[_0x6920('0xf')]=_0x188507[_0x6920('0xf')];this[_0x6920('0x11')]=_0x188507[_0x6920('0x11')];this[_0x6920('0x12')]=_0x188507[_0x6920('0x12')];this[_0x6920('0x13')]=_0x188507[_0x6920('0x13')];if(this[_0x6920('0x22')]==='preview'){this[_0x6920('0x10')]=_0x188507[_0x6920('0x10')];}};module[_0x6920('0x55')]=VoiceQueueSummary;
\ No newline at end of file
+var _0x1db9=['loggedin','callers','length','online','incall','includes','status','booked','keys','queue','exten','xcally-motion-preview','compareToOutboundQueue','some','active','updateReportFromOutboundQueue','outboundAbandonedCallsDay','preview','available','loggedIn','loggedInDb','paused','ringing','talking','answered','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoAnswerCallsDay','outboundReCallsDay','outboundUnknownCallsDay','pTalking','sumBillable','name','strategy','abandoned','busy','inUse','invalid','onHold','notInUse','sumDuration','sumHoldTime','total','type','unavailable','unknown','unmanaged','waiting','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoSuchCallsDay','outboundOriginateFailureCallsDay','outboundRejectCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalTotalCalls','originated','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','callerid','prototype','ringInUse'];(function(_0x36b40a,_0x3d2bc7){var _0x59b547=function(_0x25f96b){while(--_0x25f96b){_0x36b40a['push'](_0x36b40a['shift']());}};_0x59b547(++_0x3d2bc7);}(_0x1db9,0x176));var _0x91db=function(_0x29fe9c,_0x452ac0){_0x29fe9c=_0x29fe9c-0x0;var _0x47c1f3=_0x1db9[_0x29fe9c];return _0x47c1f3;};'use strict';var INBOUND_COUNTERS=[_0x91db('0x0'),_0x91db('0x1'),_0x91db('0x2'),_0x91db('0x3'),_0x91db('0x4'),_0x91db('0x5'),'waiting'];var OUTBOUND_COUNTERS=[_0x91db('0x0'),_0x91db('0x6'),'inUse','loggedIn',_0x91db('0x2'),'originated','outboundAbandonedCallsDay',_0x91db('0x7'),_0x91db('0x8'),_0x91db('0x9'),_0x91db('0xa'),_0x91db('0xb'),'outboundNoSuchCallsDay',_0x91db('0xc'),'outboundRejectCallsDay',_0x91db('0xd'),_0x91db('0x3'),_0x91db('0xe'),'talking',_0x91db('0xf'),'sumDuration','total','waiting'];function VoiceQueueSummary(_0x14f9ad){this['id']=_0x14f9ad['id'];this[_0x91db('0x10')]=_0x14f9ad['name'];this['strategy']=_0x14f9ad[_0x91db('0x11')];this[_0x91db('0x12')]=_0x14f9ad[_0x91db('0x12')]||0x0;this[_0x91db('0x6')]=_0x14f9ad[_0x91db('0x6')]||0x0;this['available']=_0x14f9ad[_0x91db('0x0')]||0x0;this[_0x91db('0x13')]=_0x14f9ad[_0x91db('0x13')]||0x0;this[_0x91db('0x14')]=_0x14f9ad[_0x91db('0x14')]||0x0;this[_0x91db('0x15')]=_0x14f9ad[_0x91db('0x15')]||0x0;this[_0x91db('0x1')]=_0x14f9ad[_0x91db('0x1')]||0x0;this[_0x91db('0x2')]=_0x14f9ad[_0x91db('0x2')]||0x0;this[_0x91db('0x16')]=_0x14f9ad['onHold']||0x0;this[_0x91db('0x17')]=_0x14f9ad[_0x91db('0x17')]||0x0;this[_0x91db('0x3')]=_0x14f9ad[_0x91db('0x3')]||0x0;this[_0x91db('0x4')]=_0x14f9ad[_0x91db('0x4')]||0x0;this['ringInUse']=_0x14f9ad['ringInUse'];this[_0x91db('0xf')]=_0x14f9ad[_0x91db('0xf')];this[_0x91db('0x18')]=_0x14f9ad[_0x91db('0x18')];this['sumHoldTime']=_0x14f9ad[_0x91db('0x19')]||0x0;this[_0x91db('0x5')]=_0x14f9ad[_0x91db('0x5')]||0x0;this[_0x91db('0x1a')]=_0x14f9ad[_0x91db('0x1a')]||0x0;this[_0x91db('0x1b')]=_0x14f9ad[_0x91db('0x1b')];this[_0x91db('0x1c')]=_0x14f9ad[_0x91db('0x1c')]||0x0;this[_0x91db('0x1d')]=_0x14f9ad['unknown']||0x0;this['unmanaged']=_0x14f9ad[_0x91db('0x1e')]||0x0;this[_0x91db('0x1f')]=_0x14f9ad['waiting']||0x0;if(_0x14f9ad[_0x91db('0x1b')]===_0x91db('0x20')){this[_0x91db('0xe')]=_0x14f9ad[_0x91db('0xe')]||0x0;this[_0x91db('0x21')]=_0x14f9ad['dialActive'];this['dialMethod']=_0x14f9ad[_0x91db('0x22')];this[_0x91db('0x23')]=_0x14f9ad[_0x91db('0x23')];this['dialOriginateCallerIdNumber']=_0x14f9ad[_0x91db('0x24')];this[_0x91db('0x25')]=_0x14f9ad[_0x91db('0x25')];this[_0x91db('0x26')]=_0x14f9ad['dialPrefix'];this[_0x91db('0x27')]=_0x14f9ad[_0x91db('0x27')];this[_0x91db('0x28')]=_0x14f9ad['outboundAnswerAgiCallsDay'];this[_0x91db('0x7')]=_0x14f9ad[_0x91db('0x7')];this[_0x91db('0x8')]=_0x14f9ad[_0x91db('0x8')];this[_0x91db('0x9')]=_0x14f9ad[_0x91db('0x9')];this[_0x91db('0xa')]=_0x14f9ad[_0x91db('0xa')];this[_0x91db('0x29')]=_0x14f9ad[_0x91db('0x29')];this[_0x91db('0x2a')]=_0x14f9ad[_0x91db('0x2a')];this[_0x91db('0x2b')]=_0x14f9ad[_0x91db('0x2b')];this['outboundNoAnswerCallsDay']=_0x14f9ad[_0x91db('0xb')];this[_0x91db('0x2c')]=_0x14f9ad[_0x91db('0x2c')];this[_0x91db('0x2d')]=_0x14f9ad[_0x91db('0x2d')];this['outboundReCallsDay']=_0x14f9ad[_0x91db('0xc')];this[_0x91db('0x2e')]=_0x14f9ad[_0x91db('0x2e')];this['outboundUnknownCallsDay']=_0x14f9ad[_0x91db('0xd')];this['predictiveIntervalAnsweredCalls']=_0x14f9ad[_0x91db('0x2f')];this[_0x91db('0x30')]=_0x14f9ad[_0x91db('0x30')];this[_0x91db('0x31')]=_0x14f9ad['predictiveIntervalAvgTalktime'];this[_0x91db('0x32')]=_0x14f9ad[_0x91db('0x32')];this[_0x91db('0x33')]=_0x14f9ad['predictiveIntervalDroppedCallsTimeout'];this[_0x91db('0x34')]=_0x14f9ad[_0x91db('0x34')];this['predictiveIntervalErlangCallsDroppedCalls']=_0x14f9ad[_0x91db('0x35')];this[_0x91db('0x36')]=_0x14f9ad['predictiveIntervalHitRate'];this[_0x91db('0x37')]=_0x14f9ad['predictiveIntervalMultiplicativeFactor'];this[_0x91db('0x38')]=_0x14f9ad[_0x91db('0x38')];this['predictiveIntervalAvailable']=_0x14f9ad['predictiveIntervalAvailable'];this['predictiveIntervalTotalCalls']=_0x14f9ad[_0x91db('0x39')];this[_0x91db('0x3a')]=_0x14f9ad['originated'];this[_0x91db('0x3b')]=_0x14f9ad[_0x91db('0x3b')];this[_0x91db('0x3c')]=_0x14f9ad[_0x91db('0x3c')];this[_0x91db('0x3d')]=_0x14f9ad[_0x91db('0x3d')];this[_0x91db('0x3e')]=_0x14f9ad[_0x91db('0x3e')];this[_0x91db('0x3f')]=_0x14f9ad[_0x91db('0x3f')];this[_0x91db('0x40')]=_0x14f9ad['startProgressive'];this[_0x91db('0x41')]=_0x14f9ad['message'];this[_0x91db('0x42')]=_0x14f9ad[_0x91db('0x42')];}if(_0x14f9ad['Trunk']){this[_0x91db('0x43')]={'id':_0x14f9ad[_0x91db('0x43')]['id'],'name':_0x14f9ad[_0x91db('0x43')][_0x91db('0x10')],'active':_0x14f9ad[_0x91db('0x43')]['active'],'callerid':_0x14f9ad[_0x91db('0x43')][_0x91db('0x44')]};}}VoiceQueueSummary[_0x91db('0x45')]['createReport']=function(_0x4733a4,_0xed543c,_0x3aaf2e,_0x592849){this[_0x91db('0x2')]=0x0;this[_0x91db('0x5')]=0x0;this[_0x91db('0x3')]=0x0;this[_0x91db('0x1d')]=0x0;this[_0x91db('0x17')]=0x0;this['inUse']=0x0;this[_0x91db('0x13')]=0x0;this['invalid']=0x0;this[_0x91db('0x1c')]=0x0;this[_0x91db('0x4')]=0x0;this[_0x91db('0x46')]=0x0;this[_0x91db('0x16')]=0x0;if(_0x3aaf2e){if(_0x3aaf2e[_0x91db('0x0')]){this[_0x91db('0x0')]=Number(_0x3aaf2e[_0x91db('0x0')]);}if(_0x3aaf2e[_0x91db('0x47')]){this[_0x91db('0x1')]=Number(_0x3aaf2e[_0x91db('0x47')]);}if(_0x3aaf2e[_0x91db('0x48')]){this['waiting']=Number(_0x3aaf2e['callers']);}}for(var _0x44ca29=0x0;_0x44ca29<_0x4733a4[_0x91db('0x49')];_0x44ca29++){var _0x2775f6=_0xed543c['SIP/'+_0x4733a4[_0x44ca29][_0x91db('0x10')]];if(_0x2775f6&&_0x2775f6[_0x91db('0x4a')]){this[_0x91db('0x2')]+=0x1;}if(_0x4733a4[_0x44ca29][_0x91db('0x4b')]==='1'){this[_0x91db('0x5')]+=0x1;}if(_0x4733a4[_0x44ca29]['paused']==='1'&&!['2','7','8'][_0x91db('0x4c')](_0x4733a4[_0x44ca29]['status'])){this[_0x91db('0x3')]+=0x1;}switch(_0x4733a4[_0x44ca29][_0x91db('0x4d')]){case'0':this[_0x91db('0x1d')]+=0x1;break;case'1':this[_0x91db('0x17')]+=0x1;break;case'2':this[_0x91db('0x14')]+=0x1;break;case'3':this[_0x91db('0x13')]+=0x1;break;case'4':this[_0x91db('0x15')]+=0x1;break;case'5':this[_0x91db('0x1c')]+=0x1;break;case'6':this[_0x91db('0x4')]+=0x1;break;case'7':this['ringInUse']+=0x1;break;case'8':this['onHold']+=0x1;break;}}if(this[_0x91db('0x22')]===_0x91db('0x4e')){var _0x13855b=Object[_0x91db('0x4f')](_0x592849);for(var _0x27e224=0x0;_0x27e224<_0x13855b['length'];_0x27e224++){var _0x272657=_0x13855b[_0x27e224];var _0x3c209e=_0x592849[_0x272657];if(_0x3c209e[_0x91db('0x50')]===this[_0x91db('0x10')]&&_0x3c209e[_0x91db('0x1b')]==='dialer'&&_0x3c209e[_0x91db('0x51')]===_0x91db('0x52')){this[_0x91db('0x5')]+=0x1;}}if(this[_0x91db('0x5')]>this[_0x91db('0x14')]){this[_0x91db('0x5')]=this['inUse'];}this['pTalking']=0x0;}return this;};VoiceQueueSummary[_0x91db('0x45')]['compareToInboundQueue']=function(_0x2283c0){var _0x5d418c=![];if(_0x2283c0){_0x5d418c=INBOUND_COUNTERS['some'](function(_0x2c30ff){return this[_0x2c30ff]!==_0x2283c0[_0x2c30ff];},this);}return _0x5d418c;};VoiceQueueSummary[_0x91db('0x45')][_0x91db('0x53')]=function(_0x515bd5){var _0x2d0da5=![];var _0x462e71=![];var _0x171049=![];if(_0x515bd5){_0x2d0da5=this['dialMethod']!==_0x515bd5['dialMethod']||this[_0x91db('0x21')]!==_0x515bd5[_0x91db('0x21')]||this['message']!==_0x515bd5[_0x91db('0x41')]||this['statusMessage']!==_0x515bd5[_0x91db('0x42')];_0x462e71=OUTBOUND_COUNTERS[_0x91db('0x54')](function(_0x24fa52){return this[_0x24fa52]!==_0x515bd5[_0x24fa52];},this);if(this[_0x91db('0x43')]&&_0x515bd5['Trunk']){_0x171049=this[_0x91db('0x43')][_0x91db('0x10')]!==_0x515bd5[_0x91db('0x43')][_0x91db('0x10')]||this[_0x91db('0x43')][_0x91db('0x55')]!==_0x515bd5[_0x91db('0x43')][_0x91db('0x55')];}}return _0x2d0da5||_0x462e71||_0x171049;};VoiceQueueSummary[_0x91db('0x45')][_0x91db('0x56')]=function(_0x5b127d){this[_0x91db('0x6')]=_0x5b127d[_0x91db('0x6')];this[_0x91db('0x41')]=_0x5b127d[_0x91db('0x41')];this[_0x91db('0x42')]=_0x5b127d['statusMessage'];this[_0x91db('0x3a')]=_0x5b127d['originated'];this[_0x91db('0x57')]=_0x5b127d[_0x91db('0x57')];this['outboundAnswerCallsDay']=_0x5b127d['outboundAnswerCallsDay'];this[_0x91db('0x8')]=_0x5b127d[_0x91db('0x8')];this[_0x91db('0x9')]=_0x5b127d['outboundBusyCallsDay'];this[_0x91db('0xa')]=_0x5b127d[_0x91db('0xa')];this[_0x91db('0xb')]=_0x5b127d[_0x91db('0xb')];this[_0x91db('0x2c')]=_0x5b127d[_0x91db('0x2c')];this['outboundReCallsDay']=_0x5b127d[_0x91db('0xc')];this[_0x91db('0x2e')]=_0x5b127d[_0x91db('0x2e')];this[_0x91db('0xd')]=_0x5b127d[_0x91db('0xd')];this[_0x91db('0xf')]=_0x5b127d[_0x91db('0xf')];this[_0x91db('0x18')]=_0x5b127d[_0x91db('0x18')];this[_0x91db('0x1a')]=_0x5b127d[_0x91db('0x1a')];if(this['dialMethod']===_0x91db('0x58')){this[_0x91db('0xe')]=_0x5b127d['pTalking'];}};module['exports']=VoiceQueueSummary;
\ No newline at end of file