lambdaorm
Version:
1 lines • 3.13 kB
JavaScript
;const a129z=a129y;(function(s,y){const r=a129y,g=s();while(!![]){try{const x=-parseInt(r(0x16a))/0x1+parseInt(r(0x16f))/0x2+-parseInt(r(0x15a))/0x3*(-parseInt(r(0x16d))/0x4)+parseInt(r(0x168))/0x5*(-parseInt(r(0x160))/0x6)+parseInt(r(0x16e))/0x7*(-parseInt(r(0x172))/0x8)+parseInt(r(0x165))/0x9*(-parseInt(r(0x181))/0xa)+parseInt(r(0x174))/0xb*(parseInt(r(0x154))/0xc);if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a129s,0xa8707));var __awaiter=this&&this[a129z(0x15e)]||function(s,y,P,g){function x(m){return m instanceof P?m:new P(function(w){w(m);});}return new(P||(P=Promise))(function(m,w){const p=a129y;function t(c){const d=a129y;try{a(g[d(0x17e)](c));}catch(k){w(k);}}function v(c){const i=a129y;try{a(g[i(0x16c)](c));}catch(k){w(k);}}function a(c){const o=a129y;c[o(0x158)]?m(c[o(0x170)]):x(c[o(0x170)])[o(0x156)](t,v);}a((g=g[p(0x166)](s,y||[]))[p(0x17e)]());});};Object[a129z(0x17f)](exports,'__esModule',{'value':!![]}),exports[a129z(0x16b)]=void 0x0;function a129s(){const e=['entities','5478XfDycg',':null})','relations','createUpdateQueries','domain','4464jRDHku','apply','required','3665HfYkeb','push','543766vPXlZt','StageDelete','throw','148fbErbF','21cwAGYW','2465710EoeXMZ','value','indexOf','657264VDjaMy','options','682LzJawe','\x20not\x20found\x20in\x20','StageActionDML','execute','find','SchemaError','map','reverse','./base/actionDML','expressionFacade','next','defineProperty','createQuery','23090WmHAui','.deleteAll()','from','151572MQMpPB','build','then','executeList','done','executor','103677vWcqkI','view','name','lambdaorm-base','__awaiter'];a129s=function(){return e;};return a129s();}const lambdaorm_base_1=require(a129z(0x15d)),actionDML_1=require(a129z(0x17c));function a129y(s,y){const O=a129s();return a129y=function(D,g){D=D-0x152;let M=O[D];return M;},a129y(s,y);}class StageDelete extends actionDML_1[a129z(0x176)]{[a129z(0x177)](){return __awaiter(this,void 0x0,void 0x0,function*(){const f=a129y,s=this['build']();yield this[f(0x159)][f(0x157)](s,this['options']);});}['sort'](s){const j=a129z,y=function(w,t,v){const q=a129y;return v[q(0x171)](w)===t;},g=s[j(0x17a)](w=>w[j(0x15c)])['filter'](y),x=this[j(0x164)]['sortByRelations'](g,g)[j(0x17b)](),m=[];for(const w of x){const t=s[j(0x178)](v=>v[j(0x15c)]===w);t!==undefined&&m[j(0x169)](t);}return m;}[a129z(0x155)](){const b=a129z,s=this['sort'](this['domain'][b(0x15f)]),y=this[b(0x163)](s);for(const g of s){const x=this[b(0x180)](g);y[b(0x169)](x);}return y;}[a129z(0x163)](s){const l=a129z;var y;const g=[];for(const x of s){if(x[l(0x15b)])continue;if(x[l(0x162)])for(const m of x['relations']){const w=(y=x['properties'])===null||y===void 0x0?void 0x0:y['find'](t=>t[l(0x15c)]===m['from']);if(w===undefined)throw new lambdaorm_base_1[(l(0x179))]('property\x20'+m[l(0x153)]+l(0x175)+x[l(0x15c)]+'\x20');if(!w[l(0x167)]){const t=this[l(0x17d)][l(0x155)](x[l(0x15c)]+'.updateAll({'+m[l(0x153)]+l(0x161),this[l(0x173)]);g[l(0x169)](t);}}}return g;}[a129z(0x180)](s){const u=a129z;return this[u(0x17d)][u(0x155)](s['name']+u(0x152),this[u(0x173)]);}}exports[a129z(0x16b)]=StageDelete;