Built motion from commit ab065936.|2.0.49
[motion2.git] / server / services / routing / model / faxQueue.js
1 var _0xedce=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x69\x64","\x6E\x61\x6D\x65","","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x41\x67\x65\x6E\x74\x73","\x6D\x61\x70\x41\x67\x65\x6E\x74\x73\x49\x64","\x77\x61\x69\x74\x69\x6E\x67","\x75\x70\x64\x61\x74\x65\x52\x6F\x75\x74\x69\x6E\x67","\x75\x70\x64\x61\x74\x65\x52\x65\x61\x6C\x74\x69\x6D\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x5F\x72\x72","\x6D\x61\x70","\x6C\x6F\x67\x67\x65\x64\x49\x6E","\x70\x61\x75\x73\x65\x64","\x6C\x65\x6E\x67\x74\x68","\x6F\x6E\x6C\x69\x6E\x65","\x66\x61\x78\x50\x61\x75\x73\x65","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0xedce[0];var _=require(_0xedce[1]);var io=require(_0xedce[3])({host:_0xedce[2],port:6379});function FaxQueue(_0xb304x4){this[_0xedce[4]]= _0xb304x4[_0xedce[4]]|| 0;this[_0xedce[5]]= _0xb304x4[_0xedce[5]]|| _0xedce[6];this[_0xedce[7]]= _0xb304x4[_0xedce[7]]|| 10;this[_0xedce[8]]= _0xb304x4[_0xedce[8]]|| _0xedce[9];this[_0xedce[10]]= _0xb304x4[_0xedce[10]];this[_0xedce[11]]= {};this[_0xedce[12]]= 0;this[_0xedce[13]]();this[_0xedce[14]]()}FaxQueue[_0xedce[15]][_0xedce[13]]= function(){var _0xb304x5=this[_0xedce[11]][_0xedce[16]];this[_0xedce[11]]= _[_0xedce[17]](this.Agents,_0xedce[4]);this[_0xedce[11]][_0xedce[16]]= _0xb304x5};FaxQueue[_0xedce[15]][_0xedce[14]]= function(){this[_0xedce[18]]= 0;this[_0xedce[19]]= 0;for(var _0xb304x6=0;_0xb304x6< this[_0xedce[10]][_0xedce[20]];_0xb304x6+= 1){if(this[_0xedce[10]][_0xb304x6][_0xedce[21]]){this[_0xedce[18]]+= 1};if(this[_0xedce[10]][_0xb304x6][_0xedce[22]]){this[_0xedce[19]]+= 1}};this[_0xedce[23]]= this[_0xedce[18]]- this[_0xedce[19]];this[_0xedce[23]]= this[_0xedce[23]]>= 0?this[_0xedce[23]]:0;io[_0xedce[25]](_0xedce[24],this)};module[_0xedce[26]]= FaxQueue