Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / services / routing / server / applications / gotoif.js
index cbf6325..847975e 100644 (file)
@@ -1 +1 @@
-const a1206_0xad8e=['priority\x20false\x20is\x20a\x20number','next','consequence','map','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','condition','length','error','priority\x20true\x20is\x20a\x20number','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','routing','[%s][GOTOIF]\x20%s','stringify','[%s][GOTOIF]\x20eval\x20error:\x20%s','../../../../config/logger','number','stop','string','message','priorityFalse','html-to-text','./utils','replace','info'];(function(_0x23f5a1,_0xad8eae){const _0x1fde39=function(_0x4219fc){while(--_0x4219fc){_0x23f5a1['push'](_0x23f5a1['shift']());}};_0x1fde39(++_0xad8eae);}(a1206_0xad8e,0x7e));const a1206_0x1fde=function(_0x23f5a1,_0xad8eae){_0x23f5a1=_0x23f5a1-0x0;let _0x1fde39=a1206_0xad8e[_0x23f5a1];return _0x1fde39;};const _0xa8deac=a1206_0x1fde;'use strict';const schema=require('validate'),_=require('lodash'),{htmlToText}=require(_0xa8deac('0x0')),utils=require(_0xa8deac('0x1')),logger=require(_0xa8deac('0x14'))(_0xa8deac('0x10')),gotoif=schema({'condition':{'type':_0xa8deac('0x17'),'required':!![],'message':_0xa8deac('0x8')},'priorityTrue':{'type':_0xa8deac('0x15'),'message':_0xa8deac('0xc')},'priorityFalse':{'type':_0xa8deac('0x15'),'message':_0xa8deac('0x4')}});exports[_0xa8deac('0x6')]=function(_0x4219fc,_0x517e6d){return function(_0x8272ab){const _0x27427f=a1206_0x1fde;try{const _0x3d6fa4={'condition':htmlToText(utils['getMustacheRender'](_0x517e6d[0x0],this),{'wordwrap':![]})[_0x27427f('0x2')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x517e6d[0x1],'priorityFalse':_0x517e6d[0x2]},_0x2726f3=gotoif['validate'](_0x3d6fa4,{'typecast':!![]});if(_0x2726f3[_0x27427f('0xa')])logger[_0x27427f('0xb')](_0x27427f('0x11'),_0x4219fc,_[_0x27427f('0x7')](_0x2726f3,_0x27427f('0x18'))['join'](',\x20')),_0x8272ab[_0x27427f('0x16')]();else try{const _0x45c178=eval('('+_0x3d6fa4['condition']+')'),_0x2b1e5f=_0x45c178?_0x3d6fa4['priorityTrue']:_0x3d6fa4[_0x27427f('0x19')];logger['info'](_0x27427f('0xe'),_0x4219fc,_0x3d6fa4[_0x27427f('0x9')],_0x45c178,_0x2b1e5f||_0x27427f('0x5'));if(_0x2b1e5f){const _0x3b4e68=_['findIndex'](_0x8272ab['rules'](),{'p':_0x2b1e5f});_0x3b4e68>=0x0?(logger[_0x27427f('0x3')](_0x27427f('0xd'),_0x4219fc,_0x2b1e5f||_0x27427f('0x5'),_0x3b4e68),_0x8272ab['next'](_0x3b4e68)):(logger[_0x27427f('0x3')](_0x27427f('0xf'),_0x4219fc,_0x2b1e5f||_0x27427f('0x5')),_0x8272ab['stop']());}else _0x8272ab['next']();}catch(_0x4a2dcd){logger[_0x27427f('0xb')](_0x27427f('0x13'),_0x4219fc,_0x4a2dcd['message']),_0x8272ab[_0x27427f('0x16')]();}}catch(_0x33450e){logger[_0x27427f('0xb')](_0x27427f('0x11'),_0x4219fc,JSON[_0x27427f('0x12')](_0x33450e)),_0x8272ab[_0x27427f('0x16')]();}};};
\ No newline at end of file
+const a1206_0x4943=['lodash','priority\x20false\x20is\x20a\x20number','[%s][GOTOIF]\x20eval\x20error:\x20%s','routing','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','stop','priorityFalse','next','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','../../../../config/logger','number','map','error','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','join','validate','length','getMustacheRender','string','replace','consequence','condition','info','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','priorityTrue','[%s][GOTOIF]\x20%s','priority\x20true\x20is\x20a\x20number','message'];(function(_0x49c0aa,_0x494353){const _0x2a5a10=function(_0xc30195){while(--_0xc30195){_0x49c0aa['push'](_0x49c0aa['shift']());}};_0x2a5a10(++_0x494353);}(a1206_0x4943,0x12c));const a1206_0x2a5a=function(_0x49c0aa,_0x494353){_0x49c0aa=_0x49c0aa-0x0;let _0x2a5a10=a1206_0x4943[_0x49c0aa];return _0x2a5a10;};const _0x487a89=a1206_0x2a5a;'use strict';const schema=require('validate'),_=require(_0x487a89('0x8')),{htmlToText}=require('html-to-text'),utils=require('./utils'),logger=require(_0x487a89('0x11'))(_0x487a89('0xb')),gotoif=schema({'condition':{'type':_0x487a89('0x1a'),'required':!![],'message':_0x487a89('0xc')},'priorityTrue':{'type':_0x487a89('0x12'),'message':_0x487a89('0x6')},'priorityFalse':{'type':_0x487a89('0x12'),'message':_0x487a89('0x9')}});exports[_0x487a89('0x0')]=function(_0xc30195,_0x384c2d){return function(_0x1a05e4){const _0x192193=a1206_0x2a5a;try{const _0x4b68ac={'condition':htmlToText(utils[_0x192193('0x19')](_0x384c2d[0x0],this),{'wordwrap':![]})[_0x192193('0x1b')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x384c2d[0x1],'priorityFalse':_0x384c2d[0x2]},_0x5d2095=gotoif[_0x192193('0x17')](_0x4b68ac,{'typecast':!![]});if(_0x5d2095[_0x192193('0x18')])logger[_0x192193('0x14')](_0x192193('0x5'),_0xc30195,_[_0x192193('0x13')](_0x5d2095,_0x192193('0x7'))[_0x192193('0x16')](',\x20')),_0x1a05e4['stop']();else try{const _0x4db066=eval('('+_0x4b68ac[_0x192193('0x1')]+')'),_0x9d952=_0x4db066?_0x4b68ac[_0x192193('0x4')]:_0x4b68ac[_0x192193('0xe')];logger[_0x192193('0x2')](_0x192193('0x10'),_0xc30195,_0x4b68ac[_0x192193('0x1')],_0x4db066,_0x9d952||_0x192193('0xf'));if(_0x9d952){const _0x5f3ac7=_['findIndex'](_0x1a05e4['rules'](),{'p':_0x9d952});_0x5f3ac7>=0x0?(logger[_0x192193('0x2')](_0x192193('0x3'),_0xc30195,_0x9d952||_0x192193('0xf'),_0x5f3ac7),_0x1a05e4['next'](_0x5f3ac7)):(logger[_0x192193('0x2')](_0x192193('0x15'),_0xc30195,_0x9d952||_0x192193('0xf')),_0x1a05e4[_0x192193('0xd')]());}else _0x1a05e4['next']();}catch(_0x39f83f){logger[_0x192193('0x14')](_0x192193('0xa'),_0xc30195,_0x39f83f[_0x192193('0x7')]),_0x1a05e4[_0x192193('0xd')]();}}catch(_0x98af63){logger['error'](_0x192193('0x5'),_0xc30195,JSON['stringify'](_0x98af63)),_0x1a05e4[_0x192193('0xd')]();}};};
\ No newline at end of file