owl-progiciel 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/routes/client.routes.d.ts +2 -0
- package/dist/api/routes/client.routes.js +1 -0
- package/dist/api/routes/item.routes.d.ts +2 -0
- package/dist/api/routes/item.routes.js +1 -0
- package/dist/api/routes/order.routes.d.ts +2 -0
- package/dist/api/routes/order.routes.js +1 -0
- package/dist/api/routes/preparation.routes.d.ts +2 -0
- package/dist/api/routes/preparation.routes.js +1 -0
- package/dist/api/routes/purchase.routes.d.ts +2 -0
- package/dist/api/routes/purchase.routes.js +1 -0
- package/dist/api/routes/reception.routes.d.ts +2 -0
- package/dist/api/routes/reception.routes.js +1 -0
- package/dist/api/routes/stock.routes.d.ts +2 -0
- package/dist/api/routes/stock.routes.js +1 -0
- package/dist/api/routes/supplier.routes.d.ts +2 -0
- package/dist/api/routes/supplier.routes.js +1 -0
- package/dist/api/routes/tax.routes.d.ts +2 -0
- package/dist/api/routes/tax.routes.js +1 -0
- package/dist/api/routes/user.routes.d.ts +2 -0
- package/dist/api/routes/user.routes.js +1 -0
- package/dist/api/server.d.ts +1 -0
- package/dist/api/server.js +1 -0
- package/dist/core/Entity.js +1 -0
- package/dist/core/EventBus.js +1 -0
- package/dist/core/{PrismaDatabase.d.ts → EventsDatabase.d.ts} +1 -3
- package/dist/core/EventsDatabase.js +1 -0
- package/dist/core/Manager.js +1 -0
- package/dist/core/events/ClientEvents.d.ts +1 -2
- package/dist/core/events/ClientEvents.js +1 -0
- package/dist/core/events/ItemEvents.d.ts +1 -2
- package/dist/core/events/ItemEvents.js +1 -0
- package/dist/core/events/OrderEvents.d.ts +1 -2
- package/dist/core/events/OrderEvents.js +1 -0
- package/dist/core/events/PreparationEvents.d.ts +1 -2
- package/dist/core/events/PreparationEvents.js +1 -0
- package/dist/core/events/PurchaseEvents.d.ts +1 -2
- package/dist/core/events/PurchaseEvents.js +1 -0
- package/dist/core/events/ReceptionEvents.d.ts +1 -2
- package/dist/core/events/ReceptionEvents.js +1 -0
- package/dist/core/events/StockEvents.d.ts +1 -2
- package/dist/core/events/StockEvents.js +1 -0
- package/dist/core/events/SupplierEvents.d.ts +1 -2
- package/dist/core/events/SupplierEvents.js +1 -0
- package/dist/core/events/TaxEvents.d.ts +1 -2
- package/dist/core/events/TaxEvents.js +1 -0
- package/dist/core/events/UserEvents.d.ts +1 -2
- package/dist/core/events/UserEvents.js +1 -0
- package/dist/entities/Client.js +1 -0
- package/dist/entities/Item.js +1 -0
- package/dist/entities/Order.js +1 -0
- package/dist/entities/Preparation.js +1 -0
- package/dist/entities/Purchase.js +1 -0
- package/dist/entities/Reception.js +1 -0
- package/dist/entities/Stock.js +1 -0
- package/dist/entities/Supplier.js +1 -0
- package/dist/entities/Tax.js +1 -0
- package/dist/entities/User.js +1 -0
- package/dist/index.js +1 -0
- package/dist/managers/ClientManager.js +1 -0
- package/dist/managers/ItemManager.js +1 -0
- package/dist/managers/OrderManager.js +1 -0
- package/dist/managers/PreparationManager.js +1 -0
- package/dist/managers/PurchaseManager.js +1 -0
- package/dist/managers/ReceptionManager.js +1 -0
- package/dist/managers/StockManager.js +1 -0
- package/dist/managers/SupplierManager.js +1 -0
- package/dist/managers/TaxManager.js +1 -0
- package/dist/managers/UserManager.js +1 -0
- package/dist/owl/OWLClient.d.ts +2 -2
- package/dist/owl/OWLClient.js +1 -0
- package/package.json +9 -3
- package/dist/core/Entity-obfuscated.js +0 -1
- package/dist/core/EventBus-obfuscated.js +0 -1
- package/dist/core/Manager-obfuscated.js +0 -1
- package/dist/core/PrismaDatabase-obfuscated.js +0 -1
- package/dist/core/events/ClientEvents-obfuscated.js +0 -1
- package/dist/core/events/ItemEvents-obfuscated.js +0 -1
- package/dist/core/events/OrderEvents-obfuscated.js +0 -1
- package/dist/core/events/PreparationEvents-obfuscated.js +0 -1
- package/dist/core/events/PurchaseEvents-obfuscated.js +0 -1
- package/dist/core/events/ReceptionEvents-obfuscated.js +0 -1
- package/dist/core/events/StockEvents-obfuscated.js +0 -1
- package/dist/core/events/SupplierEvents-obfuscated.js +0 -1
- package/dist/core/events/TaxEvents-obfuscated.js +0 -1
- package/dist/core/events/UserEvents-obfuscated.js +0 -1
- package/dist/entities/Client-obfuscated.js +0 -1
- package/dist/entities/Item-obfuscated.js +0 -1
- package/dist/entities/Order-obfuscated.js +0 -1
- package/dist/entities/Preparation-obfuscated.js +0 -1
- package/dist/entities/Purchase-obfuscated.js +0 -1
- package/dist/entities/Reception-obfuscated.js +0 -1
- package/dist/entities/Stock-obfuscated.js +0 -1
- package/dist/entities/Supplier-obfuscated.js +0 -1
- package/dist/entities/Tax-obfuscated.js +0 -1
- package/dist/entities/User-obfuscated.js +0 -1
- package/dist/index-obfuscated.js +0 -1
- package/dist/managers/ClientManager-obfuscated.js +0 -1
- package/dist/managers/ItemManager-obfuscated.js +0 -1
- package/dist/managers/OrderManager-obfuscated.js +0 -1
- package/dist/managers/PreparationManager-obfuscated.js +0 -1
- package/dist/managers/PurchaseManager-obfuscated.js +0 -1
- package/dist/managers/ReceptionManager-obfuscated.js +0 -1
- package/dist/managers/StockManager-obfuscated.js +0 -1
- package/dist/managers/SupplierManager-obfuscated.js +0 -1
- package/dist/managers/TaxManager-obfuscated.js +0 -1
- package/dist/managers/UserManager-obfuscated.js +0 -1
- package/dist/owl/OWLClient-obfuscated.js +0 -1
- /package/dist/cli/{generateModule-obfuscated.js → generateModule.js} +0 -0
- /package/dist/core/{Database-obfuscated.js → Database.js} +0 -0
- /package/dist/core/{Module-obfuscated.js → Module.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a41_0x315e61=a41_0x1489;function a41_0x5168(){const _0x5d688b=['values','request','delete','cache','order.created','36160cCQEZL','order.error','events','emit','2007QabZPI','tokenIsValide','430420sCBpTi','get','193966hKFtdv','modify','11SHPtQK','then','order.updated','000001:\x20Invalid\x20Token.','4019805RxWxAn','order.cached.some','1384TxHpaS','some','order.read.some','order.cached.all','fetchAll','11606PwAziJ','has','set','length','7564458cfAjUz','order.deleted','6274240nKCAhR','owl'];a41_0x5168=function(){return _0x5d688b;};return a41_0x5168();}(function(_0x11703a,_0x22a4fd){const _0x10f89d=a41_0x1489,_0x1bb6cb=_0x11703a();while(!![]){try{const _0x14c7ab=parseInt(_0x10f89d(0x1aa))/0x1*(parseInt(_0x10f89d(0x1ca))/0x2)+-parseInt(_0x10f89d(0x1ae))/0x3+-parseInt(_0x10f89d(0x1c8))/0x4+-parseInt(_0x10f89d(0x1bb))/0x5+parseInt(_0x10f89d(0x1b9))/0x6+-parseInt(_0x10f89d(0x1b5))/0x7*(-parseInt(_0x10f89d(0x1b0))/0x8)+-parseInt(_0x10f89d(0x1c6))/0x9*(-parseInt(_0x10f89d(0x1c2))/0xa);if(_0x14c7ab===_0x22a4fd)break;else _0x1bb6cb['push'](_0x1bb6cb['shift']());}catch(_0x48b3ac){_0x1bb6cb['push'](_0x1bb6cb['shift']());}}}(a41_0x5168,0xaf622));import{Manager}from'../core/Manager.js';function a41_0x1489(_0x374495,_0x32018b){_0x374495=_0x374495-0x1aa;const _0x516802=a41_0x5168();let _0x148915=_0x516802[_0x374495];return _0x148915;}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async['fetch'](_0x4abafc){const _0x325fc2=a41_0x1489;try{if(!this[_0x325fc2(0x1bc)][_0x325fc2(0x1c7)]())throw new Error(_0x325fc2(0x1ad));if(this[_0x325fc2(0x1c0)][_0x325fc2(0x1b6)](_0x4abafc))return this[_0x325fc2(0x1c0)][_0x325fc2(0x1c9)](_0x4abafc);const _0x2d8711=await this['owl'][_0x325fc2(0x1c4)][_0x325fc2(0x1be)]('order.read',{'id':_0x4abafc}),_0x5b4d8e=new Order(this[_0x325fc2(0x1bc)],_0x2d8711);return this['cache'][_0x325fc2(0x1b7)](_0x4abafc,_0x5b4d8e),this[_0x325fc2(0x1bc)][_0x325fc2(0x1c4)][_0x325fc2(0x1c5)]('order.cached',_0x5b4d8e),_0x5b4d8e;}catch(_0x1839a5){this['owl'][_0x325fc2(0x1c4)][_0x325fc2(0x1c5)](_0x325fc2(0x1c3),{'error':_0x1839a5});throw _0x1839a5;}}async[a41_0x315e61(0x1b4)](){const _0x2f57e1=a41_0x315e61;try{if(!this[_0x2f57e1(0x1bc)][_0x2f57e1(0x1c7)]())throw new Error(_0x2f57e1(0x1ad));const _0x2b27a9=await this[_0x2f57e1(0x1bc)][_0x2f57e1(0x1c4)][_0x2f57e1(0x1be)]('order.read.all',{});for(let _0x372b35=0x0;_0x372b35<_0x2b27a9[_0x2f57e1(0x1b8)];_0x372b35++){const _0x1d9490=new Order(this[_0x2f57e1(0x1bc)],_0x2b27a9[_0x372b35]);this[_0x2f57e1(0x1c0)][_0x2f57e1(0x1b7)](_0x1d9490['id'],_0x1d9490);}return this[_0x2f57e1(0x1bc)][_0x2f57e1(0x1c4)][_0x2f57e1(0x1c5)](_0x2f57e1(0x1b3),this['cache'][_0x2f57e1(0x1bd)]()),this[_0x2f57e1(0x1c0)][_0x2f57e1(0x1bd)]();}catch(_0x1f413f){this['owl']['events'][_0x2f57e1(0x1c5)]('order.error',{'error':_0x1f413f});throw _0x1f413f;}}async[a41_0x315e61(0x1b1)](_0x4fdf80){const _0xc1c347=a41_0x315e61;try{if(!this[_0xc1c347(0x1bc)][_0xc1c347(0x1c7)]())throw new Error(_0xc1c347(0x1ad));const _0x1a443b=await this[_0xc1c347(0x1bc)][_0xc1c347(0x1c4)][_0xc1c347(0x1be)](_0xc1c347(0x1b2),_0x4fdf80);for(let _0x542436=0x0;_0x542436<_0x1a443b[_0xc1c347(0x1b8)];_0x542436++){const _0x9c7c58=new Order(this[_0xc1c347(0x1bc)],_0x1a443b[_0x542436]);this[_0xc1c347(0x1c0)][_0xc1c347(0x1b7)](_0x9c7c58['id'],_0x9c7c58);}return this['owl'][_0xc1c347(0x1c4)][_0xc1c347(0x1c5)](_0xc1c347(0x1af),_0x1a443b),_0x1a443b;}catch(_0x26f9db){this[_0xc1c347(0x1bc)]['events'][_0xc1c347(0x1c5)]('order.error',{'error':_0x26f9db});throw _0x26f9db;}}async['new'](_0x334d4e){const _0x28a9e5=a41_0x315e61;try{if(!this[_0x28a9e5(0x1bc)][_0x28a9e5(0x1c7)]())throw new Error(_0x28a9e5(0x1ad));const _0x52f9bb=await this[_0x28a9e5(0x1bc)][_0x28a9e5(0x1c4)]['request'](_0x28a9e5(0x1c1),{'order':_0x334d4e});_0x334d4e['id']=_0x52f9bb;const _0x13b938=new Order(this[_0x28a9e5(0x1bc)],_0x334d4e);return this[_0x28a9e5(0x1c0)][_0x28a9e5(0x1b7)](_0x13b938['id'],_0x13b938),_0x13b938;}catch(_0x49f0a6){this[_0x28a9e5(0x1bc)][_0x28a9e5(0x1c4)][_0x28a9e5(0x1c5)](_0x28a9e5(0x1c3),{'error':_0x49f0a6});throw _0x49f0a6;}}async[a41_0x315e61(0x1cb)](_0x6bf59a,_0x373d14){const _0x42dbb6=a41_0x315e61;try{if(!this[_0x42dbb6(0x1bc)]['tokenIsValide']())throw new Error(_0x42dbb6(0x1ad));await this['owl']['events'][_0x42dbb6(0x1be)](_0x42dbb6(0x1ac),_0x373d14)[_0x42dbb6(0x1ab)](_0x3ab2fe=>{const _0x4e99ba=_0x42dbb6;this['cache'][_0x4e99ba(0x1b7)](_0x6bf59a,_0x3ab2fe);});}catch(_0x2eca35){this[_0x42dbb6(0x1bc)][_0x42dbb6(0x1c4)][_0x42dbb6(0x1c5)](_0x42dbb6(0x1c3),{'error':_0x2eca35});throw _0x2eca35;}}async[a41_0x315e61(0x1bf)](_0x41d1db){const _0x5da3cb=a41_0x315e61;try{if(!this[_0x5da3cb(0x1bc)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x5da3cb(0x1bc)][_0x5da3cb(0x1c4)][_0x5da3cb(0x1c5)](_0x5da3cb(0x1ba),{'id':_0x41d1db}),this[_0x5da3cb(0x1c0)][_0x5da3cb(0x1bf)](_0x41d1db);}catch(_0x4eb14d){this[_0x5da3cb(0x1bc)]['events'][_0x5da3cb(0x1c5)]('order.error',{'error':_0x4eb14d});throw _0x4eb14d;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a42_0x499f(){const _0x5650f4=['preparation.error','set','14815050gsEiFH','preparation.cached','129iBZsCb','fetchAll','50DFiepp','get','43433112CItZyz','then','delete','tokenIsValide','000001:\x20Invalid\x20Token.','emit','preparation.read.some','has','length','13377573aLSCRL','owl','some','3758370XSovWF','values','fetch','preparation.created','11aCUDGW','preparation.read.all','new','6170TPbfjP','3349182adiigx','preparation.cached.some','8RbUqUr','events','request','24NvMDsy','cache','7qiCjSQ','preparation.cached.all'];a42_0x499f=function(){return _0x5650f4;};return a42_0x499f();}function a42_0x16f4(_0xbd9e93,_0x5a2a7a){_0xbd9e93=_0xbd9e93-0x164;const _0x499fe4=a42_0x499f();let _0x16f43b=_0x499fe4[_0xbd9e93];return _0x16f43b;}const a42_0x1f4f23=a42_0x16f4;(function(_0x21636a,_0x5073a4){const _0x351eeb=a42_0x16f4,_0x3ea02c=_0x21636a();while(!![]){try{const _0x17bd79=parseInt(_0x351eeb(0x183))/0x1*(parseInt(_0x351eeb(0x173))/0x2)+-parseInt(_0x351eeb(0x181))/0x3*(parseInt(_0x351eeb(0x179))/0x4)+parseInt(_0x351eeb(0x16c))/0x5+parseInt(_0x351eeb(0x174))/0x6*(parseInt(_0x351eeb(0x17b))/0x7)+-parseInt(_0x351eeb(0x176))/0x8*(-parseInt(_0x351eeb(0x169))/0x9)+parseInt(_0x351eeb(0x17f))/0xa+-parseInt(_0x351eeb(0x170))/0xb*(parseInt(_0x351eeb(0x185))/0xc);if(_0x17bd79===_0x5073a4)break;else _0x3ea02c['push'](_0x3ea02c['shift']());}catch(_0x512e7c){_0x3ea02c['push'](_0x3ea02c['shift']());}}}(a42_0x499f,0xc6533));import{Manager}from'../core/Manager.js';import{Preparation}from'../entities/Preparation.js';export class PreparationManager extends Manager{async[a42_0x1f4f23(0x16e)](_0xbf4602){const _0x2f74e3=a42_0x1f4f23;try{if(!this[_0x2f74e3(0x16a)][_0x2f74e3(0x188)]())throw new Error(_0x2f74e3(0x164));if(this['cache'][_0x2f74e3(0x167)](_0xbf4602))return this[_0x2f74e3(0x17a)][_0x2f74e3(0x184)](_0xbf4602);const _0xd1e25e=await this[_0x2f74e3(0x16a)][_0x2f74e3(0x177)][_0x2f74e3(0x178)]('preparation.read',{'id':_0xbf4602}),_0x5d9fe5=new Preparation(this[_0x2f74e3(0x16a)],_0xd1e25e);return this['cache'][_0x2f74e3(0x17e)](_0xbf4602,_0x5d9fe5),this[_0x2f74e3(0x16a)][_0x2f74e3(0x177)][_0x2f74e3(0x165)](_0x2f74e3(0x180),_0x5d9fe5),_0x5d9fe5;}catch(_0x6b7fd2){this[_0x2f74e3(0x16a)][_0x2f74e3(0x177)][_0x2f74e3(0x165)]('preparation.error',{'error':_0x6b7fd2});throw _0x6b7fd2;}}async[a42_0x1f4f23(0x182)](){const _0x55356d=a42_0x1f4f23;try{if(!this[_0x55356d(0x16a)][_0x55356d(0x188)]())throw new Error(_0x55356d(0x164));const _0x30458a=await this[_0x55356d(0x16a)][_0x55356d(0x177)]['request'](_0x55356d(0x171),{});for(let _0x13e854=0x0;_0x13e854<_0x30458a[_0x55356d(0x168)];_0x13e854++){const _0x376ea7=new Preparation(this[_0x55356d(0x16a)],_0x30458a[_0x13e854]);this[_0x55356d(0x17a)]['set'](_0x376ea7['id'],_0x376ea7);}return this['owl'][_0x55356d(0x177)][_0x55356d(0x165)](_0x55356d(0x17c),this[_0x55356d(0x17a)]['values']()),this[_0x55356d(0x17a)][_0x55356d(0x16d)]();}catch(_0x26dc4a){this['owl'][_0x55356d(0x177)][_0x55356d(0x165)](_0x55356d(0x17d),{'error':_0x26dc4a});throw _0x26dc4a;}}async[a42_0x1f4f23(0x16b)](_0x4ff1e0){const _0x4d00f0=a42_0x1f4f23;try{if(!this[_0x4d00f0(0x16a)][_0x4d00f0(0x188)]())throw new Error(_0x4d00f0(0x164));const _0x4d57b8=await this[_0x4d00f0(0x16a)][_0x4d00f0(0x177)][_0x4d00f0(0x178)](_0x4d00f0(0x166),_0x4ff1e0);for(let _0x11dc20=0x0;_0x11dc20<_0x4d57b8[_0x4d00f0(0x168)];_0x11dc20++){const _0x263fc8=new Preparation(this[_0x4d00f0(0x16a)],_0x4d57b8[_0x11dc20]);this['cache'][_0x4d00f0(0x17e)](_0x263fc8['id'],_0x263fc8);}return this[_0x4d00f0(0x16a)][_0x4d00f0(0x177)][_0x4d00f0(0x165)](_0x4d00f0(0x175),_0x4d57b8),_0x4d57b8;}catch(_0x36c33f){this[_0x4d00f0(0x16a)][_0x4d00f0(0x177)][_0x4d00f0(0x165)](_0x4d00f0(0x17d),{'error':_0x36c33f});throw _0x36c33f;}}async[a42_0x1f4f23(0x172)](_0x38a130){const _0x132e04=a42_0x1f4f23;try{if(!this[_0x132e04(0x16a)][_0x132e04(0x188)]())throw new Error(_0x132e04(0x164));const _0x2c6b10=await this[_0x132e04(0x16a)][_0x132e04(0x177)][_0x132e04(0x178)](_0x132e04(0x16f),{'preparation':_0x38a130});_0x38a130['id']=_0x2c6b10;const _0x4bbaba=new Preparation(this[_0x132e04(0x16a)],_0x38a130);return this[_0x132e04(0x17a)][_0x132e04(0x17e)](_0x4bbaba['id'],_0x4bbaba),_0x4bbaba;}catch(_0x350923){this['owl'][_0x132e04(0x177)]['emit'](_0x132e04(0x17d),{'error':_0x350923});throw _0x350923;}}async['modify'](_0x1d0435,_0x3540a7){const _0x3cabf3=a42_0x1f4f23;try{if(!this[_0x3cabf3(0x16a)][_0x3cabf3(0x188)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x3cabf3(0x16a)]['events'][_0x3cabf3(0x178)]('preparation.updated',_0x3540a7)[_0x3cabf3(0x186)](_0x1486c1=>{const _0x3dce0a=_0x3cabf3;this[_0x3dce0a(0x17a)][_0x3dce0a(0x17e)](_0x1d0435,_0x1486c1);});}catch(_0x3007fc){this[_0x3cabf3(0x16a)][_0x3cabf3(0x177)][_0x3cabf3(0x165)](_0x3cabf3(0x17d),{'error':_0x3007fc});throw _0x3007fc;}}async[a42_0x1f4f23(0x187)](_0x17df7c){const _0x185b5e=a42_0x1f4f23;try{if(!this[_0x185b5e(0x16a)]['tokenIsValide']())throw new Error(_0x185b5e(0x164));await this['owl'][_0x185b5e(0x177)][_0x185b5e(0x165)]('preparation.deleted',{'id':_0x17df7c}),this[_0x185b5e(0x17a)][_0x185b5e(0x187)](_0x17df7c);}catch(_0x4f1ac8){this[_0x185b5e(0x16a)][_0x185b5e(0x177)][_0x185b5e(0x165)](_0x185b5e(0x17d),{'error':_0x4f1ac8});throw _0x4f1ac8;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a43_0x1904b1=a43_0x4b23;(function(_0x22bdac,_0x184fb8){const _0xdec4fa=a43_0x4b23,_0x537a09=_0x22bdac();while(!![]){try{const _0x16ad1c=parseInt(_0xdec4fa(0x100))/0x1*(-parseInt(_0xdec4fa(0x10e))/0x2)+-parseInt(_0xdec4fa(0x10b))/0x3*(parseInt(_0xdec4fa(0x10a))/0x4)+parseInt(_0xdec4fa(0x115))/0x5*(parseInt(_0xdec4fa(0x102))/0x6)+parseInt(_0xdec4fa(0xfe))/0x7*(-parseInt(_0xdec4fa(0x111))/0x8)+parseInt(_0xdec4fa(0x10c))/0x9+parseInt(_0xdec4fa(0xff))/0xa+-parseInt(_0xdec4fa(0x101))/0xb*(parseInt(_0xdec4fa(0xf2))/0xc);if(_0x16ad1c===_0x184fb8)break;else _0x537a09['push'](_0x537a09['shift']());}catch(_0xd525b6){_0x537a09['push'](_0x537a09['shift']());}}}(a43_0x1e7b,0xb1978));import{Manager}from'../core/Manager.js';function a43_0x4b23(_0x24a7b4,_0x2d875b){_0x24a7b4=_0x24a7b4-0xf1;const _0x1e7b41=a43_0x1e7b();let _0x4b23ad=_0x1e7b41[_0x24a7b4];return _0x4b23ad;}import{Purchase}from'../entities/Purchase.js';function a43_0x1e7b(){const _0x231d90=['10606270wPLWlN','1189057CbRoxV','916993FECLEc','18XzkMGA','delete','set','purchase.cached.some','purchase.cached.all','events','purchase.read','purchase.deleted','28doiTje','378204arMnUV','11313864trWyCs','purchase.cached','2acycJi','000001:\x20Invalid\x20Token.','some','14936xnNdnS','tokenIsValide','request','cache','2034115ZHTgmk','new','owl','emit','36ogerEl','length','purchase.updated','then','purchase.error','modify','purchase.created','values','purchase.read.all','has','fetch','get','1834CLQOTO'];a43_0x1e7b=function(){return _0x231d90;};return a43_0x1e7b();}export class PurchaseManager extends Manager{async[a43_0x1904b1(0xfc)](_0x31444b){const _0x20a9c9=a43_0x1904b1;try{if(!this[_0x20a9c9(0x117)][_0x20a9c9(0x112)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x20a9c9(0x114)][_0x20a9c9(0xfb)](_0x31444b))return this['cache'][_0x20a9c9(0xfd)](_0x31444b);const _0xf3216a=await this['owl'][_0x20a9c9(0x107)][_0x20a9c9(0x113)](_0x20a9c9(0x108),{'id':_0x31444b}),_0x3d8bbf=new Purchase(this[_0x20a9c9(0x117)],_0xf3216a);return this[_0x20a9c9(0x114)][_0x20a9c9(0x104)](_0x31444b,_0x3d8bbf),this[_0x20a9c9(0x117)][_0x20a9c9(0x107)]['emit'](_0x20a9c9(0x10d),_0x3d8bbf),_0x3d8bbf;}catch(_0x240f1c){this[_0x20a9c9(0x117)]['events']['emit'](_0x20a9c9(0xf6),{'error':_0x240f1c});throw _0x240f1c;}}async['fetchAll'](){const _0x353263=a43_0x1904b1;try{if(!this[_0x353263(0x117)][_0x353263(0x112)]())throw new Error(_0x353263(0x10f));const _0x5902d1=await this['owl'][_0x353263(0x107)][_0x353263(0x113)](_0x353263(0xfa),{});for(let _0x4b4212=0x0;_0x4b4212<_0x5902d1[_0x353263(0xf3)];_0x4b4212++){const _0x448398=new Purchase(this[_0x353263(0x117)],_0x5902d1[_0x4b4212]);this[_0x353263(0x114)]['set'](_0x448398['id'],_0x448398);}return this[_0x353263(0x117)]['events'][_0x353263(0xf1)](_0x353263(0x106),this[_0x353263(0x114)]['values']()),this[_0x353263(0x114)][_0x353263(0xf9)]();}catch(_0x28f3d7){this['owl'][_0x353263(0x107)][_0x353263(0xf1)](_0x353263(0xf6),{'error':_0x28f3d7});throw _0x28f3d7;}}async[a43_0x1904b1(0x110)](_0x25ef6e){const _0x221d89=a43_0x1904b1;try{if(!this[_0x221d89(0x117)]['tokenIsValide']())throw new Error(_0x221d89(0x10f));const _0x1731c5=await this[_0x221d89(0x117)]['events']['request']('purchase.read.some',_0x25ef6e);for(let _0x1cc0dc=0x0;_0x1cc0dc<_0x1731c5[_0x221d89(0xf3)];_0x1cc0dc++){const _0x17521b=new Purchase(this['owl'],_0x1731c5[_0x1cc0dc]);this[_0x221d89(0x114)][_0x221d89(0x104)](_0x17521b['id'],_0x17521b);}return this[_0x221d89(0x117)][_0x221d89(0x107)][_0x221d89(0xf1)](_0x221d89(0x105),_0x1731c5),_0x1731c5;}catch(_0x1130ff){this['owl'][_0x221d89(0x107)][_0x221d89(0xf1)](_0x221d89(0xf6),{'error':_0x1130ff});throw _0x1130ff;}}async[a43_0x1904b1(0x116)](_0xbb1c98){const _0x467d97=a43_0x1904b1;try{if(!this[_0x467d97(0x117)][_0x467d97(0x112)]())throw new Error(_0x467d97(0x10f));const _0x312488=await this[_0x467d97(0x117)][_0x467d97(0x107)][_0x467d97(0x113)](_0x467d97(0xf8),{'purchase':_0xbb1c98});_0xbb1c98['id']=_0x312488;const _0x159bed=new Purchase(this[_0x467d97(0x117)],_0xbb1c98);return this[_0x467d97(0x114)][_0x467d97(0x104)](_0x159bed['id'],_0x159bed),_0x159bed;}catch(_0x1834b8){this[_0x467d97(0x117)][_0x467d97(0x107)][_0x467d97(0xf1)](_0x467d97(0xf6),{'error':_0x1834b8});throw _0x1834b8;}}async[a43_0x1904b1(0xf7)](_0x1833af,_0xa15708){const _0x3452fe=a43_0x1904b1;try{if(!this[_0x3452fe(0x117)][_0x3452fe(0x112)]())throw new Error(_0x3452fe(0x10f));await this[_0x3452fe(0x117)][_0x3452fe(0x107)][_0x3452fe(0x113)](_0x3452fe(0xf4),_0xa15708)[_0x3452fe(0xf5)](_0x3a43b4=>{const _0xe43f33=_0x3452fe;this['cache'][_0xe43f33(0x104)](_0x1833af,_0x3a43b4);});}catch(_0x4c4e6c){this[_0x3452fe(0x117)][_0x3452fe(0x107)][_0x3452fe(0xf1)](_0x3452fe(0xf6),{'error':_0x4c4e6c});throw _0x4c4e6c;}}async[a43_0x1904b1(0x103)](_0x20e224){const _0x37f1ee=a43_0x1904b1;try{if(!this[_0x37f1ee(0x117)][_0x37f1ee(0x112)]())throw new Error(_0x37f1ee(0x10f));await this[_0x37f1ee(0x117)][_0x37f1ee(0x107)]['emit'](_0x37f1ee(0x109),{'id':_0x20e224}),this[_0x37f1ee(0x114)]['delete'](_0x20e224);}catch(_0x3056ef){this[_0x37f1ee(0x117)]['events'][_0x37f1ee(0xf1)](_0x37f1ee(0xf6),{'error':_0x3056ef});throw _0x3056ef;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a44_0x301364=a44_0x3420;(function(_0x143f18,_0x9488b0){const _0x28d87a=a44_0x3420,_0x2e35ec=_0x143f18();while(!![]){try{const _0x333bee=parseInt(_0x28d87a(0x184))/0x1+parseInt(_0x28d87a(0x188))/0x2+-parseInt(_0x28d87a(0x17e))/0x3+parseInt(_0x28d87a(0x192))/0x4*(-parseInt(_0x28d87a(0x18a))/0x5)+parseInt(_0x28d87a(0x194))/0x6+parseInt(_0x28d87a(0x186))/0x7+-parseInt(_0x28d87a(0x178))/0x8;if(_0x333bee===_0x9488b0)break;else _0x2e35ec['push'](_0x2e35ec['shift']());}catch(_0x427e41){_0x2e35ec['push'](_0x2e35ec['shift']());}}}(a44_0x1fba,0xc6f1d));import{Manager}from'../core/Manager.js';function a44_0x1fba(){const _0x3220f7=['reception.cached.all','524330CNBUgJ','request','10388350zDkQEm','owl','156780RSWavN','reception.read.all','10jiaNrD','modify','set','delete','has','events','values','get','1438408cVBLmd','reception.created','8217786ruQCFS','reception.updated','emit','fetch','cache','7927232WpEpdj','new','reception.cached.some','000001:\x20Invalid\x20Token.','reception.cached','tokenIsValide','2794248QyIboB','some','reception.error','length','fetchAll'];a44_0x1fba=function(){return _0x3220f7;};return a44_0x1fba();}function a44_0x3420(_0xef2da5,_0x6457b9){_0xef2da5=_0xef2da5-0x174;const _0x1fbad1=a44_0x1fba();let _0x34202e=_0x1fbad1[_0xef2da5];return _0x34202e;}import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async[a44_0x301364(0x176)](_0x19189d){const _0x2e26b7=a44_0x301364;try{if(!this[_0x2e26b7(0x187)][_0x2e26b7(0x17d)]())throw new Error(_0x2e26b7(0x17b));if(this[_0x2e26b7(0x177)][_0x2e26b7(0x18e)](_0x19189d))return this['cache'][_0x2e26b7(0x191)](_0x19189d);const _0x523222=await this['owl'][_0x2e26b7(0x18f)][_0x2e26b7(0x185)]('reception.read',{'id':_0x19189d}),_0x4335bd=new Reception(this['owl'],_0x523222);return this[_0x2e26b7(0x177)][_0x2e26b7(0x18c)](_0x19189d,_0x4335bd),this[_0x2e26b7(0x187)][_0x2e26b7(0x18f)][_0x2e26b7(0x175)](_0x2e26b7(0x17c),_0x4335bd),_0x4335bd;}catch(_0x1f0d08){this[_0x2e26b7(0x187)][_0x2e26b7(0x18f)][_0x2e26b7(0x175)](_0x2e26b7(0x180),{'error':_0x1f0d08});throw _0x1f0d08;}}async[a44_0x301364(0x182)](){const _0x4854d0=a44_0x301364;try{if(!this[_0x4854d0(0x187)][_0x4854d0(0x17d)]())throw new Error(_0x4854d0(0x17b));const _0x38bd42=await this[_0x4854d0(0x187)][_0x4854d0(0x18f)][_0x4854d0(0x185)](_0x4854d0(0x189),{});for(let _0xcfcc5c=0x0;_0xcfcc5c<_0x38bd42['length'];_0xcfcc5c++){const _0x4d2d2d=new Reception(this[_0x4854d0(0x187)],_0x38bd42[_0xcfcc5c]);this['cache'][_0x4854d0(0x18c)](_0x4d2d2d['id'],_0x4d2d2d);}return this[_0x4854d0(0x187)]['events'][_0x4854d0(0x175)](_0x4854d0(0x183),this[_0x4854d0(0x177)][_0x4854d0(0x190)]()),this[_0x4854d0(0x177)]['values']();}catch(_0x11b83d){this['owl'][_0x4854d0(0x18f)][_0x4854d0(0x175)](_0x4854d0(0x180),{'error':_0x11b83d});throw _0x11b83d;}}async[a44_0x301364(0x17f)](_0x476e41){const _0x11aeb4=a44_0x301364;try{if(!this['owl'][_0x11aeb4(0x17d)]())throw new Error(_0x11aeb4(0x17b));const _0x47c382=await this[_0x11aeb4(0x187)][_0x11aeb4(0x18f)][_0x11aeb4(0x185)]('reception.read.some',_0x476e41);for(let _0x234884=0x0;_0x234884<_0x47c382[_0x11aeb4(0x181)];_0x234884++){const _0x1de0fa=new Reception(this['owl'],_0x47c382[_0x234884]);this['cache'][_0x11aeb4(0x18c)](_0x1de0fa['id'],_0x1de0fa);}return this[_0x11aeb4(0x187)][_0x11aeb4(0x18f)][_0x11aeb4(0x175)](_0x11aeb4(0x17a),_0x47c382),_0x47c382;}catch(_0x472648){this['owl'][_0x11aeb4(0x18f)]['emit']('reception.error',{'error':_0x472648});throw _0x472648;}}async[a44_0x301364(0x179)](_0x260883){const _0x353746=a44_0x301364;try{if(!this[_0x353746(0x187)][_0x353746(0x17d)]())throw new Error(_0x353746(0x17b));const _0x1ef2f9=await this[_0x353746(0x187)][_0x353746(0x18f)][_0x353746(0x185)](_0x353746(0x193),{'reception':_0x260883});_0x260883['id']=_0x1ef2f9;const _0x50622f=new Reception(this[_0x353746(0x187)],_0x260883);return this['cache'][_0x353746(0x18c)](_0x50622f['id'],_0x50622f),_0x50622f;}catch(_0x41c335){this[_0x353746(0x187)]['events']['emit'](_0x353746(0x180),{'error':_0x41c335});throw _0x41c335;}}async[a44_0x301364(0x18b)](_0x463b38,_0x2824bb){const _0x1f6f79=a44_0x301364;try{if(!this[_0x1f6f79(0x187)][_0x1f6f79(0x17d)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x1f6f79(0x187)][_0x1f6f79(0x18f)]['request'](_0x1f6f79(0x174),_0x2824bb)['then'](_0x18a5c3=>{const _0x178008=_0x1f6f79;this[_0x178008(0x177)]['set'](_0x463b38,_0x18a5c3);});}catch(_0x366609){this['owl'][_0x1f6f79(0x18f)][_0x1f6f79(0x175)](_0x1f6f79(0x180),{'error':_0x366609});throw _0x366609;}}async[a44_0x301364(0x18d)](_0x5339d6){const _0x1e96c3=a44_0x301364;try{if(!this[_0x1e96c3(0x187)][_0x1e96c3(0x17d)]())throw new Error(_0x1e96c3(0x17b));await this[_0x1e96c3(0x187)][_0x1e96c3(0x18f)]['emit']('reception.deleted',{'id':_0x5339d6}),this[_0x1e96c3(0x177)][_0x1e96c3(0x18d)](_0x5339d6);}catch(_0x2ebb52){this[_0x1e96c3(0x187)][_0x1e96c3(0x18f)][_0x1e96c3(0x175)]('reception.error',{'error':_0x2ebb52});throw _0x2ebb52;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a45_0x57ec(){const _0x3b5e21=['10tkjSUy','then','12693048PAdKzA','927WOPAsT','stock.updated','events','cache','stock.cached.some','emit','delete','16597818mvAdkU','fetch','new','9898609rINTpA','request','10330020swamdn','has','get','set','218931loJllq','stock.read.some','46pHlClV','stock.error','stock.deleted','000001:\x20Invalid\x20Token.','fetchAll','stock.read','owl','length','stock.cached.all','tokenIsValide','some','values','3498564guKjfc'];a45_0x57ec=function(){return _0x3b5e21;};return a45_0x57ec();}const a45_0x154d13=a45_0x55e1;(function(_0xb97dce,_0x264973){const _0x4db19c=a45_0x55e1,_0x49bb05=_0xb97dce();while(!![]){try{const _0x22d61b=-parseInt(_0x4db19c(0x149))/0x1+parseInt(_0x4db19c(0x14b))/0x2*(-parseInt(_0x4db19c(0x139))/0x3)+-parseInt(_0x4db19c(0x135))/0x4*(parseInt(_0x4db19c(0x136))/0x5)+parseInt(_0x4db19c(0x145))/0x6+parseInt(_0x4db19c(0x143))/0x7+parseInt(_0x4db19c(0x138))/0x8+-parseInt(_0x4db19c(0x140))/0x9;if(_0x22d61b===_0x264973)break;else _0x49bb05['push'](_0x49bb05['shift']());}catch(_0xfb6bbe){_0x49bb05['push'](_0x49bb05['shift']());}}}(a45_0x57ec,0xdc6d2));import{Manager}from'../core/Manager.js';function a45_0x55e1(_0x38127c,_0x4dfda5){_0x38127c=_0x38127c-0x12d;const _0x57ec97=a45_0x57ec();let _0x55e1ad=_0x57ec97[_0x38127c];return _0x55e1ad;}import{Stock}from'../entities/Stock.js';export class StockManager extends Manager{async[a45_0x154d13(0x141)](_0x46fe34){const _0x4d2ec8=a45_0x154d13;try{if(!this['owl'][_0x4d2ec8(0x132)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x4d2ec8(0x13c)][_0x4d2ec8(0x146)](_0x46fe34))return this['cache'][_0x4d2ec8(0x147)](_0x46fe34);const _0x36f96b=await this[_0x4d2ec8(0x12f)][_0x4d2ec8(0x13b)][_0x4d2ec8(0x144)](_0x4d2ec8(0x12e),{'id':_0x46fe34}),_0x9570e3=new Stock(this[_0x4d2ec8(0x12f)],_0x36f96b);return this['cache'][_0x4d2ec8(0x148)](_0x46fe34,_0x9570e3),this[_0x4d2ec8(0x12f)][_0x4d2ec8(0x13b)][_0x4d2ec8(0x13e)]('stock.cached',_0x9570e3),_0x9570e3;}catch(_0x3ed8d9){this[_0x4d2ec8(0x12f)][_0x4d2ec8(0x13b)][_0x4d2ec8(0x13e)](_0x4d2ec8(0x14c),{'error':_0x3ed8d9});throw _0x3ed8d9;}}async[a45_0x154d13(0x12d)](){const _0x41f011=a45_0x154d13;try{if(!this['owl'][_0x41f011(0x132)]())throw new Error(_0x41f011(0x14e));const _0x19c724=await this[_0x41f011(0x12f)][_0x41f011(0x13b)]['request']('stock.read.all',{});for(let _0x41e612=0x0;_0x41e612<_0x19c724[_0x41f011(0x130)];_0x41e612++){const _0x2ecfa9=new Stock(this[_0x41f011(0x12f)],_0x19c724[_0x41e612]);this['cache'][_0x41f011(0x148)](_0x2ecfa9['id'],_0x2ecfa9);}return this[_0x41f011(0x12f)]['events'][_0x41f011(0x13e)](_0x41f011(0x131),this[_0x41f011(0x13c)]['values']()),this['cache'][_0x41f011(0x134)]();}catch(_0x2f5bf5){this['owl'][_0x41f011(0x13b)]['emit'](_0x41f011(0x14c),{'error':_0x2f5bf5});throw _0x2f5bf5;}}async[a45_0x154d13(0x133)](_0x818a25){const _0x103756=a45_0x154d13;try{if(!this[_0x103756(0x12f)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x3b97b0=await this['owl'][_0x103756(0x13b)][_0x103756(0x144)](_0x103756(0x14a),_0x818a25);for(let _0x2f20d0=0x0;_0x2f20d0<_0x3b97b0['length'];_0x2f20d0++){const _0x24cfe5=new Stock(this['owl'],_0x3b97b0[_0x2f20d0]);this['cache'][_0x103756(0x148)](_0x24cfe5['id'],_0x24cfe5);}return this['owl'][_0x103756(0x13b)][_0x103756(0x13e)](_0x103756(0x13d),_0x3b97b0),_0x3b97b0;}catch(_0x326058){this[_0x103756(0x12f)][_0x103756(0x13b)][_0x103756(0x13e)](_0x103756(0x14c),{'error':_0x326058});throw _0x326058;}}async[a45_0x154d13(0x142)](_0xee36cd){const _0x491c5d=a45_0x154d13;try{if(!this[_0x491c5d(0x12f)][_0x491c5d(0x132)]())throw new Error(_0x491c5d(0x14e));const _0xa59532=await this[_0x491c5d(0x12f)][_0x491c5d(0x13b)][_0x491c5d(0x144)]('stock.created',{'stock':_0xee36cd});_0xee36cd['id']=_0xa59532;const _0x43da40=new Stock(this['owl'],_0xee36cd);return this['cache']['set'](_0x43da40['id'],_0x43da40),_0x43da40;}catch(_0xfdc2de){this['owl'][_0x491c5d(0x13b)][_0x491c5d(0x13e)](_0x491c5d(0x14c),{'error':_0xfdc2de});throw _0xfdc2de;}}async['modify'](_0xd9a8ad,_0x430168){const _0x169d47=a45_0x154d13;try{if(!this['owl'][_0x169d47(0x132)]())throw new Error(_0x169d47(0x14e));await this['owl'][_0x169d47(0x13b)][_0x169d47(0x144)](_0x169d47(0x13a),_0x430168)[_0x169d47(0x137)](_0x1092e1=>{const _0x4e52fb=_0x169d47;this[_0x4e52fb(0x13c)][_0x4e52fb(0x148)](_0xd9a8ad,_0x1092e1);});}catch(_0x3471d0){this[_0x169d47(0x12f)][_0x169d47(0x13b)][_0x169d47(0x13e)](_0x169d47(0x14c),{'error':_0x3471d0});throw _0x3471d0;}}async[a45_0x154d13(0x13f)](_0x349d86){const _0x504c28=a45_0x154d13;try{if(!this[_0x504c28(0x12f)][_0x504c28(0x132)]())throw new Error(_0x504c28(0x14e));await this[_0x504c28(0x12f)][_0x504c28(0x13b)][_0x504c28(0x13e)](_0x504c28(0x14d),{'id':_0x349d86}),this[_0x504c28(0x13c)][_0x504c28(0x13f)](_0x349d86);}catch(_0x11bb01){this['owl'][_0x504c28(0x13b)][_0x504c28(0x13e)](_0x504c28(0x14c),{'error':_0x11bb01});throw _0x11bb01;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a46_0x2443bc=a46_0x37ef;function a46_0x37ef(_0x4bf04a,_0x3e3d37){_0x4bf04a=_0x4bf04a-0x134;const _0x1796d7=a46_0x1796();let _0x37efcd=_0x1796d7[_0x4bf04a];return _0x37efcd;}(function(_0xc6ee9c,_0x43c707){const _0x4afb7b=a46_0x37ef,_0x76068=_0xc6ee9c();while(!![]){try{const _0x3ff1ff=parseInt(_0x4afb7b(0x13e))/0x1+parseInt(_0x4afb7b(0x152))/0x2*(parseInt(_0x4afb7b(0x150))/0x3)+parseInt(_0x4afb7b(0x141))/0x4+-parseInt(_0x4afb7b(0x13b))/0x5+parseInt(_0x4afb7b(0x14e))/0x6*(-parseInt(_0x4afb7b(0x139))/0x7)+-parseInt(_0x4afb7b(0x14c))/0x8+parseInt(_0x4afb7b(0x14d))/0x9*(parseInt(_0x4afb7b(0x148))/0xa);if(_0x3ff1ff===_0x43c707)break;else _0x76068['push'](_0x76068['shift']());}catch(_0x310563){_0x76068['push'](_0x76068['shift']());}}}(a46_0x1796,0xe4e99));import{Manager}from'../core/Manager.js';import{Supplier}from'../entities/Supplier.js';export class SupplierManager extends Manager{async[a46_0x2443bc(0x144)](_0x368b4d){const _0x14c156=a46_0x2443bc;try{if(!this[_0x14c156(0x142)][_0x14c156(0x146)]())throw new Error(_0x14c156(0x137));if(this[_0x14c156(0x147)]['has'](_0x368b4d))return this[_0x14c156(0x147)][_0x14c156(0x154)](_0x368b4d);const _0x2f5747=await this[_0x14c156(0x142)][_0x14c156(0x13c)]['request'](_0x14c156(0x136),{'id':_0x368b4d}),_0x2b653b=new Supplier(this['owl'],_0x2f5747);return this['cache'][_0x14c156(0x14f)](_0x368b4d,_0x2b653b),this[_0x14c156(0x142)][_0x14c156(0x13c)][_0x14c156(0x156)](_0x14c156(0x14a),_0x2b653b),_0x2b653b;}catch(_0x1e58f9){this[_0x14c156(0x142)]['events'][_0x14c156(0x156)]('supplier.error',{'error':_0x1e58f9});throw _0x1e58f9;}}async[a46_0x2443bc(0x13d)](){const _0x413145=a46_0x2443bc;try{if(!this[_0x413145(0x142)][_0x413145(0x146)]())throw new Error(_0x413145(0x137));const _0x92bff2=await this[_0x413145(0x142)][_0x413145(0x13c)][_0x413145(0x153)](_0x413145(0x143),{});for(let _0x277a9c=0x0;_0x277a9c<_0x92bff2[_0x413145(0x149)];_0x277a9c++){const _0x3d6dd5=new Supplier(this['owl'],_0x92bff2[_0x277a9c]);this[_0x413145(0x147)][_0x413145(0x14f)](_0x3d6dd5['id'],_0x3d6dd5);}return this[_0x413145(0x142)][_0x413145(0x13c)][_0x413145(0x156)](_0x413145(0x13a),this[_0x413145(0x147)][_0x413145(0x135)]()),this[_0x413145(0x147)][_0x413145(0x135)]();}catch(_0x18cc9b){this[_0x413145(0x142)][_0x413145(0x13c)][_0x413145(0x156)](_0x413145(0x14b),{'error':_0x18cc9b});throw _0x18cc9b;}}async[a46_0x2443bc(0x157)](_0x9d5711){const _0x59cd48=a46_0x2443bc;try{if(!this[_0x59cd48(0x142)]['tokenIsValide']())throw new Error(_0x59cd48(0x137));const _0x5b3784=await this[_0x59cd48(0x142)][_0x59cd48(0x13c)][_0x59cd48(0x153)](_0x59cd48(0x155),_0x9d5711);for(let _0x12d78a=0x0;_0x12d78a<_0x5b3784[_0x59cd48(0x149)];_0x12d78a++){const _0x3cc028=new Supplier(this[_0x59cd48(0x142)],_0x5b3784[_0x12d78a]);this['cache'][_0x59cd48(0x14f)](_0x3cc028['id'],_0x3cc028);}return this[_0x59cd48(0x142)][_0x59cd48(0x13c)][_0x59cd48(0x156)]('supplier.cached.some',_0x5b3784),_0x5b3784;}catch(_0x5d9d38){this[_0x59cd48(0x142)]['events'][_0x59cd48(0x156)](_0x59cd48(0x14b),{'error':_0x5d9d38});throw _0x5d9d38;}}async[a46_0x2443bc(0x138)](_0x2d13fb){const _0x54b801=a46_0x2443bc;try{if(!this[_0x54b801(0x142)][_0x54b801(0x146)]())throw new Error(_0x54b801(0x137));const _0x5920c6=await this['owl']['events']['request'](_0x54b801(0x151),{'supplier':_0x2d13fb});_0x2d13fb['id']=_0x5920c6;const _0x89605e=new Supplier(this['owl'],_0x2d13fb);return this[_0x54b801(0x147)]['set'](_0x89605e['id'],_0x89605e),_0x89605e;}catch(_0x18081f){this['owl'][_0x54b801(0x13c)]['emit'](_0x54b801(0x14b),{'error':_0x18081f});throw _0x18081f;}}async['modify'](_0x49449e,_0x2184de){const _0x3729f3=a46_0x2443bc;try{if(!this[_0x3729f3(0x142)][_0x3729f3(0x146)]())throw new Error(_0x3729f3(0x137));await this['owl'][_0x3729f3(0x13c)][_0x3729f3(0x153)](_0x3729f3(0x145),_0x2184de)[_0x3729f3(0x13f)](_0xef3d75=>{const _0x6bfdf7=_0x3729f3;this[_0x6bfdf7(0x147)][_0x6bfdf7(0x14f)](_0x49449e,_0xef3d75);});}catch(_0x404c66){this[_0x3729f3(0x142)][_0x3729f3(0x13c)][_0x3729f3(0x156)](_0x3729f3(0x14b),{'error':_0x404c66});throw _0x404c66;}}async['delete'](_0x13c4ac){const _0x5c5627=a46_0x2443bc;try{if(!this[_0x5c5627(0x142)][_0x5c5627(0x146)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x5c5627(0x142)][_0x5c5627(0x13c)][_0x5c5627(0x156)](_0x5c5627(0x134),{'id':_0x13c4ac}),this[_0x5c5627(0x147)][_0x5c5627(0x140)](_0x13c4ac);}catch(_0x56faa4){this[_0x5c5627(0x142)][_0x5c5627(0x13c)][_0x5c5627(0x156)](_0x5c5627(0x14b),{'error':_0x56faa4});throw _0x56faa4;}}}function a46_0x1796(){const _0x23dd84=['then','delete','1752824arFvoi','owl','supplier.read.all','fetch','supplier.updated','tokenIsValide','cache','20nzKWfJ','length','supplier.cached','supplier.error','808320yjcgsY','5870781MIsxoW','6fKFIrl','set','4885497deyALg','supplier.created','2XnVRgQ','request','get','supplier.read.some','emit','some','supplier.deleted','values','supplier.read','000001:\x20Invalid\x20Token.','new','8409583zwAgzx','supplier.cached.all','7369695deKmnd','events','fetchAll','342650JqVclg'];a46_0x1796=function(){return _0x23dd84;};return a46_0x1796();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a47_0x38fb5e=a47_0x565e;function a47_0x27b3(){const _0x2b3ea8=['tax.read.all','tax.read','936NASDHb','1631lGONmn','4599535pmNcCQ','delete','tax.cached','emit','set','2046HtXafq','length','request','570hloanc','has','67011ZwsHXS','tax.updated','fetchAll','000001:\x20Invalid\x20Token.','owl','tax.cached.some','46090kUgkOv','events','2866392IUjIQE','38673cxxdjU','4997022bUqoJk','then','cache','get','4KoJHdx','tax.read.some','363WSoMTH','tokenIsValide','modify','tax.error','tax.created'];a47_0x27b3=function(){return _0x2b3ea8;};return a47_0x27b3();}(function(_0x562b3b,_0x44c013){const _0x39929a=a47_0x565e,_0x5692c9=_0x562b3b();while(!![]){try{const _0x3e4d00=-parseInt(_0x39929a(0x1f2))/0x1*(-parseInt(_0x39929a(0x1f8))/0x2)+parseInt(_0x39929a(0x207))/0x3*(-parseInt(_0x39929a(0x1e8))/0x4)+parseInt(_0x39929a(0x1f3))/0x5+-parseInt(_0x39929a(0x1fb))/0x6*(parseInt(_0x39929a(0x1fd))/0x7)+parseInt(_0x39929a(0x1f1))/0x8*(parseInt(_0x39929a(0x206))/0x9)+-parseInt(_0x39929a(0x203))/0xa*(-parseInt(_0x39929a(0x1ea))/0xb)+parseInt(_0x39929a(0x205))/0xc;if(_0x3e4d00===_0x44c013)break;else _0x5692c9['push'](_0x5692c9['shift']());}catch(_0x5e9eaf){_0x5692c9['push'](_0x5692c9['shift']());}}}(a47_0x27b3,0xdd70f));import{Manager}from'../core/Manager.js';import{Tax}from'../entities/Tax.js';function a47_0x565e(_0x59e3f3,_0x8df3d0){_0x59e3f3=_0x59e3f3-0x1e8;const _0x27b377=a47_0x27b3();let _0x565e87=_0x27b377[_0x59e3f3];return _0x565e87;}export class TaxManager extends Manager{async['fetch'](_0xaa5353){const _0x438f3e=a47_0x565e;try{if(!this[_0x438f3e(0x201)][_0x438f3e(0x1eb)]())throw new Error(_0x438f3e(0x200));if(this[_0x438f3e(0x209)][_0x438f3e(0x1fc)](_0xaa5353))return this[_0x438f3e(0x209)][_0x438f3e(0x20a)](_0xaa5353);const _0x4107d9=await this[_0x438f3e(0x201)][_0x438f3e(0x204)][_0x438f3e(0x1fa)](_0x438f3e(0x1f0),{'id':_0xaa5353}),_0x406b55=new Tax(this[_0x438f3e(0x201)],_0x4107d9);return this[_0x438f3e(0x209)][_0x438f3e(0x1f7)](_0xaa5353,_0x406b55),this[_0x438f3e(0x201)][_0x438f3e(0x204)][_0x438f3e(0x1f6)](_0x438f3e(0x1f5),_0x406b55),_0x406b55;}catch(_0x40f4a0){this[_0x438f3e(0x201)][_0x438f3e(0x204)][_0x438f3e(0x1f6)]('tax.error',{'error':_0x40f4a0});throw _0x40f4a0;}}async[a47_0x38fb5e(0x1ff)](){const _0x201d98=a47_0x38fb5e;try{if(!this[_0x201d98(0x201)][_0x201d98(0x1eb)]())throw new Error(_0x201d98(0x200));const _0x42ae44=await this[_0x201d98(0x201)][_0x201d98(0x204)][_0x201d98(0x1fa)](_0x201d98(0x1ef),{});for(let _0x4e0304=0x0;_0x4e0304<_0x42ae44['length'];_0x4e0304++){const _0x43ad50=new Tax(this[_0x201d98(0x201)],_0x42ae44[_0x4e0304]);this[_0x201d98(0x209)][_0x201d98(0x1f7)](_0x43ad50['id'],_0x43ad50);}return this[_0x201d98(0x201)]['events']['emit']('tax.cached.all',this[_0x201d98(0x209)]['values']()),this[_0x201d98(0x209)]['values']();}catch(_0x2c74d6){this['owl'][_0x201d98(0x204)][_0x201d98(0x1f6)]('tax.error',{'error':_0x2c74d6});throw _0x2c74d6;}}async['some'](_0x5c78d1){const _0xdbb323=a47_0x38fb5e;try{if(!this[_0xdbb323(0x201)]['tokenIsValide']())throw new Error(_0xdbb323(0x200));const _0x53da39=await this[_0xdbb323(0x201)][_0xdbb323(0x204)][_0xdbb323(0x1fa)](_0xdbb323(0x1e9),_0x5c78d1);for(let _0x419422=0x0;_0x419422<_0x53da39[_0xdbb323(0x1f9)];_0x419422++){const _0x1b7a64=new Tax(this[_0xdbb323(0x201)],_0x53da39[_0x419422]);this[_0xdbb323(0x209)][_0xdbb323(0x1f7)](_0x1b7a64['id'],_0x1b7a64);}return this[_0xdbb323(0x201)]['events'][_0xdbb323(0x1f6)](_0xdbb323(0x202),_0x53da39),_0x53da39;}catch(_0x241ae2){this[_0xdbb323(0x201)][_0xdbb323(0x204)][_0xdbb323(0x1f6)](_0xdbb323(0x1ed),{'error':_0x241ae2});throw _0x241ae2;}}async['new'](_0x310547){const _0x2cf76b=a47_0x38fb5e;try{if(!this[_0x2cf76b(0x201)][_0x2cf76b(0x1eb)]())throw new Error(_0x2cf76b(0x200));const _0x4c6e1e=await this['owl'][_0x2cf76b(0x204)][_0x2cf76b(0x1fa)](_0x2cf76b(0x1ee),{'tax':_0x310547});_0x310547['id']=_0x4c6e1e;const _0x1cc775=new Tax(this['owl'],_0x310547);return this[_0x2cf76b(0x209)][_0x2cf76b(0x1f7)](_0x1cc775['id'],_0x1cc775),_0x1cc775;}catch(_0x10d345){this[_0x2cf76b(0x201)]['events'][_0x2cf76b(0x1f6)](_0x2cf76b(0x1ed),{'error':_0x10d345});throw _0x10d345;}}async[a47_0x38fb5e(0x1ec)](_0x507123,_0x2ccf50){const _0x4d7c5f=a47_0x38fb5e;try{if(!this[_0x4d7c5f(0x201)][_0x4d7c5f(0x1eb)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4d7c5f(0x201)][_0x4d7c5f(0x204)]['request'](_0x4d7c5f(0x1fe),_0x2ccf50)[_0x4d7c5f(0x208)](_0x23f229=>{const _0x2fa5d9=_0x4d7c5f;this[_0x2fa5d9(0x209)][_0x2fa5d9(0x1f7)](_0x507123,_0x23f229);});}catch(_0x56b2bf){this[_0x4d7c5f(0x201)][_0x4d7c5f(0x204)]['emit'](_0x4d7c5f(0x1ed),{'error':_0x56b2bf});throw _0x56b2bf;}}async[a47_0x38fb5e(0x1f4)](_0x37d30b){const _0x39b355=a47_0x38fb5e;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x39b355(0x200));await this[_0x39b355(0x201)]['events'][_0x39b355(0x1f6)]('tax.deleted',{'id':_0x37d30b}),this['cache']['delete'](_0x37d30b);}catch(_0x159b5d){this['owl'][_0x39b355(0x204)]['emit'](_0x39b355(0x1ed),{'error':_0x159b5d});throw _0x159b5d;}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a48_0x5a0194=a48_0x1c7f;(function(_0xac6b5a,_0x21f673){const _0x4c11fe=a48_0x1c7f,_0x481382=_0xac6b5a();while(!![]){try{const _0x479575=-parseInt(_0x4c11fe(0x120))/0x1*(parseInt(_0x4c11fe(0x11f))/0x2)+-parseInt(_0x4c11fe(0x12d))/0x3+parseInt(_0x4c11fe(0x130))/0x4+parseInt(_0x4c11fe(0x11e))/0x5*(-parseInt(_0x4c11fe(0x121))/0x6)+-parseInt(_0x4c11fe(0x123))/0x7+-parseInt(_0x4c11fe(0x125))/0x8*(-parseInt(_0x4c11fe(0x113))/0x9)+parseInt(_0x4c11fe(0x117))/0xa*(parseInt(_0x4c11fe(0x12b))/0xb);if(_0x479575===_0x21f673)break;else _0x481382['push'](_0x481382['shift']());}catch(_0x4a6f01){_0x481382['push'](_0x481382['shift']());}}}(a48_0x3ee5,0x3aed3));function a48_0x3ee5(){const _0x473f33=['emit','delete','tokenIsValide','new','user.loggedIn','9273alrAnq','cache','170688ENdwnT','modify','user.read.all','722180BefEhP','user.deleted','user.cached.some','events','fetchAll','request','user.login','2547081YvnuKb','user.cached.all','login','has','480zuiTvz','user.read.some','fetch','owl','length','set','000001:\x20Invalid\x20Token.','5YUOith','2ptKyWH','170237VOaHcW','62730gYFEYG','user.cached','175469nJxTGf','user.error','8ApiTXK'];a48_0x3ee5=function(){return _0x473f33;};return a48_0x3ee5();}import{Manager}from'../core/Manager.js';function a48_0x1c7f(_0x2d3a62,_0x4e22f5){_0x2d3a62=_0x2d3a62-0x110;const _0x3ee510=a48_0x3ee5();let _0x1c7f62=_0x3ee510[_0x2d3a62];return _0x1c7f62;}import{User}from'../entities/User.js';export class UserManager extends Manager{async[a48_0x5a0194(0x115)](_0x477cd7,_0x3551dd){const _0x1b75b1=a48_0x5a0194;try{if(!this[_0x1b75b1(0x11a)][_0x1b75b1(0x128)]())throw new Error(_0x1b75b1(0x11d));const _0x22e5eb=await this['owl'][_0x1b75b1(0x133)][_0x1b75b1(0x111)](_0x1b75b1(0x112),{'email':_0x477cd7,'password':_0x3551dd}),_0xb012f3=new User(this['owl'],_0x22e5eb);return this[_0x1b75b1(0x12c)][_0x1b75b1(0x11c)](_0xb012f3['id'],_0xb012f3),this['owl'][_0x1b75b1(0x133)][_0x1b75b1(0x126)](_0x1b75b1(0x12a),_0xb012f3),_0xb012f3;}catch(_0x3b5bc4){this[_0x1b75b1(0x11a)]['events'][_0x1b75b1(0x126)](_0x1b75b1(0x124),{'error':_0x3b5bc4});throw _0x3b5bc4;}}async[a48_0x5a0194(0x119)](_0x1e1dfa){const _0x2c9ae0=a48_0x5a0194;try{if(!this[_0x2c9ae0(0x11a)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x2c9ae0(0x12c)][_0x2c9ae0(0x116)](_0x1e1dfa))return this[_0x2c9ae0(0x12c)]['get'](_0x1e1dfa);const _0x592f12=await this['owl'][_0x2c9ae0(0x133)][_0x2c9ae0(0x111)]('user.read',{'id':_0x1e1dfa}),_0x1a92d0=new User(this['owl'],_0x592f12);return this['cache'][_0x2c9ae0(0x11c)](_0x1e1dfa,_0x1a92d0),this[_0x2c9ae0(0x11a)][_0x2c9ae0(0x133)][_0x2c9ae0(0x126)](_0x2c9ae0(0x122),_0x1a92d0),_0x1a92d0;}catch(_0x25e85f){this['owl'][_0x2c9ae0(0x133)][_0x2c9ae0(0x126)](_0x2c9ae0(0x124),{'error':_0x25e85f});throw _0x25e85f;}}async[a48_0x5a0194(0x110)](){const _0xfcaaa0=a48_0x5a0194;try{if(!this[_0xfcaaa0(0x11a)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x3dc976=await this[_0xfcaaa0(0x11a)][_0xfcaaa0(0x133)][_0xfcaaa0(0x111)](_0xfcaaa0(0x12f),{});for(let _0x19ab6f=0x0;_0x19ab6f<_0x3dc976['length'];_0x19ab6f++){const _0x334c13=new User(this[_0xfcaaa0(0x11a)],_0x3dc976[_0x19ab6f]);this[_0xfcaaa0(0x12c)][_0xfcaaa0(0x11c)](_0x334c13['id'],_0x334c13);}return this[_0xfcaaa0(0x11a)][_0xfcaaa0(0x133)][_0xfcaaa0(0x126)](_0xfcaaa0(0x114),this['cache']['values']()),this[_0xfcaaa0(0x12c)]['values']();}catch(_0x11638d){this[_0xfcaaa0(0x11a)][_0xfcaaa0(0x133)][_0xfcaaa0(0x126)](_0xfcaaa0(0x124),{'error':_0x11638d});throw _0x11638d;}}async['some'](_0x50c42e){const _0x4eb8e8=a48_0x5a0194;try{if(!this['owl'][_0x4eb8e8(0x128)]())throw new Error(_0x4eb8e8(0x11d));const _0x10a379=await this[_0x4eb8e8(0x11a)]['events'][_0x4eb8e8(0x111)](_0x4eb8e8(0x118),_0x50c42e);for(let _0x2905d6=0x0;_0x2905d6<_0x10a379[_0x4eb8e8(0x11b)];_0x2905d6++){const _0x632675=new User(this[_0x4eb8e8(0x11a)],_0x10a379[_0x2905d6]);this[_0x4eb8e8(0x12c)][_0x4eb8e8(0x11c)](_0x632675['id'],_0x632675);}return this[_0x4eb8e8(0x11a)]['events'][_0x4eb8e8(0x126)](_0x4eb8e8(0x132),_0x10a379),_0x10a379;}catch(_0x21921f){this[_0x4eb8e8(0x11a)][_0x4eb8e8(0x133)][_0x4eb8e8(0x126)](_0x4eb8e8(0x124),{'error':_0x21921f});throw _0x21921f;}}async[a48_0x5a0194(0x129)](_0x543e66){const _0x652435=a48_0x5a0194;try{if(!this[_0x652435(0x11a)][_0x652435(0x128)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x57c7fb=await this[_0x652435(0x11a)][_0x652435(0x133)][_0x652435(0x111)]('user.created',{'user':_0x543e66});_0x543e66['id']=_0x57c7fb;const _0x38e400=new User(this['owl'],_0x543e66);return this['cache'][_0x652435(0x11c)](_0x38e400['id'],_0x38e400),_0x38e400;}catch(_0x127a7f){this['owl'][_0x652435(0x133)][_0x652435(0x126)]('user.error',{'error':_0x127a7f});throw _0x127a7f;}}async[a48_0x5a0194(0x12e)](_0x1d5db1,_0x28ebac){const _0xab93b6=a48_0x5a0194;try{if(!this[_0xab93b6(0x11a)][_0xab93b6(0x128)]())throw new Error(_0xab93b6(0x11d));await this['owl'][_0xab93b6(0x133)]['request']('user.updated',_0x28ebac)['then'](_0x1efd80=>{const _0x370a28=_0xab93b6;this[_0x370a28(0x12c)][_0x370a28(0x11c)](_0x1d5db1,_0x1efd80);});}catch(_0x3debf7){this[_0xab93b6(0x11a)]['events']['emit'](_0xab93b6(0x124),{'error':_0x3debf7});throw _0x3debf7;}}async[a48_0x5a0194(0x127)](_0x823c90){const _0x114ede=a48_0x5a0194;try{if(!this[_0x114ede(0x11a)][_0x114ede(0x128)]())throw new Error(_0x114ede(0x11d));await this['owl'][_0x114ede(0x133)][_0x114ede(0x126)](_0x114ede(0x131),{'id':_0x823c90}),this[_0x114ede(0x12c)][_0x114ede(0x127)](_0x823c90);}catch(_0x608a1b){this['owl'][_0x114ede(0x133)][_0x114ede(0x126)](_0x114ede(0x124),{'error':_0x608a1b});throw _0x608a1b;}}}
|
package/dist/owl/OWLClient.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { EventBus } from "../core/EventBus.js";
|
|
|
2
2
|
import { UserManager } from "../managers/UserManager.js";
|
|
3
3
|
import { OrderManager } from "../managers/OrderManager.js";
|
|
4
4
|
import { OWLModule } from "../core/Module.js";
|
|
5
|
-
import { PrismaDatabase } from "../core/PrismaDatabase.js";
|
|
6
5
|
import { User } from "../entities/User.js";
|
|
7
6
|
import { ClientManager } from "../managers/ClientManager.js";
|
|
8
7
|
import { SupplierManager } from "../managers/SupplierManager.js";
|
|
@@ -12,6 +11,7 @@ import { PurchaseManager } from "../managers/PurchaseManager.js";
|
|
|
12
11
|
import { ReceptionManager } from "../managers/ReceptionManager.js";
|
|
13
12
|
import { StockManager } from "../managers/StockManager.js";
|
|
14
13
|
import { TaxManager } from "../managers/TaxManager.js";
|
|
14
|
+
import { EventsDatabase } from "../core/EventsDatabase.js";
|
|
15
15
|
export declare class OWLClient {
|
|
16
16
|
users: UserManager;
|
|
17
17
|
clients: ClientManager;
|
|
@@ -24,7 +24,7 @@ export declare class OWLClient {
|
|
|
24
24
|
stocks: StockManager;
|
|
25
25
|
taxes: TaxManager;
|
|
26
26
|
events: EventBus;
|
|
27
|
-
|
|
27
|
+
dbEvents: EventsDatabase;
|
|
28
28
|
private modules;
|
|
29
29
|
private token;
|
|
30
30
|
private currentUser?;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a49_0x19536f=a49_0x117a;(function(_0x3c6440,_0x4959a9){const _0x3e7b89=a49_0x117a,_0x351b55=_0x3c6440();while(!![]){try{const _0x56a89e=parseInt(_0x3e7b89(0xaf))/0x1+parseInt(_0x3e7b89(0x9b))/0x2*(parseInt(_0x3e7b89(0xb0))/0x3)+-parseInt(_0x3e7b89(0xac))/0x4+parseInt(_0x3e7b89(0xa3))/0x5*(parseInt(_0x3e7b89(0xb3))/0x6)+parseInt(_0x3e7b89(0xa0))/0x7+-parseInt(_0x3e7b89(0xa6))/0x8+parseInt(_0x3e7b89(0xa5))/0x9;if(_0x56a89e===_0x4959a9)break;else _0x351b55['push'](_0x351b55['shift']());}catch(_0x318ea3){_0x351b55['push'](_0x351b55['shift']());}}}(a49_0x5abe,0x686cc));function a49_0x117a(_0x21058d,_0x3b1f7a){_0x21058d=_0x21058d-0x9b;const _0x5abe7d=a49_0x5abe();let _0x117a83=_0x5abe7d[_0x21058d];return _0x117a83;}import{EventBus}from'../core/EventBus.js';import{UserManager}from'../managers/UserManager.js';import{OrderManager}from'../managers/OrderManager.js';import{User}from'../entities/User.js';import{ClientManager}from'../managers/ClientManager.js';import{SupplierManager}from'../managers/SupplierManager.js';import{ItemManager}from'../managers/ItemManager.js';function a49_0x5abe(){const _0x4aa379=['stringify','json','tokenValidate','suppliers','dbEvents','user.loggedIn','events','sha256','tokenIsValide','http://localhost:3000/check','2658xpYCdY','users','receptions','then','modules','4424nMYLLZ','getCurrentUser','ADMIN','5bRWRiR','init','2193687iDIXgX','2873752PMRcvt','length','stocks','registerModule','token','new','2849932DkTbSR','update','hex','155346SLijxT','933yhTYGx','000001:\x20Invalid\x20Token.','currentUser','4118316gnmzuE','admin','digest','login','taxes','validateToken'];a49_0x5abe=function(){return _0x4aa379;};return a49_0x5abe();}import{PreparationManager}from'../managers/PreparationManager.js';import{PurchaseManager}from'../managers/PurchaseManager.js';import{ReceptionManager}from'../managers/ReceptionManager.js';import{StockManager}from'../managers/StockManager.js';import{TaxManager}from'../managers/TaxManager.js';import a49_0x2c0f67 from'crypto';import{EventsDatabase}from'../core/EventsDatabase.js';export class OWLClient{constructor(_0x394c34){const _0x3eba04=a49_0x117a;this[_0x3eba04(0x9f)]=[],this[_0x3eba04(0xbb)]=![],this['token']=_0x394c34,this[_0x3eba04(0x9c)]=new UserManager(this),this['clients']=new ClientManager(this),this[_0x3eba04(0xbc)]=new SupplierManager(this),this['items']=new ItemManager(this),this['orders']=new OrderManager(this),this['preparations']=new PreparationManager(this),this['purchases']=new PurchaseManager(this),this[_0x3eba04(0x9d)]=new ReceptionManager(this),this[_0x3eba04(0xa8)]=new StockManager(this),this[_0x3eba04(0xb7)]=new TaxManager(this),this['events']=new EventBus();}async[a49_0x19536f(0xb8)](){const _0x149404=a49_0x19536f,_0x1eb565=await fetch(_0x149404(0xc2),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x149404(0xb9)]({'content':a49_0x2c0f67['createHash'](_0x149404(0xc0))[_0x149404(0xad)](this[_0x149404(0xaa)])[_0x149404(0xb5)](_0x149404(0xae))})}),_0x53eb8b=await _0x1eb565[_0x149404(0xba)]();return _0x53eb8b['result'];}async['init'](){const _0x42edab=a49_0x19536f;await this[_0x42edab(0xb6)](),this[_0x42edab(0xbd)]=new EventsDatabase(this),this[_0x42edab(0xb2)]=new User(this,{'authorizations':new Set([_0x42edab(0xa2)])}),await this[_0x42edab(0x9c)]['fetchAll']()[_0x42edab(0x9e)](_0x4e7cec=>{const _0x3cd375=_0x42edab;[..._0x4e7cec][_0x3cd375(0xa7)]==0x0&&this['users'][_0x3cd375(0xab)]({'email':_0x3cd375(0xb4),'password':_0x3cd375(0xb4),'authorizations':new Set([_0x3cd375(0xa2)])}),this[_0x3cd375(0xb2)]=undefined;}),this[_0x42edab(0xbf)]['on'](_0x42edab(0xbe),_0x4ad9d2=>{this['currentUser']=_0x4ad9d2;});}async[a49_0x19536f(0xb6)](){const _0x584e00=a49_0x19536f;this['tokenValidate']=await this[_0x584e00(0xb8)]();if(!this[_0x584e00(0xbb)])throw new Error('000001:\x20Invalid\x20Token.');}[a49_0x19536f(0xc1)](){const _0x511584=a49_0x19536f;return this[_0x511584(0xbb)];}[a49_0x19536f(0xa1)](){const _0x4c6576=a49_0x19536f;if(!this[_0x4c6576(0xc1)]())throw new Error(_0x4c6576(0xb1));return this[_0x4c6576(0xb2)]||new User(this,{});}[a49_0x19536f(0xa9)](_0x3467de){const _0x3e9ada=a49_0x19536f;if(!this[_0x3e9ada(0xc1)]())throw new Error('000001:\x20Invalid\x20Token.');_0x3467de[_0x3e9ada(0xa4)](this),this['modules']['push'](_0x3467de);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owl-progiciel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Progiciel / ERP modulaire",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,11 +24,17 @@
|
|
|
24
24
|
"author": "FVFB",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
+
"@types/body-parser": "^1.19.6",
|
|
28
|
+
"@types/cors": "^2.8.19",
|
|
29
|
+
"@types/express": "^5.0.6",
|
|
27
30
|
"@types/node": "^20.6.1",
|
|
28
31
|
"prisma": "^6.19.2",
|
|
29
32
|
"typescript": "^5.9.3"
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"@prisma/client": "^6.19.2"
|
|
35
|
+
"@prisma/client": "^6.19.2",
|
|
36
|
+
"cors": "^2.8.6",
|
|
37
|
+
"express": "^5.2.1",
|
|
38
|
+
"owl-progiciel": "^1.0.2"
|
|
33
39
|
}
|
|
34
|
-
}
|
|
40
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x43b6b4,_0xefc8b){var _0x238e98=a2_0x4000,_0x53c9f4=_0x43b6b4();while(!![]){try{var _0x40168d=parseInt(_0x238e98(0x13c))/0x1+-parseInt(_0x238e98(0x13a))/0x2*(-parseInt(_0x238e98(0x13d))/0x3)+-parseInt(_0x238e98(0x139))/0x4*(parseInt(_0x238e98(0x140))/0x5)+-parseInt(_0x238e98(0x13e))/0x6+parseInt(_0x238e98(0x141))/0x7*(-parseInt(_0x238e98(0x142))/0x8)+-parseInt(_0x238e98(0x13b))/0x9+parseInt(_0x238e98(0x143))/0xa;if(_0x40168d===_0xefc8b)break;else _0x53c9f4['push'](_0x53c9f4['shift']());}catch(_0x5dfd32){_0x53c9f4['push'](_0x53c9f4['shift']());}}}(a2_0x57e6,0x7b23c));function a2_0x4000(_0x130db3,_0x117ba6){_0x130db3=_0x130db3-0x139;var _0x57e681=a2_0x57e6();var _0x4000ba=_0x57e681[_0x130db3];return _0x4000ba;}function a2_0x57e6(){var _0x4bbfb4=['21CFFgge','1252600bnyotM','11568970okEqxF','8sfmhph','132RfaEhS','6665733wsIELa','708561AFRbAP','36447nqNunN','5375340uxlCfM','owl','141650oNnrTR'];a2_0x57e6=function(){return _0x4bbfb4;};return a2_0x57e6();}export class Entity{constructor(_0x7fcc15){var _0x37e099=a2_0x4000;this[_0x37e099(0x13f)]=_0x7fcc15;}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a3_0x2592(_0x5f2666,_0x213ee9){_0x5f2666=_0x5f2666-0x1c0;const _0x1f0a8c=a3_0x1f0a();let _0x2592a4=_0x1f0a8c[_0x5f2666];return _0x2592a4;}const a3_0x2aa0c3=a3_0x2592;function a3_0x1f0a(){const _0x27cf1b=['get','2184624aNGkCz','emit','off','once','push','1807158ApVvsD','985119lJHJbn','has','onRequest','2072854tziorX','listeners','8144082jrklck','103996JPdOwZ','requestListeners','15uowrxJ','filter','38363epQZJU','2wbdXxq','set'];a3_0x1f0a=function(){return _0x27cf1b;};return a3_0x1f0a();}(function(_0x978196,_0x38e670){const _0x1e58d1=a3_0x2592,_0x22de84=_0x978196();while(!![]){try{const _0x4cc841=-parseInt(_0x1e58d1(0x1ca))/0x1+parseInt(_0x1e58d1(0x1cb))/0x2*(parseInt(_0x1e58d1(0x1c0))/0x3)+parseInt(_0x1e58d1(0x1c6))/0x4*(-parseInt(_0x1e58d1(0x1c8))/0x5)+-parseInt(_0x1e58d1(0x1d3))/0x6+-parseInt(_0x1e58d1(0x1c3))/0x7+-parseInt(_0x1e58d1(0x1ce))/0x8+parseInt(_0x1e58d1(0x1c5))/0x9;if(_0x4cc841===_0x38e670)break;else _0x22de84['push'](_0x22de84['shift']());}catch(_0x1f11c4){_0x22de84['push'](_0x22de84['shift']());}}}(a3_0x1f0a,0x3c2f6));export class EventBus{constructor(){const _0x5ec25f=a3_0x2592;this[_0x5ec25f(0x1c4)]=new Map(),this['requestListeners']=new Map();}['on'](_0x1c0941,_0x2fac69){const _0x381496=a3_0x2592;!this[_0x381496(0x1c4)][_0x381496(0x1c1)](_0x1c0941)&&this[_0x381496(0x1c4)][_0x381496(0x1cc)](_0x1c0941,[]),this['listeners'][_0x381496(0x1cd)](_0x1c0941)[_0x381496(0x1d2)](_0x2fac69);}[a3_0x2aa0c3(0x1d1)](_0x56fb9d,_0xfcb41e){const _0x488d35=_0x2f00f5=>{const _0x12d7a3=a3_0x2592;_0xfcb41e(_0x2f00f5),this[_0x12d7a3(0x1d0)](_0x56fb9d,_0x488d35);};this['on'](_0x56fb9d,_0x488d35);}[a3_0x2aa0c3(0x1d0)](_0x480924,_0xa6184a){const _0x103ff3=a3_0x2aa0c3,_0x364402=this[_0x103ff3(0x1c4)]['get'](_0x480924);if(!_0x364402)return;this['listeners'][_0x103ff3(0x1cc)](_0x480924,_0x364402[_0x103ff3(0x1c9)](_0xcf7538=>_0xcf7538!==_0xa6184a));}[a3_0x2aa0c3(0x1cf)](_0x1bd655,_0x1fc29c){const _0x3e4c29=a3_0x2aa0c3,_0x18f7ea=this['listeners'][_0x3e4c29(0x1cd)](_0x1bd655)??[];_0x18f7ea['forEach'](_0x5c65c9=>_0x5c65c9(_0x1fc29c));}[a3_0x2aa0c3(0x1c2)](_0x40d0e8,_0x44b3c5){const _0x37a09d=a3_0x2aa0c3;this[_0x37a09d(0x1c7)]['set'](_0x40d0e8,_0x44b3c5);}async['request'](_0x497ed8,_0x22019b){const _0x5f33a0=a3_0x2aa0c3,_0x525877=this[_0x5f33a0(0x1c7)]['get'](_0x497ed8);if(!_0x525877)throw new Error('No\x20request\x20listener\x20for\x20event\x20\x22'+_0x497ed8+'\x22');return await _0x525877(_0x22019b);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a14_0x3a74(_0x4220fa,_0x535fc4){_0x4220fa=_0x4220fa-0x142;var _0x326a79=a14_0x326a();var _0x3a7403=_0x326a79[_0x4220fa];return _0x3a7403;}function a14_0x326a(){var _0x3fcfdb=['741545CUvTLd','173627bcRDbt','4872Vakbmy','20LbqULO','6RatuVT','21747990jVPfOC','4988208ypfevq','32nHNCPd','61659AqSHQr','202479GJAGGs','owl'];a14_0x326a=function(){return _0x3fcfdb;};return a14_0x326a();}(function(_0x419848,_0x56c9a5){var _0x17544=a14_0x3a74,_0xd7f011=_0x419848();while(!![]){try{var _0x5d7ddc=parseInt(_0x17544(0x148))/0x1*(-parseInt(_0x17544(0x14b))/0x2)+-parseInt(_0x17544(0x145))/0x3*(parseInt(_0x17544(0x143))/0x4)+parseInt(_0x17544(0x14a))/0x5*(-parseInt(_0x17544(0x149))/0x6)+-parseInt(_0x17544(0x147))/0x7+-parseInt(_0x17544(0x142))/0x8+parseInt(_0x17544(0x144))/0x9+parseInt(_0x17544(0x14c))/0xa;if(_0x5d7ddc===_0x56c9a5)break;else _0xd7f011['push'](_0xd7f011['shift']());}catch(_0x5c7f28){_0xd7f011['push'](_0xd7f011['shift']());}}}(a14_0x326a,0x5ec14));export class Manager{constructor(_0x3ff8f4){var _0x44c94b=a14_0x3a74;this[_0x44c94b(0x146)]=_0x3ff8f4,this['cache']=new Map();}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a16_0x58ccc3=a16_0x54db;(function(_0x2cb60a,_0x39d13a){var _0x4c551d=a16_0x54db,_0x4aaa65=_0x2cb60a();while(!![]){try{var _0x553028=-parseInt(_0x4c551d(0x6c))/0x1+parseInt(_0x4c551d(0x68))/0x2*(parseInt(_0x4c551d(0x66))/0x3)+-parseInt(_0x4c551d(0x75))/0x4*(-parseInt(_0x4c551d(0x7a))/0x5)+-parseInt(_0x4c551d(0x6b))/0x6*(parseInt(_0x4c551d(0x79))/0x7)+parseInt(_0x4c551d(0x74))/0x8*(parseInt(_0x4c551d(0x73))/0x9)+parseInt(_0x4c551d(0x7c))/0xa*(parseInt(_0x4c551d(0x77))/0xb)+-parseInt(_0x4c551d(0x67))/0xc*(-parseInt(_0x4c551d(0x70))/0xd);if(_0x553028===_0x39d13a)break;else _0x4aaa65['push'](_0x4aaa65['shift']());}catch(_0x4e878f){_0x4aaa65['push'](_0x4aaa65['shift']());}}}(a16_0x450d,0x30a1b));import{PrismaClient}from'@prisma/client';import a16_0x37aa48 from'./events/UserEvents.js';function a16_0x54db(_0xc8cf6f,_0x103f4a){_0xc8cf6f=_0xc8cf6f-0x65;var _0x450d85=a16_0x450d();var _0x54dbbd=_0x450d85[_0xc8cf6f];return _0x54dbbd;}import a16_0x2eafc4 from'./events/ClientEvents.js';import a16_0x3b553c from'./events/SupplierEvents.js';import a16_0x2f31c3 from'./events/ItemEvents.js';import a16_0x487758 from'./events/TaxEvents.js';import a16_0x318f5b from'./events/OrderEvents.js';import a16_0x58365e from'./events/PreparationEvents.js';import a16_0x13d451 from'./events/PurchaseEvents.js';import a16_0x47b643 from'./events/ReceptionEvents.js';import a16_0x1a7aed from'./events/StockEvents.js';function a16_0x450d(){var _0x11c912=['owl.db.error','6181cIpytM','5JhgqZZ','connect','10RKLjSB','owl','36EiRaHA','660864mTfhRu','39506nCCXhk','prisma','emit','1182urDwKY','325860NCiOTL','000001:\x20Invalid\x20Token.','$connect','bindEvents','13aJmLjY','owl.db.connected','events','2185803gwdZuU','8HvSjlF','43144UqWOqx','tokenIsValide','1685695OVUvzv'];a16_0x450d=function(){return _0x11c912;};return a16_0x450d();}export class PrismaDatabase{constructor(_0x32bbdd){var _0x3d7724=a16_0x54db;this[_0x3d7724(0x65)]=_0x32bbdd;}async[a16_0x58ccc3(0x7b)](){var _0x368e8f=a16_0x58ccc3;this[_0x368e8f(0x69)]=new PrismaClient();try{await this[_0x368e8f(0x69)][_0x368e8f(0x6e)](),this[_0x368e8f(0x65)][_0x368e8f(0x72)][_0x368e8f(0x6a)](_0x368e8f(0x71),{});}catch(_0x17b51d){this[_0x368e8f(0x65)]['events'][_0x368e8f(0x6a)](_0x368e8f(0x78),_0x17b51d);throw _0x17b51d;}this[_0x368e8f(0x6f)]();}[a16_0x58ccc3(0x6f)](){var _0x266ef2=a16_0x58ccc3;if(!this[_0x266ef2(0x65)][_0x266ef2(0x76)]())throw new Error(_0x266ef2(0x6d));a16_0x37aa48(this[_0x266ef2(0x65)],this[_0x266ef2(0x69)]),a16_0x2eafc4(this['owl'],this[_0x266ef2(0x69)]),a16_0x3b553c(this['owl'],this[_0x266ef2(0x69)]),a16_0x2f31c3(this[_0x266ef2(0x65)],this[_0x266ef2(0x69)]),a16_0x487758(this[_0x266ef2(0x65)],this[_0x266ef2(0x69)]),a16_0x318f5b(this[_0x266ef2(0x65)],this['prisma']),a16_0x58365e(this[_0x266ef2(0x65)],this[_0x266ef2(0x69)]),a16_0x13d451(this['owl'],this[_0x266ef2(0x69)]),a16_0x47b643(this[_0x266ef2(0x65)],this[_0x266ef2(0x69)]),a16_0x1a7aed(this['owl'],this[_0x266ef2(0x69)]);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a4_0x5dbd(_0x2f4613,_0x4c079f){_0x2f4613=_0x2f4613-0xb8;const _0x306a14=a4_0x306a();let _0x5dbd44=_0x306a14[_0x2f4613];return _0x5dbd44;}function a4_0x306a(){const _0x5c6610=['222649UZIJIK','2270908vsDAYg','CLIENT_CREATED','ADMIN','18fANyRI','2893164wACgrP','client.updated','client','update','CLIENT_ALL','4119816pCVGFe','200002:\x20Action\x20not\x20allowed.','onRequest','client.read','client.deleted','findUnique','CLIENT_READ','190065zoHgsc','CLIENT_DELETED','200001:\x20Action\x20not\x20allowed.','hasPermission','5NMEwOA','420741nQMnBY','200002:Action\x20not\x20allowed.','client.created','200004:\x20Action\x20not\x20allowed.','client.read.some','200003:\x20Action\x20not\x20allowed.','getCurrentUser','8635113YPPvvY','events'];a4_0x306a=function(){return _0x5c6610;};return a4_0x306a();}(function(_0xdebbeb,_0x534d1b){const _0x3ee480=a4_0x5dbd,_0x3356f4=_0xdebbeb();while(!![]){try{const _0x5bb092=parseInt(_0x3ee480(0xbc))/0x1+parseInt(_0x3ee480(0xc9))/0x2*(parseInt(_0x3ee480(0xd6))/0x3)+parseInt(_0x3ee480(0xc6))/0x4*(-parseInt(_0x3ee480(0xbb))/0x5)+-parseInt(_0x3ee480(0xca))/0x6+-parseInt(_0x3ee480(0xc5))/0x7+-parseInt(_0x3ee480(0xcf))/0x8+parseInt(_0x3ee480(0xc3))/0x9;if(_0x5bb092===_0x534d1b)break;else _0x3356f4['push'](_0x3356f4['shift']());}catch(_0x430920){_0x3356f4['push'](_0x3356f4['shift']());}}}(a4_0x306a,0x56598));export default function bindClientEvents(_0x578109,_0x5abe0e){const _0x2bbe09=a4_0x5dbd;_0x578109[_0x2bbe09(0xc4)][_0x2bbe09(0xd1)](_0x2bbe09(0xbe),async _0x52fead=>{const _0x560f8d=_0x2bbe09;if(!_0x578109[_0x560f8d(0xc2)]()[_0x560f8d(0xba)](_0x560f8d(0xc8))&&!_0x578109[_0x560f8d(0xc2)]()[_0x560f8d(0xba)]('CLIENT_ALL')&&!_0x578109[_0x560f8d(0xc2)]()[_0x560f8d(0xba)](_0x560f8d(0xc7)))throw new Error(_0x560f8d(0xb9));const {taxes:_0x2cae78,..._0x3f9a1f}=_0x52fead[_0x560f8d(0xcc)],_0x1777b2=await _0x5abe0e[_0x560f8d(0xcc)]['create']({'data':{..._0x3f9a1f,'taxes':{'create':_0x2cae78['map'](_0x14bf46=>({'tax':{'create':{..._0x14bf46}}}))}},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x1777b2['id'];}),_0x578109[_0x2bbe09(0xc4)][_0x2bbe09(0xd1)](_0x2bbe09(0xd2),async({id:_0x12bafd})=>{const _0x36c81c=_0x2bbe09;if(!_0x578109[_0x36c81c(0xc2)]()['hasPermission'](_0x36c81c(0xc8))&&!_0x578109['getCurrentUser']()[_0x36c81c(0xba)]('CLIENT_ALL')&&!_0x578109['getCurrentUser']()[_0x36c81c(0xba)]('CLIENT_READ'))throw new Error(_0x36c81c(0xbd));const _0x5b9e9a=await _0x5abe0e[_0x36c81c(0xcc)][_0x36c81c(0xd4)]({'where':{'id':_0x12bafd},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x5b9e9a;}),_0x578109[_0x2bbe09(0xc4)]['onRequest']('client.read.all',async()=>{const _0x29bb82=_0x2bbe09;if(!_0x578109[_0x29bb82(0xc2)]()[_0x29bb82(0xba)](_0x29bb82(0xc8))&&!_0x578109['getCurrentUser']()[_0x29bb82(0xba)]('CLIENT_ALL')&&!_0x578109[_0x29bb82(0xc2)]()['hasPermission'](_0x29bb82(0xd5)))throw new Error(_0x29bb82(0xd0));const _0x5486f1=await _0x5abe0e['client']['findMany']({'include':{'taxes':{'include':{'tax':!![]}}}});return _0x5486f1;}),_0x578109[_0x2bbe09(0xc4)][_0x2bbe09(0xd1)](_0x2bbe09(0xc0),async _0x3a94ac=>{const _0x3247f4=_0x2bbe09;if(!_0x578109[_0x3247f4(0xc2)]()[_0x3247f4(0xba)]('ADMIN')&&!_0x578109[_0x3247f4(0xc2)]()[_0x3247f4(0xba)](_0x3247f4(0xce))&&!_0x578109[_0x3247f4(0xc2)]()['hasPermission'](_0x3247f4(0xd5)))throw new Error(_0x3247f4(0xd0));const _0x5d40a9=await _0x5abe0e[_0x3247f4(0xcc)]['findMany']({'where':_0x3a94ac,'include':{'taxes':{'include':{'tax':!![]}}}});return _0x5d40a9;}),_0x578109[_0x2bbe09(0xc4)][_0x2bbe09(0xd1)](_0x2bbe09(0xcb),async _0x3ec306=>{const _0x20ec65=_0x2bbe09;if(!_0x578109['getCurrentUser']()['hasPermission']('ADMIN')&&!_0x578109[_0x20ec65(0xc2)]()[_0x20ec65(0xba)](_0x20ec65(0xce))&&!_0x578109[_0x20ec65(0xc2)]()[_0x20ec65(0xba)]('CLIENT_UPDATED'))throw new Error(_0x20ec65(0xc1));const {where:_0x361188,..._0x70bd8c}=_0x3ec306;return await _0x5abe0e[_0x20ec65(0xcc)][_0x20ec65(0xcd)]({'where':_0x361188,'data':_0x70bd8c});}),_0x578109['events']['on'](_0x2bbe09(0xd3),async({id:_0x5955d6})=>{const _0x3d7f97=_0x2bbe09;if(!_0x578109[_0x3d7f97(0xc2)]()[_0x3d7f97(0xba)](_0x3d7f97(0xc8))&&!_0x578109[_0x3d7f97(0xc2)]()[_0x3d7f97(0xba)](_0x3d7f97(0xce))&&!_0x578109[_0x3d7f97(0xc2)]()[_0x3d7f97(0xba)](_0x3d7f97(0xb8)))throw new Error(_0x3d7f97(0xbf));await _0x5abe0e['client']['delete']({'where':{'id':_0x5955d6}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x3d82c7,_0x54d0c3){const _0x14c3ef=a5_0x1c73,_0x27f5be=_0x3d82c7();while(!![]){try{const _0x3a412c=parseInt(_0x14c3ef(0x1dc))/0x1*(-parseInt(_0x14c3ef(0x1e2))/0x2)+parseInt(_0x14c3ef(0x1e0))/0x3+-parseInt(_0x14c3ef(0x1d4))/0x4*(-parseInt(_0x14c3ef(0x1da))/0x5)+-parseInt(_0x14c3ef(0x1d5))/0x6+-parseInt(_0x14c3ef(0x1cb))/0x7*(parseInt(_0x14c3ef(0x1d6))/0x8)+-parseInt(_0x14c3ef(0x1de))/0x9*(-parseInt(_0x14c3ef(0x1d9))/0xa)+-parseInt(_0x14c3ef(0x1ca))/0xb*(-parseInt(_0x14c3ef(0x1d1))/0xc);if(_0x3a412c===_0x54d0c3)break;else _0x27f5be['push'](_0x27f5be['shift']());}catch(_0x4b03a5){_0x27f5be['push'](_0x27f5be['shift']());}}}(a5_0x5aaa,0x33a86));function a5_0x5aaa(){const _0x5e3825=['getCurrentUser','245914PuSWJx','item.deleted','onRequest','findMany','400002:\x20Action\x20not\x20allowed.','ADMIN','item.read.all','item','item.created','400004:\x20Action\x20not\x20allowed.','400001:\x20Action\x20not\x20allowed.','114587QoPYxS','14iSfCDb','item.read.some','ITEM_ALL','delete','map','ITEM_READ','552FwECcC','ITEM_CREATED','update','8708ILYasR','2043354vhBPBX','242096VkMHDk','findUnique','events','70PmWSgJ','205OZXEBL','hasPermission','1EbXfiN','ITEM_DELETED','67329OKKUtP','ITEM_UPDATED','344472RyUHAj'];a5_0x5aaa=function(){return _0x5e3825;};return a5_0x5aaa();}function a5_0x1c73(_0x557e43,_0xa2f226){_0x557e43=_0x557e43-0x1c7;const _0x5aaaf9=a5_0x5aaa();let _0x1c73a0=_0x5aaaf9[_0x557e43];return _0x1c73a0;}export default function bindItemEvents(_0x847f8e,_0x42492f){const _0x291480=a5_0x1c73;_0x847f8e['events'][_0x291480(0x1e4)](_0x291480(0x1c7),async _0x32f187=>{const _0x553d84=_0x291480;if(!_0x847f8e[_0x553d84(0x1e1)]()['hasPermission'](_0x553d84(0x1e7))&&!_0x847f8e[_0x553d84(0x1e1)]()[_0x553d84(0x1db)](_0x553d84(0x1cd))&&!_0x847f8e[_0x553d84(0x1e1)]()['hasPermission'](_0x553d84(0x1d2)))throw new Error(_0x553d84(0x1c9));const {taxes:_0x1ab3b1,..._0x202ae9}=_0x32f187[_0x553d84(0x1e9)],_0x44bada=await _0x42492f[_0x553d84(0x1e9)]['create']({'data':{..._0x202ae9,'taxes':{'create':_0x1ab3b1[_0x553d84(0x1cf)](_0x4a043a=>({'tax':{'create':{..._0x4a043a}}}))}},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x44bada['id'];}),_0x847f8e[_0x291480(0x1d8)]['onRequest']('item.read',async({id:_0x3ca2b4})=>{const _0x58da00=_0x291480;if(!_0x847f8e[_0x58da00(0x1e1)]()[_0x58da00(0x1db)](_0x58da00(0x1e7))&&!_0x847f8e[_0x58da00(0x1e1)]()[_0x58da00(0x1db)](_0x58da00(0x1cd))&&!_0x847f8e[_0x58da00(0x1e1)]()[_0x58da00(0x1db)](_0x58da00(0x1d0)))throw new Error(_0x58da00(0x1e6));const _0xe045ea=await _0x42492f[_0x58da00(0x1e9)][_0x58da00(0x1d7)]({'where':{'id':_0x3ca2b4},'include':{'taxes':{'include':{'tax':!![]}}}});return _0xe045ea;}),_0x847f8e[_0x291480(0x1d8)][_0x291480(0x1e4)](_0x291480(0x1e8),async()=>{const _0x5918b0=_0x291480;if(!_0x847f8e[_0x5918b0(0x1e1)]()[_0x5918b0(0x1db)](_0x5918b0(0x1e7))&&!_0x847f8e[_0x5918b0(0x1e1)]()['hasPermission'](_0x5918b0(0x1cd))&&!_0x847f8e[_0x5918b0(0x1e1)]()[_0x5918b0(0x1db)](_0x5918b0(0x1d0)))throw new Error(_0x5918b0(0x1e6));const _0x1c4b9f=await _0x42492f[_0x5918b0(0x1e9)][_0x5918b0(0x1e5)]({'include':{'taxes':{'include':{'tax':!![]}}}});return _0x1c4b9f;}),_0x847f8e['events'][_0x291480(0x1e4)](_0x291480(0x1cc),async _0x4eeb1=>{const _0x1adf08=_0x291480;if(!_0x847f8e[_0x1adf08(0x1e1)]()[_0x1adf08(0x1db)]('ADMIN')&&!_0x847f8e[_0x1adf08(0x1e1)]()[_0x1adf08(0x1db)](_0x1adf08(0x1cd))&&!_0x847f8e[_0x1adf08(0x1e1)]()[_0x1adf08(0x1db)]('ITEM_READ'))throw new Error('400002:\x20Action\x20not\x20allowed.');const _0x163f2e=await _0x42492f[_0x1adf08(0x1e9)][_0x1adf08(0x1e5)]({'where':_0x4eeb1,'include':{'taxes':{'include':{'tax':!![]}}}});return _0x163f2e;}),_0x847f8e['events'][_0x291480(0x1e4)]('item.updated',async _0x19f95f=>{const _0x25a5bd=_0x291480;if(!_0x847f8e[_0x25a5bd(0x1e1)]()[_0x25a5bd(0x1db)](_0x25a5bd(0x1e7))&&!_0x847f8e[_0x25a5bd(0x1e1)]()[_0x25a5bd(0x1db)](_0x25a5bd(0x1cd))&&!_0x847f8e['getCurrentUser']()['hasPermission'](_0x25a5bd(0x1df)))throw new Error('400003:\x20Action\x20not\x20allowed.');const {where:_0xd7e73,..._0x3d9599}=_0x19f95f;return await _0x42492f[_0x25a5bd(0x1e9)][_0x25a5bd(0x1d3)]({'where':_0xd7e73,'data':_0x3d9599});}),_0x847f8e[_0x291480(0x1d8)]['on'](_0x291480(0x1e3),async({id:_0x5617bd})=>{const _0x418d62=_0x291480;if(!_0x847f8e['getCurrentUser']()[_0x418d62(0x1db)](_0x418d62(0x1e7))&&!_0x847f8e[_0x418d62(0x1e1)]()[_0x418d62(0x1db)](_0x418d62(0x1cd))&&!_0x847f8e['getCurrentUser']()[_0x418d62(0x1db)](_0x418d62(0x1dd)))throw new Error(_0x418d62(0x1c8));await _0x42492f[_0x418d62(0x1e9)][_0x418d62(0x1ce)]({'where':{'id':_0x5617bd}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a6_0x1e6b(){const _0x343b53=['9407349yFdknY','379768xLrUVt','update','order.read.all','hasPermission','2930070ztsufb','getCurrentUser','order.read.some','order.deleted','ORDER_UPDATED','ORDER_CREATED','616796Dnmvrt','9mfAtWF','ORDER_READ','614487pzShgf','ADMIN','841806uTmNmO','210004:\x20Action\x20not\x20allowed.','order','findMany','210003:\x20Action\x20not\x20allowed.','onRequest','210002:\x20Action\x20not\x20allowed.','order.created','create','ORDER_ALL','delete','ORDER_DELETED','events','15750JBvOQr','order.read','91eToPfA','210001:\x20Action\x20not\x20allowed.'];a6_0x1e6b=function(){return _0x343b53;};return a6_0x1e6b();}(function(_0x54c6f2,_0x35294e){const _0x5bd361=a6_0x2e6a,_0x16bff2=_0x54c6f2();while(!![]){try{const _0x515a8d=parseInt(_0x5bd361(0xa2))/0x1+-parseInt(_0x5bd361(0xa4))/0x2*(parseInt(_0x5bd361(0xa0))/0x3)+parseInt(_0x5bd361(0x9f))/0x4+parseInt(_0x5bd361(0xb1))/0x5+-parseInt(_0x5bd361(0xba))/0x6+parseInt(_0x5bd361(0xb3))/0x7*(parseInt(_0x5bd361(0xb6))/0x8)+parseInt(_0x5bd361(0xb5))/0x9;if(_0x515a8d===_0x35294e)break;else _0x16bff2['push'](_0x16bff2['shift']());}catch(_0x42f91e){_0x16bff2['push'](_0x16bff2['shift']());}}}(a6_0x1e6b,0xa6c9e));function a6_0x2e6a(_0x3b1d92,_0x386253){_0x3b1d92=_0x3b1d92-0x9c;const _0x1e6b6e=a6_0x1e6b();let _0x2e6a9c=_0x1e6b6e[_0x3b1d92];return _0x2e6a9c;}export default function bindOrderEvents(_0x305b4b,_0x50061f){const _0x22a6a8=a6_0x2e6a;_0x305b4b[_0x22a6a8(0xb0)]['onRequest'](_0x22a6a8(0xab),async _0x537457=>{const _0x3d35ee=_0x22a6a8;if(!_0x305b4b[_0x3d35ee(0xbb)]()[_0x3d35ee(0xb9)]('ADMIN')&&!_0x305b4b['getCurrentUser']()[_0x3d35ee(0xb9)](_0x3d35ee(0xad))&&!_0x305b4b[_0x3d35ee(0xbb)]()['hasPermission'](_0x3d35ee(0x9e)))throw new Error(_0x3d35ee(0xb4));const _0x2c3ded=await _0x50061f[_0x3d35ee(0xa6)][_0x3d35ee(0xac)]({'data':_0x537457[_0x3d35ee(0xa6)]});return _0x2c3ded['id'];}),_0x305b4b['events'][_0x22a6a8(0xa9)](_0x22a6a8(0xb2),async({id:_0x231763})=>{const _0x2e58a1=_0x22a6a8;if(!_0x305b4b[_0x2e58a1(0xbb)]()[_0x2e58a1(0xb9)](_0x2e58a1(0xa3))&&!_0x305b4b[_0x2e58a1(0xbb)]()[_0x2e58a1(0xb9)]('ORDER_ALL')&&!_0x305b4b['getCurrentUser']()[_0x2e58a1(0xb9)](_0x2e58a1(0xa1)))throw new Error('210002:\x20Action\x20not\x20allowed.');const _0x4ba0f3=await _0x50061f[_0x2e58a1(0xa6)]['findUnique']({'where':{'id':_0x231763}});return _0x4ba0f3;}),_0x305b4b[_0x22a6a8(0xb0)][_0x22a6a8(0xa9)](_0x22a6a8(0xb8),async()=>{const _0x43eb97=_0x22a6a8;if(!_0x305b4b[_0x43eb97(0xbb)]()['hasPermission'](_0x43eb97(0xa3))&&!_0x305b4b[_0x43eb97(0xbb)]()[_0x43eb97(0xb9)](_0x43eb97(0xad))&&!_0x305b4b[_0x43eb97(0xbb)]()[_0x43eb97(0xb9)](_0x43eb97(0xa1)))throw new Error(_0x43eb97(0xaa));const _0x51f450=await _0x50061f[_0x43eb97(0xa6)]['findMany']();return _0x51f450;}),_0x305b4b[_0x22a6a8(0xb0)]['onRequest'](_0x22a6a8(0xbc),async _0x45d5f7=>{const _0x3b7ef4=_0x22a6a8;if(!_0x305b4b[_0x3b7ef4(0xbb)]()[_0x3b7ef4(0xb9)](_0x3b7ef4(0xa3))&&!_0x305b4b['getCurrentUser']()[_0x3b7ef4(0xb9)](_0x3b7ef4(0xad))&&!_0x305b4b[_0x3b7ef4(0xbb)]()[_0x3b7ef4(0xb9)](_0x3b7ef4(0xa1)))throw new Error(_0x3b7ef4(0xaa));const _0x4c96aa=await _0x50061f['order'][_0x3b7ef4(0xa7)]({'where':_0x45d5f7});return _0x4c96aa;}),_0x305b4b['events']['onRequest']('order.updated',async _0x566a3a=>{const _0x3a3f28=_0x22a6a8;if(!_0x305b4b['getCurrentUser']()[_0x3a3f28(0xb9)](_0x3a3f28(0xa3))&&!_0x305b4b['getCurrentUser']()[_0x3a3f28(0xb9)](_0x3a3f28(0xad))&&!_0x305b4b[_0x3a3f28(0xbb)]()['hasPermission'](_0x3a3f28(0x9d)))throw new Error(_0x3a3f28(0xa8));const {where:_0x89ca8e,..._0x5714c6}=_0x566a3a;return await _0x50061f[_0x3a3f28(0xa6)][_0x3a3f28(0xb7)]({'where':_0x89ca8e,'data':_0x5714c6});}),_0x305b4b[_0x22a6a8(0xb0)]['on'](_0x22a6a8(0x9c),async({id:_0x470978})=>{const _0x561037=_0x22a6a8;if(!_0x305b4b[_0x561037(0xbb)]()['hasPermission'](_0x561037(0xa3))&&!_0x305b4b[_0x561037(0xbb)]()[_0x561037(0xb9)]('ORDER_ALL')&&!_0x305b4b[_0x561037(0xbb)]()[_0x561037(0xb9)](_0x561037(0xaf)))throw new Error(_0x561037(0xa5));await _0x50061f[_0x561037(0xa6)][_0x561037(0xae)]({'where':{'id':_0x470978}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a7_0x32bd(_0x31c445,_0x3fc4d4){_0x31c445=_0x31c445-0x18a;const _0x2de9eb=a7_0x2de9();let _0x32bd9f=_0x2de9eb[_0x31c445];return _0x32bd9f;}function a7_0x2de9(){const _0x16431a=['1605072xxwfNj','ADMIN','220003:\x20Action\x20not\x20allowed.','365876dplhdh','events','4821102YnEiyQ','findMany','getCurrentUser','preparation.updated','1467702HtpPoX','PREPARATION_ALL','220002:\x20Action\x20not\x20allowed.','preparation.read.some','565748htBbea','10mAYNUT','PREPARATION_READ','preparation','PREPARATION_CREATED','update','create','onRequest','preparation.deleted','preparation.read','1561BmLWKL','220001:\x20Action\x20not\x20allowed.','220004:\x20Action\x20not\x20allowed.','preparation.read.all','hasPermission','7688JIFSsI','278954pGJmyR','PREPARATION_UPDATED'];a7_0x2de9=function(){return _0x16431a;};return a7_0x2de9();}(function(_0x4a72e8,_0x106e34){const _0xb46ecf=a7_0x32bd,_0x3b8721=_0x4a72e8();while(!![]){try{const _0x349a9c=parseInt(_0xb46ecf(0x19a))/0x1+parseInt(_0xb46ecf(0x19f))/0x2+-parseInt(_0xb46ecf(0x19c))/0x3+-parseInt(_0xb46ecf(0x18a))/0x4*(-parseInt(_0xb46ecf(0x18b))/0x5)+-parseInt(_0xb46ecf(0x1a5))/0x6+parseInt(_0xb46ecf(0x194))/0x7*(-parseInt(_0xb46ecf(0x199))/0x8)+parseInt(_0xb46ecf(0x1a1))/0x9;if(_0x349a9c===_0x106e34)break;else _0x3b8721['push'](_0x3b8721['shift']());}catch(_0x303c1f){_0x3b8721['push'](_0x3b8721['shift']());}}}(a7_0x2de9,0x45f24));export default function bindPreparationEvents(_0x45a2a8,_0x4578fb){const _0x412df6=a7_0x32bd;_0x45a2a8[_0x412df6(0x1a0)]['onRequest']('preparation.created',async _0x419894=>{const _0x5be26b=_0x412df6;if(!_0x45a2a8[_0x5be26b(0x1a3)]()[_0x5be26b(0x198)](_0x5be26b(0x19d))&&!_0x45a2a8[_0x5be26b(0x1a3)]()['hasPermission'](_0x5be26b(0x1a6))&&!_0x45a2a8['getCurrentUser']()[_0x5be26b(0x198)](_0x5be26b(0x18e)))throw new Error(_0x5be26b(0x195));const _0x34b63a=await _0x4578fb[_0x5be26b(0x18d)][_0x5be26b(0x190)]({'data':_0x419894['preparation']});return _0x34b63a['id'];}),_0x45a2a8[_0x412df6(0x1a0)][_0x412df6(0x191)](_0x412df6(0x193),async({id:_0x5847ba})=>{const _0x37e1e4=_0x412df6;if(!_0x45a2a8[_0x37e1e4(0x1a3)]()[_0x37e1e4(0x198)](_0x37e1e4(0x19d))&&!_0x45a2a8[_0x37e1e4(0x1a3)]()[_0x37e1e4(0x198)](_0x37e1e4(0x1a6))&&!_0x45a2a8[_0x37e1e4(0x1a3)]()['hasPermission'](_0x37e1e4(0x18c)))throw new Error(_0x37e1e4(0x1a7));const _0x2c09bf=await _0x4578fb[_0x37e1e4(0x18d)]['findUnique']({'where':{'id':_0x5847ba}});return _0x2c09bf;}),_0x45a2a8[_0x412df6(0x1a0)][_0x412df6(0x191)](_0x412df6(0x197),async()=>{const _0x1a9fa1=_0x412df6;if(!_0x45a2a8[_0x1a9fa1(0x1a3)]()[_0x1a9fa1(0x198)]('ADMIN')&&!_0x45a2a8[_0x1a9fa1(0x1a3)]()[_0x1a9fa1(0x198)](_0x1a9fa1(0x1a6))&&!_0x45a2a8[_0x1a9fa1(0x1a3)]()[_0x1a9fa1(0x198)](_0x1a9fa1(0x18c)))throw new Error(_0x1a9fa1(0x1a7));const _0x5e79e9=await _0x4578fb[_0x1a9fa1(0x18d)]['findMany']();return _0x5e79e9;}),_0x45a2a8[_0x412df6(0x1a0)][_0x412df6(0x191)](_0x412df6(0x1a8),async _0x4fcedd=>{const _0xedfa6=_0x412df6;if(!_0x45a2a8['getCurrentUser']()[_0xedfa6(0x198)](_0xedfa6(0x19d))&&!_0x45a2a8['getCurrentUser']()[_0xedfa6(0x198)](_0xedfa6(0x1a6))&&!_0x45a2a8['getCurrentUser']()[_0xedfa6(0x198)](_0xedfa6(0x18c)))throw new Error('220002:\x20Action\x20not\x20allowed.');const _0x4bfdca=await _0x4578fb[_0xedfa6(0x18d)][_0xedfa6(0x1a2)]({'where':_0x4fcedd});return _0x4bfdca;}),_0x45a2a8[_0x412df6(0x1a0)][_0x412df6(0x191)](_0x412df6(0x1a4),async _0x56c7e0=>{const _0x4e78c6=_0x412df6;if(!_0x45a2a8[_0x4e78c6(0x1a3)]()[_0x4e78c6(0x198)](_0x4e78c6(0x19d))&&!_0x45a2a8['getCurrentUser']()[_0x4e78c6(0x198)](_0x4e78c6(0x1a6))&&!_0x45a2a8[_0x4e78c6(0x1a3)]()['hasPermission'](_0x4e78c6(0x19b)))throw new Error(_0x4e78c6(0x19e));const {where:_0x5898e7,..._0x379f2a}=_0x56c7e0;return await _0x4578fb[_0x4e78c6(0x18d)][_0x4e78c6(0x18f)]({'where':_0x5898e7,'data':_0x379f2a});}),_0x45a2a8['events']['on'](_0x412df6(0x192),async({id:_0x107bdd})=>{const _0x375c86=_0x412df6;if(!_0x45a2a8[_0x375c86(0x1a3)]()[_0x375c86(0x198)](_0x375c86(0x19d))&&!_0x45a2a8[_0x375c86(0x1a3)]()[_0x375c86(0x198)](_0x375c86(0x1a6))&&!_0x45a2a8[_0x375c86(0x1a3)]()[_0x375c86(0x198)]('PREPARATION_DELETED'))throw new Error(_0x375c86(0x196));await _0x4578fb[_0x375c86(0x18d)]['delete']({'where':{'id':_0x107bdd}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a8_0x5833(_0x3d1b1b,_0x3388f0){_0x3d1b1b=_0x3d1b1b-0x154;const _0x9660a4=a8_0x9660();let _0x583352=_0x9660a4[_0x3d1b1b];return _0x583352;}function a8_0x9660(){const _0x130205=['PURCHASE_UPDATED','940597ZTxJiZ','3114225dYevUm','3606200hjuRko','purchase.created','PURCHASE_ALL','hasPermission','delete','679266lJQXuF','1033957aOXBFm','findMany','purchase.read','PURCHASE_READ','ADMIN','purchase.read.some','310002:\x20Action\x20not\x20allowed.','onRequest','purchase','purchase.read.all','PURCHASE_CREATED','4wzJKGu','1565755hrwwdq','findUnique','12CEDiMZ','PURCHASE_DELETED','310004:\x20Action\x20not\x20allowed.','events','create','map','getCurrentUser','310001:\x20Action\x20not\x20allowed.','10965357DKANHM'];a8_0x9660=function(){return _0x130205;};return a8_0x9660();}(function(_0x27c085,_0x235a68){const _0x5b6a92=a8_0x5833,_0x20b316=_0x27c085();while(!![]){try{const _0x3e339c=-parseInt(_0x5b6a92(0x155))/0x1+parseInt(_0x5b6a92(0x154))/0x2+parseInt(_0x5b6a92(0x16e))/0x3*(parseInt(_0x5b6a92(0x160))/0x4)+-parseInt(_0x5b6a92(0x161))/0x5+parseInt(_0x5b6a92(0x163))/0x6*(-parseInt(_0x5b6a92(0x16d))/0x7)+-parseInt(_0x5b6a92(0x16f))/0x8+parseInt(_0x5b6a92(0x16b))/0x9;if(_0x3e339c===_0x235a68)break;else _0x20b316['push'](_0x20b316['shift']());}catch(_0x206b24){_0x20b316['push'](_0x20b316['shift']());}}}(a8_0x9660,0x81430));export default function bindPurchaseEvents(_0x5dd1c2,_0x300a7c){const _0x451e0d=a8_0x5833;_0x5dd1c2[_0x451e0d(0x166)]['onRequest'](_0x451e0d(0x170),async _0xfcdd29=>{const _0x2fec3c=_0x451e0d;if(!_0x5dd1c2[_0x2fec3c(0x169)]()['hasPermission'](_0x2fec3c(0x159))&&!_0x5dd1c2['getCurrentUser']()[_0x2fec3c(0x172)](_0x2fec3c(0x171))&&!_0x5dd1c2['getCurrentUser']()['hasPermission'](_0x2fec3c(0x15f)))throw new Error(_0x2fec3c(0x16a));const {Items:_0x3d8d30,..._0x5401b4}=_0xfcdd29[_0x2fec3c(0x15d)],_0x17b47d=await _0x300a7c[_0x2fec3c(0x15d)][_0x2fec3c(0x167)]({'data':{..._0x5401b4,'Items':{'create':_0x3d8d30[_0x2fec3c(0x168)](_0x487d97=>({'item':{'create':{..._0x487d97}}}))}},'include':{'items':{'include':{'item':!![]}}}});return _0x17b47d['id'];}),_0x5dd1c2['events'][_0x451e0d(0x15c)](_0x451e0d(0x157),async({id:_0x464a52})=>{const _0x2fab85=_0x451e0d;if(!_0x5dd1c2[_0x2fab85(0x169)]()[_0x2fab85(0x172)](_0x2fab85(0x159))&&!_0x5dd1c2['getCurrentUser']()[_0x2fab85(0x172)](_0x2fab85(0x171))&&!_0x5dd1c2[_0x2fab85(0x169)]()[_0x2fab85(0x172)](_0x2fab85(0x158)))throw new Error(_0x2fab85(0x15b));const _0x2f7fc6=await _0x300a7c[_0x2fab85(0x15d)][_0x2fab85(0x162)]({'where':{'id':_0x464a52}});return _0x2f7fc6;}),_0x5dd1c2[_0x451e0d(0x166)][_0x451e0d(0x15c)](_0x451e0d(0x15e),async()=>{const _0x10f2bf=_0x451e0d;if(!_0x5dd1c2['getCurrentUser']()[_0x10f2bf(0x172)](_0x10f2bf(0x159))&&!_0x5dd1c2[_0x10f2bf(0x169)]()[_0x10f2bf(0x172)](_0x10f2bf(0x171))&&!_0x5dd1c2['getCurrentUser']()[_0x10f2bf(0x172)](_0x10f2bf(0x158)))throw new Error(_0x10f2bf(0x15b));const _0x309a4f=await _0x300a7c[_0x10f2bf(0x15d)][_0x10f2bf(0x156)]();return _0x309a4f;}),_0x5dd1c2[_0x451e0d(0x166)]['onRequest'](_0x451e0d(0x15a),async _0x22b4db=>{const _0x13e862=_0x451e0d;if(!_0x5dd1c2['getCurrentUser']()[_0x13e862(0x172)](_0x13e862(0x159))&&!_0x5dd1c2[_0x13e862(0x169)]()['hasPermission']('PURCHASE_ALL')&&!_0x5dd1c2[_0x13e862(0x169)]()[_0x13e862(0x172)](_0x13e862(0x158)))throw new Error(_0x13e862(0x15b));const _0x301bcf=await _0x300a7c[_0x13e862(0x15d)][_0x13e862(0x156)]({'where':_0x22b4db});return _0x301bcf;}),_0x5dd1c2[_0x451e0d(0x166)]['onRequest']('purchase.updated',async _0x283dea=>{const _0x42eff1=_0x451e0d;if(!_0x5dd1c2[_0x42eff1(0x169)]()['hasPermission']('ADMIN')&&!_0x5dd1c2[_0x42eff1(0x169)]()['hasPermission'](_0x42eff1(0x171))&&!_0x5dd1c2[_0x42eff1(0x169)]()[_0x42eff1(0x172)](_0x42eff1(0x16c)))throw new Error('310003:\x20Action\x20not\x20allowed.');const {where:_0xd016bf,..._0x44b6fc}=_0x283dea;return await _0x300a7c[_0x42eff1(0x15d)]['update']({'where':_0xd016bf,'data':_0x44b6fc});}),_0x5dd1c2[_0x451e0d(0x166)]['on']('purchase.deleted',async({id:_0x3aae10})=>{const _0x5ccc63=_0x451e0d;if(!_0x5dd1c2['getCurrentUser']()[_0x5ccc63(0x172)](_0x5ccc63(0x159))&&!_0x5dd1c2[_0x5ccc63(0x169)]()[_0x5ccc63(0x172)](_0x5ccc63(0x171))&&!_0x5dd1c2[_0x5ccc63(0x169)]()['hasPermission'](_0x5ccc63(0x164)))throw new Error(_0x5ccc63(0x165));await _0x300a7c[_0x5ccc63(0x15d)][_0x5ccc63(0x173)]({'where':{'id':_0x3aae10}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a9_0x4a08(){const _0x1c85b7=['onRequest','reception.created','624991KeSHTF','reception','delete','hasPermission','RECEPTION_READ','findMany','reception.read.all','10bmrmZc','11648560zVRvRk','2293192fGAgXx','30876VQsaoW','7127197LvPAaS','reception.read.some','3647052DMsyiY','ADMIN','320004:\x20Action\x20not\x20allowed.','RECEPTION_ALL','events','RECEPTION_CREATED','getCurrentUser','reception.read','RECEPTION_DELETED','320003:\x20Action\x20not\x20allowed.','findUnique','update','36318020ghMZax','327MdvBWM','320002:\x20Action\x20not\x20allowed.','9VfSodK','reception.deleted'];a9_0x4a08=function(){return _0x1c85b7;};return a9_0x4a08();}(function(_0x15674d,_0x212da9){const _0x148aca=a9_0x44ec,_0xe1ded=_0x15674d();while(!![]){try{const _0x22f8b0=parseInt(_0x148aca(0x1aa))/0x1+parseInt(_0x148aca(0x193))/0x2+-parseInt(_0x148aca(0x1a4))/0x3*(parseInt(_0x148aca(0x194))/0x4)+parseInt(_0x148aca(0x191))/0x5*(-parseInt(_0x148aca(0x197))/0x6)+-parseInt(_0x148aca(0x195))/0x7+-parseInt(_0x148aca(0x192))/0x8+-parseInt(_0x148aca(0x1a6))/0x9*(-parseInt(_0x148aca(0x1a3))/0xa);if(_0x22f8b0===_0x212da9)break;else _0xe1ded['push'](_0xe1ded['shift']());}catch(_0x35d3bd){_0xe1ded['push'](_0xe1ded['shift']());}}}(a9_0x4a08,0xd4e9d));function a9_0x44ec(_0x31c4d9,_0x1a5370){_0x31c4d9=_0x31c4d9-0x18d;const _0x4a08d5=a9_0x4a08();let _0x44ec65=_0x4a08d5[_0x31c4d9];return _0x44ec65;}export default function bindReceptionEvents(_0x1054af,_0x1f1023){const _0x4eaf57=a9_0x44ec;_0x1054af[_0x4eaf57(0x19b)][_0x4eaf57(0x1a8)](_0x4eaf57(0x1a9),async _0x43d140=>{const _0xd6b935=_0x4eaf57;if(!_0x1054af[_0xd6b935(0x19d)]()[_0xd6b935(0x18d)](_0xd6b935(0x198))&&!_0x1054af['getCurrentUser']()['hasPermission']('RECEPTION_ALL')&&!_0x1054af[_0xd6b935(0x19d)]()[_0xd6b935(0x18d)](_0xd6b935(0x19c)))throw new Error('320001:\x20Action\x20not\x20allowed.');const {items:_0x315a56,purchase:_0x3595af,..._0x237284}=_0x43d140[_0xd6b935(0x1ab)],_0xe7abb8=await _0x1f1023[_0xd6b935(0x1ab)]['create']({'data':{..._0x237284,..._0x3595af?{'Purchase':{'create':{..._0x3595af}}}:{},'Items':{'create':_0x315a56['map'](_0x424ff5=>({'item':{'create':{..._0x424ff5}}}))}},'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});return _0xe7abb8['id'];}),_0x1054af[_0x4eaf57(0x19b)][_0x4eaf57(0x1a8)](_0x4eaf57(0x19e),async({id:_0x2661b2})=>{const _0x49adfb=_0x4eaf57;if(!_0x1054af[_0x49adfb(0x19d)]()[_0x49adfb(0x18d)](_0x49adfb(0x198))&&!_0x1054af['getCurrentUser']()[_0x49adfb(0x18d)](_0x49adfb(0x19a))&&!_0x1054af[_0x49adfb(0x19d)]()[_0x49adfb(0x18d)]('RECEPTION_READ'))throw new Error(_0x49adfb(0x1a5));const _0x497cbb=await _0x1f1023['reception'][_0x49adfb(0x1a1)]({'where':{'id':_0x2661b2}});return _0x497cbb;}),_0x1054af[_0x4eaf57(0x19b)][_0x4eaf57(0x1a8)](_0x4eaf57(0x190),async()=>{const _0x1662c5=_0x4eaf57;if(!_0x1054af[_0x1662c5(0x19d)]()[_0x1662c5(0x18d)](_0x1662c5(0x198))&&!_0x1054af['getCurrentUser']()[_0x1662c5(0x18d)](_0x1662c5(0x19a))&&!_0x1054af[_0x1662c5(0x19d)]()[_0x1662c5(0x18d)](_0x1662c5(0x18e)))throw new Error('320002:\x20Action\x20not\x20allowed.');const _0x27b12d=await _0x1f1023[_0x1662c5(0x1ab)][_0x1662c5(0x18f)]();return _0x27b12d;}),_0x1054af[_0x4eaf57(0x19b)][_0x4eaf57(0x1a8)](_0x4eaf57(0x196),async _0x401b7f=>{const _0x492bad=_0x4eaf57;if(!_0x1054af[_0x492bad(0x19d)]()['hasPermission'](_0x492bad(0x198))&&!_0x1054af[_0x492bad(0x19d)]()[_0x492bad(0x18d)](_0x492bad(0x19a))&&!_0x1054af[_0x492bad(0x19d)]()[_0x492bad(0x18d)](_0x492bad(0x18e)))throw new Error(_0x492bad(0x1a5));const _0x2db9e4=await _0x1f1023[_0x492bad(0x1ab)][_0x492bad(0x18f)]({'where':_0x401b7f});return _0x2db9e4;}),_0x1054af[_0x4eaf57(0x19b)][_0x4eaf57(0x1a8)]('reception.updated',async _0x43608e=>{const _0xa42531=_0x4eaf57;if(!_0x1054af[_0xa42531(0x19d)]()['hasPermission'](_0xa42531(0x198))&&!_0x1054af[_0xa42531(0x19d)]()['hasPermission'](_0xa42531(0x19a))&&!_0x1054af[_0xa42531(0x19d)]()[_0xa42531(0x18d)]('RECEPTION_UPDATED'))throw new Error(_0xa42531(0x1a0));const {where:_0x3a4741,..._0xa18491}=_0x43608e;return await _0x1f1023[_0xa42531(0x1ab)][_0xa42531(0x1a2)]({'where':_0x3a4741,'data':_0xa18491});}),_0x1054af[_0x4eaf57(0x19b)]['on'](_0x4eaf57(0x1a7),async({id:_0x36dab1})=>{const _0xa1a7f0=_0x4eaf57;if(!_0x1054af[_0xa1a7f0(0x19d)]()[_0xa1a7f0(0x18d)]('ADMIN')&&!_0x1054af['getCurrentUser']()[_0xa1a7f0(0x18d)](_0xa1a7f0(0x19a))&&!_0x1054af[_0xa1a7f0(0x19d)]()['hasPermission'](_0xa1a7f0(0x19f)))throw new Error(_0xa1a7f0(0x199));await _0x1f1023[_0xa1a7f0(0x1ab)][_0xa1a7f0(0x1ac)]({'where':{'id':_0x36dab1}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x12948d,_0x1a1f80){const _0xcf824a=a10_0x2a83,_0x46b5fb=_0x12948d();while(!![]){try{const _0x3562b1=parseInt(_0xcf824a(0x140))/0x1+-parseInt(_0xcf824a(0x154))/0x2*(-parseInt(_0xcf824a(0x13c))/0x3)+parseInt(_0xcf824a(0x14e))/0x4*(-parseInt(_0xcf824a(0x13e))/0x5)+parseInt(_0xcf824a(0x158))/0x6*(-parseInt(_0xcf824a(0x156))/0x7)+-parseInt(_0xcf824a(0x143))/0x8+parseInt(_0xcf824a(0x14d))/0x9+parseInt(_0xcf824a(0x14b))/0xa;if(_0x3562b1===_0x1a1f80)break;else _0x46b5fb['push'](_0x46b5fb['shift']());}catch(_0x56c672){_0x46b5fb['push'](_0x46b5fb['shift']());}}}(a10_0x39b3,0x7af58));function a10_0x39b3(){const _0x2e4eed=['STOCK_DELETED','410001:\x20Action\x20not\x20allowed.','hasPermission','410002:\x20Action\x20not\x20allowed.','findMany','10283810KfiWrI','stock.read','7023915fTzupP','3949428AQmlRI','ADMIN','stock.deleted','onRequest','findUnique','events','34KBRcgW','stock.read.some','126wPsUol','STOCK_UPDATED','324840ZsINpt','update','stock.updated','stock.created','142617poGKEA','create','5TeAYfB','getCurrentUser','582314QZEAvo','STOCK_ALL','delete','5870208WxMMVX','stock','STOCK_CREATED'];a10_0x39b3=function(){return _0x2e4eed;};return a10_0x39b3();}function a10_0x2a83(_0xccb5e9,_0x529cad){_0xccb5e9=_0xccb5e9-0x139;const _0x39b340=a10_0x39b3();let _0x2a8335=_0x39b340[_0xccb5e9];return _0x2a8335;}export default function bindStockEvents(_0x5cf81b,_0x8f44eb){const _0x35ca46=a10_0x2a83;_0x5cf81b[_0x35ca46(0x153)][_0x35ca46(0x151)](_0x35ca46(0x13b),async _0x4f5676=>{const _0x46a7be=_0x35ca46;if(!_0x5cf81b['getCurrentUser']()[_0x46a7be(0x148)](_0x46a7be(0x14f))&&!_0x5cf81b[_0x46a7be(0x13f)]()[_0x46a7be(0x148)]('STOCK_ALL')&&!_0x5cf81b[_0x46a7be(0x13f)]()[_0x46a7be(0x148)](_0x46a7be(0x145)))throw new Error(_0x46a7be(0x147));const {item:_0x65ac1e,..._0x1865bd}=_0x4f5676[_0x46a7be(0x144)],_0x2efe20=await _0x8f44eb[_0x46a7be(0x144)][_0x46a7be(0x13d)]({'data':{..._0x1865bd,..._0x65ac1e?{'Item':{'create':{..._0x65ac1e}}}:{}},'include':{'item':!![]}});return _0x2efe20['id'];}),_0x5cf81b[_0x35ca46(0x153)]['onRequest'](_0x35ca46(0x14c),async({id:_0x2b6aa3})=>{const _0x5d5ed7=_0x35ca46;if(!_0x5cf81b[_0x5d5ed7(0x13f)]()[_0x5d5ed7(0x148)]('ADMIN')&&!_0x5cf81b['getCurrentUser']()[_0x5d5ed7(0x148)](_0x5d5ed7(0x141))&&!_0x5cf81b[_0x5d5ed7(0x13f)]()['hasPermission']('STOCK_READ'))throw new Error(_0x5d5ed7(0x149));const _0xe24de7=await _0x8f44eb[_0x5d5ed7(0x144)][_0x5d5ed7(0x152)]({'where':{'id':_0x2b6aa3}});return _0xe24de7;}),_0x5cf81b[_0x35ca46(0x153)][_0x35ca46(0x151)]('stock.read.all',async()=>{const _0x31e362=_0x35ca46;if(!_0x5cf81b['getCurrentUser']()['hasPermission'](_0x31e362(0x14f))&&!_0x5cf81b[_0x31e362(0x13f)]()[_0x31e362(0x148)](_0x31e362(0x141))&&!_0x5cf81b[_0x31e362(0x13f)]()[_0x31e362(0x148)]('STOCK_READ'))throw new Error(_0x31e362(0x149));const _0x5a7d17=await _0x8f44eb[_0x31e362(0x144)][_0x31e362(0x14a)]();return _0x5a7d17;}),_0x5cf81b[_0x35ca46(0x153)]['onRequest'](_0x35ca46(0x155),async _0x50dd66=>{const _0x484b0d=_0x35ca46;if(!_0x5cf81b[_0x484b0d(0x13f)]()[_0x484b0d(0x148)](_0x484b0d(0x14f))&&!_0x5cf81b['getCurrentUser']()[_0x484b0d(0x148)]('STOCK_ALL')&&!_0x5cf81b[_0x484b0d(0x13f)]()['hasPermission']('STOCK_READ'))throw new Error(_0x484b0d(0x149));const _0x1a802a=await _0x8f44eb[_0x484b0d(0x144)][_0x484b0d(0x14a)]({'where':_0x50dd66});return _0x1a802a;}),_0x5cf81b['events'][_0x35ca46(0x151)](_0x35ca46(0x13a),async _0x2c2a56=>{const _0x4e415a=_0x35ca46;if(!_0x5cf81b[_0x4e415a(0x13f)]()['hasPermission'](_0x4e415a(0x14f))&&!_0x5cf81b[_0x4e415a(0x13f)]()['hasPermission']('STOCK_ALL')&&!_0x5cf81b[_0x4e415a(0x13f)]()[_0x4e415a(0x148)](_0x4e415a(0x157)))throw new Error('410003:\x20Action\x20not\x20allowed.');const {where:_0x28ee5f,..._0xa93db3}=_0x2c2a56;return await _0x8f44eb[_0x4e415a(0x144)][_0x4e415a(0x139)]({'where':_0x28ee5f,'data':_0xa93db3});}),_0x5cf81b[_0x35ca46(0x153)]['on'](_0x35ca46(0x150),async({id:_0x13c6ba})=>{const _0x8b5f39=_0x35ca46;if(!_0x5cf81b[_0x8b5f39(0x13f)]()[_0x8b5f39(0x148)]('ADMIN')&&!_0x5cf81b[_0x8b5f39(0x13f)]()['hasPermission'](_0x8b5f39(0x141))&&!_0x5cf81b[_0x8b5f39(0x13f)]()[_0x8b5f39(0x148)](_0x8b5f39(0x146)))throw new Error('410004:\x20Action\x20not\x20allowed.');await _0x8f44eb[_0x8b5f39(0x144)][_0x8b5f39(0x142)]({'where':{'id':_0x13c6ba}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x54da68,_0x483b25){const _0x12eeba=a11_0x5e1f,_0x197cff=_0x54da68();while(!![]){try{const _0x1d5456=parseInt(_0x12eeba(0x19d))/0x1*(parseInt(_0x12eeba(0x1a8))/0x2)+parseInt(_0x12eeba(0x192))/0x3*(parseInt(_0x12eeba(0x1a7))/0x4)+parseInt(_0x12eeba(0x194))/0x5+parseInt(_0x12eeba(0x19a))/0x6*(parseInt(_0x12eeba(0x1a0))/0x7)+-parseInt(_0x12eeba(0x1aa))/0x8*(parseInt(_0x12eeba(0x1a1))/0x9)+parseInt(_0x12eeba(0x1b1))/0xa+-parseInt(_0x12eeba(0x191))/0xb;if(_0x1d5456===_0x483b25)break;else _0x197cff['push'](_0x197cff['shift']());}catch(_0x4d90c3){_0x197cff['push'](_0x197cff['shift']());}}}(a11_0x48be,0xa0377));function a11_0x5e1f(_0x1ed2c7,_0x19ed63){_0x1ed2c7=_0x1ed2c7-0x18e;const _0x48be70=a11_0x48be();let _0x5e1f41=_0x48be70[_0x1ed2c7];return _0x5e1f41;}export default function bindSupplierEvents(_0x7157de,_0x2081dc){const _0x17629e=a11_0x5e1f;_0x7157de[_0x17629e(0x18f)][_0x17629e(0x1a2)](_0x17629e(0x1a5),async _0x1436a4=>{const _0x5cd77d=_0x17629e;if(!_0x7157de[_0x5cd77d(0x1a6)]()[_0x5cd77d(0x1ab)](_0x5cd77d(0x195))&&!_0x7157de[_0x5cd77d(0x1a6)]()[_0x5cd77d(0x1ab)](_0x5cd77d(0x1a9))&&!_0x7157de['getCurrentUser']()[_0x5cd77d(0x1ab)](_0x5cd77d(0x1af)))throw new Error(_0x5cd77d(0x197));const {taxes:_0x51c1bc,..._0x2b6948}=_0x1436a4[_0x5cd77d(0x1b0)],_0x155ce3=await _0x2081dc['supplier'][_0x5cd77d(0x19f)]({'data':{..._0x2b6948,'taxes':{'create':_0x51c1bc[_0x5cd77d(0x193)](_0x47b5c5=>({'tax':{'create':{..._0x47b5c5}}}))}},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x155ce3['id'];}),_0x7157de[_0x17629e(0x18f)][_0x17629e(0x1a2)](_0x17629e(0x18e),async({id:_0x5b55a8})=>{const _0x1084bd=_0x17629e;if(!_0x7157de[_0x1084bd(0x1a6)]()[_0x1084bd(0x1ab)](_0x1084bd(0x195))&&!_0x7157de[_0x1084bd(0x1a6)]()[_0x1084bd(0x1ab)]('SUPPLIER_ALL')&&!_0x7157de['getCurrentUser']()[_0x1084bd(0x1ab)](_0x1084bd(0x1ad)))throw new Error(_0x1084bd(0x19c));const _0x28faee=await _0x2081dc[_0x1084bd(0x1b0)][_0x1084bd(0x19e)]({'where':{'id':_0x5b55a8},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x28faee;}),_0x7157de[_0x17629e(0x18f)]['onRequest'](_0x17629e(0x1b2),async()=>{const _0x5d7b69=_0x17629e;if(!_0x7157de[_0x5d7b69(0x1a6)]()[_0x5d7b69(0x1ab)]('ADMIN')&&!_0x7157de[_0x5d7b69(0x1a6)]()['hasPermission'](_0x5d7b69(0x1a9))&&!_0x7157de[_0x5d7b69(0x1a6)]()[_0x5d7b69(0x1ab)](_0x5d7b69(0x1ad)))throw new Error(_0x5d7b69(0x19c));const _0x332b63=await _0x2081dc[_0x5d7b69(0x1b0)][_0x5d7b69(0x198)]({'include':{'taxes':{'include':{'tax':!![]}}}});return _0x332b63;}),_0x7157de[_0x17629e(0x18f)][_0x17629e(0x1a2)](_0x17629e(0x1ac),async _0x2d7495=>{const _0x39bc0e=_0x17629e;if(!_0x7157de[_0x39bc0e(0x1a6)]()[_0x39bc0e(0x1ab)](_0x39bc0e(0x195))&&!_0x7157de['getCurrentUser']()[_0x39bc0e(0x1ab)]('SUPPLIER_ALL')&&!_0x7157de[_0x39bc0e(0x1a6)]()[_0x39bc0e(0x1ab)]('SUPPLIER_READ'))throw new Error(_0x39bc0e(0x19c));const _0x5eeecb=await _0x2081dc[_0x39bc0e(0x1b0)][_0x39bc0e(0x198)]({'where':_0x2d7495,'include':{'taxes':{'include':{'tax':!![]}}}});return _0x5eeecb;}),_0x7157de['events'][_0x17629e(0x1a2)](_0x17629e(0x190),async _0x1f8e82=>{const _0x4694d9=_0x17629e;if(!_0x7157de[_0x4694d9(0x1a6)]()[_0x4694d9(0x1ab)](_0x4694d9(0x195))&&!_0x7157de[_0x4694d9(0x1a6)]()[_0x4694d9(0x1ab)](_0x4694d9(0x1a9))&&!_0x7157de[_0x4694d9(0x1a6)]()[_0x4694d9(0x1ab)](_0x4694d9(0x199)))throw new Error('300003:\x20Action\x20not\x20allowed.');const {where:_0x4e6b18,..._0x5bc4c4}=_0x1f8e82;return await _0x2081dc[_0x4694d9(0x1b0)][_0x4694d9(0x1a3)]({'where':_0x4e6b18,'data':_0x5bc4c4});}),_0x7157de[_0x17629e(0x18f)]['on'](_0x17629e(0x1a4),async({id:_0x36468c})=>{const _0x4b653a=_0x17629e;if(!_0x7157de[_0x4b653a(0x1a6)]()['hasPermission'](_0x4b653a(0x195))&&!_0x7157de[_0x4b653a(0x1a6)]()['hasPermission'](_0x4b653a(0x1a9))&&!_0x7157de[_0x4b653a(0x1a6)]()['hasPermission'](_0x4b653a(0x19b)))throw new Error(_0x4b653a(0x1ae));await _0x2081dc['supplier'][_0x4b653a(0x196)]({'where':{'id':_0x36468c}});});}function a11_0x48be(){const _0x43685=['6WmRWtW','map','1250975ICumnm','ADMIN','delete','300001:\x20Action\x20not\x20allowed.','findMany','SUPPLIER_UPDATED','12OcHzJx','SUPPLIER_DELETED','300002:\x20Action\x20not\x20allowed.','1cBaJaH','findUnique','create','2173941KylteB','3519vdVrwl','onRequest','update','supplier.deleted','supplier.created','getCurrentUser','625172iUqRwr','1089584pqXEWj','SUPPLIER_ALL','6856VvVtXy','hasPermission','supplier.read.some','SUPPLIER_READ','300004:\x20Action\x20not\x20allowed.','SUPPLIER_CREATED','supplier','6874610MKmUFm','supplier.read.all','supplier.read','events','supplier.updated','15673086oQgkZm'];a11_0x48be=function(){return _0x43685;};return a11_0x48be();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a12_0x374e(){const _0x55ee65=['7UjGlps','getCurrentUser','tax.created','tax.deleted','500002:\x20Action\x20not\x20allowed.','TAX_CREATED','6463044ibgDvf','500001:\x20Action\x20not\x20allowed.','onRequest','events','762333cuKGyF','50LBCODY','tax.read.all','TAX_UPDATED','5161866qgLhby','TAX_DELETED','65645WDwHhu','TAX_READ','tax','findMany','244rEDlsw','500003:\x20Action\x20not\x20allowed.','500004:\x20Action\x20not\x20allowed.','tax.updated','ADMIN','10zikMCO','5761376CFgwPg','hasPermission','10549671Pxdkky','delete','TAX_ALL','update','32250hpifDg'];a12_0x374e=function(){return _0x55ee65;};return a12_0x374e();}function a12_0x29b6(_0x56442c,_0x38cf89){_0x56442c=_0x56442c-0x154;const _0x374e71=a12_0x374e();let _0x29b66a=_0x374e71[_0x56442c];return _0x29b66a;}(function(_0x26369d,_0x27c4da){const _0x5a9565=a12_0x29b6,_0x20ce33=_0x26369d();while(!![]){try{const _0x5c5ddb=-parseInt(_0x5a9565(0x16f))/0x1+-parseInt(_0x5a9565(0x157))/0x2*(parseInt(_0x5a9565(0x169))/0x3)+-parseInt(_0x5a9565(0x173))/0x4*(parseInt(_0x5a9565(0x15e))/0x5)+parseInt(_0x5a9565(0x16d))/0x6*(-parseInt(_0x5a9565(0x15f))/0x7)+-parseInt(_0x5a9565(0x158))/0x8+-parseInt(_0x5a9565(0x165))/0x9+parseInt(_0x5a9565(0x16a))/0xa*(parseInt(_0x5a9565(0x15a))/0xb);if(_0x5c5ddb===_0x27c4da)break;else _0x20ce33['push'](_0x20ce33['shift']());}catch(_0x375819){_0x20ce33['push'](_0x20ce33['shift']());}}}(a12_0x374e,0xbb450));export default function bindTaxEvents(_0x18df63,_0x55d752){const _0xdb8dbc=a12_0x29b6;_0x18df63[_0xdb8dbc(0x168)][_0xdb8dbc(0x167)](_0xdb8dbc(0x161),async _0x40bc6e=>{const _0x3bdef2=_0xdb8dbc;if(!_0x18df63[_0x3bdef2(0x160)]()[_0x3bdef2(0x159)](_0x3bdef2(0x156))&&!_0x18df63['getCurrentUser']()[_0x3bdef2(0x159)](_0x3bdef2(0x15c))&&!_0x18df63[_0x3bdef2(0x160)]()[_0x3bdef2(0x159)](_0x3bdef2(0x164)))throw new Error(_0x3bdef2(0x166));const _0x39e26e=await _0x55d752[_0x3bdef2(0x171)]['create']({'data':_0x40bc6e[_0x3bdef2(0x171)]});return _0x39e26e['id'];}),_0x18df63[_0xdb8dbc(0x168)][_0xdb8dbc(0x167)]('tax.read',async({id:_0x5da376})=>{const _0x4b320d=_0xdb8dbc;if(!_0x18df63[_0x4b320d(0x160)]()[_0x4b320d(0x159)](_0x4b320d(0x156))&&!_0x18df63[_0x4b320d(0x160)]()[_0x4b320d(0x159)](_0x4b320d(0x15c))&&!_0x18df63['getCurrentUser']()['hasPermission'](_0x4b320d(0x170)))throw new Error(_0x4b320d(0x163));const _0x5718f5=await _0x55d752[_0x4b320d(0x171)]['findUnique']({'where':{'id':_0x5da376}});return _0x5718f5;}),_0x18df63[_0xdb8dbc(0x168)]['onRequest'](_0xdb8dbc(0x16b),async()=>{const _0x238788=_0xdb8dbc;if(!_0x18df63[_0x238788(0x160)]()[_0x238788(0x159)](_0x238788(0x156))&&!_0x18df63['getCurrentUser']()[_0x238788(0x159)](_0x238788(0x15c))&&!_0x18df63[_0x238788(0x160)]()['hasPermission'](_0x238788(0x170)))throw new Error('500002:\x20Action\x20not\x20allowed.');const _0xc9295d=await _0x55d752['tax'][_0x238788(0x172)]();return _0xc9295d;}),_0x18df63['events'][_0xdb8dbc(0x167)]('tax.read.some',async _0x35038f=>{const _0x47d1da=_0xdb8dbc;if(!_0x18df63[_0x47d1da(0x160)]()[_0x47d1da(0x159)](_0x47d1da(0x156))&&!_0x18df63[_0x47d1da(0x160)]()[_0x47d1da(0x159)](_0x47d1da(0x15c))&&!_0x18df63[_0x47d1da(0x160)]()[_0x47d1da(0x159)](_0x47d1da(0x170)))throw new Error(_0x47d1da(0x163));const _0x582a62=await _0x55d752[_0x47d1da(0x171)][_0x47d1da(0x172)]({'where':_0x35038f});return _0x582a62;}),_0x18df63[_0xdb8dbc(0x168)]['onRequest'](_0xdb8dbc(0x155),async _0x58edd5=>{const _0x58af89=_0xdb8dbc;if(!_0x18df63[_0x58af89(0x160)]()['hasPermission'](_0x58af89(0x156))&&!_0x18df63['getCurrentUser']()[_0x58af89(0x159)](_0x58af89(0x15c))&&!_0x18df63['getCurrentUser']()[_0x58af89(0x159)](_0x58af89(0x16c)))throw new Error(_0x58af89(0x174));const {where:_0x5166b3,..._0x54e7a4}=_0x58edd5;return await _0x55d752[_0x58af89(0x171)][_0x58af89(0x15d)]({'where':_0x5166b3,'data':_0x54e7a4});}),_0x18df63[_0xdb8dbc(0x168)]['on'](_0xdb8dbc(0x162),async({id:_0xa06b6b})=>{const _0x42e223=_0xdb8dbc;if(!_0x18df63[_0x42e223(0x160)]()[_0x42e223(0x159)](_0x42e223(0x156))&&!_0x18df63[_0x42e223(0x160)]()['hasPermission'](_0x42e223(0x15c))&&!_0x18df63[_0x42e223(0x160)]()[_0x42e223(0x159)](_0x42e223(0x16e)))throw new Error(_0x42e223(0x154));await _0x55d752[_0x42e223(0x171)][_0x42e223(0x15b)]({'where':{'id':_0xa06b6b}});});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x565c57,_0x13e10b){const _0x210e3e=a13_0x4c19,_0x126dc7=_0x565c57();while(!![]){try{const _0xcb2d23=-parseInt(_0x210e3e(0x1c2))/0x1+parseInt(_0x210e3e(0x1c0))/0x2+-parseInt(_0x210e3e(0x1c1))/0x3+parseInt(_0x210e3e(0x1c9))/0x4*(-parseInt(_0x210e3e(0x1c4))/0x5)+parseInt(_0x210e3e(0x1d3))/0x6+parseInt(_0x210e3e(0x1bb))/0x7+parseInt(_0x210e3e(0x1c5))/0x8;if(_0xcb2d23===_0x13e10b)break;else _0x126dc7['push'](_0x126dc7['shift']());}catch(_0x4a503b){_0x126dc7['push'](_0x126dc7['shift']());}}}(a13_0x53e7,0xba5dd));export default function bindUserEvents(_0x4e3984,_0x2975b7){const _0x4c66eb=a13_0x4c19;_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1bc),async _0x9c29ff=>{const _0x1fb184=_0x4c66eb,_0x2c4f30=await _0x2975b7['user'][_0x1fb184(0x1ca)]({'where':{'email':_0x9c29ff[_0x1fb184(0x1bd)]}});if(!_0x2c4f30)throw new Error(_0x1fb184(0x1c8));else{if(_0x2c4f30[_0x1fb184(0x1d0)]!==_0x9c29ff['password'])throw new Error(_0x1fb184(0x1ce));}return _0x2c4f30;}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1cd),async({user:_0x595353})=>{const _0x342d31=_0x4c66eb;if(!_0x4e3984[_0x342d31(0x1b1)]()['hasPermission']('ADMIN')&&!_0x4e3984['getCurrentUser']()[_0x342d31(0x1af)]('USER_ALL')&&!_0x4e3984[_0x342d31(0x1b1)]()['hasPermission'](_0x342d31(0x1c3)))throw new Error(_0x342d31(0x1b2));const _0x33fc10=await _0x2975b7[_0x342d31(0x1be)]['create']({'data':{'email':_0x595353[_0x342d31(0x1bd)]??null,'password':_0x595353[_0x342d31(0x1d0)]??null,'authorizations':Array['from'](_0x595353[_0x342d31(0x1cb)]??[])}});return _0x33fc10['id'];}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1ba),async({id:_0x541187})=>{const _0x4882fa=_0x4c66eb;if(!_0x4e3984['getCurrentUser']()['hasPermission'](_0x4882fa(0x1d1))&&!_0x4e3984[_0x4882fa(0x1b1)]()[_0x4882fa(0x1af)](_0x4882fa(0x1b8))&&!_0x4e3984['getCurrentUser']()[_0x4882fa(0x1af)]('USER_READ'))throw new Error(_0x4882fa(0x1b7));const _0x322fc1=await _0x2975b7[_0x4882fa(0x1be)][_0x4882fa(0x1ca)]({'where':{'id':_0x541187}});return _0x322fc1;}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1c6),async()=>{const _0x4f3a40=_0x4c66eb;if(!_0x4e3984[_0x4f3a40(0x1b1)]()['hasPermission']('ADMIN')&&!_0x4e3984[_0x4f3a40(0x1b1)]()[_0x4f3a40(0x1af)](_0x4f3a40(0x1b8))&&!_0x4e3984[_0x4f3a40(0x1b1)]()['hasPermission'](_0x4f3a40(0x1d2)))throw new Error(_0x4f3a40(0x1b5));const _0x2e053d=await _0x2975b7[_0x4f3a40(0x1be)][_0x4f3a40(0x1b9)]();return _0x2e053d;}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)]('user.read.some',async _0x1b8a9c=>{const _0x17bb1c=_0x4c66eb;if(!_0x4e3984['getCurrentUser']()[_0x17bb1c(0x1af)](_0x17bb1c(0x1d1))&&!_0x4e3984['getCurrentUser']()[_0x17bb1c(0x1af)]('USER_ALL')&&!_0x4e3984['getCurrentUser']()['hasPermission'](_0x17bb1c(0x1d2)))throw new Error('100002:\x20Action\x20not\x20allowed.');const _0x3cde31=await _0x2975b7[_0x17bb1c(0x1be)][_0x17bb1c(0x1b9)]({'where':_0x1b8a9c});return _0x3cde31;}),_0x4e3984[_0x4c66eb(0x1b4)]['onRequest']('user.updated',async _0xac5fef=>{const _0x375146=_0x4c66eb;if(!_0x4e3984['getCurrentUser']()[_0x375146(0x1af)]('ADMIN')&&!_0x4e3984[_0x375146(0x1b1)]()['hasPermission'](_0x375146(0x1b8))&&!_0x4e3984['getCurrentUser']()[_0x375146(0x1af)](_0x375146(0x1cc)))throw new Error('100003:\x20Action\x20not\x20allowed.');const {where:_0x44dcc5,..._0x1afa57}=_0xac5fef;return await _0x2975b7[_0x375146(0x1be)][_0x375146(0x1b0)]({'where':_0x44dcc5,'data':_0x1afa57});}),_0x4e3984['events']['on'](_0x4c66eb(0x1b6),async({id:_0x12f43e})=>{const _0x7bd386=_0x4c66eb;if(!_0x4e3984[_0x7bd386(0x1b1)]()[_0x7bd386(0x1af)](_0x7bd386(0x1d1))&&!_0x4e3984[_0x7bd386(0x1b1)]()[_0x7bd386(0x1af)](_0x7bd386(0x1b8))&&!_0x4e3984[_0x7bd386(0x1b1)]()[_0x7bd386(0x1af)](_0x7bd386(0x1c7)))throw new Error(_0x7bd386(0x1bf));await _0x2975b7[_0x7bd386(0x1be)][_0x7bd386(0x1cf)]({'where':{'id':_0x12f43e}});});}function a13_0x4c19(_0x5f472f,_0x603b38){_0x5f472f=_0x5f472f-0x1af;const _0x53e752=a13_0x53e7();let _0x4c193f=_0x53e752[_0x5f472f];return _0x4c193f;}function a13_0x53e7(){const _0x244a5a=['USER_ALL','findMany','user.read','4014997RzOmRM','user.login','email','user','100004:\x20Action\x20not\x20allowed.','1873270NfgTqI','2161827EZocnz','612607HjPGdW','USER_CREATED','286615mbwjEl','13144600HLeDHV','user.read.all','USER_DELETED','User\x20not\x20found.','88TaNEPt','findUnique','authorizations','USER_UPDATED','user.created','Invalid\x20password.','delete','password','ADMIN','USER_READ','1226388KRJApu','hasPermission','update','getCurrentUser','100001:\x20Action\x20not\x20allowed.','onRequest','events','100002:\x20Action\x20not\x20allowed.','user.deleted','100002:Action\x20not\x20allowed.'];a13_0x53e7=function(){return _0x244a5a;};return a13_0x53e7();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a17_0x1d44(){var _0x175598=['20NCgtLc','97735ZaqtBE','312780EXbCqy','assign','152VMpMmw','312027CDbcUw','4559667xrqNej','369200NmJvRa','3018BQxJzW','170NvRJcu','5805cXrdkB','1930OrCxbu'];a17_0x1d44=function(){return _0x175598;};return a17_0x1d44();}(function(_0x8c0859,_0x41e3bc){var _0x9691b6=a17_0x4a5c,_0x2fbd3a=_0x8c0859();while(!![]){try{var _0xde5c82=-parseInt(_0x9691b6(0x104))/0x1+parseInt(_0x9691b6(0xfd))/0x2+-parseInt(_0x9691b6(0xfb))/0x3*(parseInt(_0x9691b6(0x102))/0x4)+-parseInt(_0x9691b6(0xff))/0x5*(-parseInt(_0x9691b6(0xfe))/0x6)+-parseInt(_0x9691b6(0xfc))/0x7+parseInt(_0x9691b6(0xfa))/0x8*(parseInt(_0x9691b6(0x100))/0x9)+parseInt(_0x9691b6(0x101))/0xa*(parseInt(_0x9691b6(0x103))/0xb);if(_0xde5c82===_0x41e3bc)break;else _0x2fbd3a['push'](_0x2fbd3a['shift']());}catch(_0x47bfed){_0x2fbd3a['push'](_0x2fbd3a['shift']());}}}(a17_0x1d44,0x6c88c));import{Entity}from'../core/Entity.js';function a17_0x4a5c(_0x33b55c,_0x252ea9){_0x33b55c=_0x33b55c-0xf9;var _0x1d44b4=a17_0x1d44();var _0x4a5c78=_0x1d44b4[_0x33b55c];return _0x4a5c78;}export class Client extends Entity{constructor(_0x247f3e,_0x455ae4){var _0x293d73=a17_0x4a5c;super(_0x247f3e),Object[_0x293d73(0xf9)](this,_0x455ae4);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x4f8654,_0x515e47){var _0x1ca542=a18_0x40b3,_0x23a5f9=_0x4f8654();while(!![]){try{var _0x5f2622=-parseInt(_0x1ca542(0x181))/0x1*(parseInt(_0x1ca542(0x185))/0x2)+parseInt(_0x1ca542(0x188))/0x3+parseInt(_0x1ca542(0x18a))/0x4*(parseInt(_0x1ca542(0x189))/0x5)+-parseInt(_0x1ca542(0x183))/0x6+parseInt(_0x1ca542(0x182))/0x7*(parseInt(_0x1ca542(0x187))/0x8)+parseInt(_0x1ca542(0x17f))/0x9*(parseInt(_0x1ca542(0x180))/0xa)+parseInt(_0x1ca542(0x17e))/0xb*(-parseInt(_0x1ca542(0x186))/0xc);if(_0x5f2622===_0x515e47)break;else _0x23a5f9['push'](_0x23a5f9['shift']());}catch(_0x4afeb5){_0x23a5f9['push'](_0x23a5f9['shift']());}}}(a18_0x1385,0x4f194));function a18_0x40b3(_0x111f4a,_0x3eba06){_0x111f4a=_0x111f4a-0x17e;var _0x1385d8=a18_0x1385();var _0x40b3fe=_0x1385d8[_0x111f4a];return _0x40b3fe;}import{Entity}from'../core/Entity.js';export class Item extends Entity{constructor(_0xbe322d,_0x1b57fa){var _0x12ad50=a18_0x40b3;super(_0xbe322d),Object[_0x12ad50(0x184)](this,_0x1b57fa);}}function a18_0x1385(){var _0x16bd13=['32208BCVEpT','9cREfSU','4598540lhNqrW','29CfciPr','21XvlBbd','3440856baDcJH','assign','534FTZpsq','2532cLeNdR','1301560BNvzPU','827547qLTcqU','365eaLKIP','16396xAQpZe'];a18_0x1385=function(){return _0x16bd13;};return a18_0x1385();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x4a48c5,_0x508d2b){var _0x52b825=a19_0x40de,_0x459d56=_0x4a48c5();while(!![]){try{var _0x7dc2bd=parseInt(_0x52b825(0x1ea))/0x1*(-parseInt(_0x52b825(0x1e1))/0x2)+-parseInt(_0x52b825(0x1eb))/0x3*(parseInt(_0x52b825(0x1e7))/0x4)+parseInt(_0x52b825(0x1e9))/0x5*(-parseInt(_0x52b825(0x1e4))/0x6)+-parseInt(_0x52b825(0x1e0))/0x7+-parseInt(_0x52b825(0x1e2))/0x8*(-parseInt(_0x52b825(0x1e5))/0x9)+parseInt(_0x52b825(0x1e8))/0xa*(parseInt(_0x52b825(0x1e6))/0xb)+parseInt(_0x52b825(0x1e3))/0xc;if(_0x7dc2bd===_0x508d2b)break;else _0x459d56['push'](_0x459d56['shift']());}catch(_0x2adc96){_0x459d56['push'](_0x459d56['shift']());}}}(a19_0x3c54,0xbcece));import{Entity}from'../core/Entity.js';function a19_0x40de(_0x5e52dc,_0x493340){_0x5e52dc=_0x5e52dc-0x1e0;var _0x3c5421=a19_0x3c54();var _0x40de50=_0x3c5421[_0x5e52dc];return _0x40de50;}export class Order extends Entity{constructor(_0x17ddbe,_0x496810){super(_0x17ddbe),Object['assign'](this,_0x496810);}}function a19_0x3c54(){var _0x347982=['156hLiIfT','2823453PqRuOr','1626834UEjZus','4QPRIVQ','30IPwuUl','177405CrhTFA','789CNlYyU','1025067fGQIVZ','47810pzrLjb','3238GsuVyd','16DvewkG','27013656yHbTDh'];a19_0x3c54=function(){return _0x347982;};return a19_0x3c54();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a20_0xb823(){var _0x303c24=['24diWufV','66WmmgDY','2115099tOvPSs','20YyhBLC','6559155nLaBFR','131116fnQbAB','14392150IUcwpi','467653vmqlMA','2810592satIdJ','82632LnXQVn'];a20_0xb823=function(){return _0x303c24;};return a20_0xb823();}(function(_0x46710f,_0x3b911c){var _0x132e1d=a20_0xc14f,_0x5891d1=_0x46710f();while(!![]){try{var _0x2a37a5=parseInt(_0x132e1d(0xa1))/0x1+-parseInt(_0x132e1d(0xa5))/0x2*(parseInt(_0x132e1d(0xa3))/0x3)+-parseInt(_0x132e1d(0xa9))/0x4*(-parseInt(_0x132e1d(0xa7))/0x5)+-parseInt(_0x132e1d(0xa2))/0x6+parseInt(_0x132e1d(0xa6))/0x7*(-parseInt(_0x132e1d(0xa4))/0x8)+parseInt(_0x132e1d(0xa8))/0x9+parseInt(_0x132e1d(0xa0))/0xa;if(_0x2a37a5===_0x3b911c)break;else _0x5891d1['push'](_0x5891d1['shift']());}catch(_0x2d6890){_0x5891d1['push'](_0x5891d1['shift']());}}}(a20_0xb823,0x75e6c));import{Entity}from'../core/Entity.js';function a20_0xc14f(_0x5cb35d,_0x24c51f){_0x5cb35d=_0x5cb35d-0xa0;var _0xb82371=a20_0xb823();var _0xc14fc3=_0xb82371[_0x5cb35d];return _0xc14fc3;}export class Preparation extends Entity{constructor(_0x139398,_0x2cd34c){super(_0x139398),Object['assign'](this,_0x2cd34c);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a21_0x13d8(){var _0x51adae=['3667008IfgtpM','3364557XXavNr','738840jROPPo','705030fOTAEG','821218NcSciO','assign','10hJvDTT','440641FPxdTI','1343166qJtlWj'];a21_0x13d8=function(){return _0x51adae;};return a21_0x13d8();}function a21_0x3d8f(_0x94f5de,_0x5a28de){_0x94f5de=_0x94f5de-0x10b;var _0x13d805=a21_0x13d8();var _0x3d8f91=_0x13d805[_0x94f5de];return _0x3d8f91;}(function(_0xf818cc,_0xe8ff93){var _0x224e09=a21_0x3d8f,_0x119a60=_0xf818cc();while(!![]){try{var _0x4dfd48=-parseInt(_0x224e09(0x113))/0x1+parseInt(_0x224e09(0x110))/0x2+-parseInt(_0x224e09(0x10f))/0x3+-parseInt(_0x224e09(0x10e))/0x4*(-parseInt(_0x224e09(0x112))/0x5)+parseInt(_0x224e09(0x10b))/0x6+-parseInt(_0x224e09(0x10d))/0x7+parseInt(_0x224e09(0x10c))/0x8;if(_0x4dfd48===_0xe8ff93)break;else _0x119a60['push'](_0x119a60['shift']());}catch(_0x5c21c5){_0x119a60['push'](_0x119a60['shift']());}}}(a21_0x13d8,0x4ab2c));import{Entity}from'../core/Entity.js';export class Purchase extends Entity{constructor(_0x792c6b,_0x4e9cf2){var _0x3c8b3c=a21_0x3d8f;super(_0x792c6b),Object[_0x3c8b3c(0x111)](this,_0x4e9cf2);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x29245a,_0x11897e){var _0xbe2c03=a22_0x88d3,_0x3437f5=_0x29245a();while(!![]){try{var _0x30bb41=-parseInt(_0xbe2c03(0x13d))/0x1*(-parseInt(_0xbe2c03(0x13b))/0x2)+-parseInt(_0xbe2c03(0x13a))/0x3+parseInt(_0xbe2c03(0x13c))/0x4*(-parseInt(_0xbe2c03(0x136))/0x5)+parseInt(_0xbe2c03(0x139))/0x6+-parseInt(_0xbe2c03(0x135))/0x7+-parseInt(_0xbe2c03(0x134))/0x8+parseInt(_0xbe2c03(0x138))/0x9;if(_0x30bb41===_0x11897e)break;else _0x3437f5['push'](_0x3437f5['shift']());}catch(_0x3b51af){_0x3437f5['push'](_0x3437f5['shift']());}}}(a22_0x2a82,0xab628));import{Entity}from'../core/Entity.js';function a22_0x88d3(_0x42e4a0,_0x17056f){_0x42e4a0=_0x42e4a0-0x134;var _0x2a8278=a22_0x2a82();var _0x88d3ac=_0x2a8278[_0x42e4a0];return _0x88d3ac;}export class Reception extends Entity{constructor(_0xa5a92,_0x4b3a1d){var _0x95a03a=a22_0x88d3;super(_0xa5a92),Object[_0x95a03a(0x137)](this,_0x4b3a1d);}}function a22_0x2a82(){var _0x4ddfa8=['5850663wVsWly','16255BuNzZb','assign','30942387cKUSNq','1289808UWKTNH','2343330UmAnyp','608TbZFXB','1288oSICyA','2377GvvCSK','8079088bbmfbF'];a22_0x2a82=function(){return _0x4ddfa8;};return a22_0x2a82();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a23_0xc9f8(_0x5849e6,_0x6e4d52){_0x5849e6=_0x5849e6-0x18a;var _0x4733d2=a23_0x4733();var _0xc9f821=_0x4733d2[_0x5849e6];return _0xc9f821;}(function(_0x18e1f8,_0x44f020){var _0x104b20=a23_0xc9f8,_0x35549a=_0x18e1f8();while(!![]){try{var _0x3eaf7a=parseInt(_0x104b20(0x191))/0x1+parseInt(_0x104b20(0x18c))/0x2*(-parseInt(_0x104b20(0x18a))/0x3)+-parseInt(_0x104b20(0x190))/0x4*(parseInt(_0x104b20(0x18f))/0x5)+parseInt(_0x104b20(0x192))/0x6*(parseInt(_0x104b20(0x18b))/0x7)+-parseInt(_0x104b20(0x18e))/0x8+parseInt(_0x104b20(0x18d))/0x9*(parseInt(_0x104b20(0x194))/0xa)+-parseInt(_0x104b20(0x193))/0xb;if(_0x3eaf7a===_0x44f020)break;else _0x35549a['push'](_0x35549a['shift']());}catch(_0x4bb197){_0x35549a['push'](_0x35549a['shift']());}}}(a23_0x4733,0xb09ad));import{Entity}from'../core/Entity.js';export class Stock extends Entity{constructor(_0x3f15da,_0x18cdbf){super(_0x3f15da),Object['assign'](this,_0x18cdbf);}}function a23_0x4733(){var _0x44cd87=['2216373oHxecM','1069803cXZhaa','2SOjDho','1054881zgyUTt','3037984xDZkrU','179425sLRjNA','4dVRreS','1132271GRnMVp','6rGpIEb','6373323iqeOjQ','100wZEoCb'];a23_0x4733=function(){return _0x44cd87;};return a23_0x4733();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a24_0x280d(_0x2f1ef5,_0x448e34){_0x2f1ef5=_0x2f1ef5-0x6e;var _0x334964=a24_0x3349();var _0x280d1f=_0x334964[_0x2f1ef5];return _0x280d1f;}(function(_0x1c73f5,_0x4136de){var _0x3a5989=a24_0x280d,_0x575f46=_0x1c73f5();while(!![]){try{var _0x1a9c96=-parseInt(_0x3a5989(0x6f))/0x1*(-parseInt(_0x3a5989(0x6e))/0x2)+parseInt(_0x3a5989(0x74))/0x3*(-parseInt(_0x3a5989(0x77))/0x4)+parseInt(_0x3a5989(0x71))/0x5+parseInt(_0x3a5989(0x70))/0x6+parseInt(_0x3a5989(0x75))/0x7+-parseInt(_0x3a5989(0x72))/0x8*(parseInt(_0x3a5989(0x76))/0x9)+parseInt(_0x3a5989(0x78))/0xa*(parseInt(_0x3a5989(0x73))/0xb);if(_0x1a9c96===_0x4136de)break;else _0x575f46['push'](_0x575f46['shift']());}catch(_0x4bedd0){_0x575f46['push'](_0x575f46['shift']());}}}(a24_0x3349,0xafd9a));import{Entity}from'../core/Entity.js';function a24_0x3349(){var _0x288318=['10CyUERd','assign','42424diUgyI','35NWYmAV','622962AhNWDv','1205775CWCjcb','3362456HBDXvD','12693274hrzwQr','52617GsDKTz','520562abgphN','9YeSSod','268fEgJKL'];a24_0x3349=function(){return _0x288318;};return a24_0x3349();}export class Supplier extends Entity{constructor(_0xaeb396,_0x224ed0){var _0x397bba=a24_0x280d;super(_0xaeb396),Object[_0x397bba(0x79)](this,_0x224ed0);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x7d092c,_0x5038cd){var _0x4102d0=a25_0x33d7,_0x3e1ebe=_0x7d092c();while(!![]){try{var _0x5c5493=parseInt(_0x4102d0(0x88))/0x1*(-parseInt(_0x4102d0(0x8f))/0x2)+parseInt(_0x4102d0(0x92))/0x3*(-parseInt(_0x4102d0(0x8c))/0x4)+parseInt(_0x4102d0(0x89))/0x5+parseInt(_0x4102d0(0x8b))/0x6+-parseInt(_0x4102d0(0x91))/0x7*(parseInt(_0x4102d0(0x93))/0x8)+parseInt(_0x4102d0(0x8d))/0x9*(parseInt(_0x4102d0(0x8e))/0xa)+parseInt(_0x4102d0(0x8a))/0xb;if(_0x5c5493===_0x5038cd)break;else _0x3e1ebe['push'](_0x3e1ebe['shift']());}catch(_0x5b8cd3){_0x3e1ebe['push'](_0x3e1ebe['shift']());}}}(a25_0x51be,0x87e3a));function a25_0x33d7(_0x201c09,_0x3a19af){_0x201c09=_0x201c09-0x88;var _0x51be50=a25_0x51be();var _0x33d7fe=_0x51be50[_0x201c09];return _0x33d7fe;}import{Entity}from'../core/Entity.js';function a25_0x51be(){var _0x2778cd=['49UGmDtz','1224960gnobMM','11694353FzBkgz','24042DQGzSc','137580Qwluta','2456829OemgiF','30YySdWV','39918uogyga','assign','7ITraik','45TOUFpX','644376IztySu'];a25_0x51be=function(){return _0x2778cd;};return a25_0x51be();}export class Tax extends Entity{constructor(_0x16d5f2,_0x56f886){var _0xdfb709=a25_0x33d7;super(_0x16d5f2),Object[_0xdfb709(0x90)](this,_0x56f886);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a26_0x4f69de=a26_0x513b;(function(_0x920ccc,_0x5c590e){var _0x4d39aa=a26_0x513b,_0x54eaae=_0x920ccc();while(!![]){try{var _0x159436=parseInt(_0x4d39aa(0x108))/0x1*(-parseInt(_0x4d39aa(0x111))/0x2)+-parseInt(_0x4d39aa(0x10a))/0x3*(-parseInt(_0x4d39aa(0x10d))/0x4)+parseInt(_0x4d39aa(0x106))/0x5+parseInt(_0x4d39aa(0x109))/0x6+parseInt(_0x4d39aa(0x103))/0x7*(parseInt(_0x4d39aa(0x10b))/0x8)+-parseInt(_0x4d39aa(0x10f))/0x9+-parseInt(_0x4d39aa(0x107))/0xa*(-parseInt(_0x4d39aa(0x105))/0xb);if(_0x159436===_0x5c590e)break;else _0x54eaae['push'](_0x54eaae['shift']());}catch(_0x4828a3){_0x54eaae['push'](_0x54eaae['shift']());}}}(a26_0x4674,0xaa8b3));import{Entity}from'../core/Entity.js';export class User extends Entity{constructor(_0x656b7e,_0x1eb0ad){var _0x13bf43=a26_0x513b;super(_0x656b7e),_0x1eb0ad[_0x13bf43(0x10e)]=_0x1eb0ad[_0x13bf43(0x10e)]?new Set(_0x1eb0ad[_0x13bf43(0x10e)]):new Set(),Object['assign'](this,_0x1eb0ad);}['hasPermission'](_0x1c116d){var _0x43244c=a26_0x513b;if(this[_0x43244c(0x10e)][_0x43244c(0x110)](_0x43244c(0x10c)))return!![];return this[_0x43244c(0x10e)][_0x43244c(0x110)](_0x1c116d);}['addPermission'](_0x316075){this['authorizations']['add'](_0x316075);}[a26_0x4f69de(0x112)](_0x44dd07){var _0x4e097d=a26_0x4f69de;this['authorizations'][_0x4e097d(0x104)](_0x44dd07);}}function a26_0x513b(_0x444d3d,_0x1da93d){_0x444d3d=_0x444d3d-0x103;var _0x467460=a26_0x4674();var _0x513b9e=_0x467460[_0x444d3d];return _0x513b9e;}function a26_0x4674(){var _0x102b01=['1317490kJyeci','479KkEHHC','4828476wwojma','9zOaYiu','152Ifswra','ADMIN','752932XqURNL','authorizations','9793422LdNeZO','has','2518drkagD','removePermission','250943DafNKP','delete','11uBxyvF','1037205HuVtqj'];a26_0x4674=function(){return _0x102b01;};return a26_0x4674();}
|
package/dist/index-obfuscated.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x5ce2d0,_0x56763d){var _0x4504b2=a27_0x3ad5,_0x396b4a=_0x5ce2d0();while(!![]){try{var _0x116464=parseInt(_0x4504b2(0x1b5))/0x1*(parseInt(_0x4504b2(0x1ae))/0x2)+-parseInt(_0x4504b2(0x1b3))/0x3+-parseInt(_0x4504b2(0x1ad))/0x4*(-parseInt(_0x4504b2(0x1b7))/0x5)+-parseInt(_0x4504b2(0x1b1))/0x6*(-parseInt(_0x4504b2(0x1b0))/0x7)+-parseInt(_0x4504b2(0x1b4))/0x8+-parseInt(_0x4504b2(0x1b2))/0x9*(-parseInt(_0x4504b2(0x1b6))/0xa)+-parseInt(_0x4504b2(0x1af))/0xb;if(_0x116464===_0x56763d)break;else _0x396b4a['push'](_0x396b4a['shift']());}catch(_0x17b742){_0x396b4a['push'](_0x396b4a['shift']());}}}(a27_0x1372,0x398f8));export{OWLClient}from'./owl/OWLClient.js';function a27_0x3ad5(_0x523139,_0xec635e){_0x523139=_0x523139-0x1ad;var _0x13720b=a27_0x1372();var _0x3ad5b6=_0x13720b[_0x523139];return _0x3ad5b6;}export*from'./core/Module.js';export*from'./entities/User.js';export*from'./entities/Client.js';export*from'./entities/Supplier.js';export*from'./entities/Item.js';export*from'./entities/Order.js';function a27_0x1372(){var _0x5564d2=['6icOXfW','1156188QgrtEC','7bkwFTt','2565492HslBjq','9YWeynL','543747KlwwCN','3761752UmQQxw','105254klhOOv','149410QQpGCF','145AIxMRY','32284taVwqG'];a27_0x1372=function(){return _0x5564d2;};return a27_0x1372();}export*from'./entities/Preparation.js';export*from'./entities/Purchase.js';export*from'./entities/Reception.js';export*from'./entities/Stock.js';export*from'./entities/Tax.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a28_0x4ec52a=a28_0x140b;function a28_0x329a(){const _0x5f2e6f=['client.cached.some','set','client.error','length','request','client.deleted','fetchAll','client.cached.all','2954064KDgkAe','client.read','903eBCZgl','1151600wcIyZG','events','client.cached','17757675UPqQsE','cache','3204022oDZbit','55VAifYe','has','client.read.some','1635561msccRB','fetch','then','values','tokenIsValide','000001:\x20Invalid\x20Token.','322572ZnxMKX','get','2256hMVjjO','delete','some','owl','emit','client.read.all','modify'];a28_0x329a=function(){return _0x5f2e6f;};return a28_0x329a();}function a28_0x140b(_0x339aab,_0x1ee45b){_0x339aab=_0x339aab-0x18c;const _0x329a97=a28_0x329a();let _0x140bb4=_0x329a97[_0x339aab];return _0x140bb4;}(function(_0x2b1cc3,_0x30aeef){const _0x497400=a28_0x140b,_0x371c1f=_0x2b1cc3();while(!![]){try{const _0x38200d=parseInt(_0x497400(0x197))/0x1+parseInt(_0x497400(0x19c))/0x2+parseInt(_0x497400(0x1a0))/0x3+-parseInt(_0x497400(0x1a6))/0x4*(parseInt(_0x497400(0x19d))/0x5)+parseInt(_0x497400(0x194))/0x6+parseInt(_0x497400(0x196))/0x7*(-parseInt(_0x497400(0x1a8))/0x8)+-parseInt(_0x497400(0x19a))/0x9;if(_0x38200d===_0x30aeef)break;else _0x371c1f['push'](_0x371c1f['shift']());}catch(_0x182bb7){_0x371c1f['push'](_0x371c1f['shift']());}}}(a28_0x329a,0xda698));import{Manager}from'../core/Manager.js';import{Client}from'../entities/Client.js';export class ClientManager extends Manager{async[a28_0x4ec52a(0x1a1)](_0x4f7be7){const _0x2da007=a28_0x4ec52a;try{if(!this[_0x2da007(0x1ab)]['tokenIsValide']())throw new Error(_0x2da007(0x1a5));if(this[_0x2da007(0x19b)][_0x2da007(0x19e)](_0x4f7be7))return this['cache'][_0x2da007(0x1a7)](_0x4f7be7);const _0x3fbb74=await this[_0x2da007(0x1ab)][_0x2da007(0x198)][_0x2da007(0x190)](_0x2da007(0x195),{'id':_0x4f7be7}),_0x4d09ed=new Client(this[_0x2da007(0x1ab)],_0x3fbb74);return this[_0x2da007(0x19b)]['set'](_0x4f7be7,_0x4d09ed),this[_0x2da007(0x1ab)]['events'][_0x2da007(0x1ac)](_0x2da007(0x199),_0x4d09ed),_0x4d09ed;}catch(_0x236f63){this[_0x2da007(0x1ab)][_0x2da007(0x198)][_0x2da007(0x1ac)](_0x2da007(0x18e),{'error':_0x236f63});throw _0x236f63;}}async[a28_0x4ec52a(0x192)](){const _0x3d03fd=a28_0x4ec52a;try{if(!this['owl'][_0x3d03fd(0x1a4)]())throw new Error(_0x3d03fd(0x1a5));const _0x496d0e=await this[_0x3d03fd(0x1ab)][_0x3d03fd(0x198)][_0x3d03fd(0x190)](_0x3d03fd(0x1ad),{});for(let _0xfe1c1=0x0;_0xfe1c1<_0x496d0e[_0x3d03fd(0x18f)];_0xfe1c1++){const _0x735208=new Client(this[_0x3d03fd(0x1ab)],_0x496d0e[_0xfe1c1]);this[_0x3d03fd(0x19b)][_0x3d03fd(0x18d)](_0x735208['id'],_0x735208);}return this[_0x3d03fd(0x1ab)][_0x3d03fd(0x198)][_0x3d03fd(0x1ac)](_0x3d03fd(0x193),this['cache'][_0x3d03fd(0x1a3)]()),this[_0x3d03fd(0x19b)][_0x3d03fd(0x1a3)]();}catch(_0x2f8396){this[_0x3d03fd(0x1ab)]['events'][_0x3d03fd(0x1ac)]('client.error',{'error':_0x2f8396});throw _0x2f8396;}}async[a28_0x4ec52a(0x1aa)](_0x1f38ae){const _0x2787f8=a28_0x4ec52a;try{if(!this[_0x2787f8(0x1ab)][_0x2787f8(0x1a4)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x25b86e=await this[_0x2787f8(0x1ab)][_0x2787f8(0x198)][_0x2787f8(0x190)](_0x2787f8(0x19f),_0x1f38ae);for(let _0x42f27b=0x0;_0x42f27b<_0x25b86e[_0x2787f8(0x18f)];_0x42f27b++){const _0x438d6a=new Client(this['owl'],_0x25b86e[_0x42f27b]);this[_0x2787f8(0x19b)][_0x2787f8(0x18d)](_0x438d6a['id'],_0x438d6a);}return this[_0x2787f8(0x1ab)]['events'][_0x2787f8(0x1ac)](_0x2787f8(0x18c),_0x25b86e),_0x25b86e;}catch(_0x6eb5a9){this['owl'][_0x2787f8(0x198)]['emit']('client.error',{'error':_0x6eb5a9});throw _0x6eb5a9;}}async['new'](_0x48553e){const _0x38390f=a28_0x4ec52a;try{if(!this[_0x38390f(0x1ab)][_0x38390f(0x1a4)]())throw new Error(_0x38390f(0x1a5));const _0x3106cd=await this[_0x38390f(0x1ab)][_0x38390f(0x198)]['request']('client.created',{'client':_0x48553e});_0x48553e['id']=_0x3106cd;const _0x43a5b8=new Client(this[_0x38390f(0x1ab)],_0x48553e);return this[_0x38390f(0x19b)]['set'](_0x43a5b8['id'],_0x43a5b8),_0x43a5b8;}catch(_0x3a04fa){this[_0x38390f(0x1ab)][_0x38390f(0x198)][_0x38390f(0x1ac)](_0x38390f(0x18e),{'error':_0x3a04fa});throw _0x3a04fa;}}async[a28_0x4ec52a(0x1ae)](_0x155ffa,_0x40a456){const _0x3f67de=a28_0x4ec52a;try{if(!this[_0x3f67de(0x1ab)][_0x3f67de(0x1a4)]())throw new Error(_0x3f67de(0x1a5));await this[_0x3f67de(0x1ab)][_0x3f67de(0x198)]['request']('client.updated',_0x40a456)[_0x3f67de(0x1a2)](_0x1c3f2d=>{const _0x2084e1=_0x3f67de;this[_0x2084e1(0x19b)][_0x2084e1(0x18d)](_0x155ffa,_0x1c3f2d);});}catch(_0x20f257){this[_0x3f67de(0x1ab)][_0x3f67de(0x198)]['emit'](_0x3f67de(0x18e),{'error':_0x20f257});throw _0x20f257;}}async[a28_0x4ec52a(0x1a9)](_0xa9ff39){const _0x17b96d=a28_0x4ec52a;try{if(!this[_0x17b96d(0x1ab)][_0x17b96d(0x1a4)]())throw new Error(_0x17b96d(0x1a5));await this[_0x17b96d(0x1ab)][_0x17b96d(0x198)][_0x17b96d(0x1ac)](_0x17b96d(0x191),{'id':_0xa9ff39}),this[_0x17b96d(0x19b)]['delete'](_0xa9ff39);}catch(_0x11472e){this[_0x17b96d(0x1ab)][_0x17b96d(0x198)][_0x17b96d(0x1ac)](_0x17b96d(0x18e),{'error':_0x11472e});throw _0x11472e;}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a29_0x42e0a1=a29_0x2e97;function a29_0x2e97(_0x43f617,_0x3488c3){_0x43f617=_0x43f617-0x12e;const _0x1d553e=a29_0x1d55();let _0x2e9742=_0x1d553e[_0x43f617];return _0x2e9742;}(function(_0x26c602,_0x3879d8){const _0x54b57a=a29_0x2e97,_0x468d7c=_0x26c602();while(!![]){try{const _0xa3b094=-parseInt(_0x54b57a(0x134))/0x1+-parseInt(_0x54b57a(0x145))/0x2+-parseInt(_0x54b57a(0x12e))/0x3*(parseInt(_0x54b57a(0x132))/0x4)+-parseInt(_0x54b57a(0x151))/0x5*(parseInt(_0x54b57a(0x137))/0x6)+-parseInt(_0x54b57a(0x143))/0x7*(-parseInt(_0x54b57a(0x14a))/0x8)+parseInt(_0x54b57a(0x13f))/0x9+parseInt(_0x54b57a(0x144))/0xa*(parseInt(_0x54b57a(0x12f))/0xb);if(_0xa3b094===_0x3879d8)break;else _0x468d7c['push'](_0x468d7c['shift']());}catch(_0x58710b){_0x468d7c['push'](_0x468d7c['shift']());}}}(a29_0x1d55,0xb08d4));import{Manager}from'../core/Manager.js';function a29_0x1d55(){const _0xb961c2=['emit','then','item.read.all','fetchAll','item.updated','cache','1428786vctpPt','item.deleted','item.cached','tokenIsValide','7HFJVct','10qyfNAb','2019096bCnQuQ','new','length','get','values','649216aqnNFJ','delete','item.read','set','events','fetch','owl','70UulYft','7041ogbMNk','46995245BmVBET','request','000001:\x20Invalid\x20Token.','1112vlHsaU','item.error','896347RPMGmI','modify','item.read.some','527436nnLrbd','item.cached.some'];a29_0x1d55=function(){return _0xb961c2;};return a29_0x1d55();}import{Item}from'../entities/Item.js';export class ItemManager extends Manager{async[a29_0x42e0a1(0x14f)](_0x11b4f4){const _0x1f212a=a29_0x42e0a1;try{if(!this[_0x1f212a(0x150)][_0x1f212a(0x142)]())throw new Error(_0x1f212a(0x131));if(this[_0x1f212a(0x13e)]['has'](_0x11b4f4))return this[_0x1f212a(0x13e)][_0x1f212a(0x148)](_0x11b4f4);const _0x40957b=await this[_0x1f212a(0x150)][_0x1f212a(0x14e)][_0x1f212a(0x130)](_0x1f212a(0x14c),{'id':_0x11b4f4}),_0x31132b=new Item(this[_0x1f212a(0x150)],_0x40957b);return this[_0x1f212a(0x13e)][_0x1f212a(0x14d)](_0x11b4f4,_0x31132b),this['owl']['events'][_0x1f212a(0x139)](_0x1f212a(0x141),_0x31132b),_0x31132b;}catch(_0x2113cd){this[_0x1f212a(0x150)][_0x1f212a(0x14e)]['emit'](_0x1f212a(0x133),{'error':_0x2113cd});throw _0x2113cd;}}async[a29_0x42e0a1(0x13c)](){const _0x1503d0=a29_0x42e0a1;try{if(!this[_0x1503d0(0x150)][_0x1503d0(0x142)]())throw new Error(_0x1503d0(0x131));const _0x263fec=await this[_0x1503d0(0x150)]['events']['request'](_0x1503d0(0x13b),{});for(let _0x56de95=0x0;_0x56de95<_0x263fec[_0x1503d0(0x147)];_0x56de95++){const _0x576445=new Item(this[_0x1503d0(0x150)],_0x263fec[_0x56de95]);this['cache']['set'](_0x576445['id'],_0x576445);}return this[_0x1503d0(0x150)][_0x1503d0(0x14e)][_0x1503d0(0x139)]('item.cached.all',this[_0x1503d0(0x13e)][_0x1503d0(0x149)]()),this[_0x1503d0(0x13e)][_0x1503d0(0x149)]();}catch(_0x465b55){this[_0x1503d0(0x150)][_0x1503d0(0x14e)][_0x1503d0(0x139)](_0x1503d0(0x133),{'error':_0x465b55});throw _0x465b55;}}async['some'](_0x3821e6){const _0xfb06fb=a29_0x42e0a1;try{if(!this[_0xfb06fb(0x150)][_0xfb06fb(0x142)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x224b89=await this['owl'][_0xfb06fb(0x14e)][_0xfb06fb(0x130)](_0xfb06fb(0x136),_0x3821e6);for(let _0x54867f=0x0;_0x54867f<_0x224b89['length'];_0x54867f++){const _0x4301e8=new Item(this[_0xfb06fb(0x150)],_0x224b89[_0x54867f]);this['cache'][_0xfb06fb(0x14d)](_0x4301e8['id'],_0x4301e8);}return this['owl'][_0xfb06fb(0x14e)][_0xfb06fb(0x139)](_0xfb06fb(0x138),_0x224b89),_0x224b89;}catch(_0x2b7b69){this[_0xfb06fb(0x150)][_0xfb06fb(0x14e)][_0xfb06fb(0x139)](_0xfb06fb(0x133),{'error':_0x2b7b69});throw _0x2b7b69;}}async[a29_0x42e0a1(0x146)](_0x505921){const _0x3e4fad=a29_0x42e0a1;try{if(!this[_0x3e4fad(0x150)][_0x3e4fad(0x142)]())throw new Error(_0x3e4fad(0x131));const _0x38be06=await this[_0x3e4fad(0x150)]['events'][_0x3e4fad(0x130)]('item.created',{'item':_0x505921});_0x505921['id']=_0x38be06;const _0x1cb217=new Item(this[_0x3e4fad(0x150)],_0x505921);return this['cache'][_0x3e4fad(0x14d)](_0x1cb217['id'],_0x1cb217),_0x1cb217;}catch(_0x4ab213){this[_0x3e4fad(0x150)][_0x3e4fad(0x14e)]['emit']('item.error',{'error':_0x4ab213});throw _0x4ab213;}}async[a29_0x42e0a1(0x135)](_0x474a2b,_0x5de243){const _0x49ba1f=a29_0x42e0a1;try{if(!this['owl'][_0x49ba1f(0x142)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x49ba1f(0x150)][_0x49ba1f(0x14e)]['request'](_0x49ba1f(0x13d),_0x5de243)[_0x49ba1f(0x13a)](_0x2e893f=>{const _0x49f362=_0x49ba1f;this[_0x49f362(0x13e)][_0x49f362(0x14d)](_0x474a2b,_0x2e893f);});}catch(_0x3cfdc3){this['owl'][_0x49ba1f(0x14e)][_0x49ba1f(0x139)](_0x49ba1f(0x133),{'error':_0x3cfdc3});throw _0x3cfdc3;}}async['delete'](_0x199bad){const _0x1c7e1c=a29_0x42e0a1;try{if(!this[_0x1c7e1c(0x150)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events']['emit'](_0x1c7e1c(0x140),{'id':_0x199bad}),this[_0x1c7e1c(0x13e)][_0x1c7e1c(0x14b)](_0x199bad);}catch(_0x376f17){this[_0x1c7e1c(0x150)]['events'][_0x1c7e1c(0x139)](_0x1c7e1c(0x133),{'error':_0x376f17});throw _0x376f17;}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a30_0x1ce473=a30_0x4e1f;(function(_0x4e3f4e,_0x10e34b){const _0x2664cd=a30_0x4e1f,_0x279c35=_0x4e3f4e();while(!![]){try{const _0x3d51fa=-parseInt(_0x2664cd(0x1ae))/0x1+-parseInt(_0x2664cd(0x1b0))/0x2*(-parseInt(_0x2664cd(0x1be))/0x3)+parseInt(_0x2664cd(0x1c7))/0x4+parseInt(_0x2664cd(0x1b9))/0x5+parseInt(_0x2664cd(0x1b4))/0x6*(parseInt(_0x2664cd(0x1bd))/0x7)+parseInt(_0x2664cd(0x1a8))/0x8*(parseInt(_0x2664cd(0x1c6))/0x9)+-parseInt(_0x2664cd(0x1c4))/0xa*(parseInt(_0x2664cd(0x1b8))/0xb);if(_0x3d51fa===_0x10e34b)break;else _0x279c35['push'](_0x279c35['shift']());}catch(_0x91b734){_0x279c35['push'](_0x279c35['shift']());}}}(a30_0x414d,0xd396f));import{Manager}from'../core/Manager.js';function a30_0x4e1f(_0x5ccd3c,_0x5dafc5){_0x5ccd3c=_0x5ccd3c-0x1a7;const _0x414d6d=a30_0x414d();let _0x4e1fcd=_0x414d6d[_0x5ccd3c];return _0x4e1fcd;}import{Order}from'../entities/Order.js';function a30_0x414d(){const _0x196105=['order.read.all','order.read','21646559TUCPkJ','5333800BrgIOS','has','values','000001:\x20Invalid\x20Token.','7840kfMjOR','527658fEvhXf','order.updated','order.deleted','order.cached.all','modify','tokenIsValide','20UYDhBz','order.created','873wexJTH','6539332rdkoBQ','events','delete','then','order.cached.some','request','order.cached','order.error','256SVPeZZ','order.read.some','length','some','owl','fetchAll','822496tXutxL','get','16TjWFcX','cache','set','emit','8106YdcHjx','fetch'];a30_0x414d=function(){return _0x196105;};return a30_0x414d();}export class OrderManager extends Manager{async[a30_0x1ce473(0x1b5)](_0x29942d){const _0x502383=a30_0x1ce473;try{if(!this[_0x502383(0x1ac)][_0x502383(0x1c3)]())throw new Error('000001:\x20Invalid\x20Token.');if(this['cache'][_0x502383(0x1ba)](_0x29942d))return this[_0x502383(0x1b1)][_0x502383(0x1af)](_0x29942d);const _0xff4c3d=await this['owl'][_0x502383(0x1c8)][_0x502383(0x1cc)](_0x502383(0x1b7),{'id':_0x29942d}),_0x3fde01=new Order(this[_0x502383(0x1ac)],_0xff4c3d);return this[_0x502383(0x1b1)][_0x502383(0x1b2)](_0x29942d,_0x3fde01),this['owl']['events'][_0x502383(0x1b3)](_0x502383(0x1cd),_0x3fde01),_0x3fde01;}catch(_0x12a024){this['owl'][_0x502383(0x1c8)]['emit'](_0x502383(0x1a7),{'error':_0x12a024});throw _0x12a024;}}async[a30_0x1ce473(0x1ad)](){const _0x55b64d=a30_0x1ce473;try{if(!this[_0x55b64d(0x1ac)][_0x55b64d(0x1c3)]())throw new Error(_0x55b64d(0x1bc));const _0x14a095=await this[_0x55b64d(0x1ac)][_0x55b64d(0x1c8)]['request'](_0x55b64d(0x1b6),{});for(let _0x4062c3=0x0;_0x4062c3<_0x14a095[_0x55b64d(0x1aa)];_0x4062c3++){const _0x3442aa=new Order(this[_0x55b64d(0x1ac)],_0x14a095[_0x4062c3]);this[_0x55b64d(0x1b1)][_0x55b64d(0x1b2)](_0x3442aa['id'],_0x3442aa);}return this[_0x55b64d(0x1ac)][_0x55b64d(0x1c8)]['emit'](_0x55b64d(0x1c1),this[_0x55b64d(0x1b1)]['values']()),this['cache'][_0x55b64d(0x1bb)]();}catch(_0x3685d4){this[_0x55b64d(0x1ac)][_0x55b64d(0x1c8)]['emit']('order.error',{'error':_0x3685d4});throw _0x3685d4;}}async[a30_0x1ce473(0x1ab)](_0x307e07){const _0x185158=a30_0x1ce473;try{if(!this[_0x185158(0x1ac)][_0x185158(0x1c3)]())throw new Error(_0x185158(0x1bc));const _0x19cd30=await this['owl'][_0x185158(0x1c8)][_0x185158(0x1cc)](_0x185158(0x1a9),_0x307e07);for(let _0x7ea32a=0x0;_0x7ea32a<_0x19cd30[_0x185158(0x1aa)];_0x7ea32a++){const _0x545cb1=new Order(this[_0x185158(0x1ac)],_0x19cd30[_0x7ea32a]);this[_0x185158(0x1b1)][_0x185158(0x1b2)](_0x545cb1['id'],_0x545cb1);}return this[_0x185158(0x1ac)][_0x185158(0x1c8)][_0x185158(0x1b3)](_0x185158(0x1cb),_0x19cd30),_0x19cd30;}catch(_0xf6b1e){this['owl'][_0x185158(0x1c8)][_0x185158(0x1b3)](_0x185158(0x1a7),{'error':_0xf6b1e});throw _0xf6b1e;}}async['new'](_0x92194d){const _0x5c6b76=a30_0x1ce473;try{if(!this[_0x5c6b76(0x1ac)][_0x5c6b76(0x1c3)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x1b1e29=await this[_0x5c6b76(0x1ac)]['events']['request'](_0x5c6b76(0x1c5),{'order':_0x92194d});_0x92194d['id']=_0x1b1e29;const _0x50e2b9=new Order(this[_0x5c6b76(0x1ac)],_0x92194d);return this[_0x5c6b76(0x1b1)][_0x5c6b76(0x1b2)](_0x50e2b9['id'],_0x50e2b9),_0x50e2b9;}catch(_0x76e0c2){this[_0x5c6b76(0x1ac)][_0x5c6b76(0x1c8)][_0x5c6b76(0x1b3)]('order.error',{'error':_0x76e0c2});throw _0x76e0c2;}}async[a30_0x1ce473(0x1c2)](_0x4f02a4,_0x190869){const _0x49c640=a30_0x1ce473;try{if(!this[_0x49c640(0x1ac)]['tokenIsValide']())throw new Error(_0x49c640(0x1bc));await this[_0x49c640(0x1ac)][_0x49c640(0x1c8)]['request'](_0x49c640(0x1bf),_0x190869)[_0x49c640(0x1ca)](_0x3ea531=>{const _0xc3cf54=_0x49c640;this[_0xc3cf54(0x1b1)][_0xc3cf54(0x1b2)](_0x4f02a4,_0x3ea531);});}catch(_0x6dcf40){this[_0x49c640(0x1ac)][_0x49c640(0x1c8)][_0x49c640(0x1b3)](_0x49c640(0x1a7),{'error':_0x6dcf40});throw _0x6dcf40;}}async[a30_0x1ce473(0x1c9)](_0x1af863){const _0x4a1849=a30_0x1ce473;try{if(!this[_0x4a1849(0x1ac)][_0x4a1849(0x1c3)]())throw new Error(_0x4a1849(0x1bc));await this['owl'][_0x4a1849(0x1c8)]['emit'](_0x4a1849(0x1c0),{'id':_0x1af863}),this[_0x4a1849(0x1b1)][_0x4a1849(0x1c9)](_0x1af863);}catch(_0x2f433a){this[_0x4a1849(0x1ac)][_0x4a1849(0x1c8)][_0x4a1849(0x1b3)]('order.error',{'error':_0x2f433a});throw _0x2f433a;}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a31_0x439174=a31_0x5f50;(function(_0x48b5db,_0x37c88b){const _0x20fe65=a31_0x5f50,_0x319671=_0x48b5db();while(!![]){try{const _0x4bc4d3=-parseInt(_0x20fe65(0xe9))/0x1+-parseInt(_0x20fe65(0xdf))/0x2+-parseInt(_0x20fe65(0xdd))/0x3+parseInt(_0x20fe65(0xeb))/0x4*(parseInt(_0x20fe65(0xf1))/0x5)+-parseInt(_0x20fe65(0xee))/0x6+-parseInt(_0x20fe65(0xe7))/0x7+-parseInt(_0x20fe65(0xe6))/0x8*(-parseInt(_0x20fe65(0xd6))/0x9);if(_0x4bc4d3===_0x37c88b)break;else _0x319671['push'](_0x319671['shift']());}catch(_0x20badb){_0x319671['push'](_0x319671['shift']());}}}(a31_0x408e,0x1efd5));import{Manager}from'../core/Manager.js';import{Preparation}from'../entities/Preparation.js';function a31_0x408e(){const _0x312d62=['cache','preparation.error','preparation.cached','000001:\x20Invalid\x20Token.','preparation.read.all','delete','57808agTSEt','460292eHHsMC','fetch','116095yLaCGn','preparation.read','136ZuqFEO','preparation.created','preparation.updated','1375902CLmjmt','fetchAll','tokenIsValide','19060wsOQul','request','emit','owl','preparation.cached.all','711geAXlK','preparation.deleted','modify','get','set','events','values','152694FghvOb','has','222926vYWLbi'];a31_0x408e=function(){return _0x312d62;};return a31_0x408e();}function a31_0x5f50(_0x59b530,_0x268b7f){_0x59b530=_0x59b530-0xd2;const _0x408e02=a31_0x408e();let _0x5f5012=_0x408e02[_0x59b530];return _0x5f5012;}export class PreparationManager extends Manager{async[a31_0x439174(0xe8)](_0x38d031){const _0x13b056=a31_0x439174;try{if(!this[_0x13b056(0xd4)][_0x13b056(0xf0)]())throw new Error(_0x13b056(0xe3));if(this[_0x13b056(0xe0)][_0x13b056(0xde)](_0x38d031))return this['cache'][_0x13b056(0xd9)](_0x38d031);const _0x22a314=await this[_0x13b056(0xd4)][_0x13b056(0xdb)][_0x13b056(0xd2)](_0x13b056(0xea),{'id':_0x38d031}),_0x34fab2=new Preparation(this[_0x13b056(0xd4)],_0x22a314);return this['cache']['set'](_0x38d031,_0x34fab2),this[_0x13b056(0xd4)][_0x13b056(0xdb)][_0x13b056(0xd3)](_0x13b056(0xe2),_0x34fab2),_0x34fab2;}catch(_0x3f372a){this[_0x13b056(0xd4)][_0x13b056(0xdb)][_0x13b056(0xd3)](_0x13b056(0xe1),{'error':_0x3f372a});throw _0x3f372a;}}async[a31_0x439174(0xef)](){const _0x5454fc=a31_0x439174;try{if(!this[_0x5454fc(0xd4)]['tokenIsValide']())throw new Error(_0x5454fc(0xe3));const _0x165c96=await this['owl'][_0x5454fc(0xdb)][_0x5454fc(0xd2)](_0x5454fc(0xe4),{});for(let _0x409681=0x0;_0x409681<_0x165c96['length'];_0x409681++){const _0x54224c=new Preparation(this[_0x5454fc(0xd4)],_0x165c96[_0x409681]);this['cache'][_0x5454fc(0xda)](_0x54224c['id'],_0x54224c);}return this[_0x5454fc(0xd4)][_0x5454fc(0xdb)][_0x5454fc(0xd3)](_0x5454fc(0xd5),this[_0x5454fc(0xe0)][_0x5454fc(0xdc)]()),this[_0x5454fc(0xe0)]['values']();}catch(_0x1a4b7e){this[_0x5454fc(0xd4)][_0x5454fc(0xdb)][_0x5454fc(0xd3)](_0x5454fc(0xe1),{'error':_0x1a4b7e});throw _0x1a4b7e;}}async['some'](_0x55303f){const _0x55853d=a31_0x439174;try{if(!this[_0x55853d(0xd4)][_0x55853d(0xf0)]())throw new Error(_0x55853d(0xe3));const _0x3bbab7=await this[_0x55853d(0xd4)]['events'][_0x55853d(0xd2)]('preparation.read.some',_0x55303f);for(let _0x592ad6=0x0;_0x592ad6<_0x3bbab7['length'];_0x592ad6++){const _0x2bb385=new Preparation(this[_0x55853d(0xd4)],_0x3bbab7[_0x592ad6]);this['cache'][_0x55853d(0xda)](_0x2bb385['id'],_0x2bb385);}return this['owl']['events'][_0x55853d(0xd3)]('preparation.cached.some',_0x3bbab7),_0x3bbab7;}catch(_0x295b37){this[_0x55853d(0xd4)][_0x55853d(0xdb)]['emit']('preparation.error',{'error':_0x295b37});throw _0x295b37;}}async['new'](_0x192f59){const _0x17123a=a31_0x439174;try{if(!this[_0x17123a(0xd4)][_0x17123a(0xf0)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x2695c6=await this[_0x17123a(0xd4)][_0x17123a(0xdb)]['request'](_0x17123a(0xec),{'preparation':_0x192f59});_0x192f59['id']=_0x2695c6;const _0x20a4d5=new Preparation(this[_0x17123a(0xd4)],_0x192f59);return this['cache']['set'](_0x20a4d5['id'],_0x20a4d5),_0x20a4d5;}catch(_0x49d7ef){this['owl'][_0x17123a(0xdb)]['emit'](_0x17123a(0xe1),{'error':_0x49d7ef});throw _0x49d7ef;}}async[a31_0x439174(0xd8)](_0x476b74,_0x599b61){const _0x1ce4b2=a31_0x439174;try{if(!this[_0x1ce4b2(0xd4)][_0x1ce4b2(0xf0)]())throw new Error(_0x1ce4b2(0xe3));await this[_0x1ce4b2(0xd4)][_0x1ce4b2(0xdb)][_0x1ce4b2(0xd2)](_0x1ce4b2(0xed),_0x599b61)['then'](_0x2da7a3=>{const _0x8ec0e7=_0x1ce4b2;this[_0x8ec0e7(0xe0)][_0x8ec0e7(0xda)](_0x476b74,_0x2da7a3);});}catch(_0x20134d){this[_0x1ce4b2(0xd4)][_0x1ce4b2(0xdb)][_0x1ce4b2(0xd3)](_0x1ce4b2(0xe1),{'error':_0x20134d});throw _0x20134d;}}async['delete'](_0x209154){const _0x57b80f=a31_0x439174;try{if(!this[_0x57b80f(0xd4)]['tokenIsValide']())throw new Error(_0x57b80f(0xe3));await this[_0x57b80f(0xd4)][_0x57b80f(0xdb)]['emit'](_0x57b80f(0xd7),{'id':_0x209154}),this['cache'][_0x57b80f(0xe5)](_0x209154);}catch(_0x4af664){this['owl'][_0x57b80f(0xdb)]['emit'](_0x57b80f(0xe1),{'error':_0x4af664});throw _0x4af664;}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a32_0x4cad1b=a32_0x2d8e;function a32_0x2d8e(_0x2f8591,_0x966033){_0x2f8591=_0x2f8591-0xcf;const _0x3c91d8=a32_0x3c91();let _0x2d8e74=_0x3c91d8[_0x2f8591];return _0x2d8e74;}function a32_0x3c91(){const _0x1115e9=['delete','1220158iIiKpm','603msDyxh','purchase.cached.some','set','1657143Igzbuq','then','10224300FjQbSo','8180UHXSVM','fetchAll','16fcMcCG','purchase.updated','purchase.error','emit','2976TDZeRz','14676YKjsrr','purchase.created','owl','purchase.cached.all','tokenIsValide','get','length','events','modify','values','444186VZaJXS','cache','purchase.cached','purchase.read','1958460alLwIA','some','request','000001:\x20Invalid\x20Token.'];a32_0x3c91=function(){return _0x1115e9;};return a32_0x3c91();}(function(_0x1b46f9,_0x1cd828){const _0x5289d7=a32_0x2d8e,_0x8f905f=_0x1b46f9();while(!![]){try{const _0xf0ec75=parseInt(_0x5289d7(0xdc))/0x1+-parseInt(_0x5289d7(0xe5))/0x2+-parseInt(_0x5289d7(0xe6))/0x3*(-parseInt(_0x5289d7(0xd2))/0x4)+-parseInt(_0x5289d7(0xec))/0x5*(-parseInt(_0x5289d7(0xd1))/0x6)+-parseInt(_0x5289d7(0xe0))/0x7+-parseInt(_0x5289d7(0xee))/0x8*(-parseInt(_0x5289d7(0xe9))/0x9)+-parseInt(_0x5289d7(0xeb))/0xa;if(_0xf0ec75===_0x1cd828)break;else _0x8f905f['push'](_0x8f905f['shift']());}catch(_0x295b3c){_0x8f905f['push'](_0x8f905f['shift']());}}}(a32_0x3c91,0x6da34));import{Manager}from'../core/Manager.js';import{Purchase}from'../entities/Purchase.js';export class PurchaseManager extends Manager{async['fetch'](_0xdc2f80){const _0x57bebb=a32_0x2d8e;try{if(!this['owl'][_0x57bebb(0xd6)]())throw new Error(_0x57bebb(0xe3));if(this['cache']['has'](_0xdc2f80))return this['cache'][_0x57bebb(0xd7)](_0xdc2f80);const _0x5c9252=await this[_0x57bebb(0xd4)][_0x57bebb(0xd9)][_0x57bebb(0xe2)](_0x57bebb(0xdf),{'id':_0xdc2f80}),_0x1dee67=new Purchase(this[_0x57bebb(0xd4)],_0x5c9252);return this['cache']['set'](_0xdc2f80,_0x1dee67),this['owl']['events'][_0x57bebb(0xd0)](_0x57bebb(0xde),_0x1dee67),_0x1dee67;}catch(_0x50233c){this[_0x57bebb(0xd4)][_0x57bebb(0xd9)][_0x57bebb(0xd0)](_0x57bebb(0xcf),{'error':_0x50233c});throw _0x50233c;}}async[a32_0x4cad1b(0xed)](){const _0xdfbd65=a32_0x4cad1b;try{if(!this[_0xdfbd65(0xd4)][_0xdfbd65(0xd6)]())throw new Error(_0xdfbd65(0xe3));const _0x1313b2=await this[_0xdfbd65(0xd4)][_0xdfbd65(0xd9)]['request']('purchase.read.all',{});for(let _0x48d703=0x0;_0x48d703<_0x1313b2[_0xdfbd65(0xd8)];_0x48d703++){const _0x43a47b=new Purchase(this[_0xdfbd65(0xd4)],_0x1313b2[_0x48d703]);this[_0xdfbd65(0xdd)][_0xdfbd65(0xe8)](_0x43a47b['id'],_0x43a47b);}return this['owl']['events'][_0xdfbd65(0xd0)](_0xdfbd65(0xd5),this[_0xdfbd65(0xdd)][_0xdfbd65(0xdb)]()),this['cache']['values']();}catch(_0x274883){this[_0xdfbd65(0xd4)]['events'][_0xdfbd65(0xd0)](_0xdfbd65(0xcf),{'error':_0x274883});throw _0x274883;}}async[a32_0x4cad1b(0xe1)](_0x43906c){const _0x2fd7d4=a32_0x4cad1b;try{if(!this[_0x2fd7d4(0xd4)][_0x2fd7d4(0xd6)]())throw new Error(_0x2fd7d4(0xe3));const _0x4e655a=await this[_0x2fd7d4(0xd4)][_0x2fd7d4(0xd9)][_0x2fd7d4(0xe2)]('purchase.read.some',_0x43906c);for(let _0x58317c=0x0;_0x58317c<_0x4e655a[_0x2fd7d4(0xd8)];_0x58317c++){const _0x2ad6e4=new Purchase(this['owl'],_0x4e655a[_0x58317c]);this[_0x2fd7d4(0xdd)][_0x2fd7d4(0xe8)](_0x2ad6e4['id'],_0x2ad6e4);}return this[_0x2fd7d4(0xd4)][_0x2fd7d4(0xd9)][_0x2fd7d4(0xd0)](_0x2fd7d4(0xe7),_0x4e655a),_0x4e655a;}catch(_0x19746b){this[_0x2fd7d4(0xd4)][_0x2fd7d4(0xd9)][_0x2fd7d4(0xd0)](_0x2fd7d4(0xcf),{'error':_0x19746b});throw _0x19746b;}}async['new'](_0x513cf9){const _0x109995=a32_0x4cad1b;try{if(!this[_0x109995(0xd4)][_0x109995(0xd6)]())throw new Error(_0x109995(0xe3));const _0x20a968=await this[_0x109995(0xd4)][_0x109995(0xd9)]['request'](_0x109995(0xd3),{'purchase':_0x513cf9});_0x513cf9['id']=_0x20a968;const _0x5204e3=new Purchase(this[_0x109995(0xd4)],_0x513cf9);return this['cache'][_0x109995(0xe8)](_0x5204e3['id'],_0x5204e3),_0x5204e3;}catch(_0x12f5f7){this[_0x109995(0xd4)][_0x109995(0xd9)][_0x109995(0xd0)](_0x109995(0xcf),{'error':_0x12f5f7});throw _0x12f5f7;}}async[a32_0x4cad1b(0xda)](_0x4d1f79,_0x2a32d9){const _0x1bed98=a32_0x4cad1b;try{if(!this[_0x1bed98(0xd4)][_0x1bed98(0xd6)]())throw new Error(_0x1bed98(0xe3));await this['owl'][_0x1bed98(0xd9)]['request'](_0x1bed98(0xef),_0x2a32d9)[_0x1bed98(0xea)](_0x45d10f=>{const _0x3ba43d=_0x1bed98;this[_0x3ba43d(0xdd)][_0x3ba43d(0xe8)](_0x4d1f79,_0x45d10f);});}catch(_0x344e5e){this[_0x1bed98(0xd4)][_0x1bed98(0xd9)][_0x1bed98(0xd0)](_0x1bed98(0xcf),{'error':_0x344e5e});throw _0x344e5e;}}async['delete'](_0x25a056){const _0x321102=a32_0x4cad1b;try{if(!this[_0x321102(0xd4)]['tokenIsValide']())throw new Error(_0x321102(0xe3));await this['owl'][_0x321102(0xd9)][_0x321102(0xd0)]('purchase.deleted',{'id':_0x25a056}),this[_0x321102(0xdd)][_0x321102(0xe4)](_0x25a056);}catch(_0x5f0893){this[_0x321102(0xd4)][_0x321102(0xd9)][_0x321102(0xd0)](_0x321102(0xcf),{'error':_0x5f0893});throw _0x5f0893;}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a33_0x2360(){const _0x1e4766=['reception.cached.some','owl','tokenIsValide','602454UUZQLV','cache','reception.read.all','784916kxsCbW','new','values','4560184XEAVHC','reception.error','emit','894929gNmSBm','000001:\x20Invalid\x20Token.','26vKnqzH','some','modify','set','reception.created','reception.deleted','reception.cached.all','has','delete','17872965CKxccQ','events','3522215fzBTXQ','request','6PTHQto','7242yWAyUp'];a33_0x2360=function(){return _0x1e4766;};return a33_0x2360();}const a33_0x27d22b=a33_0x2624;function a33_0x2624(_0x4c2915,_0x814742){_0x4c2915=_0x4c2915-0x66;const _0x2360b9=a33_0x2360();let _0x262490=_0x2360b9[_0x4c2915];return _0x262490;}(function(_0x3100bd,_0x58cc5c){const _0x4f696c=a33_0x2624,_0x24df67=_0x3100bd();while(!![]){try{const _0x49d1ed=-parseInt(_0x4f696c(0x80))/0x1*(-parseInt(_0x4f696c(0x71))/0x2)+-parseInt(_0x4f696c(0x70))/0x3*(parseInt(_0x4f696c(0x78))/0x4)+-parseInt(_0x4f696c(0x6e))/0x5+parseInt(_0x4f696c(0x75))/0x6+-parseInt(_0x4f696c(0x7e))/0x7+-parseInt(_0x4f696c(0x7b))/0x8+parseInt(_0x4f696c(0x6c))/0x9;if(_0x49d1ed===_0x58cc5c)break;else _0x24df67['push'](_0x24df67['shift']());}catch(_0x286ba9){_0x24df67['push'](_0x24df67['shift']());}}}(a33_0x2360,0x5e285));import{Manager}from'../core/Manager.js';import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async['fetch'](_0x4d9577){const _0x387c4f=a33_0x2624;try{if(!this['owl'][_0x387c4f(0x74)]())throw new Error(_0x387c4f(0x7f));if(this[_0x387c4f(0x76)][_0x387c4f(0x6a)](_0x4d9577))return this[_0x387c4f(0x76)]['get'](_0x4d9577);const _0x490656=await this[_0x387c4f(0x73)]['events']['request']('reception.read',{'id':_0x4d9577}),_0x2e7530=new Reception(this[_0x387c4f(0x73)],_0x490656);return this[_0x387c4f(0x76)][_0x387c4f(0x66)](_0x4d9577,_0x2e7530),this[_0x387c4f(0x73)][_0x387c4f(0x6d)]['emit']('reception.cached',_0x2e7530),_0x2e7530;}catch(_0x71dc06){this[_0x387c4f(0x73)][_0x387c4f(0x6d)][_0x387c4f(0x7d)]('reception.error',{'error':_0x71dc06});throw _0x71dc06;}}async['fetchAll'](){const _0x5410c7=a33_0x2624;try{if(!this[_0x5410c7(0x73)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x2645d9=await this[_0x5410c7(0x73)][_0x5410c7(0x6d)][_0x5410c7(0x6f)](_0x5410c7(0x77),{});for(let _0x42f34e=0x0;_0x42f34e<_0x2645d9['length'];_0x42f34e++){const _0x1c4bc6=new Reception(this[_0x5410c7(0x73)],_0x2645d9[_0x42f34e]);this[_0x5410c7(0x76)][_0x5410c7(0x66)](_0x1c4bc6['id'],_0x1c4bc6);}return this[_0x5410c7(0x73)][_0x5410c7(0x6d)][_0x5410c7(0x7d)](_0x5410c7(0x69),this[_0x5410c7(0x76)][_0x5410c7(0x7a)]()),this['cache'][_0x5410c7(0x7a)]();}catch(_0x2546c9){this['owl'][_0x5410c7(0x6d)][_0x5410c7(0x7d)]('reception.error',{'error':_0x2546c9});throw _0x2546c9;}}async[a33_0x27d22b(0x81)](_0x3b8f0f){const _0x5e32e5=a33_0x27d22b;try{if(!this[_0x5e32e5(0x73)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x5cf699=await this[_0x5e32e5(0x73)][_0x5e32e5(0x6d)][_0x5e32e5(0x6f)]('reception.read.some',_0x3b8f0f);for(let _0x280b4e=0x0;_0x280b4e<_0x5cf699['length'];_0x280b4e++){const _0x28173a=new Reception(this['owl'],_0x5cf699[_0x280b4e]);this[_0x5e32e5(0x76)][_0x5e32e5(0x66)](_0x28173a['id'],_0x28173a);}return this[_0x5e32e5(0x73)]['events'][_0x5e32e5(0x7d)](_0x5e32e5(0x72),_0x5cf699),_0x5cf699;}catch(_0x461244){this[_0x5e32e5(0x73)][_0x5e32e5(0x6d)][_0x5e32e5(0x7d)]('reception.error',{'error':_0x461244});throw _0x461244;}}async[a33_0x27d22b(0x79)](_0x462196){const _0x53a893=a33_0x27d22b;try{if(!this[_0x53a893(0x73)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x2a6443=await this[_0x53a893(0x73)][_0x53a893(0x6d)][_0x53a893(0x6f)](_0x53a893(0x67),{'reception':_0x462196});_0x462196['id']=_0x2a6443;const _0x110a55=new Reception(this[_0x53a893(0x73)],_0x462196);return this[_0x53a893(0x76)][_0x53a893(0x66)](_0x110a55['id'],_0x110a55),_0x110a55;}catch(_0x8a976e){this[_0x53a893(0x73)][_0x53a893(0x6d)][_0x53a893(0x7d)](_0x53a893(0x7c),{'error':_0x8a976e});throw _0x8a976e;}}async[a33_0x27d22b(0x82)](_0x58cd83,_0x19cb61){const _0x2b49f3=a33_0x27d22b;try{if(!this[_0x2b49f3(0x73)]['tokenIsValide']())throw new Error(_0x2b49f3(0x7f));await this[_0x2b49f3(0x73)][_0x2b49f3(0x6d)][_0x2b49f3(0x6f)]('reception.updated',_0x19cb61)['then'](_0x5645ad=>{const _0x52b8ab=_0x2b49f3;this[_0x52b8ab(0x76)][_0x52b8ab(0x66)](_0x58cd83,_0x5645ad);});}catch(_0xe7cfaa){this[_0x2b49f3(0x73)]['events'][_0x2b49f3(0x7d)](_0x2b49f3(0x7c),{'error':_0xe7cfaa});throw _0xe7cfaa;}}async[a33_0x27d22b(0x6b)](_0x34bd21){const _0x1f5d22=a33_0x27d22b;try{if(!this[_0x1f5d22(0x73)][_0x1f5d22(0x74)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x1f5d22(0x73)][_0x1f5d22(0x6d)]['emit'](_0x1f5d22(0x68),{'id':_0x34bd21}),this['cache']['delete'](_0x34bd21);}catch(_0x4a4e03){this[_0x1f5d22(0x73)][_0x1f5d22(0x6d)][_0x1f5d22(0x7d)](_0x1f5d22(0x7c),{'error':_0x4a4e03});throw _0x4a4e03;}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a34_0x3cd9f8=a34_0x7a69;(function(_0x17dfef,_0x3f98d4){const _0x4541d8=a34_0x7a69,_0x9053b9=_0x17dfef();while(!![]){try{const _0x55f19b=-parseInt(_0x4541d8(0x149))/0x1+-parseInt(_0x4541d8(0x14f))/0x2*(-parseInt(_0x4541d8(0x157))/0x3)+parseInt(_0x4541d8(0x148))/0x4*(-parseInt(_0x4541d8(0x146))/0x5)+-parseInt(_0x4541d8(0x14c))/0x6*(parseInt(_0x4541d8(0x152))/0x7)+parseInt(_0x4541d8(0x14d))/0x8+-parseInt(_0x4541d8(0x163))/0x9*(-parseInt(_0x4541d8(0x144))/0xa)+-parseInt(_0x4541d8(0x154))/0xb*(-parseInt(_0x4541d8(0x15e))/0xc);if(_0x55f19b===_0x3f98d4)break;else _0x9053b9['push'](_0x9053b9['shift']());}catch(_0x2b0929){_0x9053b9['push'](_0x9053b9['shift']());}}}(a34_0x2043,0xe997d));import{Manager}from'../core/Manager.js';import{Stock}from'../entities/Stock.js';function a34_0x2043(){const _0x4c0325=['request','stock.error','then','fetch','000001:\x20Invalid\x20Token.','5654556tBQqms','length','stock.cached.some','some','emit','153lmSEGA','owl','500870ZVIbOr','stock.cached','5Mxpbiv','set','271952vJIjsg','1275257tAmMyD','cache','delete','12jLCsQJ','7604112QDRuzx','tokenIsValide','8JePXFU','stock.read','stock.read.some','3609018XHStNu','values','11rzYlkb','events','fetchAll','793488AYMoLq','stock.deleted'];a34_0x2043=function(){return _0x4c0325;};return a34_0x2043();}function a34_0x7a69(_0x35244c,_0x89198a){_0x35244c=_0x35244c-0x144;const _0x204392=a34_0x2043();let _0x7a697e=_0x204392[_0x35244c];return _0x7a697e;}export class StockManager extends Manager{async[a34_0x3cd9f8(0x15c)](_0x56046d){const _0x54f8ab=a34_0x3cd9f8;try{if(!this[_0x54f8ab(0x164)][_0x54f8ab(0x14e)]())throw new Error(_0x54f8ab(0x15d));if(this[_0x54f8ab(0x14a)]['has'](_0x56046d))return this[_0x54f8ab(0x14a)]['get'](_0x56046d);const _0x2ff6a6=await this['owl'][_0x54f8ab(0x155)][_0x54f8ab(0x159)](_0x54f8ab(0x150),{'id':_0x56046d}),_0x1d95b9=new Stock(this[_0x54f8ab(0x164)],_0x2ff6a6);return this[_0x54f8ab(0x14a)][_0x54f8ab(0x147)](_0x56046d,_0x1d95b9),this[_0x54f8ab(0x164)][_0x54f8ab(0x155)][_0x54f8ab(0x162)](_0x54f8ab(0x145),_0x1d95b9),_0x1d95b9;}catch(_0x2ac7f4){this['owl'][_0x54f8ab(0x155)]['emit'](_0x54f8ab(0x15a),{'error':_0x2ac7f4});throw _0x2ac7f4;}}async[a34_0x3cd9f8(0x156)](){const _0x1d5b68=a34_0x3cd9f8;try{if(!this[_0x1d5b68(0x164)][_0x1d5b68(0x14e)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x35d00f=await this[_0x1d5b68(0x164)][_0x1d5b68(0x155)][_0x1d5b68(0x159)]('stock.read.all',{});for(let _0x28b75a=0x0;_0x28b75a<_0x35d00f[_0x1d5b68(0x15f)];_0x28b75a++){const _0x14da0c=new Stock(this['owl'],_0x35d00f[_0x28b75a]);this['cache'][_0x1d5b68(0x147)](_0x14da0c['id'],_0x14da0c);}return this[_0x1d5b68(0x164)][_0x1d5b68(0x155)][_0x1d5b68(0x162)]('stock.cached.all',this['cache'][_0x1d5b68(0x153)]()),this[_0x1d5b68(0x14a)][_0x1d5b68(0x153)]();}catch(_0x561e87){this[_0x1d5b68(0x164)][_0x1d5b68(0x155)][_0x1d5b68(0x162)](_0x1d5b68(0x15a),{'error':_0x561e87});throw _0x561e87;}}async[a34_0x3cd9f8(0x161)](_0x47df2b){const _0x34bb2b=a34_0x3cd9f8;try{if(!this['owl']['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x521e03=await this[_0x34bb2b(0x164)]['events'][_0x34bb2b(0x159)](_0x34bb2b(0x151),_0x47df2b);for(let _0x10767a=0x0;_0x10767a<_0x521e03['length'];_0x10767a++){const _0x2ac0e6=new Stock(this['owl'],_0x521e03[_0x10767a]);this['cache'][_0x34bb2b(0x147)](_0x2ac0e6['id'],_0x2ac0e6);}return this[_0x34bb2b(0x164)][_0x34bb2b(0x155)][_0x34bb2b(0x162)](_0x34bb2b(0x160),_0x521e03),_0x521e03;}catch(_0x3fd1e3){this['owl']['events'][_0x34bb2b(0x162)]('stock.error',{'error':_0x3fd1e3});throw _0x3fd1e3;}}async['new'](_0x76776d){const _0x4cbdfb=a34_0x3cd9f8;try{if(!this['owl'][_0x4cbdfb(0x14e)]())throw new Error(_0x4cbdfb(0x15d));const _0x54332a=await this[_0x4cbdfb(0x164)][_0x4cbdfb(0x155)][_0x4cbdfb(0x159)]('stock.created',{'stock':_0x76776d});_0x76776d['id']=_0x54332a;const _0x3b10bc=new Stock(this[_0x4cbdfb(0x164)],_0x76776d);return this[_0x4cbdfb(0x14a)][_0x4cbdfb(0x147)](_0x3b10bc['id'],_0x3b10bc),_0x3b10bc;}catch(_0x149290){this[_0x4cbdfb(0x164)]['events'][_0x4cbdfb(0x162)](_0x4cbdfb(0x15a),{'error':_0x149290});throw _0x149290;}}async['modify'](_0x2e844f,_0x53cd03){const _0x182b6e=a34_0x3cd9f8;try{if(!this[_0x182b6e(0x164)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x182b6e(0x164)]['events'][_0x182b6e(0x159)]('stock.updated',_0x53cd03)[_0x182b6e(0x15b)](_0x17dc05=>{const _0x191bbe=_0x182b6e;this[_0x191bbe(0x14a)][_0x191bbe(0x147)](_0x2e844f,_0x17dc05);});}catch(_0xdadba6){this[_0x182b6e(0x164)][_0x182b6e(0x155)][_0x182b6e(0x162)](_0x182b6e(0x15a),{'error':_0xdadba6});throw _0xdadba6;}}async[a34_0x3cd9f8(0x14b)](_0x5a8fcb){const _0x1f44cd=a34_0x3cd9f8;try{if(!this[_0x1f44cd(0x164)]['tokenIsValide']())throw new Error(_0x1f44cd(0x15d));await this[_0x1f44cd(0x164)][_0x1f44cd(0x155)]['emit'](_0x1f44cd(0x158),{'id':_0x5a8fcb}),this[_0x1f44cd(0x14a)][_0x1f44cd(0x14b)](_0x5a8fcb);}catch(_0x13771f){this[_0x1f44cd(0x164)][_0x1f44cd(0x155)][_0x1f44cd(0x162)](_0x1f44cd(0x15a),{'error':_0x13771f});throw _0x13771f;}}}
|