X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Frouting%2Fserver%2Fapplications%2Fstrategy%2Fbeepall.js;h=5cb9dce7520bb278c14ed33b32e770b9c3048d39;hb=676e0a00dac18511f03a9406d0d87e461770e967;hp=c9a0c58bb5caa22fc75ac07788929b57d6d20b62;hpb=884fcf970b507196a3b60584a74b23a84d7eaf24;p=motion2.git diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index c9a0c58..5cb9dce 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x020e=['[%s][QUEUE]\x20EMPTY','hideNotification','writeLog','TIMEOUT','exports','lodash','uuid','./util','../../../../../config/logger','notificationId','realtime','routing','squeue','push','handleRun','bind','timeout','handleTimeout','handleDrained','prototype','queue','isNil','Agents','length','agents','info','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','isAgentAvailable','channel','RINGING','busy','busyQueue','name','showNotification'];(function(_0x5bf44b,_0x34df82){var _0x59f2c8=function(_0x44986f){while(--_0x44986f){_0x5bf44b['push'](_0x5bf44b['shift']());}};_0x59f2c8(++_0x34df82);}(_0x020e,0x137));var _0xe020=function(_0x8733e7,_0x2cefe3){_0x8733e7=_0x8733e7-0x0;var _0x14b859=_0x020e[_0x8733e7];return _0x14b859;};'use strict';var _=require(_0xe020('0x0'));var uuid=require(_0xe020('0x1'));var util=require(_0xe020('0x2'));var logger=require(_0xe020('0x3'))('routing');var Beepall=function(_0x7611a1,_0x26e58b,_0x4ab31d,_0xba92a5){this[_0xe020('0x4')]=uuid['v4']();this['squeue']=_0x7611a1;this['queue']=_0x26e58b;this[_0xe020('0x5')]=_0x4ab31d;this[_0xe020('0x6')]=_0xba92a5;this[_0xe020('0x7')][_0xe020('0x8')](this[_0xe020('0x9')][_0xe020('0xa')](this),this['handleTimeout'][_0xe020('0xa')](this));this[_0xe020('0x7')]['on'](_0xe020('0xb'),this[_0xe020('0xc')][_0xe020('0xa')](this));this[_0xe020('0x7')]['on']('drained',this[_0xe020('0xd')][_0xe020('0xa')](this));};Beepall[_0xe020('0xe')]['push']=function(){this[_0xe020('0x7')][_0xe020('0x8')](this[_0xe020('0x9')][_0xe020('0xa')](this),this[_0xe020('0xc')][_0xe020('0xa')](this));};Beepall['prototype']['handleDrained']=function(_0x31e4b6){this[_0xe020('0xc')](!![]);};Beepall[_0xe020('0xe')][_0xe020('0x9')]=function(_0x241f63){var _0x54d86b=!![];if(!_['isNil'](this[_0xe020('0xf')])&&!_[_0xe020('0x10')](this[_0xe020('0xf')][_0xe020('0x11')])&&this['queue'][_0xe020('0x11')][_0xe020('0x12')]>0x0){for(var _0x3cc6f1=0x0,_0x404a6f;_0x3cc6f10x0){for(var _0x2e2e07=0x0,_0x1fe9f8;_0x2e2e07