@hotmeshio/hotmesh
Version:
Serverless Workflow
1 lines • 2.03 kB
JavaScript
const n=b;function b(c,d){const e=a();return b=function(f,g){f=f-0x13b;let h=e[f];return h;},b(c,d);}(function(c,d){const m=b,e=c();while(!![]){try{const f=parseInt(m(0x13f))/0x1+-parseInt(m(0x158))/0x2+-parseInt(m(0x154))/0x3+-parseInt(m(0x157))/0x4+-parseInt(m(0x142))/0x5+-parseInt(m(0x146))/0x6+-parseInt(m(0x156))/0x7*(-parseInt(m(0x153))/0x8);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x89daa));Object[n(0x155)](exports,n(0x14a),{'value':!0x0}),exports[n(0x159)]=void 0x0;function a(){const v=['object','mapRules','code','5033430AzNdxc','evaluate','call','match','__esModule','../pipe','data','rules','boolean','gate','Pipe','includes','traverseRules','3810848nMFZtM','2569122ELrJiH','defineProperty','49lscjxt','3056932jFzfum','354956OvZpIy','MapperService','toString','prototype','@pipe','forEach','resolve','44684KWVcmv','process','pipe','887680gGDIfL'];a=function(){return v;};return a();}const pipe_1=require(n(0x14b));class MapperService{constructor(c,d){const o=n;this[o(0x14d)]=c,this['data']=d;}[n(0x144)](){const p=n;return this[p(0x152)](this['rules']);}['traverseRules'](c){const q=n;if(q(0x143)==typeof c&&q(0x13c)in c)return this[q(0x141)](c['@pipe']);if(q(0x143)==typeof c&&null!==c){const d={};for(const f in c)Object[q(0x13b)]['hasOwnProperty'][q(0x148)](c,f)&&(d[f]=this[q(0x152)](c[f]));return d;}return this[q(0x13e)](c);}['pipe'](c){const r=n;return new pipe_1[(r(0x150))](c,this[r(0x14c)])[r(0x140)]();}[n(0x13e)](c){const s=n;return new pipe_1['Pipe']([[c]],this[s(0x14c)])[s(0x140)]();}static[n(0x147)](c,d,f){const t=n;if(t(0x14e)==typeof c)return c;if(Array['isArray'](c['code'])&&c[t(0x145)][t(0x151)](f||0xc8)||f[t(0x15a)]()===(c['code']||0xc8)[t(0x15a)]()){if(!c[t(0x149)])return!0x0;const g='or'===c[t(0x14f)];let h=!0x0,i=!0x1;return c[t(0x149)][t(0x13d)](({expected:j,actual:k})=>{const u=t;if(g&&!i||!g&&h){const l=pipe_1[u(0x150)]['resolve'](k,d)===j;g&&l?i=!0x0:g||l||(h=!0x1);}}),g?i:h;}return!0x1;}}exports[n(0x159)]=MapperService;
;