Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index 451c367..3173d4a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf23b=['unavailable','unknown','pTalking','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','temp','outboundAnswerAgiCallsDay','outboundBusyCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','active','notInUse','loggedin','callers','length','SIP/','online','incall','includes','status','booked','queue','dialer','prototype','compareToInboundQueue','some','compareToOutboundQueue','outboundBlacklistCallsDay','preview','available','loggedIn','loggedInDb','paused','ringing','waiting','answered','originated','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundCongestionCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','talking','sumBillable','sumDuration','total','name','strategy','abandoned','busy','inUse','invalid','onHold','ringInUse','sumHoldTime','type'];(function(_0xeeb6af,_0x1d8e07){var _0x1b6858=function(_0x452807){while(--_0x452807){_0xeeb6af['push'](_0xeeb6af['shift']());}};_0x1b6858(++_0x1d8e07);}(_0xf23b,0x133));var _0xbf23=function(_0x209b05,_0x4f9fe9){_0x209b05=_0x209b05-0x0;var _0x30c7d8=_0xf23b[_0x209b05];return _0x30c7d8;};'use strict';var INBOUND_COUNTERS=[_0xbf23('0x0'),_0xbf23('0x1'),_0xbf23('0x2'),_0xbf23('0x3'),_0xbf23('0x4'),'talking',_0xbf23('0x5')];var OUTBOUND_COUNTERS=[_0xbf23('0x0'),_0xbf23('0x6'),'inUse',_0xbf23('0x1'),_0xbf23('0x2'),_0xbf23('0x7'),_0xbf23('0x8'),_0xbf23('0x9'),'outboundBlacklistCallsDay','outboundBusyCallsDay',_0xbf23('0xa'),'outboundNoAnswerCallsDay',_0xbf23('0xb'),_0xbf23('0xc'),_0xbf23('0xd'),_0xbf23('0xe'),_0xbf23('0x3'),'pTalking',_0xbf23('0xf'),_0xbf23('0x10'),_0xbf23('0x11'),_0xbf23('0x12'),_0xbf23('0x5')];function VoiceQueueSummary(_0x41b016){this['id']=_0x41b016['id'];this['name']=_0x41b016[_0xbf23('0x13')];this['strategy']=_0x41b016[_0xbf23('0x14')];this['abandoned']=_0x41b016[_0xbf23('0x15')]||0x0;this[_0xbf23('0x6')]=_0x41b016['answered']||0x0;this[_0xbf23('0x0')]=_0x41b016['available']||0x0;this['busy']=_0x41b016[_0xbf23('0x16')]||0x0;this[_0xbf23('0x17')]=_0x41b016['inUse']||0x0;this['invalid']=_0x41b016[_0xbf23('0x18')]||0x0;this['loggedIn']=_0x41b016[_0xbf23('0x1')]||0x0;this[_0xbf23('0x2')]=_0x41b016[_0xbf23('0x2')]||0x0;this[_0xbf23('0x19')]=_0x41b016['onHold']||0x0;this['notInUse']=_0x41b016['notInUse']||0x0;this[_0xbf23('0x3')]=_0x41b016[_0xbf23('0x3')]||0x0;this[_0xbf23('0x4')]=_0x41b016[_0xbf23('0x4')]||0x0;this['ringInUse']=_0x41b016[_0xbf23('0x1a')];this[_0xbf23('0x10')]=_0x41b016[_0xbf23('0x10')];this['sumDuration']=_0x41b016[_0xbf23('0x11')];this[_0xbf23('0x1b')]=_0x41b016[_0xbf23('0x1b')]||0x0;this[_0xbf23('0xf')]=_0x41b016['talking']||0x0;this[_0xbf23('0x12')]=_0x41b016['total']||0x0;this[_0xbf23('0x1c')]=_0x41b016['type'];this[_0xbf23('0x1d')]=_0x41b016[_0xbf23('0x1d')]||0x0;this[_0xbf23('0x1e')]=_0x41b016[_0xbf23('0x1e')]||0x0;this['unmanaged']=_0x41b016['unmanaged']||0x0;this['waiting']=_0x41b016[_0xbf23('0x5')]||0x0;if(_0x41b016[_0xbf23('0x1c')]==='outbound'){this['pTalking']=_0x41b016[_0xbf23('0x1f')]||0x0;this[_0xbf23('0x20')]=_0x41b016[_0xbf23('0x20')];this[_0xbf23('0x21')]=_0x41b016[_0xbf23('0x21')];this[_0xbf23('0x22')]=_0x41b016[_0xbf23('0x22')];this[_0xbf23('0x23')]=_0x41b016[_0xbf23('0x23')];this[_0xbf23('0x24')]=_0x41b016[_0xbf23('0x24')];this['dialPrefix']=_0x41b016['dialPrefix'];this[_0xbf23('0x25')]=_0x41b016['temp'];this[_0xbf23('0x26')]=_0x41b016[_0xbf23('0x26')];this['outboundAnswerCallsDay']=_0x41b016[_0xbf23('0x9')];this['outboundBlacklistCallsDay']=_0x41b016['outboundBlacklistCallsDay'];this[_0xbf23('0x27')]=_0x41b016['outboundBusyCallsDay'];this[_0xbf23('0xa')]=_0x41b016[_0xbf23('0xa')];this[_0xbf23('0x28')]=_0x41b016[_0xbf23('0x28')];this[_0xbf23('0x29')]=_0x41b016[_0xbf23('0x29')];this[_0xbf23('0x2a')]=_0x41b016[_0xbf23('0x2a')];this['outboundNoAnswerCallsDay']=_0x41b016[_0xbf23('0x2b')];this[_0xbf23('0xb')]=_0x41b016['outboundNoSuchCallsDay'];this['outboundOriginateFailureCallsDay']=_0x41b016[_0xbf23('0x2c')];this['outboundReCallsDay']=_0x41b016[_0xbf23('0xc')];this[_0xbf23('0xd')]=_0x41b016[_0xbf23('0xd')];this[_0xbf23('0xe')]=_0x41b016[_0xbf23('0xe')];this[_0xbf23('0x2d')]=_0x41b016['predictiveIntervalAnsweredCalls'];this['predictiveIntervalAvgHoldtime']=_0x41b016[_0xbf23('0x2e')];this[_0xbf23('0x2f')]=_0x41b016['predictiveIntervalAvgTalktime'];this[_0xbf23('0x30')]=_0x41b016['predictiveIntervalDroppedCallsCallersExit'];this['predictiveIntervalDroppedCallsTimeout']=_0x41b016[_0xbf23('0x31')];this[_0xbf23('0x32')]=_0x41b016[_0xbf23('0x32')];this[_0xbf23('0x33')]=_0x41b016['predictiveIntervalErlangCallsDroppedCalls'];this[_0xbf23('0x34')]=_0x41b016[_0xbf23('0x34')];this[_0xbf23('0x35')]=_0x41b016[_0xbf23('0x35')];this[_0xbf23('0x36')]=_0x41b016['predictiveIntervalPauses'];this['predictiveIntervalAvailable']=_0x41b016['predictiveIntervalAvailable'];this[_0xbf23('0x37')]=_0x41b016[_0xbf23('0x37')];this['originated']=_0x41b016['originated'];this[_0xbf23('0x38')]=_0x41b016[_0xbf23('0x38')];this['erlangCallToSecond']=_0x41b016[_0xbf23('0x39')];this[_0xbf23('0x3a')]=_0x41b016['erlangAbandonmentRate'];this[_0xbf23('0x3b')]=_0x41b016[_0xbf23('0x3b')];this[_0xbf23('0x3c')]=_0x41b016['startPredictive'];this['startProgressive']=_0x41b016[_0xbf23('0x3d')];this[_0xbf23('0x3e')]=_0x41b016[_0xbf23('0x3e')];this[_0xbf23('0x3f')]=_0x41b016[_0xbf23('0x3f')];}if(_0x41b016[_0xbf23('0x40')]){this['Trunk']={'id':_0x41b016[_0xbf23('0x40')]['id'],'name':_0x41b016['Trunk'][_0xbf23('0x13')],'active':_0x41b016[_0xbf23('0x40')][_0xbf23('0x41')],'callerid':_0x41b016[_0xbf23('0x40')]['callerid']};}}VoiceQueueSummary['prototype']['createReport']=function(_0x5614b3,_0x416c17,_0x59ff19,_0xcb5dc5){this[_0xbf23('0x2')]=0x0;this['talking']=0x0;this[_0xbf23('0x3')]=0x0;this[_0xbf23('0x1e')]=0x0;this[_0xbf23('0x42')]=0x0;this[_0xbf23('0x17')]=0x0;this[_0xbf23('0x16')]=0x0;this[_0xbf23('0x18')]=0x0;this['unavailable']=0x0;this['ringing']=0x0;this[_0xbf23('0x1a')]=0x0;this[_0xbf23('0x19')]=0x0;if(_0x59ff19){if(_0x59ff19[_0xbf23('0x0')]){this[_0xbf23('0x0')]=Number(_0x59ff19['available']);}if(_0x59ff19['loggedin']){this['loggedIn']=Number(_0x59ff19[_0xbf23('0x43')]);}if(_0x59ff19[_0xbf23('0x44')]){this[_0xbf23('0x5')]=Number(_0x59ff19[_0xbf23('0x44')]);}}for(var _0x40e3af=0x0;_0x40e3af<_0x5614b3[_0xbf23('0x45')];_0x40e3af++){var _0x508a39=_0x416c17[_0xbf23('0x46')+_0x5614b3[_0x40e3af]['name']];if(_0x508a39&&_0x508a39[_0xbf23('0x47')]){this[_0xbf23('0x2')]+=0x1;}if(_0x5614b3[_0x40e3af][_0xbf23('0x48')]==='1'){this[_0xbf23('0xf')]+=0x1;}if(_0x5614b3[_0x40e3af][_0xbf23('0x3')]==='1'&&!['2','7','8'][_0xbf23('0x49')](_0x5614b3[_0x40e3af][_0xbf23('0x4a')])){this[_0xbf23('0x3')]+=0x1;}switch(_0x5614b3[_0x40e3af]['status']){case'0':this[_0xbf23('0x1e')]+=0x1;break;case'1':this['notInUse']+=0x1;break;case'2':this[_0xbf23('0x17')]+=0x1;break;case'3':this[_0xbf23('0x16')]+=0x1;break;case'4':this[_0xbf23('0x18')]+=0x1;break;case'5':this['unavailable']+=0x1;break;case'6':this[_0xbf23('0x4')]+=0x1;break;case'7':this[_0xbf23('0x1a')]+=0x1;break;case'8':this[_0xbf23('0x19')]+=0x1;break;}}if(this['dialMethod']===_0xbf23('0x4b')){var _0x425122=Object['keys'](_0xcb5dc5);for(var _0x4c7254=0x0;_0x4c7254<_0x425122[_0xbf23('0x45')];_0x4c7254++){var _0x376272=_0x425122[_0x4c7254];var _0x38f9f1=_0xcb5dc5[_0x376272];if(_0x38f9f1[_0xbf23('0x4c')]===this[_0xbf23('0x13')]&&_0x38f9f1['type']===_0xbf23('0x4d')&&_0x38f9f1['exten']==='xcally-motion-preview'){this[_0xbf23('0xf')]+=0x1;}}if(this[_0xbf23('0xf')]>this[_0xbf23('0x17')]){this[_0xbf23('0xf')]=this[_0xbf23('0x17')];}this[_0xbf23('0x1f')]=0x0;}return this;};VoiceQueueSummary[_0xbf23('0x4e')][_0xbf23('0x4f')]=function(_0x777a67){var _0x18cc14=![];if(_0x777a67){_0x18cc14=INBOUND_COUNTERS[_0xbf23('0x50')](function(_0x49f8be){return this[_0x49f8be]!==_0x777a67[_0x49f8be];},this);}return _0x18cc14;};VoiceQueueSummary[_0xbf23('0x4e')][_0xbf23('0x51')]=function(_0x23775c){var _0x42f9a5=![];var _0x35eff9=![];var _0x4de377=![];if(_0x23775c){_0x42f9a5=this[_0xbf23('0x21')]!==_0x23775c['dialMethod']||this['dialActive']!==_0x23775c[_0xbf23('0x20')]||this[_0xbf23('0x3e')]!==_0x23775c[_0xbf23('0x3e')]||this[_0xbf23('0x3f')]!==_0x23775c['statusMessage'];_0x35eff9=OUTBOUND_COUNTERS[_0xbf23('0x50')](function(_0x103825){return this[_0x103825]!==_0x23775c[_0x103825];},this);if(this['Trunk']&&_0x23775c[_0xbf23('0x40')]){_0x4de377=this[_0xbf23('0x40')][_0xbf23('0x13')]!==_0x23775c[_0xbf23('0x40')][_0xbf23('0x13')]||this[_0xbf23('0x40')][_0xbf23('0x41')]!==_0x23775c['Trunk']['active'];}}return _0x42f9a5||_0x35eff9||_0x4de377;};VoiceQueueSummary['prototype']['updateReportFromOutboundQueue']=function(_0x294679){this[_0xbf23('0x6')]=_0x294679[_0xbf23('0x6')];this['message']=_0x294679['message'];this[_0xbf23('0x3f')]=_0x294679['statusMessage'];this[_0xbf23('0x7')]=_0x294679[_0xbf23('0x7')];this[_0xbf23('0x8')]=_0x294679[_0xbf23('0x8')];this[_0xbf23('0x9')]=_0x294679['outboundAnswerCallsDay'];this['outboundBlacklistCallsDay']=_0x294679[_0xbf23('0x52')];this['outboundBusyCallsDay']=_0x294679[_0xbf23('0x27')];this[_0xbf23('0xa')]=_0x294679['outboundCongestionCallsDay'];this[_0xbf23('0x2b')]=_0x294679[_0xbf23('0x2b')];this[_0xbf23('0xb')]=_0x294679[_0xbf23('0xb')];this[_0xbf23('0xc')]=_0x294679[_0xbf23('0xc')];this[_0xbf23('0xd')]=_0x294679[_0xbf23('0xd')];this[_0xbf23('0xe')]=_0x294679[_0xbf23('0xe')];this[_0xbf23('0x10')]=_0x294679[_0xbf23('0x10')];this[_0xbf23('0x11')]=_0x294679[_0xbf23('0x11')];this[_0xbf23('0x12')]=_0x294679[_0xbf23('0x12')];if(this['dialMethod']===_0xbf23('0x53')){this[_0xbf23('0x1f')]=_0x294679['pTalking'];}};module['exports']=VoiceQueueSummary;
\ No newline at end of file
+var _0xae53=['preview','exports','available','loggedInDb','paused','ringing','waiting','answered','inUse','loggedIn','originated','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','talking','sumBillable','sumDuration','total','name','strategy','abandoned','busy','invalid','onHold','notInUse','ringInUse','sumHoldTime','type','unknown','unmanaged','outbound','pTalking','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundOriginateFailureCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','active','callerid','prototype','createReport','unavailable','loggedin','callers','length','online','incall','includes','status','booked','keys','queue','dialer','xcally-motion-preview','compareToInboundQueue','some','updateReportFromOutboundQueue'];(function(_0x542a4e,_0x23f7ef){var _0x11d75d=function(_0x12c1c7){while(--_0x12c1c7){_0x542a4e['push'](_0x542a4e['shift']());}};_0x11d75d(++_0x23f7ef);}(_0xae53,0x16e));var _0x3ae5=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0xae53[_0x36ed48];return _0x51c63a;};'use strict';var INBOUND_COUNTERS=[_0x3ae5('0x0'),'loggedIn',_0x3ae5('0x1'),_0x3ae5('0x2'),_0x3ae5('0x3'),'talking',_0x3ae5('0x4')];var OUTBOUND_COUNTERS=[_0x3ae5('0x0'),_0x3ae5('0x5'),_0x3ae5('0x6'),_0x3ae5('0x7'),'loggedInDb',_0x3ae5('0x8'),'outboundAbandonedCallsDay',_0x3ae5('0x9'),_0x3ae5('0xa'),_0x3ae5('0xb'),_0x3ae5('0xc'),_0x3ae5('0xd'),_0x3ae5('0xe'),_0x3ae5('0xf'),_0x3ae5('0x10'),'outboundUnknownCallsDay',_0x3ae5('0x2'),'pTalking',_0x3ae5('0x11'),_0x3ae5('0x12'),_0x3ae5('0x13'),_0x3ae5('0x14'),_0x3ae5('0x4')];function VoiceQueueSummary(_0x531277){this['id']=_0x531277['id'];this[_0x3ae5('0x15')]=_0x531277[_0x3ae5('0x15')];this[_0x3ae5('0x16')]=_0x531277['strategy'];this['abandoned']=_0x531277[_0x3ae5('0x17')]||0x0;this['answered']=_0x531277[_0x3ae5('0x5')]||0x0;this[_0x3ae5('0x0')]=_0x531277[_0x3ae5('0x0')]||0x0;this[_0x3ae5('0x18')]=_0x531277[_0x3ae5('0x18')]||0x0;this['inUse']=_0x531277[_0x3ae5('0x6')]||0x0;this[_0x3ae5('0x19')]=_0x531277[_0x3ae5('0x19')]||0x0;this['loggedIn']=_0x531277['loggedIn']||0x0;this[_0x3ae5('0x1')]=_0x531277[_0x3ae5('0x1')]||0x0;this[_0x3ae5('0x1a')]=_0x531277[_0x3ae5('0x1a')]||0x0;this[_0x3ae5('0x1b')]=_0x531277[_0x3ae5('0x1b')]||0x0;this[_0x3ae5('0x2')]=_0x531277['paused']||0x0;this['ringing']=_0x531277['ringing']||0x0;this[_0x3ae5('0x1c')]=_0x531277[_0x3ae5('0x1c')];this[_0x3ae5('0x12')]=_0x531277[_0x3ae5('0x12')];this[_0x3ae5('0x13')]=_0x531277[_0x3ae5('0x13')];this[_0x3ae5('0x1d')]=_0x531277['sumHoldTime']||0x0;this[_0x3ae5('0x11')]=_0x531277[_0x3ae5('0x11')]||0x0;this[_0x3ae5('0x14')]=_0x531277[_0x3ae5('0x14')]||0x0;this[_0x3ae5('0x1e')]=_0x531277[_0x3ae5('0x1e')];this['unavailable']=_0x531277['unavailable']||0x0;this[_0x3ae5('0x1f')]=_0x531277[_0x3ae5('0x1f')]||0x0;this[_0x3ae5('0x20')]=_0x531277[_0x3ae5('0x20')]||0x0;this[_0x3ae5('0x4')]=_0x531277[_0x3ae5('0x4')]||0x0;if(_0x531277[_0x3ae5('0x1e')]===_0x3ae5('0x21')){this[_0x3ae5('0x22')]=_0x531277['pTalking']||0x0;this[_0x3ae5('0x23')]=_0x531277[_0x3ae5('0x23')];this[_0x3ae5('0x24')]=_0x531277['dialMethod'];this[_0x3ae5('0x25')]=_0x531277[_0x3ae5('0x25')];this[_0x3ae5('0x26')]=_0x531277[_0x3ae5('0x26')];this[_0x3ae5('0x27')]=_0x531277['dialOriginateTimeout'];this[_0x3ae5('0x28')]=_0x531277[_0x3ae5('0x28')];this[_0x3ae5('0x29')]=_0x531277[_0x3ae5('0x29')];this[_0x3ae5('0x2a')]=_0x531277[_0x3ae5('0x2a')];this[_0x3ae5('0x9')]=_0x531277['outboundAnswerCallsDay'];this[_0x3ae5('0xa')]=_0x531277[_0x3ae5('0xa')];this[_0x3ae5('0xb')]=_0x531277['outboundBusyCallsDay'];this[_0x3ae5('0xc')]=_0x531277[_0x3ae5('0xc')];this[_0x3ae5('0x2b')]=_0x531277[_0x3ae5('0x2b')];this[_0x3ae5('0x2c')]=_0x531277[_0x3ae5('0x2c')];this[_0x3ae5('0x2d')]=_0x531277[_0x3ae5('0x2d')];this['outboundNoAnswerCallsDay']=_0x531277[_0x3ae5('0xd')];this[_0x3ae5('0xe')]=_0x531277[_0x3ae5('0xe')];this['outboundOriginateFailureCallsDay']=_0x531277[_0x3ae5('0x2e')];this['outboundReCallsDay']=_0x531277['outboundReCallsDay'];this['outboundRejectCallsDay']=_0x531277[_0x3ae5('0x10')];this[_0x3ae5('0x2f')]=_0x531277[_0x3ae5('0x2f')];this[_0x3ae5('0x30')]=_0x531277['predictiveIntervalAnsweredCalls'];this['predictiveIntervalAvgHoldtime']=_0x531277[_0x3ae5('0x31')];this['predictiveIntervalAvgTalktime']=_0x531277[_0x3ae5('0x32')];this[_0x3ae5('0x33')]=_0x531277[_0x3ae5('0x33')];this['predictiveIntervalDroppedCallsTimeout']=_0x531277[_0x3ae5('0x34')];this[_0x3ae5('0x35')]=_0x531277['predictiveIntervalErlangCalls'];this['predictiveIntervalErlangCallsDroppedCalls']=_0x531277[_0x3ae5('0x36')];this['predictiveIntervalHitRate']=_0x531277[_0x3ae5('0x37')];this[_0x3ae5('0x38')]=_0x531277[_0x3ae5('0x38')];this[_0x3ae5('0x39')]=_0x531277[_0x3ae5('0x39')];this[_0x3ae5('0x3a')]=_0x531277[_0x3ae5('0x3a')];this[_0x3ae5('0x3b')]=_0x531277['predictiveIntervalTotalCalls'];this[_0x3ae5('0x8')]=_0x531277['originated'];this[_0x3ae5('0x3c')]=_0x531277[_0x3ae5('0x3c')];this[_0x3ae5('0x3d')]=_0x531277[_0x3ae5('0x3d')];this[_0x3ae5('0x3e')]=_0x531277[_0x3ae5('0x3e')];this[_0x3ae5('0x3f')]=_0x531277['erlangBusyFactor'];this['startPredictive']=_0x531277[_0x3ae5('0x40')];this['startProgressive']=_0x531277[_0x3ae5('0x41')];this[_0x3ae5('0x42')]=_0x531277[_0x3ae5('0x42')];this[_0x3ae5('0x43')]=_0x531277['statusMessage'];}if(_0x531277[_0x3ae5('0x44')]){this[_0x3ae5('0x44')]={'id':_0x531277[_0x3ae5('0x44')]['id'],'name':_0x531277[_0x3ae5('0x44')][_0x3ae5('0x15')],'active':_0x531277[_0x3ae5('0x44')][_0x3ae5('0x45')],'callerid':_0x531277[_0x3ae5('0x44')][_0x3ae5('0x46')]};}}VoiceQueueSummary[_0x3ae5('0x47')][_0x3ae5('0x48')]=function(_0x47e103,_0x2e0bae,_0x234143,_0x1814fd){this[_0x3ae5('0x1')]=0x0;this[_0x3ae5('0x11')]=0x0;this[_0x3ae5('0x2')]=0x0;this['unknown']=0x0;this[_0x3ae5('0x1b')]=0x0;this[_0x3ae5('0x6')]=0x0;this['busy']=0x0;this[_0x3ae5('0x19')]=0x0;this[_0x3ae5('0x49')]=0x0;this['ringing']=0x0;this[_0x3ae5('0x1c')]=0x0;this[_0x3ae5('0x1a')]=0x0;if(_0x234143){if(_0x234143[_0x3ae5('0x0')]){this[_0x3ae5('0x0')]=Number(_0x234143[_0x3ae5('0x0')]);}if(_0x234143[_0x3ae5('0x4a')]){this['loggedIn']=Number(_0x234143['loggedin']);}if(_0x234143[_0x3ae5('0x4b')]){this[_0x3ae5('0x4')]=Number(_0x234143['callers']);}}for(var _0x134114=0x0;_0x134114<_0x47e103[_0x3ae5('0x4c')];_0x134114++){var _0x16ff7c=_0x2e0bae['SIP/'+_0x47e103[_0x134114][_0x3ae5('0x15')]];if(_0x16ff7c&&_0x16ff7c[_0x3ae5('0x4d')]){this[_0x3ae5('0x1')]+=0x1;}if(_0x47e103[_0x134114][_0x3ae5('0x4e')]==='1'){this['talking']+=0x1;}if(_0x47e103[_0x134114][_0x3ae5('0x2')]==='1'&&!['2','7','8'][_0x3ae5('0x4f')](_0x47e103[_0x134114][_0x3ae5('0x50')])){this[_0x3ae5('0x2')]+=0x1;}switch(_0x47e103[_0x134114]['status']){case'0':this[_0x3ae5('0x1f')]+=0x1;break;case'1':this['notInUse']+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this[_0x3ae5('0x18')]+=0x1;break;case'4':this[_0x3ae5('0x19')]+=0x1;break;case'5':this[_0x3ae5('0x49')]+=0x1;break;case'6':this['ringing']+=0x1;break;case'7':this[_0x3ae5('0x1c')]+=0x1;break;case'8':this[_0x3ae5('0x1a')]+=0x1;break;}}if(this[_0x3ae5('0x24')]===_0x3ae5('0x51')){var _0x2b899c=Object[_0x3ae5('0x52')](_0x1814fd);for(var _0x304182=0x0;_0x304182<_0x2b899c[_0x3ae5('0x4c')];_0x304182++){var _0x223ba1=_0x2b899c[_0x304182];var _0x3bd073=_0x1814fd[_0x223ba1];if(_0x3bd073[_0x3ae5('0x53')]===this[_0x3ae5('0x15')]&&_0x3bd073[_0x3ae5('0x1e')]===_0x3ae5('0x54')&&_0x3bd073['exten']===_0x3ae5('0x55')){this[_0x3ae5('0x11')]+=0x1;}}if(this[_0x3ae5('0x11')]>this[_0x3ae5('0x6')]){this[_0x3ae5('0x11')]=this[_0x3ae5('0x6')];}this[_0x3ae5('0x22')]=0x0;}return this;};VoiceQueueSummary[_0x3ae5('0x47')][_0x3ae5('0x56')]=function(_0x4f054b){var _0x2d6bf4=![];if(_0x4f054b){_0x2d6bf4=INBOUND_COUNTERS[_0x3ae5('0x57')](function(_0x7ef748){return this[_0x7ef748]!==_0x4f054b[_0x7ef748];},this);}return _0x2d6bf4;};VoiceQueueSummary[_0x3ae5('0x47')]['compareToOutboundQueue']=function(_0x1b3826){var _0x38e748=![];var _0x286f98=![];var _0x4a7320=![];if(_0x1b3826){_0x38e748=this[_0x3ae5('0x24')]!==_0x1b3826[_0x3ae5('0x24')]||this['dialActive']!==_0x1b3826['dialActive']||this[_0x3ae5('0x42')]!==_0x1b3826[_0x3ae5('0x42')]||this[_0x3ae5('0x43')]!==_0x1b3826['statusMessage'];_0x286f98=OUTBOUND_COUNTERS[_0x3ae5('0x57')](function(_0x25a038){return this[_0x25a038]!==_0x1b3826[_0x25a038];},this);if(this[_0x3ae5('0x44')]&&_0x1b3826[_0x3ae5('0x44')]){_0x4a7320=this[_0x3ae5('0x44')][_0x3ae5('0x15')]!==_0x1b3826[_0x3ae5('0x44')][_0x3ae5('0x15')]||this[_0x3ae5('0x44')][_0x3ae5('0x45')]!==_0x1b3826[_0x3ae5('0x44')]['active'];}}return _0x38e748||_0x286f98||_0x4a7320;};VoiceQueueSummary[_0x3ae5('0x47')][_0x3ae5('0x58')]=function(_0x5b478b){this[_0x3ae5('0x5')]=_0x5b478b[_0x3ae5('0x5')];this['message']=_0x5b478b[_0x3ae5('0x42')];this['statusMessage']=_0x5b478b[_0x3ae5('0x43')];this['originated']=_0x5b478b['originated'];this['outboundAbandonedCallsDay']=_0x5b478b['outboundAbandonedCallsDay'];this['outboundAnswerCallsDay']=_0x5b478b['outboundAnswerCallsDay'];this[_0x3ae5('0xa')]=_0x5b478b[_0x3ae5('0xa')];this[_0x3ae5('0xb')]=_0x5b478b['outboundBusyCallsDay'];this[_0x3ae5('0xc')]=_0x5b478b[_0x3ae5('0xc')];this[_0x3ae5('0xd')]=_0x5b478b['outboundNoAnswerCallsDay'];this['outboundNoSuchCallsDay']=_0x5b478b['outboundNoSuchCallsDay'];this[_0x3ae5('0xf')]=_0x5b478b[_0x3ae5('0xf')];this[_0x3ae5('0x10')]=_0x5b478b['outboundRejectCallsDay'];this['outboundUnknownCallsDay']=_0x5b478b[_0x3ae5('0x2f')];this[_0x3ae5('0x12')]=_0x5b478b['sumBillable'];this[_0x3ae5('0x13')]=_0x5b478b['sumDuration'];this[_0x3ae5('0x14')]=_0x5b478b[_0x3ae5('0x14')];if(this[_0x3ae5('0x24')]===_0x3ae5('0x59')){this['pTalking']=_0x5b478b['pTalking'];}};module[_0x3ae5('0x5a')]=VoiceQueueSummary;
\ No newline at end of file