Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / routing / server / applications / gotop.js
index 313265d..efe31f7 100644 (file)
@@ -1 +1 @@
-const a1371_0x29e7=['rules','[%s][GOTOP]\x20priority\x20%s','stop','[%s][GOTOP]\x20%s','message','validate','../../../../config/logger','error','length','next','info','stringify','priority','consequence','lodash','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','map','routing'];(function(_0x3ba555,_0x511bcb){const _0x29e7dc=function(_0x367d46){while(--_0x367d46){_0x3ba555['push'](_0x3ba555['shift']());}};_0x29e7dc(++_0x511bcb);}(a1371_0x29e7,0x1a1));const a1371_0x367d=function(_0x3ba555,_0x511bcb){_0x3ba555=_0x3ba555-0x9f;let _0x29e7dc=a1371_0x29e7[_0x3ba555];return _0x29e7dc;};const a1371_0xd4f066=a1371_0x367d;'use strict';const schema=require(a1371_0xd4f066(0xa1)),_=require(a1371_0xd4f066(0xaa)),logger=require(a1371_0xd4f066(0xa2))(a1371_0xd4f066(0xad)),gotop=schema({'priority':{'type':'number','required':!![],'message':a1371_0xd4f066(0xab)}});exports[a1371_0xd4f066(0xa9)]=function(_0x327fbb,_0x509ee8){return function(_0x2b338e){const _0x25d41f=a1371_0x367d;try{const _0x258708={'priority':_0x509ee8[0x0]},_0x19a182=gotop['validate'](_0x258708,{'typecast':!![]});if(_0x19a182[_0x25d41f(0xa4)])logger[_0x25d41f(0xa3)](_0x25d41f(0x9f),_0x327fbb,_[_0x25d41f(0xac)](_0x19a182,_0x25d41f(0xa0))['join'](',\x20')),_0x2b338e[_0x25d41f(0xb0)]();else{logger[_0x25d41f(0xa6)](_0x25d41f(0xaf),_0x327fbb,_0x258708[_0x25d41f(0xa8)]);if(_0x258708[_0x25d41f(0xa8)]){const _0x5d4382=_['findIndex'](_0x2b338e[_0x25d41f(0xae)](),{'p':_0x258708['priority']});_0x5d4382>=0x0?(logger[_0x25d41f(0xa6)]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x327fbb,_0x258708['priority']||_0x25d41f(0xa5),_0x5d4382),_0x2b338e['next'](_0x5d4382)):(logger[_0x25d41f(0xa6)]('[%s][GOTOP]\x20priority\x20%s\x20not\x20found',_0x327fbb,_0x258708['priority']||_0x25d41f(0xa5)),_0x2b338e['stop']());}else _0x2b338e[_0x25d41f(0xa5)]();}}catch(_0x11af1e){logger[_0x25d41f(0xa3)](_0x25d41f(0x9f),_0x327fbb,JSON[_0x25d41f(0xa7)](_0x11af1e)),_0x2b338e['stop']();}};};
\ No newline at end of file
+const a1375_0x1bd0=['next','message','stop','error','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','join','validate','number','[%s][GOTOP]\x20priority\x20%s','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','findIndex','stringify','info','priority','map','[%s][GOTOP]\x20%s'];(function(_0x139f0e,_0x2e3e6a){const _0x1bd0f1=function(_0x2c5c34){while(--_0x2c5c34){_0x139f0e['push'](_0x139f0e['shift']());}};_0x1bd0f1(++_0x2e3e6a);}(a1375_0x1bd0,0xe0));const a1375_0x2c5c=function(_0x139f0e,_0x2e3e6a){_0x139f0e=_0x139f0e-0x98;let _0x1bd0f1=a1375_0x1bd0[_0x139f0e];return _0x1bd0f1;};const a1375_0x2c2776=a1375_0x2c5c;'use strict';const schema=require('validate'),_=require('lodash'),logger=require('../../../../config/logger')('routing'),gotop=schema({'priority':{'type':a1375_0x2c2776(0x9f),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports['consequence']=function(_0x16b01f,_0x3f8205){return function(_0x4a8516){const _0x188406=a1375_0x2c5c;try{const _0x2c3839={'priority':_0x3f8205[0x0]},_0x2a9ac3=gotop[_0x188406(0x9e)](_0x2c3839,{'typecast':!![]});if(_0x2a9ac3['length'])logger[_0x188406(0x9b)](_0x188406(0xa7),_0x16b01f,_[_0x188406(0xa6)](_0x2a9ac3,_0x188406(0x99))[_0x188406(0x9d)](',\x20')),_0x4a8516[_0x188406(0x9a)]();else{logger[_0x188406(0xa4)](_0x188406(0xa0),_0x16b01f,_0x2c3839['priority']);if(_0x2c3839[_0x188406(0xa5)]){const _0x4e9bb0=_[_0x188406(0xa2)](_0x4a8516['rules'](),{'p':_0x2c3839[_0x188406(0xa5)]});_0x4e9bb0>=0x0?(logger[_0x188406(0xa4)](_0x188406(0x9c),_0x16b01f,_0x2c3839[_0x188406(0xa5)]||_0x188406(0x98),_0x4e9bb0),_0x4a8516[_0x188406(0x98)](_0x4e9bb0)):(logger[_0x188406(0xa4)](_0x188406(0xa1),_0x16b01f,_0x2c3839[_0x188406(0xa5)]||'next'),_0x4a8516[_0x188406(0x9a)]());}else _0x4a8516[_0x188406(0x98)]();}}catch(_0x9f755){logger[_0x188406(0x9b)](_0x188406(0xa7),_0x16b01f,JSON[_0x188406(0xa3)](_0x9f755)),_0x4a8516[_0x188406(0x9a)]();}};};
\ No newline at end of file