Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / routing / server / applications / gotop.js
index 9a99454..0caedeb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd88c=['priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','error','map','join','stop','info','[%s][GOTOP]\x20priority\x20%s','findIndex','rules','priority','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','[%s][GOTOP]\x20%s','stringify','validate','lodash','../../../../config/logger','routing','number'];(function(_0x504338,_0x27c7f3){var _0x452977=function(_0x51219e){while(--_0x51219e){_0x504338['push'](_0x504338['shift']());}};_0x452977(++_0x27c7f3);}(_0xd88c,0x87));var _0xcd88=function(_0x2577d9,_0x8f2f28){_0x2577d9=_0x2577d9-0x0;var _0x36fe58=_0xd88c[_0x2577d9];return _0x36fe58;};'use strict';var schema=require(_0xcd88('0x0'));var _=require(_0xcd88('0x1'));var logger=require(_0xcd88('0x2'))(_0xcd88('0x3'));var gotop=schema({'priority':{'type':_0xcd88('0x4'),'required':!![],'message':_0xcd88('0x5')}});exports[_0xcd88('0x6')]=function(_0x551f37,_0x32d05c){return function(_0x44d67d){try{var _0x4b0cad={'priority':_0x32d05c[0x0]};var _0x46dba4=gotop[_0xcd88('0x0')](_0x4b0cad,{'typecast':!![]});if(_0x46dba4['length']){logger[_0xcd88('0x7')]('[%s][GOTOP]\x20%s',_0x551f37,_[_0xcd88('0x8')](_0x46dba4,'message')[_0xcd88('0x9')](',\x20'));_0x44d67d[_0xcd88('0xa')]();}else{logger[_0xcd88('0xb')](_0xcd88('0xc'),_0x551f37,_0x4b0cad['priority']);if(_0x4b0cad['priority']){var _0x2c00d8=_[_0xcd88('0xd')](_0x44d67d[_0xcd88('0xe')](),{'p':_0x4b0cad[_0xcd88('0xf')]});if(_0x2c00d8>=0x0){logger[_0xcd88('0xb')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x551f37,_0x4b0cad[_0xcd88('0xf')]||_0xcd88('0x10'),_0x2c00d8);_0x44d67d['next'](_0x2c00d8);}else{logger[_0xcd88('0xb')](_0xcd88('0x11'),_0x551f37,_0x4b0cad[_0xcd88('0xf')]||_0xcd88('0x10'));_0x44d67d[_0xcd88('0xa')]();}}else{_0x44d67d['next']();}}}catch(_0x394f8a){logger[_0xcd88('0x7')](_0xcd88('0x12'),_0x551f37,JSON[_0xcd88('0x13')](_0x394f8a));_0x44d67d[_0xcd88('0xa')]();}};};
\ No newline at end of file
+var _0xfa6c=['join','stop','info','priority','rules','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','lodash','../../../../config/logger','routing','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','validate','error','[%s][GOTOP]\x20%s'];(function(_0x4783e9,_0x5f10c3){var _0x5685be=function(_0x508a93){while(--_0x508a93){_0x4783e9['push'](_0x4783e9['shift']());}};_0x5685be(++_0x5f10c3);}(_0xfa6c,0x143));var _0xcfa6=function(_0x4f19ec,_0x14a319){_0x4f19ec=_0x4f19ec-0x0;var _0x7ef313=_0xfa6c[_0x4f19ec];return _0x7ef313;};'use strict';var schema=require('validate');var _=require(_0xcfa6('0x0'));var logger=require(_0xcfa6('0x1'))(_0xcfa6('0x2'));var gotop=schema({'priority':{'type':'number','required':!![],'message':_0xcfa6('0x3')}});exports['consequence']=function(_0x47427c,_0x5f1d3a){return function(_0xe00ffe){try{var _0x27fc92={'priority':_0x5f1d3a[0x0]};var _0x2057ad=gotop[_0xcfa6('0x4')](_0x27fc92,{'typecast':!![]});if(_0x2057ad['length']){logger[_0xcfa6('0x5')](_0xcfa6('0x6'),_0x47427c,_['map'](_0x2057ad,'message')[_0xcfa6('0x7')](',\x20'));_0xe00ffe[_0xcfa6('0x8')]();}else{logger[_0xcfa6('0x9')]('[%s][GOTOP]\x20priority\x20%s',_0x47427c,_0x27fc92[_0xcfa6('0xa')]);if(_0x27fc92[_0xcfa6('0xa')]){var _0x58e347=_['findIndex'](_0xe00ffe[_0xcfa6('0xb')](),{'p':_0x27fc92[_0xcfa6('0xa')]});if(_0x58e347>=0x0){logger[_0xcfa6('0x9')](_0xcfa6('0xc'),_0x47427c,_0x27fc92[_0xcfa6('0xa')]||_0xcfa6('0xd'),_0x58e347);_0xe00ffe[_0xcfa6('0xd')](_0x58e347);}else{logger[_0xcfa6('0x9')](_0xcfa6('0xe'),_0x47427c,_0x27fc92[_0xcfa6('0xa')]||_0xcfa6('0xd'));_0xe00ffe[_0xcfa6('0x8')]();}}else{_0xe00ffe[_0xcfa6('0xd')]();}}}catch(_0x5954d4){logger[_0xcfa6('0x5')](_0xcfa6('0x6'),_0x47427c,JSON['stringify'](_0x5954d4));_0xe00ffe[_0xcfa6('0x8')]();}};};
\ No newline at end of file