Built motion from commit 980b26c3.|2.6.29
[motion2.git] / server / services / routing / server / applications / gotop.js
index 56e5aa0..d88ecf9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x974b=['info','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','stop','stringify','validate','lodash','../../../../config/logger','routing','number','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','error','[%s][GOTOP]\x20%s','message','join','[%s][GOTOP]\x20priority\x20%s','priority','findIndex','rules'];(function(_0x2bbcde,_0x216bc5){var _0x3e1b74=function(_0x3cf024){while(--_0x3cf024){_0x2bbcde['push'](_0x2bbcde['shift']());}};_0x3e1b74(++_0x216bc5);}(_0x974b,0x11d));var _0xb974=function(_0xf1603b,_0x257c11){_0xf1603b=_0xf1603b-0x0;var _0x298fab=_0x974b[_0xf1603b];return _0x298fab;};'use strict';var schema=require(_0xb974('0x0'));var _=require(_0xb974('0x1'));var logger=require(_0xb974('0x2'))(_0xb974('0x3'));var gotop=schema({'priority':{'type':_0xb974('0x4'),'required':!![],'message':_0xb974('0x5')}});exports[_0xb974('0x6')]=function(_0x4b3963,_0x5287d){return function(_0x4c8d59){try{var _0x31355a={'priority':_0x5287d[0x0]};var _0x4bd164=gotop['validate'](_0x31355a,{'typecast':!![]});if(_0x4bd164['length']){logger[_0xb974('0x7')](_0xb974('0x8'),_0x4b3963,_['map'](_0x4bd164,_0xb974('0x9'))[_0xb974('0xa')](',\x20'));_0x4c8d59['stop']();}else{logger['info'](_0xb974('0xb'),_0x4b3963,_0x31355a[_0xb974('0xc')]);if(_0x31355a[_0xb974('0xc')]){var _0x50522d=_[_0xb974('0xd')](_0x4c8d59[_0xb974('0xe')](),{'p':_0x31355a[_0xb974('0xc')]});if(_0x50522d>=0x0){logger[_0xb974('0xf')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x4b3963,_0x31355a['priority']||_0xb974('0x10'),_0x50522d);_0x4c8d59['next'](_0x50522d);}else{logger[_0xb974('0xf')](_0xb974('0x11'),_0x4b3963,_0x31355a[_0xb974('0xc')]||'next');_0x4c8d59[_0xb974('0x12')]();}}else{_0x4c8d59[_0xb974('0x10')]();}}}catch(_0x246714){logger[_0xb974('0x7')]('[%s][GOTOP]\x20%s',_0x4b3963,JSON[_0xb974('0x13')](_0x246714));_0x4c8d59['stop']();}};};
\ No newline at end of file
+var _0xff68=['lodash','../../../../config/logger','routing','number','consequence','validate','length','error','[%s][GOTOP]\x20%s','map','message','join','info','[%s][GOTOP]\x20priority\x20%s','priority','findIndex','rules','next','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','stringify','stop'];(function(_0x135ff3,_0x3887e4){var _0x245f59=function(_0x170950){while(--_0x170950){_0x135ff3['push'](_0x135ff3['shift']());}};_0x245f59(++_0x3887e4);}(_0xff68,0xd2));var _0x8ff6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xff68[_0x3dd15e];return _0x231fd0;};'use strict';var schema=require('validate');var _=require(_0x8ff6('0x0'));var logger=require(_0x8ff6('0x1'))(_0x8ff6('0x2'));var gotop=schema({'priority':{'type':_0x8ff6('0x3'),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports[_0x8ff6('0x4')]=function(_0x34e06d,_0x118f08){return function(_0x270ab2){try{var _0x3aaf89={'priority':_0x118f08[0x0]};var _0x12db2c=gotop[_0x8ff6('0x5')](_0x3aaf89,{'typecast':!![]});if(_0x12db2c[_0x8ff6('0x6')]){logger[_0x8ff6('0x7')](_0x8ff6('0x8'),_0x34e06d,_[_0x8ff6('0x9')](_0x12db2c,_0x8ff6('0xa'))[_0x8ff6('0xb')](',\x20'));_0x270ab2['stop']();}else{logger[_0x8ff6('0xc')](_0x8ff6('0xd'),_0x34e06d,_0x3aaf89[_0x8ff6('0xe')]);if(_0x3aaf89[_0x8ff6('0xe')]){var _0xfb8372=_[_0x8ff6('0xf')](_0x270ab2[_0x8ff6('0x10')](),{'p':_0x3aaf89['priority']});if(_0xfb8372>=0x0){logger[_0x8ff6('0xc')]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x34e06d,_0x3aaf89['priority']||_0x8ff6('0x11'),_0xfb8372);_0x270ab2['next'](_0xfb8372);}else{logger[_0x8ff6('0xc')](_0x8ff6('0x12'),_0x34e06d,_0x3aaf89[_0x8ff6('0xe')]||_0x8ff6('0x11'));_0x270ab2['stop']();}}else{_0x270ab2[_0x8ff6('0x11')]();}}}catch(_0x2a030a){logger[_0x8ff6('0x7')]('[%s][GOTOP]\x20%s',_0x34e06d,JSON[_0x8ff6('0x13')](_0x2a030a));_0x270ab2[_0x8ff6('0x14')]();}};};
\ No newline at end of file