Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / routing / server / interval.js
index 32dae60..3818c7c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x453a=['info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','stop','length','push','Command','format','iftime\x20%s','indexOf','true','[%s][INTERVAL]\x20%s','all','some','[%s][INTERVAL]\x20%s\x20%s','join','\x20|\x20','when','log','util','bluebird','jayson/promise','lodash','../../../config/logger','routing','http','request','then','error','message','catch','condition'];(function(_0x95452a,_0x2de7e6){var _0xfa6961=function(_0x2ec481){while(--_0x2ec481){_0x95452a['push'](_0x95452a['shift']());}};_0xfa6961(++_0x2de7e6);}(_0x453a,0x1e3));var _0xa453=function(_0x304386,_0x319535){_0x304386=_0x304386-0x0;var _0x2696b2=_0x453a[_0x304386];return _0x2696b2;};'use strict';var util=require(_0xa453('0x0'));var BPromise=require(_0xa453('0x1'));var jayson=require(_0xa453('0x2'));var _=require(_0xa453('0x3'));var logger=require(_0xa453('0x4'))(_0xa453('0x5'));var client=jayson['client'][_0xa453('0x6')]({'port':0x232a});function request(_0x5d6de0,_0x3e6607){return new BPromise(function(_0x1a07d9,_0x2e6e37){return client[_0xa453('0x7')](_0x5d6de0,_0x3e6607)[_0xa453('0x8')](function(_0x547186){if(_0x547186['error']){return _0x2e6e37(_0x547186[_0xa453('0x9')][_0xa453('0xa')]);}else{return _0x1a07d9(_0x547186['result']);}})[_0xa453('0xb')](function(_0x47a9d5){return _0x2e6e37(_0x47a9d5);});});}exports[_0xa453('0xc')]=function(_0xc86ca5,_0x94b0fd,_0x576f0f){return function(_0x38bd2e){if(_0x576f0f['rules']&&!_0x576f0f['rules'][_0xc86ca5]){logger[_0xa453('0xd')](_0xa453('0xe'),_0xc86ca5);return _0x38bd2e[_0xa453('0xf')]();}var _0x3e1474=[];for(var _0x5ce336=0x0;_0x5ce336<_0x94b0fd[_0xa453('0x10')];_0x5ce336+=0x1){_0x3e1474[_0xa453('0x11')](request(_0xa453('0x12'),{'command':util[_0xa453('0x13')](_0xa453('0x14'),_0x94b0fd[_0x5ce336])})[_0xa453('0x8')](function(_0x157947){return _0x157947&&_0x157947[_0xa453('0xa')]&&_0x157947['message'][_0xa453('0x15')](_0xa453('0x16'))>=0x0?!![]:![];})[_0xa453('0xb')](function(_0x1b1607){logger[_0xa453('0x9')](_0xa453('0x17'),_0xc86ca5,_0x94b0fd[_0x5ce336]);}));}BPromise[_0xa453('0x18')](_0x3e1474)[_0xa453('0x8')](function(_0x325066){var _0x2f7f13=_[_0xa453('0x19')](_0x325066);logger[_0xa453('0xd')](_0xa453('0x1a'),_0xc86ca5,_0x94b0fd[_0xa453('0x1b')](_0xa453('0x1c')),_0x2f7f13);_0x38bd2e[_0xa453('0x1d')](_0x2f7f13);})[_0xa453('0xb')](function(_0x5bf9b4){console[_0xa453('0x1e')](_0x5bf9b4);logger[_0xa453('0x9')](_0xa453('0x1a'),_0xc86ca5,_0x94b0fd['join'](_0xa453('0x1c')),_0x5bf9b4['stack']);_0x38bd2e[_0xa453('0xf')]();});};};
\ No newline at end of file
+var _0x37b8=['stack','bluebird','jayson/promise','lodash','../../../config/logger','routing','client','http','request','then','error','message','result','catch','condition','rules','info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','length','push','Command','format','iftime\x20%s','indexOf','[%s][INTERVAL]\x20%s','all','[%s][INTERVAL]\x20%s\x20%s','\x20|\x20','when','join'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x37b8,0x1c3));var _0x837b=function(_0x1570e4,_0x244686){_0x1570e4=_0x1570e4-0x0;var _0x428d09=_0x37b8[_0x1570e4];return _0x428d09;};'use strict';var util=require('util');var BPromise=require(_0x837b('0x0'));var jayson=require(_0x837b('0x1'));var _=require(_0x837b('0x2'));var logger=require(_0x837b('0x3'))(_0x837b('0x4'));var client=jayson[_0x837b('0x5')][_0x837b('0x6')]({'port':0x232a});function request(_0x28ae25,_0x463365){return new BPromise(function(_0xf43271,_0x5b256c){return client[_0x837b('0x7')](_0x28ae25,_0x463365)[_0x837b('0x8')](function(_0x3ff07c){if(_0x3ff07c[_0x837b('0x9')]){return _0x5b256c(_0x3ff07c[_0x837b('0x9')][_0x837b('0xa')]);}else{return _0xf43271(_0x3ff07c[_0x837b('0xb')]);}})[_0x837b('0xc')](function(_0x1e48bc){return _0x5b256c(_0x1e48bc);});});}exports[_0x837b('0xd')]=function(_0x4de451,_0x5624df,_0x5be283){return function(_0x52635f){if(_0x5be283[_0x837b('0xe')]&&!_0x5be283[_0x837b('0xe')][_0x4de451]){logger[_0x837b('0xf')](_0x837b('0x10'),_0x4de451);return _0x52635f['stop']();}var _0x18a025=[];for(var _0x574f56=0x0;_0x574f56<_0x5624df[_0x837b('0x11')];_0x574f56+=0x1){_0x18a025[_0x837b('0x12')](request(_0x837b('0x13'),{'command':util[_0x837b('0x14')](_0x837b('0x15'),_0x5624df[_0x574f56])})[_0x837b('0x8')](function(_0x5d191e){return _0x5d191e&&_0x5d191e[_0x837b('0xa')]&&_0x5d191e[_0x837b('0xa')][_0x837b('0x16')]('true')>=0x0?!![]:![];})[_0x837b('0xc')](function(_0x2d5ee4){logger[_0x837b('0x9')](_0x837b('0x17'),_0x4de451,_0x5624df[_0x574f56]);}));}BPromise[_0x837b('0x18')](_0x18a025)['then'](function(_0x4e608f){var _0x14675c=_['some'](_0x4e608f);logger['info'](_0x837b('0x19'),_0x4de451,_0x5624df['join'](_0x837b('0x1a')),_0x14675c);_0x52635f[_0x837b('0x1b')](_0x14675c);})[_0x837b('0xc')](function(_0x196f4d){console['log'](_0x196f4d);logger['error'](_0x837b('0x19'),_0x4de451,_0x5624df[_0x837b('0x1c')](_0x837b('0x1a')),_0x196f4d[_0x837b('0x1d')]);_0x52635f['stop']();});};};
\ No newline at end of file