Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / services / routing / server / applications / system.js
index 91afbc2..b1b6c2e 100644 (file)
@@ -1 +1 @@
-const a1216_0x7889=['message','join','next','getMustacheRender','replace','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','map','routing','./utils','info','error','[%s][SYSTEM]\x20commnad:\x20%s','[%s][SYSTEM]\x20no\x20variable','consequence','validate','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','trim','string','[%s][SYSTEM]\x20%s','isNil','body','[%s][SYSTEM]\x20result\x20code:\x20%s'];(function(_0x339ba3,_0x78896a){const _0x4dda29=function(_0x1c7bbd){while(--_0x1c7bbd){_0x339ba3['push'](_0x339ba3['shift']());}};_0x4dda29(++_0x78896a);}(a1216_0x7889,0xde));const a1216_0x4dda=function(_0x339ba3,_0x78896a){_0x339ba3=_0x339ba3-0x0;let _0x4dda29=a1216_0x7889[_0x339ba3];return _0x4dda29;};const _0x3f697f=a1216_0x4dda;'use strict';const schema=require('validate'),sh=require('shelljs'),_=require('lodash'),utils=require(_0x3f697f('0x6')),logger=require('../../../../config/logger')(_0x3f697f('0x5')),system=schema({'command':{'type':_0x3f697f('0xf'),'required':!![],'message':'command\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x3f697f('0xb')]=function(_0x1c7bbd,_0x5f0524){return function(_0x82b53d){const _0x57f217=a1216_0x4dda;try{const _0x41254d={'command':_0x5f0524[0x0]},_0x1a0f90=system[_0x57f217('0xc')](_0x41254d,{'typecast':!![]});if(_0x1a0f90['length'])logger[_0x57f217('0x8')](_0x57f217('0x10'),_0x1c7bbd,_[_0x57f217('0x4')](_0x1a0f90,_0x57f217('0x14'))[_0x57f217('0x15')](',\x20')),logger[_0x57f217('0x7')](_0x57f217('0xd'),_0x1c7bbd),_0x82b53d[_0x57f217('0x0')]();else{const _0x33dabc=this,_0x23f92f=utils[_0x57f217('0x1')](_0x5f0524[0x0],this);logger[_0x57f217('0x7')](_0x57f217('0x9'),_0x1c7bbd,_0x23f92f),sh['exec'](_[_0x57f217('0xe')](_0x23f92f),function(_0x30064e,_0x4a1e32){const _0x54400d=_0x57f217;logger[_0x54400d('0x7')](_0x54400d('0x13'),_0x1c7bbd,_0x30064e);if(_0x30064e==0x0){const _0x10d286=_0x4a1e32[_0x54400d('0x2')](/(\r\n|\n|\r)/gm,'');_[_0x54400d('0x11')](_0x5f0524[0x1])||_['isEmpty'](_0x5f0524[0x1])?(logger[_0x54400d('0x7')](_0x54400d('0xa'),_0x1c7bbd),_0x33dabc[_0x54400d('0x12')][_0x5f0524[0x1]]=_0x10d286):(logger['info'](_0x54400d('0x3'),_0x1c7bbd,_0x5f0524[0x1],_0x10d286),_0x33dabc[_0x54400d('0x12')][_0x5f0524[0x1]]=_0x10d286);}_0x82b53d[_0x54400d('0x0')]();});}}catch(_0xec96f){logger[_0x57f217('0x8')](_0x57f217('0x10'),_0x1c7bbd,_['isObject'](_0xec96f)?JSON['stringify'](_0xec96f):_0xec96f),logger[_0x57f217('0x7')](_0x57f217('0xd'),_0x1c7bbd),_0x82b53d['next']();}};};
\ No newline at end of file
+const a1216_0x1fab=['error','[%s][SYSTEM]\x20commnad:\x20%s','[%s][SYSTEM]\x20result\x20code:\x20%s','isEmpty','length','trim','consequence','exec','message','map','info','replace','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','getMustacheRender','./utils','../../../../config/logger','next','string','isNil','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','stringify','shelljs','body','[%s][SYSTEM]\x20%s'];(function(_0x4b2009,_0x1fab5b){const _0x32f019=function(_0x5b82ac){while(--_0x5b82ac){_0x4b2009['push'](_0x4b2009['shift']());}};_0x32f019(++_0x1fab5b);}(a1216_0x1fab,0x1b9));const a1216_0x32f0=function(_0x4b2009,_0x1fab5b){_0x4b2009=_0x4b2009-0x0;let _0x32f019=a1216_0x1fab[_0x4b2009];return _0x32f019;};const _0x2e6bfc=a1216_0x32f0;'use strict';const schema=require('validate'),sh=require(_0x2e6bfc('0xc')),_=require('lodash'),utils=require(_0x2e6bfc('0x5')),logger=require(_0x2e6bfc('0x6'))('routing'),system=schema({'command':{'type':_0x2e6bfc('0x8'),'required':!![],'message':'command\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x2e6bfc('0x15')]=function(_0x5b82ac,_0x4dc734){return function(_0x1eb417){const _0x391686=a1216_0x32f0;try{const _0x49875e={'command':_0x4dc734[0x0]},_0x3f9b7a=system['validate'](_0x49875e,{'typecast':!![]});if(_0x3f9b7a[_0x391686('0x13')])logger[_0x391686('0xf')](_0x391686('0xe'),_0x5b82ac,_[_0x391686('0x0')](_0x3f9b7a,_0x391686('0x17'))['join'](',\x20')),logger[_0x391686('0x1')](_0x391686('0x3'),_0x5b82ac),_0x1eb417[_0x391686('0x7')]();else{const _0x19eeba=this,_0x581a70=utils[_0x391686('0x4')](_0x4dc734[0x0],this);logger['info'](_0x391686('0x10'),_0x5b82ac,_0x581a70),sh[_0x391686('0x16')](_[_0x391686('0x14')](_0x581a70),function(_0x5d9eee,_0x407c64){const _0x27ee45=_0x391686;logger[_0x27ee45('0x1')](_0x27ee45('0x11'),_0x5b82ac,_0x5d9eee);if(_0x5d9eee==0x0){const _0x4c7f3d=_0x407c64[_0x27ee45('0x2')](/(\r\n|\n|\r)/gm,'');_[_0x27ee45('0x9')](_0x4dc734[0x1])||_[_0x27ee45('0x12')](_0x4dc734[0x1])?(logger[_0x27ee45('0x1')]('[%s][SYSTEM]\x20no\x20variable',_0x5b82ac),_0x19eeba['body'][_0x4dc734[0x1]]=_0x4c7f3d):(logger[_0x27ee45('0x1')](_0x27ee45('0xa'),_0x5b82ac,_0x4dc734[0x1],_0x4c7f3d),_0x19eeba[_0x27ee45('0xd')][_0x4dc734[0x1]]=_0x4c7f3d);}_0x1eb417[_0x27ee45('0x7')]();});}}catch(_0x8cd9ac){logger[_0x391686('0xf')](_0x391686('0xe'),_0x5b82ac,_['isObject'](_0x8cd9ac)?JSON[_0x391686('0xb')](_0x8cd9ac):_0x8cd9ac),logger[_0x391686('0x1')](_0x391686('0x3'),_0x5b82ac),_0x1eb417[_0x391686('0x7')]();}};};
\ No newline at end of file