X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Frouting%2Fserver%2Fapplications%2Fstrategy%2Fbeepall.js;h=095a12909c43f9bf3eb15d4ed405b4e00baa9de0;hb=8de30684771e4539598fcfa869d5f97a2efb140f;hp=5b600841e3087d51b5f0bb598225e3493dd35c87;hpb=3912498a4dca9582374ca5cc8bf0a6347dda17ea;p=motion2.git diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index 5b60084..095a129 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 _0x034e=['handleTimeout','drained','handleDrained','prototype','isNil','queue','Agents','length','debug','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','channel','writeLog','busy','busyQueue','name','saveWaitingNotification','showNotification','agents','[%s][QUEUE]\x20ALL\x20AGENTS\x20ARE\x20BUSY','hideNotification','TIMEOUT','removeWaitingNotification','exports','lodash','notificationId','squeue','realtime','routing','push','handleRun','bind'];(function(_0x35b18a,_0x6b2fbe){var _0x4db1bd=function(_0x389e62){while(--_0x389e62){_0x35b18a['push'](_0x35b18a['shift']());}};_0x4db1bd(++_0x6b2fbe);}(_0x034e,0x16c));var _0xe034=function(_0x1c712a,_0x2b1ad4){_0x1c712a=_0x1c712a-0x0;var _0x49d160=_0x034e[_0x1c712a];return _0x49d160;};'use strict';var _=require(_0xe034('0x0'));var uuid=require('uuid');var util=require('./util');var logger=require('../../../../../config/logger')('routing');var Beepall=function(_0x440444,_0x4bd0df,_0x426c6b,_0x38bd7b){this[_0xe034('0x1')]=uuid['v4']();this[_0xe034('0x2')]=_0x440444;this['queue']=_0x4bd0df;this[_0xe034('0x3')]=_0x426c6b;this[_0xe034('0x4')]=_0x38bd7b;this[_0xe034('0x2')][_0xe034('0x5')](this[_0xe034('0x6')][_0xe034('0x7')](this),this['handleTimeout'][_0xe034('0x7')](this));this[_0xe034('0x2')]['on']('timeout',this[_0xe034('0x8')][_0xe034('0x7')](this));this[_0xe034('0x2')]['on'](_0xe034('0x9'),this[_0xe034('0xa')][_0xe034('0x7')](this));};Beepall[_0xe034('0xb')]['push']=function(){this[_0xe034('0x2')][_0xe034('0x5')](this['handleRun'][_0xe034('0x7')](this),this[_0xe034('0x8')][_0xe034('0x7')](this));};Beepall[_0xe034('0xb')][_0xe034('0xa')]=function(){this[_0xe034('0x8')](!![]);};Beepall[_0xe034('0xb')][_0xe034('0x6')]=function(){var _0x5a60e=!![];if(!_[_0xe034('0xc')](this['queue'])&&!_[_0xe034('0xc')](this[_0xe034('0xd')][_0xe034('0xe')])&&this[_0xe034('0xd')]['Agents']['length']>0x0){for(var _0x1047db=0x0,_0x423d63;_0x1047db0x0){for(var _0x1b0550=0x0,_0x23bf83;_0x1b0550