Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / routing / server / applications / gotop.js
index 2400274..9631bf9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc451=['stringify','lodash','number','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','validate','error','map','message','join','stop','info','[%s][GOTOP]\x20priority\x20%s','priority','findIndex','rules','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','[%s][GOTOP]\x20%s'];(function(_0x5ebc9a,_0x405dcd){var _0x20d5ae=function(_0x43c067){while(--_0x43c067){_0x5ebc9a['push'](_0x5ebc9a['shift']());}};_0x20d5ae(++_0x405dcd);}(_0xc451,0x8d));var _0x1c45=function(_0x28da7d,_0x360718){_0x28da7d=_0x28da7d-0x0;var _0x53a718=_0xc451[_0x28da7d];return _0x53a718;};'use strict';var schema=require('validate');var _=require(_0x1c45('0x0'));var logger=require('../../../../config/logger')('routing');var gotop=schema({'priority':{'type':_0x1c45('0x1'),'required':!![],'message':_0x1c45('0x2')}});exports[_0x1c45('0x3')]=function(_0x4f6eb2,_0x32b676){return function(_0x8e6904){try{var _0x1a068c={'priority':_0x32b676[0x0]};var _0x4dbc78=gotop[_0x1c45('0x4')](_0x1a068c,{'typecast':!![]});if(_0x4dbc78['length']){logger[_0x1c45('0x5')]('[%s][GOTOP]\x20%s',_0x4f6eb2,_[_0x1c45('0x6')](_0x4dbc78,_0x1c45('0x7'))[_0x1c45('0x8')](',\x20'));_0x8e6904[_0x1c45('0x9')]();}else{logger[_0x1c45('0xa')](_0x1c45('0xb'),_0x4f6eb2,_0x1a068c[_0x1c45('0xc')]);if(_0x1a068c[_0x1c45('0xc')]){var _0x5acf3e=_[_0x1c45('0xd')](_0x8e6904[_0x1c45('0xe')](),{'p':_0x1a068c[_0x1c45('0xc')]});if(_0x5acf3e>=0x0){logger[_0x1c45('0xa')](_0x1c45('0xf'),_0x4f6eb2,_0x1a068c[_0x1c45('0xc')]||_0x1c45('0x10'),_0x5acf3e);_0x8e6904[_0x1c45('0x10')](_0x5acf3e);}else{logger[_0x1c45('0xa')](_0x1c45('0x11'),_0x4f6eb2,_0x1a068c[_0x1c45('0xc')]||_0x1c45('0x10'));_0x8e6904[_0x1c45('0x9')]();}}else{_0x8e6904[_0x1c45('0x10')]();}}}catch(_0x183ffb){logger[_0x1c45('0x5')](_0x1c45('0x12'),_0x4f6eb2,JSON[_0x1c45('0x13')](_0x183ffb));_0x8e6904[_0x1c45('0x9')]();}};};
\ No newline at end of file
+var _0xd11c=['../../../../config/logger','routing','number','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','validate','[%s][GOTOP]\x20%s','map','message','join','stop','[%s][GOTOP]\x20priority\x20%s','priority','findIndex','rules','info','next','error','stringify','lodash'];(function(_0x4cae4e,_0x286828){var _0x1052f4=function(_0x5bf422){while(--_0x5bf422){_0x4cae4e['push'](_0x4cae4e['shift']());}};_0x1052f4(++_0x286828);}(_0xd11c,0x13f));var _0xcd11=function(_0x53ce77,_0x485779){_0x53ce77=_0x53ce77-0x0;var _0x2a373f=_0xd11c[_0x53ce77];return _0x2a373f;};'use strict';var schema=require('validate');var _=require(_0xcd11('0x0'));var logger=require(_0xcd11('0x1'))(_0xcd11('0x2'));var gotop=schema({'priority':{'type':_0xcd11('0x3'),'required':!![],'message':_0xcd11('0x4')}});exports[_0xcd11('0x5')]=function(_0x46beda,_0x2e0fb2){return function(_0x124116){try{var _0x3c9ff9={'priority':_0x2e0fb2[0x0]};var _0x1c3dec=gotop[_0xcd11('0x6')](_0x3c9ff9,{'typecast':!![]});if(_0x1c3dec['length']){logger['error'](_0xcd11('0x7'),_0x46beda,_[_0xcd11('0x8')](_0x1c3dec,_0xcd11('0x9'))[_0xcd11('0xa')](',\x20'));_0x124116[_0xcd11('0xb')]();}else{logger['info'](_0xcd11('0xc'),_0x46beda,_0x3c9ff9[_0xcd11('0xd')]);if(_0x3c9ff9[_0xcd11('0xd')]){var _0x5ba2a2=_[_0xcd11('0xe')](_0x124116[_0xcd11('0xf')](),{'p':_0x3c9ff9['priority']});if(_0x5ba2a2>=0x0){logger[_0xcd11('0x10')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x46beda,_0x3c9ff9[_0xcd11('0xd')]||'next',_0x5ba2a2);_0x124116[_0xcd11('0x11')](_0x5ba2a2);}else{logger[_0xcd11('0x10')]('[%s][GOTOP]\x20priority\x20%s\x20not\x20found',_0x46beda,_0x3c9ff9['priority']||_0xcd11('0x11'));_0x124116['stop']();}}else{_0x124116[_0xcd11('0x11')]();}}}catch(_0x309ba6){logger[_0xcd11('0x12')]('[%s][GOTOP]\x20%s',_0x46beda,JSON[_0xcd11('0x13')](_0x309ba6));_0x124116['stop']();}};};
\ No newline at end of file