Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / ami / model / voiceQueueSummary.js
index 7ec875c..f687611 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2eb2=['dialPrefix','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundOriginateFailureCallsDay','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','erlangCalls','erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','message','statusMessage','Trunk','name','callerid','createReport','invalid','loggedin','callers','length','online','incall','includes','status','booked','keys','queue','dialer','exten','xcally-motion-preview','compareToInboundQueue','some','prototype','compareToOutboundQueue','active','updateReportFromOutboundQueue','total','preview','exports','loggedIn','loggedInDb','paused','ringing','talking','waiting','answered','originated','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','outboundUnknownCallsDay','pTalking','sumDuration','strategy','abandoned','available','busy','inUse','onHold','notInUse','ringInUse','sumBillable','sumHoldTime','type','unavailable','unknown','unmanaged','outbound','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout'];(function(_0x52b24f,_0xca062d){var _0x46ea6b=function(_0x29f821){while(--_0x29f821){_0x52b24f['push'](_0x52b24f['shift']());}};_0x46ea6b(++_0xca062d);}(_0x2eb2,0x19f));var _0x22eb=function(_0x4fc9e6,_0xc51915){_0x4fc9e6=_0x4fc9e6-0x0;var _0x551d28=_0x2eb2[_0x4fc9e6];return _0x551d28;};'use strict';var INBOUND_COUNTERS=['available',_0x22eb('0x0'),_0x22eb('0x1'),_0x22eb('0x2'),_0x22eb('0x3'),_0x22eb('0x4'),_0x22eb('0x5')];var OUTBOUND_COUNTERS=['available',_0x22eb('0x6'),'inUse','loggedIn',_0x22eb('0x1'),_0x22eb('0x7'),_0x22eb('0x8'),_0x22eb('0x9'),_0x22eb('0xa'),_0x22eb('0xb'),_0x22eb('0xc'),_0x22eb('0xd'),_0x22eb('0xe'),_0x22eb('0xf'),_0x22eb('0x10'),_0x22eb('0x11'),'paused',_0x22eb('0x12'),'talking','sumBillable',_0x22eb('0x13'),'total',_0x22eb('0x5')];function VoiceQueueSummary(_0x28c587){this['id']=_0x28c587['id'];this['name']=_0x28c587['name'];this[_0x22eb('0x14')]=_0x28c587[_0x22eb('0x14')];this[_0x22eb('0x15')]=_0x28c587[_0x22eb('0x15')]||0x0;this[_0x22eb('0x6')]=_0x28c587['answered']||0x0;this[_0x22eb('0x16')]=_0x28c587['available']||0x0;this[_0x22eb('0x17')]=_0x28c587['busy']||0x0;this[_0x22eb('0x18')]=_0x28c587[_0x22eb('0x18')]||0x0;this['invalid']=_0x28c587['invalid']||0x0;this['loggedIn']=_0x28c587[_0x22eb('0x0')]||0x0;this['loggedInDb']=_0x28c587['loggedInDb']||0x0;this[_0x22eb('0x19')]=_0x28c587['onHold']||0x0;this['notInUse']=_0x28c587[_0x22eb('0x1a')]||0x0;this[_0x22eb('0x2')]=_0x28c587[_0x22eb('0x2')]||0x0;this[_0x22eb('0x3')]=_0x28c587[_0x22eb('0x3')]||0x0;this['ringInUse']=_0x28c587[_0x22eb('0x1b')];this[_0x22eb('0x1c')]=_0x28c587[_0x22eb('0x1c')];this[_0x22eb('0x13')]=_0x28c587[_0x22eb('0x13')];this['sumHoldTime']=_0x28c587[_0x22eb('0x1d')]||0x0;this[_0x22eb('0x4')]=_0x28c587[_0x22eb('0x4')]||0x0;this['total']=_0x28c587['total']||0x0;this[_0x22eb('0x1e')]=_0x28c587[_0x22eb('0x1e')];this[_0x22eb('0x1f')]=_0x28c587[_0x22eb('0x1f')]||0x0;this[_0x22eb('0x20')]=_0x28c587[_0x22eb('0x20')]||0x0;this[_0x22eb('0x21')]=_0x28c587['unmanaged']||0x0;this[_0x22eb('0x5')]=_0x28c587[_0x22eb('0x5')]||0x0;if(_0x28c587[_0x22eb('0x1e')]===_0x22eb('0x22')){this[_0x22eb('0x12')]=_0x28c587['pTalking']||0x0;this[_0x22eb('0x23')]=_0x28c587[_0x22eb('0x23')];this[_0x22eb('0x24')]=_0x28c587['dialMethod'];this[_0x22eb('0x25')]=_0x28c587[_0x22eb('0x25')];this['dialOriginateCallerIdNumber']=_0x28c587[_0x22eb('0x26')];this[_0x22eb('0x27')]=_0x28c587[_0x22eb('0x27')];this[_0x22eb('0x28')]=_0x28c587[_0x22eb('0x28')];this['temp']=_0x28c587['temp'];this[_0x22eb('0x29')]=_0x28c587[_0x22eb('0x29')];this[_0x22eb('0x9')]=_0x28c587[_0x22eb('0x9')];this[_0x22eb('0xa')]=_0x28c587[_0x22eb('0xa')];this[_0x22eb('0xb')]=_0x28c587[_0x22eb('0xb')];this[_0x22eb('0xc')]=_0x28c587[_0x22eb('0xc')];this[_0x22eb('0x2a')]=_0x28c587[_0x22eb('0x2a')];this['outboundDropCallsDayCallersExit']=_0x28c587[_0x22eb('0x2b')];this['outboundDropCallsDayTimeout']=_0x28c587[_0x22eb('0x2c')];this[_0x22eb('0xd')]=_0x28c587[_0x22eb('0xd')];this[_0x22eb('0xe')]=_0x28c587[_0x22eb('0xe')];this[_0x22eb('0x2d')]=_0x28c587[_0x22eb('0x2d')];this[_0x22eb('0xf')]=_0x28c587[_0x22eb('0xf')];this[_0x22eb('0x10')]=_0x28c587['outboundRejectCallsDay'];this['outboundUnknownCallsDay']=_0x28c587[_0x22eb('0x11')];this['predictiveIntervalAnsweredCalls']=_0x28c587['predictiveIntervalAnsweredCalls'];this[_0x22eb('0x2e')]=_0x28c587[_0x22eb('0x2e')];this[_0x22eb('0x2f')]=_0x28c587[_0x22eb('0x2f')];this[_0x22eb('0x30')]=_0x28c587[_0x22eb('0x30')];this[_0x22eb('0x31')]=_0x28c587[_0x22eb('0x31')];this[_0x22eb('0x32')]=_0x28c587[_0x22eb('0x32')];this['predictiveIntervalErlangCallsDroppedCalls']=_0x28c587[_0x22eb('0x33')];this['predictiveIntervalHitRate']=_0x28c587['predictiveIntervalHitRate'];this[_0x22eb('0x34')]=_0x28c587[_0x22eb('0x34')];this['predictiveIntervalPauses']=_0x28c587[_0x22eb('0x35')];this[_0x22eb('0x36')]=_0x28c587[_0x22eb('0x36')];this[_0x22eb('0x37')]=_0x28c587[_0x22eb('0x37')];this['originated']=_0x28c587[_0x22eb('0x7')];this[_0x22eb('0x38')]=_0x28c587['erlangCalls'];this[_0x22eb('0x39')]=_0x28c587[_0x22eb('0x39')];this[_0x22eb('0x3a')]=_0x28c587[_0x22eb('0x3a')];this[_0x22eb('0x3b')]=_0x28c587['erlangBusyFactor'];this['startPredictive']=_0x28c587[_0x22eb('0x3c')];this[_0x22eb('0x3d')]=_0x28c587['startProgressive'];this[_0x22eb('0x3e')]=_0x28c587[_0x22eb('0x3e')];this[_0x22eb('0x3f')]=_0x28c587['statusMessage'];}if(_0x28c587[_0x22eb('0x40')]){this[_0x22eb('0x40')]={'id':_0x28c587[_0x22eb('0x40')]['id'],'name':_0x28c587[_0x22eb('0x40')][_0x22eb('0x41')],'active':_0x28c587[_0x22eb('0x40')]['active'],'callerid':_0x28c587[_0x22eb('0x40')][_0x22eb('0x42')]};}}VoiceQueueSummary['prototype'][_0x22eb('0x43')]=function(_0x44d39f,_0x204092,_0x30cb10,_0x18c6ed){this[_0x22eb('0x1')]=0x0;this[_0x22eb('0x4')]=0x0;this[_0x22eb('0x2')]=0x0;this[_0x22eb('0x20')]=0x0;this[_0x22eb('0x1a')]=0x0;this[_0x22eb('0x18')]=0x0;this[_0x22eb('0x17')]=0x0;this[_0x22eb('0x44')]=0x0;this[_0x22eb('0x1f')]=0x0;this[_0x22eb('0x3')]=0x0;this[_0x22eb('0x1b')]=0x0;this[_0x22eb('0x19')]=0x0;if(_0x30cb10){if(_0x30cb10[_0x22eb('0x16')]){this['available']=Number(_0x30cb10[_0x22eb('0x16')]);}if(_0x30cb10[_0x22eb('0x45')]){this['loggedIn']=Number(_0x30cb10[_0x22eb('0x45')]);}if(_0x30cb10[_0x22eb('0x46')]){this['waiting']=Number(_0x30cb10['callers']);}}for(var _0x5c18d1=0x0;_0x5c18d1<_0x44d39f[_0x22eb('0x47')];_0x5c18d1++){var _0x1efc65=_0x204092['SIP/'+_0x44d39f[_0x5c18d1]['name']];if(_0x1efc65&&_0x1efc65[_0x22eb('0x48')]){this[_0x22eb('0x1')]+=0x1;}if(_0x44d39f[_0x5c18d1][_0x22eb('0x49')]==='1'){this[_0x22eb('0x4')]+=0x1;}if(_0x44d39f[_0x5c18d1][_0x22eb('0x2')]==='1'&&!['2','7','8'][_0x22eb('0x4a')](_0x44d39f[_0x5c18d1][_0x22eb('0x4b')])){this[_0x22eb('0x2')]+=0x1;}switch(_0x44d39f[_0x5c18d1]['status']){case'0':this['unknown']+=0x1;break;case'1':this[_0x22eb('0x1a')]+=0x1;break;case'2':this['inUse']+=0x1;break;case'3':this[_0x22eb('0x17')]+=0x1;break;case'4':this['invalid']+=0x1;break;case'5':this[_0x22eb('0x1f')]+=0x1;break;case'6':this['ringing']+=0x1;break;case'7':this['ringInUse']+=0x1;break;case'8':this['onHold']+=0x1;break;}}if(this['dialMethod']===_0x22eb('0x4c')){var _0x4b5c03=Object[_0x22eb('0x4d')](_0x18c6ed);for(var _0x3b35c6=0x0;_0x3b35c6<_0x4b5c03['length'];_0x3b35c6++){var _0x24e6ba=_0x4b5c03[_0x3b35c6];var _0x5df756=_0x18c6ed[_0x24e6ba];if(_0x5df756[_0x22eb('0x4e')]===this[_0x22eb('0x41')]&&_0x5df756[_0x22eb('0x1e')]===_0x22eb('0x4f')&&_0x5df756[_0x22eb('0x50')]===_0x22eb('0x51')){this[_0x22eb('0x4')]+=0x1;}}if(this[_0x22eb('0x4')]>this[_0x22eb('0x18')]){this['talking']=this[_0x22eb('0x18')];}this[_0x22eb('0x12')]=0x0;}return this;};VoiceQueueSummary['prototype'][_0x22eb('0x52')]=function(_0x2f0242){var _0x4da671=![];if(_0x2f0242){_0x4da671=INBOUND_COUNTERS[_0x22eb('0x53')](function(_0x4fee5c){return this[_0x4fee5c]!==_0x2f0242[_0x4fee5c];},this);}return _0x4da671;};VoiceQueueSummary[_0x22eb('0x54')][_0x22eb('0x55')]=function(_0x3b1cd2){var _0x3e3fae=![];var _0x447177=![];var _0x10393b=![];if(_0x3b1cd2){_0x3e3fae=this['dialMethod']!==_0x3b1cd2[_0x22eb('0x24')]||this['dialActive']!==_0x3b1cd2[_0x22eb('0x23')]||this['message']!==_0x3b1cd2[_0x22eb('0x3e')]||this[_0x22eb('0x3f')]!==_0x3b1cd2[_0x22eb('0x3f')];_0x447177=OUTBOUND_COUNTERS[_0x22eb('0x53')](function(_0x3f03df){return this[_0x3f03df]!==_0x3b1cd2[_0x3f03df];},this);if(this['Trunk']&&_0x3b1cd2['Trunk']){_0x10393b=this[_0x22eb('0x40')][_0x22eb('0x41')]!==_0x3b1cd2['Trunk'][_0x22eb('0x41')]||this[_0x22eb('0x40')][_0x22eb('0x56')]!==_0x3b1cd2[_0x22eb('0x40')][_0x22eb('0x56')];}}return _0x3e3fae||_0x447177||_0x10393b;};VoiceQueueSummary[_0x22eb('0x54')][_0x22eb('0x57')]=function(_0x35c997){this[_0x22eb('0x6')]=_0x35c997[_0x22eb('0x6')];this[_0x22eb('0x3e')]=_0x35c997['message'];this[_0x22eb('0x3f')]=_0x35c997[_0x22eb('0x3f')];this[_0x22eb('0x7')]=_0x35c997[_0x22eb('0x7')];this[_0x22eb('0x8')]=_0x35c997[_0x22eb('0x8')];this[_0x22eb('0x9')]=_0x35c997[_0x22eb('0x9')];this[_0x22eb('0xa')]=_0x35c997[_0x22eb('0xa')];this[_0x22eb('0xb')]=_0x35c997[_0x22eb('0xb')];this[_0x22eb('0xc')]=_0x35c997[_0x22eb('0xc')];this['outboundNoAnswerCallsDay']=_0x35c997['outboundNoAnswerCallsDay'];this[_0x22eb('0xe')]=_0x35c997[_0x22eb('0xe')];this[_0x22eb('0xf')]=_0x35c997[_0x22eb('0xf')];this[_0x22eb('0x10')]=_0x35c997['outboundRejectCallsDay'];this[_0x22eb('0x11')]=_0x35c997[_0x22eb('0x11')];this['sumBillable']=_0x35c997['sumBillable'];this[_0x22eb('0x13')]=_0x35c997[_0x22eb('0x13')];this[_0x22eb('0x58')]=_0x35c997[_0x22eb('0x58')];if(this[_0x22eb('0x24')]===_0x22eb('0x59')){this[_0x22eb('0x12')]=_0x35c997[_0x22eb('0x12')];}};module[_0x22eb('0x5a')]=VoiceQueueSummary;
\ No newline at end of file
+var _0xa0a1=['updateReportFromOutboundQueue','originated','exports','available','loggedInDb','paused','ringing','answered','loggedIn','outboundAbandonedCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundBusyCallsDay','outboundCongestionCallsDay','outboundNoSuchCallsDay','outboundReCallsDay','outboundRejectCallsDay','talking','sumBillable','sumDuration','waiting','name','strategy','abandoned','busy','inUse','invalid','onHold','notInUse','ringInUse','sumHoldTime','total','type','unavailable','unknown','unmanaged','pTalking','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','temp','outboundAnswerAgiCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','outboundUnknownCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCalls','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','erlangCalls','erlangCallToSecond','erlangBusyFactor','startPredictive','startProgressive','statusMessage','Trunk','active','prototype','createReport','loggedin','callers','length','online','includes','status','booked','keys','queue','dialer','xcally-motion-preview','some','compareToOutboundQueue','dialActive','message'];(function(_0xfb31ee,_0x403d45){var _0xec7390=function(_0x2cadad){while(--_0x2cadad){_0xfb31ee['push'](_0xfb31ee['shift']());}};_0xec7390(++_0x403d45);}(_0xa0a1,0x15b));var _0x1a0a=function(_0x500e56,_0x3ebec5){_0x500e56=_0x500e56-0x0;var _0x1c9c49=_0xa0a1[_0x500e56];return _0x1c9c49;};'use strict';var INBOUND_COUNTERS=[_0x1a0a('0x0'),'loggedIn',_0x1a0a('0x1'),_0x1a0a('0x2'),_0x1a0a('0x3'),'talking','waiting'];var OUTBOUND_COUNTERS=[_0x1a0a('0x0'),_0x1a0a('0x4'),'inUse',_0x1a0a('0x5'),_0x1a0a('0x1'),'originated',_0x1a0a('0x6'),_0x1a0a('0x7'),_0x1a0a('0x8'),_0x1a0a('0x9'),_0x1a0a('0xa'),'outboundNoAnswerCallsDay',_0x1a0a('0xb'),_0x1a0a('0xc'),_0x1a0a('0xd'),'outboundUnknownCallsDay','paused','pTalking',_0x1a0a('0xe'),_0x1a0a('0xf'),_0x1a0a('0x10'),'total',_0x1a0a('0x11')];function VoiceQueueSummary(_0x4a0eda){this['id']=_0x4a0eda['id'];this[_0x1a0a('0x12')]=_0x4a0eda[_0x1a0a('0x12')];this[_0x1a0a('0x13')]=_0x4a0eda[_0x1a0a('0x13')];this[_0x1a0a('0x14')]=_0x4a0eda[_0x1a0a('0x14')]||0x0;this[_0x1a0a('0x4')]=_0x4a0eda['answered']||0x0;this[_0x1a0a('0x0')]=_0x4a0eda[_0x1a0a('0x0')]||0x0;this[_0x1a0a('0x15')]=_0x4a0eda[_0x1a0a('0x15')]||0x0;this[_0x1a0a('0x16')]=_0x4a0eda['inUse']||0x0;this[_0x1a0a('0x17')]=_0x4a0eda[_0x1a0a('0x17')]||0x0;this[_0x1a0a('0x5')]=_0x4a0eda['loggedIn']||0x0;this[_0x1a0a('0x1')]=_0x4a0eda['loggedInDb']||0x0;this[_0x1a0a('0x18')]=_0x4a0eda['onHold']||0x0;this['notInUse']=_0x4a0eda[_0x1a0a('0x19')]||0x0;this[_0x1a0a('0x2')]=_0x4a0eda[_0x1a0a('0x2')]||0x0;this[_0x1a0a('0x3')]=_0x4a0eda['ringing']||0x0;this['ringInUse']=_0x4a0eda[_0x1a0a('0x1a')];this[_0x1a0a('0xf')]=_0x4a0eda[_0x1a0a('0xf')];this['sumDuration']=_0x4a0eda[_0x1a0a('0x10')];this[_0x1a0a('0x1b')]=_0x4a0eda['sumHoldTime']||0x0;this[_0x1a0a('0xe')]=_0x4a0eda[_0x1a0a('0xe')]||0x0;this[_0x1a0a('0x1c')]=_0x4a0eda['total']||0x0;this[_0x1a0a('0x1d')]=_0x4a0eda[_0x1a0a('0x1d')];this[_0x1a0a('0x1e')]=_0x4a0eda['unavailable']||0x0;this[_0x1a0a('0x1f')]=_0x4a0eda['unknown']||0x0;this[_0x1a0a('0x20')]=_0x4a0eda[_0x1a0a('0x20')]||0x0;this[_0x1a0a('0x11')]=_0x4a0eda[_0x1a0a('0x11')]||0x0;if(_0x4a0eda[_0x1a0a('0x1d')]==='outbound'){this[_0x1a0a('0x21')]=_0x4a0eda[_0x1a0a('0x21')]||0x0;this['dialActive']=_0x4a0eda['dialActive'];this[_0x1a0a('0x22')]=_0x4a0eda[_0x1a0a('0x22')];this[_0x1a0a('0x23')]=_0x4a0eda[_0x1a0a('0x23')];this[_0x1a0a('0x24')]=_0x4a0eda[_0x1a0a('0x24')];this[_0x1a0a('0x25')]=_0x4a0eda[_0x1a0a('0x25')];this[_0x1a0a('0x26')]=_0x4a0eda[_0x1a0a('0x26')];this[_0x1a0a('0x27')]=_0x4a0eda[_0x1a0a('0x27')];this[_0x1a0a('0x28')]=_0x4a0eda[_0x1a0a('0x28')];this[_0x1a0a('0x7')]=_0x4a0eda[_0x1a0a('0x7')];this[_0x1a0a('0x8')]=_0x4a0eda['outboundBlacklistCallsDay'];this[_0x1a0a('0x9')]=_0x4a0eda[_0x1a0a('0x9')];this[_0x1a0a('0xa')]=_0x4a0eda[_0x1a0a('0xa')];this[_0x1a0a('0x29')]=_0x4a0eda[_0x1a0a('0x29')];this[_0x1a0a('0x2a')]=_0x4a0eda[_0x1a0a('0x2a')];this[_0x1a0a('0x2b')]=_0x4a0eda[_0x1a0a('0x2b')];this['outboundNoAnswerCallsDay']=_0x4a0eda[_0x1a0a('0x2c')];this[_0x1a0a('0xb')]=_0x4a0eda['outboundNoSuchCallsDay'];this[_0x1a0a('0x2d')]=_0x4a0eda['outboundOriginateFailureCallsDay'];this['outboundReCallsDay']=_0x4a0eda[_0x1a0a('0xc')];this[_0x1a0a('0xd')]=_0x4a0eda['outboundRejectCallsDay'];this[_0x1a0a('0x2e')]=_0x4a0eda[_0x1a0a('0x2e')];this[_0x1a0a('0x2f')]=_0x4a0eda['predictiveIntervalAnsweredCalls'];this[_0x1a0a('0x30')]=_0x4a0eda[_0x1a0a('0x30')];this['predictiveIntervalAvgTalktime']=_0x4a0eda[_0x1a0a('0x31')];this[_0x1a0a('0x32')]=_0x4a0eda['predictiveIntervalDroppedCallsCallersExit'];this[_0x1a0a('0x33')]=_0x4a0eda[_0x1a0a('0x33')];this[_0x1a0a('0x34')]=_0x4a0eda[_0x1a0a('0x34')];this['predictiveIntervalErlangCallsDroppedCalls']=_0x4a0eda[_0x1a0a('0x35')];this[_0x1a0a('0x36')]=_0x4a0eda[_0x1a0a('0x36')];this[_0x1a0a('0x37')]=_0x4a0eda[_0x1a0a('0x37')];this[_0x1a0a('0x38')]=_0x4a0eda[_0x1a0a('0x38')];this[_0x1a0a('0x39')]=_0x4a0eda[_0x1a0a('0x39')];this['predictiveIntervalTotalCalls']=_0x4a0eda['predictiveIntervalTotalCalls'];this['originated']=_0x4a0eda['originated'];this[_0x1a0a('0x3a')]=_0x4a0eda['erlangCalls'];this[_0x1a0a('0x3b')]=_0x4a0eda[_0x1a0a('0x3b')];this['erlangAbandonmentRate']=_0x4a0eda['erlangAbandonmentRate'];this[_0x1a0a('0x3c')]=_0x4a0eda[_0x1a0a('0x3c')];this[_0x1a0a('0x3d')]=_0x4a0eda[_0x1a0a('0x3d')];this['startProgressive']=_0x4a0eda[_0x1a0a('0x3e')];this['message']=_0x4a0eda['message'];this['statusMessage']=_0x4a0eda[_0x1a0a('0x3f')];}if(_0x4a0eda[_0x1a0a('0x40')]){this['Trunk']={'id':_0x4a0eda[_0x1a0a('0x40')]['id'],'name':_0x4a0eda[_0x1a0a('0x40')]['name'],'active':_0x4a0eda['Trunk'][_0x1a0a('0x41')],'callerid':_0x4a0eda[_0x1a0a('0x40')]['callerid']};}}VoiceQueueSummary[_0x1a0a('0x42')][_0x1a0a('0x43')]=function(_0x56cfd6,_0x2f3ba1,_0x59bad4,_0x3a80be){this['loggedInDb']=0x0;this[_0x1a0a('0xe')]=0x0;this[_0x1a0a('0x2')]=0x0;this[_0x1a0a('0x1f')]=0x0;this[_0x1a0a('0x19')]=0x0;this['inUse']=0x0;this[_0x1a0a('0x15')]=0x0;this[_0x1a0a('0x17')]=0x0;this[_0x1a0a('0x1e')]=0x0;this[_0x1a0a('0x3')]=0x0;this['ringInUse']=0x0;this[_0x1a0a('0x18')]=0x0;if(_0x59bad4){if(_0x59bad4[_0x1a0a('0x0')]){this['available']=Number(_0x59bad4[_0x1a0a('0x0')]);}if(_0x59bad4[_0x1a0a('0x44')]){this[_0x1a0a('0x5')]=Number(_0x59bad4[_0x1a0a('0x44')]);}if(_0x59bad4[_0x1a0a('0x45')]){this[_0x1a0a('0x11')]=Number(_0x59bad4[_0x1a0a('0x45')]);}}for(var _0xf6df6c=0x0;_0xf6df6c<_0x56cfd6[_0x1a0a('0x46')];_0xf6df6c++){var _0xc1e997=_0x2f3ba1['SIP/'+_0x56cfd6[_0xf6df6c][_0x1a0a('0x12')]];if(_0xc1e997&&_0xc1e997[_0x1a0a('0x47')]){this['loggedInDb']+=0x1;}if(_0x56cfd6[_0xf6df6c]['incall']==='1'){this['talking']+=0x1;}if(_0x56cfd6[_0xf6df6c]['paused']==='1'&&!['2','7','8'][_0x1a0a('0x48')](_0x56cfd6[_0xf6df6c][_0x1a0a('0x49')])){this['paused']+=0x1;}switch(_0x56cfd6[_0xf6df6c]['status']){case'0':this['unknown']+=0x1;break;case'1':this[_0x1a0a('0x19')]+=0x1;break;case'2':this[_0x1a0a('0x16')]+=0x1;break;case'3':this[_0x1a0a('0x15')]+=0x1;break;case'4':this[_0x1a0a('0x17')]+=0x1;break;case'5':this[_0x1a0a('0x1e')]+=0x1;break;case'6':this[_0x1a0a('0x3')]+=0x1;break;case'7':this[_0x1a0a('0x1a')]+=0x1;break;case'8':this[_0x1a0a('0x18')]+=0x1;break;}}if(this[_0x1a0a('0x22')]===_0x1a0a('0x4a')){var _0x1ed012=Object[_0x1a0a('0x4b')](_0x3a80be);for(var _0x23a985=0x0;_0x23a985<_0x1ed012['length'];_0x23a985++){var _0x3d0c86=_0x1ed012[_0x23a985];var _0x3f4967=_0x3a80be[_0x3d0c86];if(_0x3f4967[_0x1a0a('0x4c')]===this['name']&&_0x3f4967[_0x1a0a('0x1d')]===_0x1a0a('0x4d')&&_0x3f4967['exten']===_0x1a0a('0x4e')){this[_0x1a0a('0xe')]+=0x1;}}if(this['talking']>this['inUse']){this[_0x1a0a('0xe')]=this['inUse'];}this['pTalking']=0x0;}return this;};VoiceQueueSummary[_0x1a0a('0x42')]['compareToInboundQueue']=function(_0x54f016){var _0x217073=![];if(_0x54f016){_0x217073=INBOUND_COUNTERS[_0x1a0a('0x4f')](function(_0x3678c7){return this[_0x3678c7]!==_0x54f016[_0x3678c7];},this);}return _0x217073;};VoiceQueueSummary[_0x1a0a('0x42')][_0x1a0a('0x50')]=function(_0x1adef6){var _0x89d031=![];var _0x2fd9b5=![];var _0x3eb3f8=![];if(_0x1adef6){_0x89d031=this['dialMethod']!==_0x1adef6[_0x1a0a('0x22')]||this['dialActive']!==_0x1adef6[_0x1a0a('0x51')]||this[_0x1a0a('0x52')]!==_0x1adef6['message']||this['statusMessage']!==_0x1adef6[_0x1a0a('0x3f')];_0x2fd9b5=OUTBOUND_COUNTERS[_0x1a0a('0x4f')](function(_0x554907){return this[_0x554907]!==_0x1adef6[_0x554907];},this);if(this['Trunk']&&_0x1adef6[_0x1a0a('0x40')]){_0x3eb3f8=this['Trunk'][_0x1a0a('0x12')]!==_0x1adef6[_0x1a0a('0x40')]['name']||this[_0x1a0a('0x40')]['active']!==_0x1adef6[_0x1a0a('0x40')][_0x1a0a('0x41')];}}return _0x89d031||_0x2fd9b5||_0x3eb3f8;};VoiceQueueSummary['prototype'][_0x1a0a('0x53')]=function(_0x1f1f51){this[_0x1a0a('0x4')]=_0x1f1f51['answered'];this[_0x1a0a('0x52')]=_0x1f1f51[_0x1a0a('0x52')];this['statusMessage']=_0x1f1f51['statusMessage'];this[_0x1a0a('0x54')]=_0x1f1f51[_0x1a0a('0x54')];this[_0x1a0a('0x6')]=_0x1f1f51[_0x1a0a('0x6')];this['outboundAnswerCallsDay']=_0x1f1f51['outboundAnswerCallsDay'];this['outboundBlacklistCallsDay']=_0x1f1f51[_0x1a0a('0x8')];this['outboundBusyCallsDay']=_0x1f1f51[_0x1a0a('0x9')];this[_0x1a0a('0xa')]=_0x1f1f51[_0x1a0a('0xa')];this[_0x1a0a('0x2c')]=_0x1f1f51[_0x1a0a('0x2c')];this[_0x1a0a('0xb')]=_0x1f1f51[_0x1a0a('0xb')];this[_0x1a0a('0xc')]=_0x1f1f51[_0x1a0a('0xc')];this[_0x1a0a('0xd')]=_0x1f1f51[_0x1a0a('0xd')];this[_0x1a0a('0x2e')]=_0x1f1f51[_0x1a0a('0x2e')];this[_0x1a0a('0xf')]=_0x1f1f51[_0x1a0a('0xf')];this['sumDuration']=_0x1f1f51[_0x1a0a('0x10')];this[_0x1a0a('0x1c')]=_0x1f1f51[_0x1a0a('0x1c')];if(this[_0x1a0a('0x22')]==='preview'){this[_0x1a0a('0x21')]=_0x1f1f51[_0x1a0a('0x21')];}};module[_0x1a0a('0x55')]=VoiceQueueSummary;
\ No newline at end of file