Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / routing / server / applications / gotop.js
index c904a28..ef7ae04 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9683=['number','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','validate','error','[%s][GOTOP]\x20%s','map','message','stop','info','priority','rules','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','stringify','lodash','../../../../config/logger','routing'];(function(_0x27062d,_0x2e90f9){var _0x166d7d=function(_0x33b9d8){while(--_0x33b9d8){_0x27062d['push'](_0x27062d['shift']());}};_0x166d7d(++_0x2e90f9);}(_0x9683,0xe1));var _0x3968=function(_0x53f04f,_0x141d6c){_0x53f04f=_0x53f04f-0x0;var _0x1c0457=_0x9683[_0x53f04f];return _0x1c0457;};'use strict';var schema=require('validate');var _=require(_0x3968('0x0'));var logger=require(_0x3968('0x1'))(_0x3968('0x2'));var gotop=schema({'priority':{'type':_0x3968('0x3'),'required':!![],'message':_0x3968('0x4')}});exports[_0x3968('0x5')]=function(_0x278e7d,_0x438770){return function(_0x3b042d){try{var _0x49455e={'priority':_0x438770[0x0]};var _0x1d0543=gotop[_0x3968('0x6')](_0x49455e,{'typecast':!![]});if(_0x1d0543['length']){logger[_0x3968('0x7')](_0x3968('0x8'),_0x278e7d,_[_0x3968('0x9')](_0x1d0543,_0x3968('0xa'))['join'](',\x20'));_0x3b042d[_0x3968('0xb')]();}else{logger[_0x3968('0xc')]('[%s][GOTOP]\x20priority\x20%s',_0x278e7d,_0x49455e['priority']);if(_0x49455e[_0x3968('0xd')]){var _0x17a145=_['findIndex'](_0x3b042d[_0x3968('0xe')](),{'p':_0x49455e[_0x3968('0xd')]});if(_0x17a145>=0x0){logger[_0x3968('0xc')](_0x3968('0xf'),_0x278e7d,_0x49455e[_0x3968('0xd')]||'next',_0x17a145);_0x3b042d[_0x3968('0x10')](_0x17a145);}else{logger[_0x3968('0xc')](_0x3968('0x11'),_0x278e7d,_0x49455e[_0x3968('0xd')]||_0x3968('0x10'));_0x3b042d['stop']();}}else{_0x3b042d[_0x3968('0x10')]();}}}catch(_0x423a6e){logger[_0x3968('0x7')](_0x3968('0x8'),_0x278e7d,JSON[_0x3968('0x12')](_0x423a6e));_0x3b042d[_0x3968('0xb')]();}};};
\ No newline at end of file
+var _0x5a80=['routing','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','length','error','[%s][GOTOP]\x20%s','map','message','join','stop','info','priority','findIndex','rules','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','next','validate','lodash','../../../../config/logger'];(function(_0x43d9f0,_0x48f6d5){var _0x114ba9=function(_0x4eeab6){while(--_0x4eeab6){_0x43d9f0['push'](_0x43d9f0['shift']());}};_0x114ba9(++_0x48f6d5);}(_0x5a80,0x12f));var _0x05a8=function(_0x189102,_0x5f4493){_0x189102=_0x189102-0x0;var _0xf6e074=_0x5a80[_0x189102];return _0xf6e074;};'use strict';var schema=require(_0x05a8('0x0'));var _=require(_0x05a8('0x1'));var logger=require(_0x05a8('0x2'))(_0x05a8('0x3'));var gotop=schema({'priority':{'type':'number','required':!![],'message':_0x05a8('0x4')}});exports['consequence']=function(_0x169a47,_0x24f546){return function(_0x14e594){try{var _0x2eb746={'priority':_0x24f546[0x0]};var _0x145fc6=gotop['validate'](_0x2eb746,{'typecast':!![]});if(_0x145fc6[_0x05a8('0x5')]){logger[_0x05a8('0x6')](_0x05a8('0x7'),_0x169a47,_[_0x05a8('0x8')](_0x145fc6,_0x05a8('0x9'))[_0x05a8('0xa')](',\x20'));_0x14e594[_0x05a8('0xb')]();}else{logger[_0x05a8('0xc')]('[%s][GOTOP]\x20priority\x20%s',_0x169a47,_0x2eb746[_0x05a8('0xd')]);if(_0x2eb746[_0x05a8('0xd')]){var _0x28e383=_[_0x05a8('0xe')](_0x14e594[_0x05a8('0xf')](),{'p':_0x2eb746[_0x05a8('0xd')]});if(_0x28e383>=0x0){logger[_0x05a8('0xc')](_0x05a8('0x10'),_0x169a47,_0x2eb746[_0x05a8('0xd')]||'next',_0x28e383);_0x14e594[_0x05a8('0x11')](_0x28e383);}else{logger[_0x05a8('0xc')]('[%s][GOTOP]\x20priority\x20%s\x20not\x20found',_0x169a47,_0x2eb746['priority']||_0x05a8('0x11'));_0x14e594[_0x05a8('0xb')]();}}else{_0x14e594[_0x05a8('0x11')]();}}}catch(_0x4f7046){logger[_0x05a8('0x6')](_0x05a8('0x7'),_0x169a47,JSON['stringify'](_0x4f7046));_0x14e594['stop']();}};};
\ No newline at end of file