Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / services / routing / model / openchannelQueue.js
index ce2394c..62b4dfb 100644 (file)
@@ -1 +1 @@
-const a1169_0x5658=['stringify','strategy','available','util','_rr','updateRealtime','openchannelPause','../../../rediscache','name','waiting','exports','loggedIn','Agents','online','md5','lodash','updateRouting','mapAgentsId','paused','beepall','length','prototype','timeout','emit','map','openchannel:queue:%s'];(function(_0x1e4090,_0x56588e){const _0x1bf2db=function(_0x4e16a8){while(--_0x4e16a8){_0x1e4090['push'](_0x1e4090['shift']());}};_0x1bf2db(++_0x56588e);}(a1169_0x5658,0x1a3));const a1169_0x1bf2=function(_0x1e4090,_0x56588e){_0x1e4090=_0x1e4090-0x0;let _0x1bf2db=a1169_0x5658[_0x1e4090];return _0x1bf2db;};const _0x1bd2ee=a1169_0x1bf2;'use strict';const _=require(_0x1bd2ee('0xc')),md5=require(_0x1bd2ee('0xb')),util=require(_0x1bd2ee('0x0')),{getSocket}=require(_0x1bd2ee('0x4')),io=getSocket();function OpenchannelQueue(_0x4e16a8){const _0x4a48c9=_0x1bd2ee;this['id']=_0x4e16a8['id']||0x0,this['name']=_0x4e16a8[_0x4a48c9('0x5')]||'',this[_0x4a48c9('0x13')]=_0x4e16a8[_0x4a48c9('0x13')]||0xa,this['strategy']=_0x4e16a8[_0x4a48c9('0x18')]||_0x4a48c9('0x10'),this['Agents']=_0x4e16a8[_0x4a48c9('0x9')],this[_0x4a48c9('0xe')]={},this[_0x4a48c9('0x6')]=0x0,this[_0x4a48c9('0xb')]='',this[_0x4a48c9('0xd')](),this[_0x4a48c9('0x2')]();}OpenchannelQueue['prototype'][_0x1bd2ee('0xd')]=function(){const _0x3fbf3=_0x1bd2ee,_0x1c64b4=this[_0x3fbf3('0xe')][_0x3fbf3('0x1')];this['mapAgentsId']=_[_0x3fbf3('0x15')](this[_0x3fbf3('0x9')],'id'),this['mapAgentsId'][_0x3fbf3('0x1')]=_0x1c64b4;},OpenchannelQueue[_0x1bd2ee('0x12')]['updateRealtime']=function(){const _0x33dec4=_0x1bd2ee;this[_0x33dec4('0x8')]=0x0,this[_0x33dec4('0xf')]=0x0;for(let _0x19dce4=0x0;_0x19dce4<this[_0x33dec4('0x9')][_0x33dec4('0x11')];_0x19dce4+=0x1){this[_0x33dec4('0x9')][_0x19dce4][_0x33dec4('0xa')]&&(this['loggedIn']+=0x1),this[_0x33dec4('0x9')][_0x19dce4][_0x33dec4('0x3')]&&(this['paused']+=0x1);}this['available']=this[_0x33dec4('0x8')]-this['paused'],this['available']=this[_0x33dec4('0x19')]>=0x0?this[_0x33dec4('0x19')]:0x0;const _0x5a37d3={'id':this['id'],'available':this['available'],'loggedIn':this[_0x33dec4('0x8')],'name':this[_0x33dec4('0x5')],'paused':this[_0x33dec4('0xf')],'waiting':this[_0x33dec4('0x6')]},_0x390cf5=md5(JSON[_0x33dec4('0x17')](_0x5a37d3));this[_0x33dec4('0xb')]!==_0x390cf5&&(this[_0x33dec4('0xb')]=_0x390cf5,io['to'](util['format'](_0x33dec4('0x16'),_0x5a37d3['name']))[_0x33dec4('0x14')]('openchannel_queue:save',_0x5a37d3));},module[_0x1bd2ee('0x7')]=OpenchannelQueue;
\ No newline at end of file
+const a1170_0x1507=['timeout','format','Agents','updateRouting','md5','loggedIn','length','openchannel_queue:save','beepall','updateRealtime','map','openchannel:queue:%s','mapAgentsId','paused','online','name','lodash','available','strategy','util','../../../rediscache','openchannelPause','emit','waiting','_rr'];(function(_0x296173,_0x1507a){const _0x2aaaf6=function(_0x1a1824){while(--_0x1a1824){_0x296173['push'](_0x296173['shift']());}};_0x2aaaf6(++_0x1507a);}(a1170_0x1507,0x1be));const a1170_0x2aaa=function(_0x296173,_0x1507a){_0x296173=_0x296173-0x0;let _0x2aaaf6=a1170_0x1507[_0x296173];return _0x2aaaf6;};const _0x169eec=a1170_0x2aaa;'use strict';const _=require(_0x169eec('0x14')),md5=require(_0x169eec('0x8')),util=require(_0x169eec('0x17')),{getSocket}=require(_0x169eec('0x18')),io=getSocket();function OpenchannelQueue(_0x1a1824){const _0x3345ef=_0x169eec;this['id']=_0x1a1824['id']||0x0,this[_0x3345ef('0x13')]=_0x1a1824['name']||'',this[_0x3345ef('0x4')]=_0x1a1824[_0x3345ef('0x4')]||0xa,this[_0x3345ef('0x16')]=_0x1a1824['strategy']||_0x3345ef('0xc'),this['Agents']=_0x1a1824[_0x3345ef('0x6')],this['mapAgentsId']={},this[_0x3345ef('0x2')]=0x0,this[_0x3345ef('0x8')]='',this[_0x3345ef('0x7')](),this['updateRealtime']();}OpenchannelQueue['prototype'][_0x169eec('0x7')]=function(){const _0x42250b=_0x169eec,_0xb798b1=this[_0x42250b('0x10')]['_rr'];this[_0x42250b('0x10')]=_[_0x42250b('0xe')](this[_0x42250b('0x6')],'id'),this[_0x42250b('0x10')][_0x42250b('0x3')]=_0xb798b1;},OpenchannelQueue['prototype'][_0x169eec('0xd')]=function(){const _0x130de8=_0x169eec;this[_0x130de8('0x9')]=0x0,this[_0x130de8('0x11')]=0x0;for(let _0x4d03e2=0x0;_0x4d03e2<this[_0x130de8('0x6')][_0x130de8('0xa')];_0x4d03e2+=0x1){this['Agents'][_0x4d03e2][_0x130de8('0x12')]&&(this[_0x130de8('0x9')]+=0x1),this['Agents'][_0x4d03e2][_0x130de8('0x0')]&&(this['paused']+=0x1);}this[_0x130de8('0x15')]=this[_0x130de8('0x9')]-this[_0x130de8('0x11')],this[_0x130de8('0x15')]=this[_0x130de8('0x15')]>=0x0?this['available']:0x0;const _0x2e08f0={'id':this['id'],'available':this[_0x130de8('0x15')],'loggedIn':this[_0x130de8('0x9')],'name':this[_0x130de8('0x13')],'paused':this['paused'],'waiting':this[_0x130de8('0x2')]},_0x5267c1=md5(JSON['stringify'](_0x2e08f0));this['md5']!==_0x5267c1&&(this[_0x130de8('0x8')]=_0x5267c1,io['to'](util[_0x130de8('0x5')](_0x130de8('0xf'),_0x2e08f0[_0x130de8('0x13')]))[_0x130de8('0x1')](_0x130de8('0xb'),_0x2e08f0));},module['exports']=OpenchannelQueue;
\ No newline at end of file