Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / routing / server / applications / gotop.js
index 6df35df..a3910f5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4b35=['rules','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','stringify','validate','lodash','routing','number','consequence','length','error','map','message','join','stop','info','[%s][GOTOP]\x20priority\x20%s','priority','findIndex'];(function(_0xda1001,_0x50c948){var _0x1b6534=function(_0x3b58ea){while(--_0x3b58ea){_0xda1001['push'](_0xda1001['shift']());}};_0x1b6534(++_0x50c948);}(_0x4b35,0xcd));var _0x54b3=function(_0xb61065,_0x159992){_0xb61065=_0xb61065-0x0;var _0x3f3fcb=_0x4b35[_0xb61065];return _0x3f3fcb;};'use strict';var schema=require(_0x54b3('0x0'));var _=require(_0x54b3('0x1'));var logger=require('../../../../config/logger')(_0x54b3('0x2'));var gotop=schema({'priority':{'type':_0x54b3('0x3'),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports[_0x54b3('0x4')]=function(_0x491335,_0x15dd75){return function(_0x494add){try{var _0x37154e={'priority':_0x15dd75[0x0]};var _0x464614=gotop['validate'](_0x37154e,{'typecast':!![]});if(_0x464614[_0x54b3('0x5')]){logger[_0x54b3('0x6')]('[%s][GOTOP]\x20%s',_0x491335,_[_0x54b3('0x7')](_0x464614,_0x54b3('0x8'))[_0x54b3('0x9')](',\x20'));_0x494add[_0x54b3('0xa')]();}else{logger[_0x54b3('0xb')](_0x54b3('0xc'),_0x491335,_0x37154e[_0x54b3('0xd')]);if(_0x37154e[_0x54b3('0xd')]){var _0x469e65=_[_0x54b3('0xe')](_0x494add[_0x54b3('0xf')](),{'p':_0x37154e[_0x54b3('0xd')]});if(_0x469e65>=0x0){logger['info'](_0x54b3('0x10'),_0x491335,_0x37154e[_0x54b3('0xd')]||_0x54b3('0x11'),_0x469e65);_0x494add[_0x54b3('0x11')](_0x469e65);}else{logger[_0x54b3('0xb')](_0x54b3('0x12'),_0x491335,_0x37154e[_0x54b3('0xd')]||_0x54b3('0x11'));_0x494add[_0x54b3('0xa')]();}}else{_0x494add['next']();}}}catch(_0x1886e6){logger[_0x54b3('0x6')]('[%s][GOTOP]\x20%s',_0x491335,JSON[_0x54b3('0x13')](_0x1886e6));_0x494add[_0x54b3('0xa')]();}};};
\ No newline at end of file
+var _0xca01=['[%s][GOTOP]\x20priority\x20%s','priority','findIndex','rules','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','lodash','../../../../config/logger','routing','number','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','validate','length','error','[%s][GOTOP]\x20%s','map','message','stop','info'];(function(_0x4ec7a0,_0x36d7b9){var _0xa74dae=function(_0x1312e9){while(--_0x1312e9){_0x4ec7a0['push'](_0x4ec7a0['shift']());}};_0xa74dae(++_0x36d7b9);}(_0xca01,0x182));var _0x1ca0=function(_0x26dec8,_0x5761af){_0x26dec8=_0x26dec8-0x0;var _0x33ac92=_0xca01[_0x26dec8];return _0x33ac92;};'use strict';var schema=require('validate');var _=require(_0x1ca0('0x0'));var logger=require(_0x1ca0('0x1'))(_0x1ca0('0x2'));var gotop=schema({'priority':{'type':_0x1ca0('0x3'),'required':!![],'message':_0x1ca0('0x4')}});exports[_0x1ca0('0x5')]=function(_0x2db802,_0x2264d9){return function(_0x33b7e0){try{var _0x3fafe5={'priority':_0x2264d9[0x0]};var _0x3be9b3=gotop[_0x1ca0('0x6')](_0x3fafe5,{'typecast':!![]});if(_0x3be9b3[_0x1ca0('0x7')]){logger[_0x1ca0('0x8')](_0x1ca0('0x9'),_0x2db802,_[_0x1ca0('0xa')](_0x3be9b3,_0x1ca0('0xb'))['join'](',\x20'));_0x33b7e0[_0x1ca0('0xc')]();}else{logger[_0x1ca0('0xd')](_0x1ca0('0xe'),_0x2db802,_0x3fafe5['priority']);if(_0x3fafe5[_0x1ca0('0xf')]){var _0x10a409=_[_0x1ca0('0x10')](_0x33b7e0[_0x1ca0('0x11')](),{'p':_0x3fafe5[_0x1ca0('0xf')]});if(_0x10a409>=0x0){logger[_0x1ca0('0xd')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x2db802,_0x3fafe5[_0x1ca0('0xf')]||_0x1ca0('0x12'),_0x10a409);_0x33b7e0['next'](_0x10a409);}else{logger[_0x1ca0('0xd')](_0x1ca0('0x13'),_0x2db802,_0x3fafe5['priority']||_0x1ca0('0x12'));_0x33b7e0[_0x1ca0('0xc')]();}}else{_0x33b7e0['next']();}}}catch(_0x534413){logger[_0x1ca0('0x8')](_0x1ca0('0x9'),_0x2db802,JSON['stringify'](_0x534413));_0x33b7e0['stop']();}};};
\ No newline at end of file