Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / services / routing / server / interval.js
index 32dae60..345ba2d 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 _0x21c3=['length','format','iftime\x20%s','indexOf','true','catch','[%s][INTERVAL]\x20%s','all','some','[%s][INTERVAL]\x20%s\x20%s','join','when','log','\x20|\x20','util','jayson/promise','lodash','../../../config/logger','routing','client','then','error','message','result','condition','rules','info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','stop'];(function(_0x1e4a8e,_0x18022b){var _0x5408f9=function(_0x4ef2ed){while(--_0x4ef2ed){_0x1e4a8e['push'](_0x1e4a8e['shift']());}};_0x5408f9(++_0x18022b);}(_0x21c3,0x1a4));var _0x321c=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x21c3[_0xa464c9];return _0x3d73c4;};'use strict';var util=require(_0x321c('0x0'));var BPromise=require('bluebird');var jayson=require(_0x321c('0x1'));var _=require(_0x321c('0x2'));var logger=require(_0x321c('0x3'))(_0x321c('0x4'));var client=jayson[_0x321c('0x5')]['http']({'port':0x232a});function request(_0x1e8844,_0x2ec299){return new BPromise(function(_0x4bbd54,_0x3ef0a1){return client['request'](_0x1e8844,_0x2ec299)[_0x321c('0x6')](function(_0x590c10){if(_0x590c10[_0x321c('0x7')]){return _0x3ef0a1(_0x590c10[_0x321c('0x7')][_0x321c('0x8')]);}else{return _0x4bbd54(_0x590c10[_0x321c('0x9')]);}})['catch'](function(_0x4fef65){return _0x3ef0a1(_0x4fef65);});});}exports[_0x321c('0xa')]=function(_0x39ce41,_0x433c56,_0x4d2982){return function(_0x20df02){if(_0x4d2982[_0x321c('0xb')]&&!_0x4d2982[_0x321c('0xb')][_0x39ce41]){logger[_0x321c('0xc')](_0x321c('0xd'),_0x39ce41);return _0x20df02[_0x321c('0xe')]();}var _0x2444fb=[];for(var _0x309ea3=0x0;_0x309ea3<_0x433c56[_0x321c('0xf')];_0x309ea3+=0x1){_0x2444fb['push'](request('Command',{'command':util[_0x321c('0x10')](_0x321c('0x11'),_0x433c56[_0x309ea3])})['then'](function(_0x1acf38){return _0x1acf38&&_0x1acf38[_0x321c('0x8')]&&_0x1acf38[_0x321c('0x8')][_0x321c('0x12')](_0x321c('0x13'))>=0x0?!![]:![];})[_0x321c('0x14')](function(_0x10dcaa){logger[_0x321c('0x7')](_0x321c('0x15'),_0x39ce41,_0x433c56[_0x309ea3]);}));}BPromise[_0x321c('0x16')](_0x2444fb)[_0x321c('0x6')](function(_0x3819b0){var _0x1b59df=_[_0x321c('0x17')](_0x3819b0);logger[_0x321c('0xc')](_0x321c('0x18'),_0x39ce41,_0x433c56[_0x321c('0x19')]('\x20|\x20'),_0x1b59df);_0x20df02[_0x321c('0x1a')](_0x1b59df);})[_0x321c('0x14')](function(_0x404af3){console[_0x321c('0x1b')](_0x404af3);logger[_0x321c('0x7')](_0x321c('0x18'),_0x39ce41,_0x433c56['join'](_0x321c('0x1c')),_0x404af3['stack']);_0x20df02[_0x321c('0xe')]();});};};
\ No newline at end of file