X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Frouting%2Fserver%2Fapplications%2Fstrategy%2Fbeepall.js;h=c67d16bb0df3fb020fa660a1d5651d8e051f5063;hb=ece744b31d5c8c1b26913aafb50e0250a2a6b474;hp=5ace4fb61c12c75d56f292457c7edcbced1f4606;hpb=9de5174448f6124e143d4b68967b102fec513aee;p=motion2.git diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index 5ace4fb..c67d16b 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 _0x93f7=['isAgentAvailable','agents','channel','writeLog','busyQueue','name','saveWaitingNotification','showNotification','[%s][QUEUE]\x20EMPTY','hideNotification','TIMEOUT','busy','removeWaitingNotification','exports','uuid','./util','routing','notificationId','squeue','queue','push','handleRun','bind','handleTimeout','timeout','drained','handleDrained','prototype','isNil','Agents','length','realtime','debug','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s'];(function(_0x3826ad,_0x49a30d){var _0x17b900=function(_0x38474f){while(--_0x38474f){_0x3826ad['push'](_0x3826ad['shift']());}};_0x17b900(++_0x49a30d);}(_0x93f7,0x140));var _0x793f=function(_0x16316c,_0x5211d9){_0x16316c=_0x16316c-0x0;var _0x13b0ae=_0x93f7[_0x16316c];return _0x13b0ae;};'use strict';var _=require('lodash');var uuid=require(_0x793f('0x0'));var util=require(_0x793f('0x1'));var logger=require('../../../../../config/logger')(_0x793f('0x2'));var Beepall=function(_0x3fecec,_0x2d1086,_0x3630b8,_0x513739){this[_0x793f('0x3')]=uuid['v4']();this[_0x793f('0x4')]=_0x3fecec;this[_0x793f('0x5')]=_0x2d1086;this['realtime']=_0x3630b8;this[_0x793f('0x2')]=_0x513739;this['squeue'][_0x793f('0x6')](this[_0x793f('0x7')][_0x793f('0x8')](this),this[_0x793f('0x9')][_0x793f('0x8')](this));this[_0x793f('0x4')]['on'](_0x793f('0xa'),this[_0x793f('0x9')][_0x793f('0x8')](this));this[_0x793f('0x4')]['on'](_0x793f('0xb'),this[_0x793f('0xc')][_0x793f('0x8')](this));};Beepall[_0x793f('0xd')][_0x793f('0x6')]=function(){this[_0x793f('0x4')][_0x793f('0x6')](this[_0x793f('0x7')][_0x793f('0x8')](this),this['handleTimeout'][_0x793f('0x8')](this));};Beepall[_0x793f('0xd')][_0x793f('0xc')]=function(){this['handleTimeout'](!![]);};Beepall[_0x793f('0xd')][_0x793f('0x7')]=function(){var _0x4fcbc1=!![];if(!_['isNil'](this[_0x793f('0x5')])&&!_[_0x793f('0xe')](this[_0x793f('0x5')][_0x793f('0xf')])&&this[_0x793f('0x5')][_0x793f('0xf')]['length']>0x0){for(var _0x326532=0x0,_0x44a9f2;_0x3265320x0){for(var _0x4e083d=0x0,_0x1e192f;_0x4e083d