Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / routing / server / interval.js
index fc0ed12..9f4abc6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfd4e=['iftime\x20%s','indexOf','true','[%s][INTERVAL]\x20%s','all','some','[%s][INTERVAL]\x20%s\x20%s','join','\x20|\x20','when','log','stack','bluebird','jayson/promise','routing','client','http','request','then','error','message','catch','rules','info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','stop','length','push','Command','format'];(function(_0xf0f151,_0x3fb19a){var _0x1186cc=function(_0x2a7780){while(--_0x2a7780){_0xf0f151['push'](_0xf0f151['shift']());}};_0x1186cc(++_0x3fb19a);}(_0xfd4e,0x174));var _0xefd4=function(_0x2afeb5,_0x52d7fb){_0x2afeb5=_0x2afeb5-0x0;var _0x10ceba=_0xfd4e[_0x2afeb5];return _0x10ceba;};'use strict';var util=require('util');var BPromise=require(_0xefd4('0x0'));var jayson=require(_0xefd4('0x1'));var _=require('lodash');var logger=require('../../../config/logger')(_0xefd4('0x2'));var client=jayson[_0xefd4('0x3')][_0xefd4('0x4')]({'port':0x232a});function request(_0x2e3263,_0xe16601){return new BPromise(function(_0x3ed315,_0x5a27f7){return client[_0xefd4('0x5')](_0x2e3263,_0xe16601)[_0xefd4('0x6')](function(_0x3c336f){if(_0x3c336f['error']){return _0x5a27f7(_0x3c336f[_0xefd4('0x7')][_0xefd4('0x8')]);}else{return _0x3ed315(_0x3c336f['result']);}})[_0xefd4('0x9')](function(_0x46525d){return _0x5a27f7(_0x46525d);});});}exports['condition']=function(_0x1ad454,_0x45f1b8,_0x49c56b){return function(_0x43f891){if(_0x49c56b['rules']&&!_0x49c56b[_0xefd4('0xa')][_0x1ad454]){logger[_0xefd4('0xb')](_0xefd4('0xc'),_0x1ad454);return _0x43f891[_0xefd4('0xd')]();}var _0x685691=[];for(var _0x23d6af=0x0;_0x23d6af<_0x45f1b8[_0xefd4('0xe')];_0x23d6af+=0x1){_0x685691[_0xefd4('0xf')](request(_0xefd4('0x10'),{'command':util[_0xefd4('0x11')](_0xefd4('0x12'),_0x45f1b8[_0x23d6af])})[_0xefd4('0x6')](function(_0x133c89){return _0x133c89&&_0x133c89[_0xefd4('0x8')]&&_0x133c89['message'][_0xefd4('0x13')](_0xefd4('0x14'))>=0x0?!![]:![];})[_0xefd4('0x9')](function(_0x29927e){logger[_0xefd4('0x7')](_0xefd4('0x15'),_0x1ad454,_0x45f1b8[_0x23d6af]);}));}BPromise[_0xefd4('0x16')](_0x685691)[_0xefd4('0x6')](function(_0x11ed96){var _0x4c091e=_[_0xefd4('0x17')](_0x11ed96);logger[_0xefd4('0xb')](_0xefd4('0x18'),_0x1ad454,_0x45f1b8[_0xefd4('0x19')](_0xefd4('0x1a')),_0x4c091e);_0x43f891[_0xefd4('0x1b')](_0x4c091e);})[_0xefd4('0x9')](function(_0x1feec2){console[_0xefd4('0x1c')](_0x1feec2);logger['error'](_0xefd4('0x18'),_0x1ad454,_0x45f1b8[_0xefd4('0x19')](_0xefd4('0x1a')),_0x1feec2[_0xefd4('0x1d')]);_0x43f891[_0xefd4('0xd')]();});};};
\ No newline at end of file
+var _0xc6cb=['request','then','error','result','catch','condition','rules','info','[%s][INTERVAL]\x20ROUTING\x20STOPPED','stop','length','push','Command','iftime\x20%s','message','indexOf','true','[%s][INTERVAL]\x20%s','all','some','[%s][INTERVAL]\x20%s\x20%s','join','\x20|\x20','log','stack','bluebird','jayson/promise','lodash','../../../config/logger','routing','client','http'];(function(_0x4d585f,_0x184101){var _0x537af8=function(_0x191c73){while(--_0x191c73){_0x4d585f['push'](_0x4d585f['shift']());}};_0x537af8(++_0x184101);}(_0xc6cb,0x79));var _0xbc6c=function(_0x2a8925,_0x7245af){_0x2a8925=_0x2a8925-0x0;var _0x38c067=_0xc6cb[_0x2a8925];return _0x38c067;};'use strict';var util=require('util');var BPromise=require(_0xbc6c('0x0'));var jayson=require(_0xbc6c('0x1'));var _=require(_0xbc6c('0x2'));var logger=require(_0xbc6c('0x3'))(_0xbc6c('0x4'));var client=jayson[_0xbc6c('0x5')][_0xbc6c('0x6')]({'port':0x232a});function request(_0x56bca0,_0x25276e){return new BPromise(function(_0x260cfd,_0x566722){return client[_0xbc6c('0x7')](_0x56bca0,_0x25276e)[_0xbc6c('0x8')](function(_0x35a147){if(_0x35a147[_0xbc6c('0x9')]){return _0x566722(_0x35a147['error']['message']);}else{return _0x260cfd(_0x35a147[_0xbc6c('0xa')]);}})[_0xbc6c('0xb')](function(_0x29f0f3){return _0x566722(_0x29f0f3);});});}exports[_0xbc6c('0xc')]=function(_0x3508aa,_0x19847c,_0x3b932c){return function(_0x3c1c65){if(_0x3b932c[_0xbc6c('0xd')]&&!_0x3b932c['rules'][_0x3508aa]){logger[_0xbc6c('0xe')](_0xbc6c('0xf'),_0x3508aa);return _0x3c1c65[_0xbc6c('0x10')]();}var _0x476c83=[];for(var _0x51cccd=0x0;_0x51cccd<_0x19847c[_0xbc6c('0x11')];_0x51cccd+=0x1){_0x476c83[_0xbc6c('0x12')](request(_0xbc6c('0x13'),{'command':util['format'](_0xbc6c('0x14'),_0x19847c[_0x51cccd])})[_0xbc6c('0x8')](function(_0x12e789){return _0x12e789&&_0x12e789[_0xbc6c('0x15')]&&_0x12e789[_0xbc6c('0x15')][_0xbc6c('0x16')](_0xbc6c('0x17'))>=0x0?!![]:![];})[_0xbc6c('0xb')](function(_0x1bbbbe){logger['error'](_0xbc6c('0x18'),_0x3508aa,_0x19847c[_0x51cccd]);}));}BPromise[_0xbc6c('0x19')](_0x476c83)[_0xbc6c('0x8')](function(_0x24d77f){var _0x42a5a7=_[_0xbc6c('0x1a')](_0x24d77f);logger[_0xbc6c('0xe')](_0xbc6c('0x1b'),_0x3508aa,_0x19847c[_0xbc6c('0x1c')](_0xbc6c('0x1d')),_0x42a5a7);_0x3c1c65['when'](_0x42a5a7);})[_0xbc6c('0xb')](function(_0x194520){console[_0xbc6c('0x1e')](_0x194520);logger[_0xbc6c('0x9')](_0xbc6c('0x1b'),_0x3508aa,_0x19847c[_0xbc6c('0x1c')](_0xbc6c('0x1d')),_0x194520[_0xbc6c('0x1f')]);_0x3c1c65[_0xbc6c('0x10')]();});};};
\ No newline at end of file