Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / services / routing / server / interval.js
index 92b3bbc..93d54b9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbeb0=['stack','util','lodash','../../../config/logger','routing','client','then','error','message','result','catch','rules','info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','stop','length','push','format','iftime\x20%s','indexOf','all','some','join','\x20|\x20','when','log','[%s][INTERVAL]\x20%s\x20%s'];(function(_0x2e37be,_0x5afbff){var _0x5bab01=function(_0x552d8b){while(--_0x552d8b){_0x2e37be['push'](_0x2e37be['shift']());}};_0x5bab01(++_0x5afbff);}(_0xbeb0,0x196));var _0x0beb=function(_0x11de98,_0x453518){_0x11de98=_0x11de98-0x0;var _0x336b73=_0xbeb0[_0x11de98];return _0x336b73;};'use strict';var util=require(_0x0beb('0x0'));var BPromise=require('bluebird');var jayson=require('jayson/promise');var _=require(_0x0beb('0x1'));var logger=require(_0x0beb('0x2'))(_0x0beb('0x3'));var client=jayson[_0x0beb('0x4')]['http']({'port':0x232a});function request(_0x5335e0,_0x4a9b6f){return new BPromise(function(_0x15c246,_0xef6ddb){return client['request'](_0x5335e0,_0x4a9b6f)[_0x0beb('0x5')](function(_0x1a59ed){if(_0x1a59ed[_0x0beb('0x6')]){return _0xef6ddb(_0x1a59ed[_0x0beb('0x6')][_0x0beb('0x7')]);}else{return _0x15c246(_0x1a59ed[_0x0beb('0x8')]);}})[_0x0beb('0x9')](function(_0x4d36de){return _0xef6ddb(_0x4d36de);});});}exports['condition']=function(_0x4ebca7,_0x293b6e,_0x1b0515){return function(_0x5bbbfd){if(_0x1b0515[_0x0beb('0xa')]&&!_0x1b0515['rules'][_0x4ebca7]){logger[_0x0beb('0xb')](_0x0beb('0xc'),_0x4ebca7);return _0x5bbbfd[_0x0beb('0xd')]();}var _0x4d20fb=[];for(var _0x33839e=0x0;_0x33839e<_0x293b6e[_0x0beb('0xe')];_0x33839e+=0x1){_0x4d20fb[_0x0beb('0xf')](request('Command',{'command':util[_0x0beb('0x10')](_0x0beb('0x11'),_0x293b6e[_0x33839e])})[_0x0beb('0x5')](function(_0x522c9b){return _0x522c9b&&_0x522c9b[_0x0beb('0x7')]&&_0x522c9b[_0x0beb('0x7')][_0x0beb('0x12')]('true')>=0x0?!![]:![];})[_0x0beb('0x9')](function(_0x5b72b2){logger['error']('[%s][INTERVAL]\x20%s',_0x4ebca7,_0x293b6e[_0x33839e]);}));}BPromise[_0x0beb('0x13')](_0x4d20fb)['then'](function(_0x1ea31c){var _0x30e3aa=_[_0x0beb('0x14')](_0x1ea31c);logger[_0x0beb('0xb')]('[%s][INTERVAL]\x20%s\x20%s',_0x4ebca7,_0x293b6e[_0x0beb('0x15')](_0x0beb('0x16')),_0x30e3aa);_0x5bbbfd[_0x0beb('0x17')](_0x30e3aa);})[_0x0beb('0x9')](function(_0x323ed8){console[_0x0beb('0x18')](_0x323ed8);logger[_0x0beb('0x6')](_0x0beb('0x19'),_0x4ebca7,_0x293b6e[_0x0beb('0x15')](_0x0beb('0x16')),_0x323ed8[_0x0beb('0x1a')]);_0x5bbbfd['stop']();});};};
\ No newline at end of file
+var _0x6c2c=['rules','info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','stop','length','format','indexOf','[%s][INTERVAL]\x20%s','all','some','[%s][INTERVAL]\x20%s\x20%s','join','\x20|\x20','when','stack','util','bluebird','jayson/promise','lodash','../../../config/logger','client','http','then','error','message','result','catch'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x6c2c,0x7b));var _0xc6c2=function(_0x51798e,_0x48293c){_0x51798e=_0x51798e-0x0;var _0x45c0f2=_0x6c2c[_0x51798e];return _0x45c0f2;};'use strict';var util=require(_0xc6c2('0x0'));var BPromise=require(_0xc6c2('0x1'));var jayson=require(_0xc6c2('0x2'));var _=require(_0xc6c2('0x3'));var logger=require(_0xc6c2('0x4'))('routing');var client=jayson[_0xc6c2('0x5')][_0xc6c2('0x6')]({'port':0x232a});function request(_0x1fa936,_0x3fd2fb){return new BPromise(function(_0x2644ef,_0x17b61b){return client['request'](_0x1fa936,_0x3fd2fb)[_0xc6c2('0x7')](function(_0x4d617b){if(_0x4d617b[_0xc6c2('0x8')]){return _0x17b61b(_0x4d617b[_0xc6c2('0x8')][_0xc6c2('0x9')]);}else{return _0x2644ef(_0x4d617b[_0xc6c2('0xa')]);}})[_0xc6c2('0xb')](function(_0x1bb64b){return _0x17b61b(_0x1bb64b);});});}exports['condition']=function(_0x1f1c18,_0x29f11d,_0x576d96){return function(_0x2a44aa){if(_0x576d96[_0xc6c2('0xc')]&&!_0x576d96[_0xc6c2('0xc')][_0x1f1c18]){logger[_0xc6c2('0xd')](_0xc6c2('0xe'),_0x1f1c18);return _0x2a44aa[_0xc6c2('0xf')]();}var _0xa2027b=[];for(var _0x31eeb6=0x0;_0x31eeb6<_0x29f11d[_0xc6c2('0x10')];_0x31eeb6+=0x1){_0xa2027b['push'](request('Command',{'command':util[_0xc6c2('0x11')]('iftime\x20%s',_0x29f11d[_0x31eeb6])})[_0xc6c2('0x7')](function(_0x1421ae){return _0x1421ae&&_0x1421ae[_0xc6c2('0x9')]&&_0x1421ae[_0xc6c2('0x9')][_0xc6c2('0x12')]('true')>=0x0?!![]:![];})[_0xc6c2('0xb')](function(_0xc892d2){logger[_0xc6c2('0x8')](_0xc6c2('0x13'),_0x1f1c18,_0x29f11d[_0x31eeb6]);}));}BPromise[_0xc6c2('0x14')](_0xa2027b)[_0xc6c2('0x7')](function(_0x308e0b){var _0x4eeed2=_[_0xc6c2('0x15')](_0x308e0b);logger[_0xc6c2('0xd')](_0xc6c2('0x16'),_0x1f1c18,_0x29f11d[_0xc6c2('0x17')](_0xc6c2('0x18')),_0x4eeed2);_0x2a44aa[_0xc6c2('0x19')](_0x4eeed2);})[_0xc6c2('0xb')](function(_0x10d057){console['log'](_0x10d057);logger[_0xc6c2('0x8')](_0xc6c2('0x16'),_0x1f1c18,_0x29f11d['join'](_0xc6c2('0x18')),_0x10d057[_0xc6c2('0x1a')]);_0x2a44aa[_0xc6c2('0xf')]();});};};
\ No newline at end of file