Built motion from commit 97153652.|2.6.26
[motion2.git] / server / services / routing / server / applications / system.js
index 63f41fd..a57f228 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1c4f=['[%s][SYSTEM]\x20no\x20variable','body','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','[%s][SYSTEM]\x20%s','isObject','stringify','validate','shelljs','lodash','../../../../config/logger','routing','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','consequence','length','error','map','message','join','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','next','getMustacheRender','info','trim','[%s][SYSTEM]\x20result\x20code:\x20%s','replace','isEmpty'];(function(_0x4d5c1c,_0x528c84){var _0xece11a=function(_0x536832){while(--_0x536832){_0x4d5c1c['push'](_0x4d5c1c['shift']());}};_0xece11a(++_0x528c84);}(_0x1c4f,0x1f4));var _0xf1c4=function(_0x4b3eb0,_0x24fb3b){_0x4b3eb0=_0x4b3eb0-0x0;var _0x352a69=_0x1c4f[_0x4b3eb0];return _0x352a69;};'use strict';var schema=require(_0xf1c4('0x0'));var sh=require(_0xf1c4('0x1'));var _=require(_0xf1c4('0x2'));var utils=require('./utils');var logger=require(_0xf1c4('0x3'))(_0xf1c4('0x4'));var system=schema({'command':{'type':'string','required':!![],'message':_0xf1c4('0x5')}});exports[_0xf1c4('0x6')]=function(_0x3e3ba9,_0x5f4827){return function(_0x2ca074){try{var _0xedb6c9={'command':_0x5f4827[0x0]};var _0x7ba7d1=system[_0xf1c4('0x0')](_0xedb6c9,{'typecast':!![]});if(_0x7ba7d1[_0xf1c4('0x7')]){logger[_0xf1c4('0x8')]('[%s][SYSTEM]\x20%s',_0x3e3ba9,_[_0xf1c4('0x9')](_0x7ba7d1,_0xf1c4('0xa'))[_0xf1c4('0xb')](',\x20'));logger['info'](_0xf1c4('0xc'),_0x3e3ba9);_0x2ca074[_0xf1c4('0xd')]();}else{var _0x1f7c5b=this;var _0x1b96ee=utils[_0xf1c4('0xe')](_0x5f4827[0x0],this);logger[_0xf1c4('0xf')]('[%s][SYSTEM]\x20commnad:\x20%s',_0x3e3ba9,_0x1b96ee);sh['exec'](_[_0xf1c4('0x10')](_0x1b96ee),function(_0x881426,_0x3206d4){logger[_0xf1c4('0xf')](_0xf1c4('0x11'),_0x3e3ba9,_0x881426);if(_0x881426==0x0){var _0x2f7302=_0x3206d4[_0xf1c4('0x12')](/(\r\n|\n|\r)/gm,'');if(_['isNil'](_0x5f4827[0x1])||_[_0xf1c4('0x13')](_0x5f4827[0x1])){logger['info'](_0xf1c4('0x14'),_0x3e3ba9);_0x1f7c5b[_0xf1c4('0x15')][_0x5f4827[0x1]]=_0x2f7302;}else{logger[_0xf1c4('0xf')](_0xf1c4('0x16'),_0x3e3ba9,_0x5f4827[0x1],_0x2f7302);_0x1f7c5b[_0xf1c4('0x15')][_0x5f4827[0x1]]=_0x2f7302;}}_0x2ca074[_0xf1c4('0xd')]();});}}catch(_0x30efff){logger[_0xf1c4('0x8')](_0xf1c4('0x17'),_0x3e3ba9,_[_0xf1c4('0x18')](_0x30efff)?JSON[_0xf1c4('0x19')](_0x30efff):_0x30efff);logger['info'](_0xf1c4('0xc'),_0x3e3ba9);_0x2ca074['next']();}};};
\ No newline at end of file
+var _0xf13e=['isEmpty','[%s][SYSTEM]\x20no\x20variable','body','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','error','isObject','validate','shelljs','lodash','./utils','../../../../config/logger','routing','consequence','[%s][SYSTEM]\x20%s','message','join','info','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','next','getMustacheRender','[%s][SYSTEM]\x20commnad:\x20%s','exec','trim','[%s][SYSTEM]\x20result\x20code:\x20%s','replace'];(function(_0x4b7067,_0x365795){var _0x2c93be=function(_0x4f21af){while(--_0x4f21af){_0x4b7067['push'](_0x4b7067['shift']());}};_0x2c93be(++_0x365795);}(_0xf13e,0x6a));var _0xef13=function(_0x572dd8,_0x227286){_0x572dd8=_0x572dd8-0x0;var _0x4e3e5a=_0xf13e[_0x572dd8];return _0x4e3e5a;};'use strict';var schema=require(_0xef13('0x0'));var sh=require(_0xef13('0x1'));var _=require(_0xef13('0x2'));var utils=require(_0xef13('0x3'));var logger=require(_0xef13('0x4'))(_0xef13('0x5'));var system=schema({'command':{'type':'string','required':!![],'message':'command\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0xef13('0x6')]=function(_0x1c51d0,_0x287fb8){return function(_0x2e2545){try{var _0x570bd5={'command':_0x287fb8[0x0]};var _0x41da9c=system[_0xef13('0x0')](_0x570bd5,{'typecast':!![]});if(_0x41da9c['length']){logger['error'](_0xef13('0x7'),_0x1c51d0,_['map'](_0x41da9c,_0xef13('0x8'))[_0xef13('0x9')](',\x20'));logger[_0xef13('0xa')](_0xef13('0xb'),_0x1c51d0);_0x2e2545[_0xef13('0xc')]();}else{var _0x1ceeac=this;var _0x57e95c=utils[_0xef13('0xd')](_0x287fb8[0x0],this);logger[_0xef13('0xa')](_0xef13('0xe'),_0x1c51d0,_0x57e95c);sh[_0xef13('0xf')](_[_0xef13('0x10')](_0x57e95c),function(_0x1a3ef1,_0x1f6287){logger['info'](_0xef13('0x11'),_0x1c51d0,_0x1a3ef1);if(_0x1a3ef1==0x0){var _0x44d8bf=_0x1f6287[_0xef13('0x12')](/(\r\n|\n|\r)/gm,'');if(_['isNil'](_0x287fb8[0x1])||_[_0xef13('0x13')](_0x287fb8[0x1])){logger['info'](_0xef13('0x14'),_0x1c51d0);_0x1ceeac[_0xef13('0x15')][_0x287fb8[0x1]]=_0x44d8bf;}else{logger[_0xef13('0xa')](_0xef13('0x16'),_0x1c51d0,_0x287fb8[0x1],_0x44d8bf);_0x1ceeac[_0xef13('0x15')][_0x287fb8[0x1]]=_0x44d8bf;}}_0x2e2545[_0xef13('0xc')]();});}}catch(_0x2dcbdf){logger[_0xef13('0x17')](_0xef13('0x7'),_0x1c51d0,_[_0xef13('0x18')](_0x2dcbdf)?JSON['stringify'](_0x2dcbdf):_0x2dcbdf);logger[_0xef13('0xa')]('[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next',_0x1c51d0);_0x2e2545[_0xef13('0xc')]();}};};
\ No newline at end of file