X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Frouting%2Fserver%2Fapplications%2Fstrategy%2Fbeepall.js;fp=server%2Fservices%2Frouting%2Fserver%2Fapplications%2Fstrategy%2Fbeepall.js;h=93d4acdc4a19c947cc1329cb168f5f16112c1fef;hb=142b2b07c26fb6697bb0d2f2a4a8c0253173e8fe;hp=adba40f7493376c040e9dfc1bf6b73f73eb091c2;hpb=bc8ba5d49091d4cd92a2c18e276791604cb31450;p=motion2.git diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index adba40f..93d4acd 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 _0xcf38=['notificationId','squeue','queue','routing','push','handleRun','handleTimeout','bind','timeout','drained','handleDrained','prototype','isNil','Agents','length','realtime','agents','debug','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','channel','writeLog','RINGING','busy','name','saveWaitingNotification','showNotification','[%s][QUEUE]\x20ALL\x20AGENTS\x20ARE\x20BUSY','hideNotification','STOP','TIMEOUT','busyQueue','uuid','../../../../../config/logger'];(function(_0xd95342,_0xb75bf6){var _0x54d694=function(_0x1190c1){while(--_0x1190c1){_0xd95342['push'](_0xd95342['shift']());}};_0x54d694(++_0xb75bf6);}(_0xcf38,0x169));var _0x8cf3=function(_0x17b2ab,_0x43a8dd){_0x17b2ab=_0x17b2ab-0x0;var _0x242a20=_0xcf38[_0x17b2ab];return _0x242a20;};'use strict';var _=require('lodash');var uuid=require(_0x8cf3('0x0'));var util=require('./util');var logger=require(_0x8cf3('0x1'))('routing');var Beepall=function(_0x2f8723,_0x4a4d4b,_0x209ddd,_0x49ae89){this[_0x8cf3('0x2')]=uuid['v4']();this[_0x8cf3('0x3')]=_0x2f8723;this[_0x8cf3('0x4')]=_0x4a4d4b;this['realtime']=_0x209ddd;this[_0x8cf3('0x5')]=_0x49ae89;this[_0x8cf3('0x3')][_0x8cf3('0x6')](this[_0x8cf3('0x7')]['bind'](this),this[_0x8cf3('0x8')][_0x8cf3('0x9')](this));this[_0x8cf3('0x3')]['on'](_0x8cf3('0xa'),this['handleTimeout'][_0x8cf3('0x9')](this));this['squeue']['on'](_0x8cf3('0xb'),this[_0x8cf3('0xc')]['bind'](this));};Beepall['prototype'][_0x8cf3('0x6')]=function(){this[_0x8cf3('0x3')][_0x8cf3('0x6')](this[_0x8cf3('0x7')]['bind'](this),this[_0x8cf3('0x8')]['bind'](this));};Beepall[_0x8cf3('0xd')][_0x8cf3('0xc')]=function(){this[_0x8cf3('0x8')](!![]);};Beepall[_0x8cf3('0xd')][_0x8cf3('0x7')]=function(){var _0x34580a=!![];if(!_[_0x8cf3('0xe')](this[_0x8cf3('0x4')])&&!_[_0x8cf3('0xe')](this['queue'][_0x8cf3('0xf')])&&this[_0x8cf3('0x4')]['Agents'][_0x8cf3('0x10')]>0x0){for(var _0x55333f=0x0,_0x4f7215;_0x55333f0x0){for(var _0x77683f=0x0,_0x4e7bd0;_0x77683f