Built motion from commit 5ae82ce5.|2.6.7
[motion2.git] / server / services / routing / server / applications / gotop.js
index 6d8d9ed..32857f0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x516c=['priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','length','error','[%s][GOTOP]\x20%s','join','stop','priority','rules','info','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','stringify','validate','../../../../config/logger','routing'];(function(_0x58f401,_0x1136c9){var _0x146e3d=function(_0x249501){while(--_0x249501){_0x58f401['push'](_0x58f401['shift']());}};_0x146e3d(++_0x1136c9);}(_0x516c,0x1d9));var _0xc516=function(_0x1899f0,_0x12d7e4){_0x1899f0=_0x1899f0-0x0;var _0x14e375=_0x516c[_0x1899f0];return _0x14e375;};'use strict';var schema=require(_0xc516('0x0'));var _=require('lodash');var logger=require(_0xc516('0x1'))(_0xc516('0x2'));var gotop=schema({'priority':{'type':'number','required':!![],'message':_0xc516('0x3')}});exports[_0xc516('0x4')]=function(_0x3e03cf,_0x429a32){return function(_0x11e9ab){try{var _0x51036f={'priority':_0x429a32[0x0]};var _0x152b47=gotop[_0xc516('0x0')](_0x51036f,{'typecast':!![]});if(_0x152b47[_0xc516('0x5')]){logger[_0xc516('0x6')](_0xc516('0x7'),_0x3e03cf,_['map'](_0x152b47,'message')[_0xc516('0x8')](',\x20'));_0x11e9ab[_0xc516('0x9')]();}else{logger['info']('[%s][GOTOP]\x20priority\x20%s',_0x3e03cf,_0x51036f['priority']);if(_0x51036f[_0xc516('0xa')]){var _0x357050=_['findIndex'](_0x11e9ab[_0xc516('0xb')](),{'p':_0x51036f[_0xc516('0xa')]});if(_0x357050>=0x0){logger[_0xc516('0xc')](_0xc516('0xd'),_0x3e03cf,_0x51036f['priority']||_0xc516('0xe'),_0x357050);_0x11e9ab[_0xc516('0xe')](_0x357050);}else{logger['info'](_0xc516('0xf'),_0x3e03cf,_0x51036f[_0xc516('0xa')]||'next');_0x11e9ab[_0xc516('0x9')]();}}else{_0x11e9ab['next']();}}}catch(_0xa845b4){logger[_0xc516('0x6')](_0xc516('0x7'),_0x3e03cf,JSON[_0xc516('0x10')](_0xa845b4));_0x11e9ab[_0xc516('0x9')]();}};};
\ No newline at end of file
+var _0x8b13=['map','message','join','stop','info','priority','findIndex','rules','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','next','validate','lodash','../../../../config/logger','routing','number','consequence','length','error','[%s][GOTOP]\x20%s'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x8b13,0x1ac));var _0x38b1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8b13[_0x3dd15e];return _0x231fd0;};'use strict';var schema=require(_0x38b1('0x0'));var _=require(_0x38b1('0x1'));var logger=require(_0x38b1('0x2'))(_0x38b1('0x3'));var gotop=schema({'priority':{'type':_0x38b1('0x4'),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports[_0x38b1('0x5')]=function(_0x1f321b,_0x17dd68){return function(_0x2a7859){try{var _0x2f94fd={'priority':_0x17dd68[0x0]};var _0x13f520=gotop[_0x38b1('0x0')](_0x2f94fd,{'typecast':!![]});if(_0x13f520[_0x38b1('0x6')]){logger[_0x38b1('0x7')](_0x38b1('0x8'),_0x1f321b,_[_0x38b1('0x9')](_0x13f520,_0x38b1('0xa'))[_0x38b1('0xb')](',\x20'));_0x2a7859[_0x38b1('0xc')]();}else{logger[_0x38b1('0xd')]('[%s][GOTOP]\x20priority\x20%s',_0x1f321b,_0x2f94fd['priority']);if(_0x2f94fd[_0x38b1('0xe')]){var _0xbf6908=_[_0x38b1('0xf')](_0x2a7859[_0x38b1('0x10')](),{'p':_0x2f94fd[_0x38b1('0xe')]});if(_0xbf6908>=0x0){logger[_0x38b1('0xd')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x1f321b,_0x2f94fd[_0x38b1('0xe')]||'next',_0xbf6908);_0x2a7859['next'](_0xbf6908);}else{logger['info'](_0x38b1('0x11'),_0x1f321b,_0x2f94fd[_0x38b1('0xe')]||'next');_0x2a7859[_0x38b1('0xc')]();}}else{_0x2a7859[_0x38b1('0x12')]();}}}catch(_0x1a7ff0){logger[_0x38b1('0x7')](_0x38b1('0x8'),_0x1f321b,JSON['stringify'](_0x1a7ff0));_0x2a7859[_0x38b1('0xc')]();}};};
\ No newline at end of file