lambdaorm
Version:
1 lines • 3.41 kB
JavaScript
'use strict';const a81P=a81y;function a81s(){const u=['OrmOperandHelper','type','children','36609188idOvay','delete','from','join','OperandType','delete()','sort(','sort','bulkInsert(','5329360tUJHwN','filter','operandHelper','filter(','1312425VExdPN','map','name','push','__esModule','532lChwPr','groupBy','defineProperty','map(','typ3s','page(','Var','9txAcvZ','toExpression','bulkInsert','146BmqIHN','getClauses','75876ptHVxX','54qDPpad','update','isList','9725888VyLLgI','page','having','groupBy(','2658SnJnwa','update(','insert(','include','insert','665eXszMp'];a81s=function(){return u;};return a81s();}function a81y(s,y){const O=a81s();return a81y=function(D,g){D=D-0x175;let M=O[D];return M;},a81y(s,y);}(function(s,y){const q=a81y,g=s();while(!![]){try{const x=parseInt(q(0x175))/0x1*(parseInt(q(0x178))/0x2)+-parseInt(q(0x17f))/0x3*(-parseInt(q(0x19a))/0x4)+parseInt(q(0x195))/0x5+parseInt(q(0x177))/0x6*(-parseInt(q(0x184))/0x7)+parseInt(q(0x17b))/0x8*(-parseInt(q(0x1a1))/0x9)+-parseInt(q(0x191))/0xa+parseInt(q(0x188))/0xb;if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a81s,0xba1db));Object[a81P(0x19c)](exports,a81P(0x199),{'value':!![]}),exports[a81P(0x185)]=void 0x0;const _3xpr_1=require('3xpr'),typ3s_1=require(a81P(0x19e));class OrmOperandHelper{constructor(s){const j=a81P;this[j(0x193)]=s;}[a81P(0x1a2)](s){const b=a81P,y=this['getClauses'](s),g=[];if(y['map']){const x=this[b(0x193)][b(0x1a2)](y[b(0x196)][b(0x187)][0x2]);g[b(0x198)](b(0x19d)+y[b(0x196)][b(0x187)][0x1][b(0x197)]+'=>'+x+')');}else{if(y[b(0x183)]){const m=this[b(0x193)][b(0x1a2)](y[b(0x183)][b(0x187)][0x1]);g[b(0x198)](b(0x181)+m+')');}else{if(y[b(0x1a3)]){const w=this['operandHelper'][b(0x1a2)](y[b(0x1a3)][b(0x187)][0x1]);g[b(0x198)](b(0x190)+w+')');}else{if(y['update']){const t=this[b(0x193)][b(0x1a2)](y[b(0x179)][b(0x187)][0x2]);g[b(0x198)](b(0x180)+y[b(0x179)][b(0x187)][0x1][b(0x197)]+'=>'+t+')');}else y[b(0x189)]&&g[b(0x198)](b(0x18d));}}}if(y[b(0x192)]){const v=this[b(0x193)]['toExpression'](y[b(0x192)]['children'][0x2]);g['push'](b(0x194)+y['filter'][b(0x187)][0x1][b(0x197)]+'=>'+v+')');}if(y[b(0x182)]){const a=y[b(0x182)][b(0x187)][0x2];if(typ3s_1['Type'][b(0x17a)](a[b(0x186)])){const c=[];for(const k of a[b(0x187)]){const r=this[b(0x1a2)](k);c['push'](r);}g['push']('include('+y['include']['children'][0x1]['name']+'=>['+c['join'](',')+'])');}else{const z=this[b(0x1a2)](a);g[b(0x198)]('include('+y[b(0x182)]['children'][0x1]['name']+'=>'+z+')');}}if(y[b(0x19b)]){const d=this[b(0x193)]['toExpression'](y[b(0x19b)][b(0x187)][0x2]);g[b(0x198)](b(0x17e)+y[b(0x19b)][b(0x187)][0x1][b(0x197)]+'=>'+d+')');}if(y[b(0x17d)]){const i=this[b(0x193)]['toExpression'](y[b(0x17d)]['children'][0x2]);g[b(0x198)]('having('+y[b(0x17d)][b(0x187)][0x1][b(0x197)]+'=>'+i+')');}if(y[b(0x18f)]){const o=this[b(0x193)][b(0x1a2)](y[b(0x18f)][b(0x187)][0x2]);g[b(0x198)](b(0x18e)+y[b(0x18f)][b(0x187)][0x1]['name']+'=>'+o+')');}if(y[b(0x17c)]){const p=this['operandHelper'][b(0x1a2)](y[b(0x17c)][b(0x187)][0x1]),f=this[b(0x193)][b(0x1a2)](y[b(0x17c)][b(0x187)][0x2]);g[b(0x198)](b(0x19f)+p+','+f+')');}return y[b(0x18a)]['name']+'.'+g[b(0x18b)]('.');}[a81P(0x176)](s){const l=a81P,y={};let g=s;while(g){const x=g['type']===_3xpr_1[l(0x18c)][l(0x1a0)]?l(0x18a):g[l(0x197)];y[x]=g;if(g['children']['length']>0x0)g=g[l(0x187)][0x0];else break;}return y;}}exports[a81P(0x185)]=OrmOperandHelper;