owl-progiciel 1.0.4 → 1.0.5

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.
Files changed (49) hide show
  1. package/dist/api/routes/client.routes.js +1 -1
  2. package/dist/api/routes/item.routes.js +1 -1
  3. package/dist/api/routes/order.routes.js +1 -1
  4. package/dist/api/routes/preparation.routes.js +1 -1
  5. package/dist/api/routes/purchase.routes.js +1 -1
  6. package/dist/api/routes/reception.routes.js +1 -1
  7. package/dist/api/routes/stock.routes.js +1 -1
  8. package/dist/api/routes/supplier.routes.js +1 -1
  9. package/dist/api/routes/tax.routes.js +1 -1
  10. package/dist/api/routes/user.routes.js +1 -1
  11. package/dist/api/server.js +1 -1
  12. package/dist/core/Entity.js +1 -1
  13. package/dist/core/EventBus.js +1 -1
  14. package/dist/core/EventsDatabase.js +1 -1
  15. package/dist/core/Manager.js +1 -1
  16. package/dist/core/events/ClientEvents.js +1 -1
  17. package/dist/core/events/ItemEvents.js +1 -1
  18. package/dist/core/events/OrderEvents.js +1 -1
  19. package/dist/core/events/PreparationEvents.js +1 -1
  20. package/dist/core/events/PurchaseEvents.js +1 -1
  21. package/dist/core/events/ReceptionEvents.js +1 -1
  22. package/dist/core/events/StockEvents.js +1 -1
  23. package/dist/core/events/SupplierEvents.js +1 -1
  24. package/dist/core/events/TaxEvents.js +1 -1
  25. package/dist/core/events/UserEvents.js +1 -1
  26. package/dist/entities/Client.js +1 -1
  27. package/dist/entities/Item.js +1 -1
  28. package/dist/entities/Order.js +1 -1
  29. package/dist/entities/Preparation.js +1 -1
  30. package/dist/entities/Purchase.js +1 -1
  31. package/dist/entities/Reception.js +1 -1
  32. package/dist/entities/Stock.js +1 -1
  33. package/dist/entities/Supplier.js +1 -1
  34. package/dist/entities/Tax.js +1 -1
  35. package/dist/entities/User.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/managers/ClientManager.js +1 -1
  38. package/dist/managers/ItemManager.js +1 -1
  39. package/dist/managers/OrderManager.js +1 -1
  40. package/dist/managers/PreparationManager.js +1 -1
  41. package/dist/managers/PurchaseManager.js +1 -1
  42. package/dist/managers/ReceptionManager.js +1 -1
  43. package/dist/managers/StockManager.js +1 -1
  44. package/dist/managers/SupplierManager.js +1 -1
  45. package/dist/managers/TaxManager.js +1 -1
  46. package/dist/managers/UserManager.js +1 -1
  47. package/dist/owl/OWLClient.js +1 -1
  48. package/package.json +1 -1
  49. package/prisma/schema.prisma +6 -6
@@ -1 +1 @@
1
- function a39_0x37cb(){const _0x26a333=['values','34004YCGzcz','length','client.updated','6gMpVRs','client.read.all','139806wCqZqw','15ggnLDH','client.error','1462629mgFoLG','owl','client.cached.some','000001:\x20Invalid\x20Token.','request','has','client.cached','55GJhKtC','emit','set','client.read','get','client.read.some','88BIuZuo','events','fetchAll','647810JOioYh','client.cached.all','735860SIgpvm','then','new','3qxJgmF','17023068IWOZzj','fetch','delete','client.created','some','cache','215734RxzPiG','tokenIsValide'];a39_0x37cb=function(){return _0x26a333;};return a39_0x37cb();}const a39_0x3434cf=a39_0x4927;function a39_0x4927(_0x562539,_0x5a46ad){_0x562539=_0x562539-0x1e6;const _0x37cbd4=a39_0x37cb();let _0x49272f=_0x37cbd4[_0x562539];return _0x49272f;}(function(_0x2e3c29,_0x1e7fea){const _0x540830=a39_0x4927,_0x5406dd=_0x2e3c29();while(!![]){try{const _0x24e1a9=-parseInt(_0x540830(0x20c))/0x1*(parseInt(_0x540830(0x1ec))/0x2)+-parseInt(_0x540830(0x1f5))/0x3*(parseInt(_0x540830(0x1ef))/0x4)+-parseInt(_0x540830(0x209))/0x5*(parseInt(_0x540830(0x1f2))/0x6)+-parseInt(_0x540830(0x1f7))/0x7+parseInt(_0x540830(0x204))/0x8*(-parseInt(_0x540830(0x1f4))/0x9)+-parseInt(_0x540830(0x207))/0xa*(parseInt(_0x540830(0x1fe))/0xb)+parseInt(_0x540830(0x1e6))/0xc;if(_0x24e1a9===_0x1e7fea)break;else _0x5406dd['push'](_0x5406dd['shift']());}catch(_0x1b2c56){_0x5406dd['push'](_0x5406dd['shift']());}}}(a39_0x37cb,0x31371));import{Manager}from'../core/Manager.js';import{Client}from'../entities/Client.js';export class ClientManager extends Manager{async[a39_0x3434cf(0x1e7)](_0x2b44f3){const _0x5a3fd8=a39_0x3434cf;try{if(!this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x1ed)]())throw new Error(_0x5a3fd8(0x1fa));if(this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x1fc)](_0x2b44f3))return this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x202)](_0x2b44f3);const _0x3cff38=await this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x205)][_0x5a3fd8(0x1fb)](_0x5a3fd8(0x201),{'id':_0x2b44f3}),_0x41fd7d=new Client(this[_0x5a3fd8(0x1f8)],_0x3cff38);return this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x200)](_0x2b44f3,_0x41fd7d),this['owl']['events'][_0x5a3fd8(0x1ff)](_0x5a3fd8(0x1fd),_0x41fd7d),_0x41fd7d;}catch(_0x5011a2){this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x205)][_0x5a3fd8(0x1ff)](_0x5a3fd8(0x1f6),{'error':_0x5011a2});throw _0x5011a2;}}async[a39_0x3434cf(0x206)](){const _0xbec429=a39_0x3434cf;try{if(!this[_0xbec429(0x1f8)][_0xbec429(0x1ed)]())throw new Error(_0xbec429(0x1fa));const _0x3e30c8=await this[_0xbec429(0x1f8)][_0xbec429(0x205)][_0xbec429(0x1fb)](_0xbec429(0x1f3),{});for(let _0x3e00e7=0x0;_0x3e00e7<_0x3e30c8[_0xbec429(0x1f0)];_0x3e00e7++){const _0x376222=new Client(this[_0xbec429(0x1f8)],_0x3e30c8[_0x3e00e7]);this[_0xbec429(0x1eb)][_0xbec429(0x200)](_0x376222['id'],_0x376222);}return this[_0xbec429(0x1f8)][_0xbec429(0x205)][_0xbec429(0x1ff)](_0xbec429(0x208),this['cache'][_0xbec429(0x1ee)]()),this[_0xbec429(0x1eb)][_0xbec429(0x1ee)]();}catch(_0x4a50ab){this[_0xbec429(0x1f8)]['events'][_0xbec429(0x1ff)](_0xbec429(0x1f6),{'error':_0x4a50ab});throw _0x4a50ab;}}async[a39_0x3434cf(0x1ea)](_0x413fd5){const _0x22027c=a39_0x3434cf;try{if(!this[_0x22027c(0x1f8)][_0x22027c(0x1ed)]())throw new Error('000001:\x20Invalid\x20Token.');const _0xcc7cf2=await this[_0x22027c(0x1f8)]['events'][_0x22027c(0x1fb)](_0x22027c(0x203),_0x413fd5);for(let _0x2531f1=0x0;_0x2531f1<_0xcc7cf2[_0x22027c(0x1f0)];_0x2531f1++){const _0x40b63c=new Client(this[_0x22027c(0x1f8)],_0xcc7cf2[_0x2531f1]);this['cache'][_0x22027c(0x200)](_0x40b63c['id'],_0x40b63c);}return this[_0x22027c(0x1f8)][_0x22027c(0x205)][_0x22027c(0x1ff)](_0x22027c(0x1f9),_0xcc7cf2),_0xcc7cf2;}catch(_0x31b0f6){this[_0x22027c(0x1f8)][_0x22027c(0x205)][_0x22027c(0x1ff)](_0x22027c(0x1f6),{'error':_0x31b0f6});throw _0x31b0f6;}}async[a39_0x3434cf(0x20b)](_0x47bdec){const _0xf1ad42=a39_0x3434cf;try{if(!this[_0xf1ad42(0x1f8)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x192dfe=await this['owl'][_0xf1ad42(0x205)][_0xf1ad42(0x1fb)](_0xf1ad42(0x1e9),{'client':_0x47bdec});_0x47bdec['id']=_0x192dfe;const _0x274d51=new Client(this['owl'],_0x47bdec);return this[_0xf1ad42(0x1eb)][_0xf1ad42(0x200)](_0x274d51['id'],_0x274d51),_0x274d51;}catch(_0x404764){this[_0xf1ad42(0x1f8)][_0xf1ad42(0x205)][_0xf1ad42(0x1ff)](_0xf1ad42(0x1f6),{'error':_0x404764});throw _0x404764;}}async['modify'](_0x52298e,_0x2f93f0){const _0x50f896=a39_0x3434cf;try{if(!this[_0x50f896(0x1f8)][_0x50f896(0x1ed)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x50f896(0x1f8)][_0x50f896(0x205)][_0x50f896(0x1fb)](_0x50f896(0x1f1),_0x2f93f0)[_0x50f896(0x20a)](_0x19ca00=>{const _0x1f4274=_0x50f896;this[_0x1f4274(0x1eb)]['set'](_0x52298e,_0x19ca00);});}catch(_0x3c53be){this[_0x50f896(0x1f8)][_0x50f896(0x205)][_0x50f896(0x1ff)](_0x50f896(0x1f6),{'error':_0x3c53be});throw _0x3c53be;}}async[a39_0x3434cf(0x1e8)](_0x2319e4){const _0x292820=a39_0x3434cf;try{if(!this[_0x292820(0x1f8)][_0x292820(0x1ed)]())throw new Error(_0x292820(0x1fa));await this[_0x292820(0x1f8)][_0x292820(0x205)]['emit']('client.deleted',{'id':_0x2319e4}),this['cache'][_0x292820(0x1e8)](_0x2319e4);}catch(_0x4c3b9e){this[_0x292820(0x1f8)][_0x292820(0x205)][_0x292820(0x1ff)]('client.error',{'error':_0x4c3b9e});throw _0x4c3b9e;}}}
1
+ const a39_0x44e0fb=a39_0xc75c;(function(_0x317542,_0x2fd0a7){const _0x432ab8=a39_0xc75c,_0x877b7b=_0x317542();while(!![]){try{const _0x52ecb5=parseInt(_0x432ab8(0x94))/0x1*(parseInt(_0x432ab8(0x9f))/0x2)+-parseInt(_0x432ab8(0x96))/0x3*(parseInt(_0x432ab8(0x91))/0x4)+parseInt(_0x432ab8(0xad))/0x5*(-parseInt(_0x432ab8(0xa9))/0x6)+-parseInt(_0x432ab8(0xab))/0x7+-parseInt(_0x432ab8(0x9b))/0x8+parseInt(_0x432ab8(0xa7))/0x9*(parseInt(_0x432ab8(0xa3))/0xa)+parseInt(_0x432ab8(0x97))/0xb*(parseInt(_0x432ab8(0xa0))/0xc);if(_0x52ecb5===_0x2fd0a7)break;else _0x877b7b['push'](_0x877b7b['shift']());}catch(_0x5cc29e){_0x877b7b['push'](_0x877b7b['shift']());}}}(a39_0x3611,0x5511c));import{Manager}from'../core/Manager.js';function a39_0xc75c(_0x4abcd6,_0x571e31){_0x4abcd6=_0x4abcd6-0x91;const _0x36117d=a39_0x3611();let _0xc75c58=_0x36117d[_0x4abcd6];return _0xc75c58;}import{Client}from'../entities/Client.js';function a39_0x3611(){const _0x20b7ce=['1029540UtZYrT','client.created','client.read.all','10PgScwa','set','length','fetch','1456011mFgdSQ','then','6YpSAWa','emit','1166802jCbqxy','tokenIsValide','475575fFKtrU','fetchAll','has','events','get','client.cached.some','client.updated','delete','client.cached.all','224KVUrlZ','owl','client.cached','16JISZro','client.read.some','1707DQGhNz','44eXvRKO','modify','request','000001:\x20Invalid\x20Token.','1573136onXcNt','cache','client.error','client.read','41724Ichogs'];a39_0x3611=function(){return _0x20b7ce;};return a39_0x3611();}export class ClientManager extends Manager{async[a39_0x44e0fb(0xa6)](_0x2982f1){const _0x29fc55=a39_0x44e0fb;try{if(!this[_0x29fc55(0x92)][_0x29fc55(0xac)]())throw new Error(_0x29fc55(0x9a));if(this[_0x29fc55(0x9c)][_0x29fc55(0xaf)](_0x2982f1))return this[_0x29fc55(0x9c)][_0x29fc55(0xb1)](_0x2982f1);const _0x39d68e=await this[_0x29fc55(0x92)][_0x29fc55(0xb0)][_0x29fc55(0x99)](_0x29fc55(0x9e),{'id':_0x2982f1}),_0x4dff32=new Client(this[_0x29fc55(0x92)],_0x39d68e);return this[_0x29fc55(0x9c)][_0x29fc55(0xa4)](_0x2982f1,_0x4dff32),this[_0x29fc55(0x92)][_0x29fc55(0xb0)][_0x29fc55(0xaa)](_0x29fc55(0x93),_0x4dff32),_0x4dff32;}catch(_0x3559a6){this[_0x29fc55(0x92)][_0x29fc55(0xb0)][_0x29fc55(0xaa)](_0x29fc55(0x9d),{'error':_0x3559a6});throw _0x3559a6;}}async[a39_0x44e0fb(0xae)](){const _0x1f8bab=a39_0x44e0fb;try{if(!this[_0x1f8bab(0x92)][_0x1f8bab(0xac)]())throw new Error(_0x1f8bab(0x9a));const _0x563186=await this[_0x1f8bab(0x92)][_0x1f8bab(0xb0)]['request'](_0x1f8bab(0xa2),{});for(let _0x2d17bc=0x0;_0x2d17bc<_0x563186[_0x1f8bab(0xa5)];_0x2d17bc++){const _0x2c8fb4=new Client(this['owl'],_0x563186[_0x2d17bc]);this[_0x1f8bab(0x9c)][_0x1f8bab(0xa4)](_0x2c8fb4['id'],_0x2c8fb4);}return this['owl']['events']['emit'](_0x1f8bab(0xb5),this[_0x1f8bab(0x9c)]['values']()),this[_0x1f8bab(0x9c)]['values']();}catch(_0x522119){this[_0x1f8bab(0x92)]['events'][_0x1f8bab(0xaa)]('client.error',{'error':_0x522119});throw _0x522119;}}async['some'](_0x50fc12){const _0x4f1ef3=a39_0x44e0fb;try{if(!this[_0x4f1ef3(0x92)]['tokenIsValide']())throw new Error(_0x4f1ef3(0x9a));const _0x1491df=await this[_0x4f1ef3(0x92)][_0x4f1ef3(0xb0)][_0x4f1ef3(0x99)](_0x4f1ef3(0x95),_0x50fc12);for(let _0x34f81d=0x0;_0x34f81d<_0x1491df[_0x4f1ef3(0xa5)];_0x34f81d++){const _0x1cec4f=new Client(this[_0x4f1ef3(0x92)],_0x1491df[_0x34f81d]);this[_0x4f1ef3(0x9c)][_0x4f1ef3(0xa4)](_0x1cec4f['id'],_0x1cec4f);}return this[_0x4f1ef3(0x92)][_0x4f1ef3(0xb0)][_0x4f1ef3(0xaa)](_0x4f1ef3(0xb2),_0x1491df),_0x1491df;}catch(_0x2cc356){this[_0x4f1ef3(0x92)][_0x4f1ef3(0xb0)][_0x4f1ef3(0xaa)](_0x4f1ef3(0x9d),{'error':_0x2cc356});throw _0x2cc356;}}async['new'](_0x1fbbad){const _0x46d0c9=a39_0x44e0fb;try{if(!this[_0x46d0c9(0x92)][_0x46d0c9(0xac)]())throw new Error(_0x46d0c9(0x9a));const _0x29b929=await this[_0x46d0c9(0x92)][_0x46d0c9(0xb0)][_0x46d0c9(0x99)](_0x46d0c9(0xa1),{'client':_0x1fbbad});_0x1fbbad['id']=_0x29b929;const _0x43548b=new Client(this['owl'],_0x1fbbad);return this['cache'][_0x46d0c9(0xa4)](_0x43548b['id'],_0x43548b),_0x43548b;}catch(_0x5567f1){this['owl'][_0x46d0c9(0xb0)][_0x46d0c9(0xaa)]('client.error',{'error':_0x5567f1});throw _0x5567f1;}}async[a39_0x44e0fb(0x98)](_0x4d9ca6,_0x3288ed){const _0x35b3c7=a39_0x44e0fb;try{if(!this[_0x35b3c7(0x92)][_0x35b3c7(0xac)]())throw new Error(_0x35b3c7(0x9a));await this[_0x35b3c7(0x92)]['events'][_0x35b3c7(0x99)](_0x35b3c7(0xb3),_0x3288ed)[_0x35b3c7(0xa8)](_0xefcb88=>{const _0x6d4f56=_0x35b3c7;this[_0x6d4f56(0x9c)]['set'](_0x4d9ca6,_0xefcb88);});}catch(_0x5ec2a){this[_0x35b3c7(0x92)]['events'][_0x35b3c7(0xaa)](_0x35b3c7(0x9d),{'error':_0x5ec2a});throw _0x5ec2a;}}async[a39_0x44e0fb(0xb4)](_0x3efc9d){const _0x364999=a39_0x44e0fb;try{if(!this[_0x364999(0x92)][_0x364999(0xac)]())throw new Error(_0x364999(0x9a));await this[_0x364999(0x92)][_0x364999(0xb0)]['emit']('client.deleted',{'id':_0x3efc9d}),this['cache'][_0x364999(0xb4)](_0x3efc9d);}catch(_0x116468){this[_0x364999(0x92)][_0x364999(0xb0)][_0x364999(0xaa)](_0x364999(0x9d),{'error':_0x116468});throw _0x116468;}}}
@@ -1 +1 @@
1
- const a40_0x3aa694=a40_0x11a1;function a40_0x4e4b(){const _0x496449=['317409hFcRPa','length','item.deleted','fetchAll','27914427mKlWoD','new','2337035dwClRb','get','item.read','item.cached','events','delete','values','2990428WjcwMk','request','cache','item.read.all','48302uacljm','then','set','modify','8bvHvqk','item.error','emit','owl','item.cached.all','000001:\x20Invalid\x20Token.','6202854YQShsn','6505765IEfqOM','129ATpWeX','item.updated','has','tokenIsValide','item.read.some','some'];a40_0x4e4b=function(){return _0x496449;};return a40_0x4e4b();}function a40_0x11a1(_0x4b4ac6,_0x119b87){_0x4b4ac6=_0x4b4ac6-0xa9;const _0x4e4b3f=a40_0x4e4b();let _0x11a1b5=_0x4e4b3f[_0x4b4ac6];return _0x11a1b5;}(function(_0x527bec,_0x26f357){const _0x4e9f43=a40_0x11a1,_0x4b7eaa=_0x527bec();while(!![]){try{const _0x289646=-parseInt(_0x4e9f43(0xbe))/0x1+-parseInt(_0x4e9f43(0xac))/0x2*(-parseInt(_0x4e9f43(0xb8))/0x3)+-parseInt(_0x4e9f43(0xcb))/0x4+-parseInt(_0x4e9f43(0xc4))/0x5+-parseInt(_0x4e9f43(0xb6))/0x6+-parseInt(_0x4e9f43(0xb7))/0x7+parseInt(_0x4e9f43(0xb0))/0x8*(parseInt(_0x4e9f43(0xc2))/0x9);if(_0x289646===_0x26f357)break;else _0x4b7eaa['push'](_0x4b7eaa['shift']());}catch(_0x398b2f){_0x4b7eaa['push'](_0x4b7eaa['shift']());}}}(a40_0x4e4b,0x9d575));import{Manager}from'../core/Manager.js';import{Item}from'../entities/Item.js';export class ItemManager extends Manager{async['fetch'](_0x46f66b){const _0x2ea0f8=a40_0x11a1;try{if(!this[_0x2ea0f8(0xb3)]['tokenIsValide']())throw new Error(_0x2ea0f8(0xb5));if(this[_0x2ea0f8(0xaa)][_0x2ea0f8(0xba)](_0x46f66b))return this[_0x2ea0f8(0xaa)][_0x2ea0f8(0xc5)](_0x46f66b);const _0x5d947c=await this[_0x2ea0f8(0xb3)][_0x2ea0f8(0xc8)][_0x2ea0f8(0xa9)](_0x2ea0f8(0xc6),{'id':_0x46f66b}),_0x5e90dc=new Item(this['owl'],_0x5d947c);return this['cache'][_0x2ea0f8(0xae)](_0x46f66b,_0x5e90dc),this[_0x2ea0f8(0xb3)][_0x2ea0f8(0xc8)][_0x2ea0f8(0xb2)](_0x2ea0f8(0xc7),_0x5e90dc),_0x5e90dc;}catch(_0xbecd8d){this['owl'][_0x2ea0f8(0xc8)][_0x2ea0f8(0xb2)](_0x2ea0f8(0xb1),{'error':_0xbecd8d});throw _0xbecd8d;}}async[a40_0x3aa694(0xc1)](){const _0x235f8a=a40_0x3aa694;try{if(!this[_0x235f8a(0xb3)]['tokenIsValide']())throw new Error(_0x235f8a(0xb5));const _0x20aa42=await this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xa9)](_0x235f8a(0xab),{});for(let _0x4548d1=0x0;_0x4548d1<_0x20aa42[_0x235f8a(0xbf)];_0x4548d1++){const _0x565829=new Item(this['owl'],_0x20aa42[_0x4548d1]);this[_0x235f8a(0xaa)][_0x235f8a(0xae)](_0x565829['id'],_0x565829);}return this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xb2)](_0x235f8a(0xb4),this['cache'][_0x235f8a(0xca)]()),this[_0x235f8a(0xaa)][_0x235f8a(0xca)]();}catch(_0x439e68){this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xb2)]('item.error',{'error':_0x439e68});throw _0x439e68;}}async[a40_0x3aa694(0xbd)](_0x5bc122){const _0x2bf665=a40_0x3aa694;try{if(!this[_0x2bf665(0xb3)][_0x2bf665(0xbb)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4b100e=await this[_0x2bf665(0xb3)][_0x2bf665(0xc8)][_0x2bf665(0xa9)](_0x2bf665(0xbc),_0x5bc122);for(let _0x4c0d9c=0x0;_0x4c0d9c<_0x4b100e[_0x2bf665(0xbf)];_0x4c0d9c++){const _0x1830e9=new Item(this['owl'],_0x4b100e[_0x4c0d9c]);this['cache']['set'](_0x1830e9['id'],_0x1830e9);}return this[_0x2bf665(0xb3)]['events']['emit']('item.cached.some',_0x4b100e),_0x4b100e;}catch(_0x43d279){this[_0x2bf665(0xb3)]['events'][_0x2bf665(0xb2)](_0x2bf665(0xb1),{'error':_0x43d279});throw _0x43d279;}}async[a40_0x3aa694(0xc3)](_0x1a9d56){const _0x14030d=a40_0x3aa694;try{if(!this[_0x14030d(0xb3)][_0x14030d(0xbb)]())throw new Error(_0x14030d(0xb5));const _0x182a13=await this[_0x14030d(0xb3)][_0x14030d(0xc8)][_0x14030d(0xa9)]('item.created',{'item':_0x1a9d56});_0x1a9d56['id']=_0x182a13;const _0x26f565=new Item(this['owl'],_0x1a9d56);return this[_0x14030d(0xaa)]['set'](_0x26f565['id'],_0x26f565),_0x26f565;}catch(_0xfd7641){this[_0x14030d(0xb3)][_0x14030d(0xc8)][_0x14030d(0xb2)](_0x14030d(0xb1),{'error':_0xfd7641});throw _0xfd7641;}}async[a40_0x3aa694(0xaf)](_0x12bea0,_0x13c04d){const _0x58cbee=a40_0x3aa694;try{if(!this[_0x58cbee(0xb3)][_0x58cbee(0xbb)]())throw new Error(_0x58cbee(0xb5));await this[_0x58cbee(0xb3)][_0x58cbee(0xc8)][_0x58cbee(0xa9)](_0x58cbee(0xb9),_0x13c04d)[_0x58cbee(0xad)](_0xff6482=>{const _0x3e4bf4=_0x58cbee;this[_0x3e4bf4(0xaa)][_0x3e4bf4(0xae)](_0x12bea0,_0xff6482);});}catch(_0x4e4a86){this[_0x58cbee(0xb3)]['events']['emit'](_0x58cbee(0xb1),{'error':_0x4e4a86});throw _0x4e4a86;}}async[a40_0x3aa694(0xc9)](_0xec543){const _0x1627bf=a40_0x3aa694;try{if(!this[_0x1627bf(0xb3)][_0x1627bf(0xbb)]())throw new Error(_0x1627bf(0xb5));await this[_0x1627bf(0xb3)][_0x1627bf(0xc8)][_0x1627bf(0xb2)](_0x1627bf(0xc0),{'id':_0xec543}),this['cache'][_0x1627bf(0xc9)](_0xec543);}catch(_0x1f03de){this[_0x1627bf(0xb3)][_0x1627bf(0xc8)]['emit'](_0x1627bf(0xb1),{'error':_0x1f03de});throw _0x1f03de;}}}
1
+ const a40_0x3b256d=a40_0x75f5;function a40_0x75f5(_0x3c1a13,_0x4d3f9f){_0x3c1a13=_0x3c1a13-0x17f;const _0x54a3f2=a40_0x54a3();let _0x75f5bb=_0x54a3f2[_0x3c1a13];return _0x75f5bb;}(function(_0x4d53b,_0xdd7aad){const _0x5c4ce9=a40_0x75f5,_0x135c6f=_0x4d53b();while(!![]){try{const _0x11b526=-parseInt(_0x5c4ce9(0x192))/0x1+-parseInt(_0x5c4ce9(0x19a))/0x2+parseInt(_0x5c4ce9(0x191))/0x3+parseInt(_0x5c4ce9(0x19d))/0x4+parseInt(_0x5c4ce9(0x181))/0x5*(-parseInt(_0x5c4ce9(0x198))/0x6)+-parseInt(_0x5c4ce9(0x19c))/0x7*(-parseInt(_0x5c4ce9(0x182))/0x8)+parseInt(_0x5c4ce9(0x17f))/0x9*(parseInt(_0x5c4ce9(0x18c))/0xa);if(_0x11b526===_0xdd7aad)break;else _0x135c6f['push'](_0x135c6f['shift']());}catch(_0x4f90b2){_0x135c6f['push'](_0x135c6f['shift']());}}}(a40_0x54a3,0x797ef));import{Manager}from'../core/Manager.js';import{Item}from'../entities/Item.js';function a40_0x54a3(){const _0x4298d6=['1855287rUCpay','fetch','5zOcmmw','1058152wMHrSG','values','tokenIsValide','length','events','request','item.deleted','has','emit','owl','90roZIIG','item.created','delete','item.read.some','item.read','280374fASIaZ','507981kPCHcQ','cache','item.cached.all','item.error','set','get','5831862DyjRBT','then','1936638QHvBCH','item.updated','49EYIdvv','285184CEtwKU','modify','000001:\x20Invalid\x20Token.'];a40_0x54a3=function(){return _0x4298d6;};return a40_0x54a3();}export class ItemManager extends Manager{async[a40_0x3b256d(0x180)](_0x2a7b8a){const _0x1ee7ff=a40_0x3b256d;try{if(!this[_0x1ee7ff(0x18b)]['tokenIsValide']())throw new Error(_0x1ee7ff(0x19f));if(this['cache'][_0x1ee7ff(0x189)](_0x2a7b8a))return this[_0x1ee7ff(0x193)][_0x1ee7ff(0x197)](_0x2a7b8a);const _0x4fc55c=await this[_0x1ee7ff(0x18b)][_0x1ee7ff(0x186)][_0x1ee7ff(0x187)](_0x1ee7ff(0x190),{'id':_0x2a7b8a}),_0x57077e=new Item(this[_0x1ee7ff(0x18b)],_0x4fc55c);return this[_0x1ee7ff(0x193)][_0x1ee7ff(0x196)](_0x2a7b8a,_0x57077e),this['owl'][_0x1ee7ff(0x186)][_0x1ee7ff(0x18a)]('item.cached',_0x57077e),_0x57077e;}catch(_0x589a06){this['owl'][_0x1ee7ff(0x186)][_0x1ee7ff(0x18a)]('item.error',{'error':_0x589a06});throw _0x589a06;}}async['fetchAll'](){const _0x4efe70=a40_0x3b256d;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x4efe70(0x19f));const _0x40899e=await this[_0x4efe70(0x18b)]['events'][_0x4efe70(0x187)]('item.read.all',{});for(let _0x5316f4=0x0;_0x5316f4<_0x40899e['length'];_0x5316f4++){const _0x314c01=new Item(this[_0x4efe70(0x18b)],_0x40899e[_0x5316f4]);this[_0x4efe70(0x193)][_0x4efe70(0x196)](_0x314c01['id'],_0x314c01);}return this[_0x4efe70(0x18b)]['events'][_0x4efe70(0x18a)](_0x4efe70(0x194),this['cache'][_0x4efe70(0x183)]()),this[_0x4efe70(0x193)]['values']();}catch(_0x121c0f){this[_0x4efe70(0x18b)][_0x4efe70(0x186)][_0x4efe70(0x18a)]('item.error',{'error':_0x121c0f});throw _0x121c0f;}}async['some'](_0xfa67a6){const _0x435082=a40_0x3b256d;try{if(!this[_0x435082(0x18b)][_0x435082(0x184)]())throw new Error(_0x435082(0x19f));const _0x287dd5=await this[_0x435082(0x18b)][_0x435082(0x186)]['request'](_0x435082(0x18f),_0xfa67a6);for(let _0x8e6a14=0x0;_0x8e6a14<_0x287dd5[_0x435082(0x185)];_0x8e6a14++){const _0x9d9593=new Item(this['owl'],_0x287dd5[_0x8e6a14]);this['cache'][_0x435082(0x196)](_0x9d9593['id'],_0x9d9593);}return this[_0x435082(0x18b)][_0x435082(0x186)]['emit']('item.cached.some',_0x287dd5),_0x287dd5;}catch(_0xca0407){this[_0x435082(0x18b)][_0x435082(0x186)][_0x435082(0x18a)](_0x435082(0x195),{'error':_0xca0407});throw _0xca0407;}}async['new'](_0x106454){const _0x5875f1=a40_0x3b256d;try{if(!this[_0x5875f1(0x18b)]['tokenIsValide']())throw new Error(_0x5875f1(0x19f));const _0x12ee7f=await this[_0x5875f1(0x18b)][_0x5875f1(0x186)][_0x5875f1(0x187)](_0x5875f1(0x18d),{'item':_0x106454});_0x106454['id']=_0x12ee7f;const _0x2fd67c=new Item(this['owl'],_0x106454);return this[_0x5875f1(0x193)][_0x5875f1(0x196)](_0x2fd67c['id'],_0x2fd67c),_0x2fd67c;}catch(_0x4b1c72){this[_0x5875f1(0x18b)]['events'][_0x5875f1(0x18a)](_0x5875f1(0x195),{'error':_0x4b1c72});throw _0x4b1c72;}}async[a40_0x3b256d(0x19e)](_0x1ab7c5,_0x4c0fa1){const _0xcbe6f7=a40_0x3b256d;try{if(!this['owl'][_0xcbe6f7(0x184)]())throw new Error(_0xcbe6f7(0x19f));await this[_0xcbe6f7(0x18b)]['events']['request'](_0xcbe6f7(0x19b),_0x4c0fa1)[_0xcbe6f7(0x199)](_0x4a6ffb=>{const _0x415518=_0xcbe6f7;this[_0x415518(0x193)][_0x415518(0x196)](_0x1ab7c5,_0x4a6ffb);});}catch(_0x14fd6e){this['owl'][_0xcbe6f7(0x186)][_0xcbe6f7(0x18a)]('item.error',{'error':_0x14fd6e});throw _0x14fd6e;}}async['delete'](_0xec6833){const _0x11f4e7=a40_0x3b256d;try{if(!this[_0x11f4e7(0x18b)]['tokenIsValide']())throw new Error(_0x11f4e7(0x19f));await this['owl'][_0x11f4e7(0x186)][_0x11f4e7(0x18a)](_0x11f4e7(0x188),{'id':_0xec6833}),this[_0x11f4e7(0x193)][_0x11f4e7(0x18e)](_0xec6833);}catch(_0x279727){this[_0x11f4e7(0x18b)][_0x11f4e7(0x186)][_0x11f4e7(0x18a)]('item.error',{'error':_0x279727});throw _0x279727;}}}
@@ -1 +1 @@
1
- function a41_0x139d(_0x7dc955,_0x5c76d0){_0x7dc955=_0x7dc955-0x1be;const _0x28da24=a41_0x28da();let _0x139def=_0x28da24[_0x7dc955];return _0x139def;}const a41_0x2cfe11=a41_0x139d;(function(_0x55f21b,_0x38dc12){const _0x50131e=a41_0x139d,_0xf9a011=_0x55f21b();while(!![]){try{const _0x304f68=parseInt(_0x50131e(0x1c5))/0x1+-parseInt(_0x50131e(0x1d3))/0x2*(-parseInt(_0x50131e(0x1c1))/0x3)+parseInt(_0x50131e(0x1c4))/0x4*(parseInt(_0x50131e(0x1c3))/0x5)+-parseInt(_0x50131e(0x1cf))/0x6+-parseInt(_0x50131e(0x1d2))/0x7*(-parseInt(_0x50131e(0x1d8))/0x8)+-parseInt(_0x50131e(0x1d6))/0x9+parseInt(_0x50131e(0x1c7))/0xa;if(_0x304f68===_0x38dc12)break;else _0xf9a011['push'](_0xf9a011['shift']());}catch(_0x11f42e){_0xf9a011['push'](_0xf9a011['shift']());}}}(a41_0x28da,0x9d179));import{Manager}from'../core/Manager.js';function a41_0x28da(){const _0x217b4d=['fetch','fetchAll','set','some','cache','order.updated','order.read.all','order.read','order.read.some','has','231HQCKuq','get','5TNCxuW','998312hhXtXr','691491GaSnnG','length','3308580XKmGaF','delete','order.cached','owl','emit','000001:\x20Invalid\x20Token.','request','order.error','2218068SUIFcL','events','tokenIsValide','46522VdSZgq','7658YoFNqI','order.created','values','5580837MYqsuC','then','80QNxNEY','order.cached.all'];a41_0x28da=function(){return _0x217b4d;};return a41_0x28da();}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async[a41_0x2cfe11(0x1da)](_0x2297c2){const _0x49df88=a41_0x2cfe11;try{if(!this[_0x49df88(0x1ca)][_0x49df88(0x1d1)]())throw new Error(_0x49df88(0x1cc));if(this['cache'][_0x49df88(0x1c0)](_0x2297c2))return this[_0x49df88(0x1de)][_0x49df88(0x1c2)](_0x2297c2);const _0x376ef9=await this[_0x49df88(0x1ca)][_0x49df88(0x1d0)]['request'](_0x49df88(0x1be),{'id':_0x2297c2}),_0x4a4c2c=new Order(this['owl'],_0x376ef9);return this['cache']['set'](_0x2297c2,_0x4a4c2c),this[_0x49df88(0x1ca)]['events'][_0x49df88(0x1cb)](_0x49df88(0x1c9),_0x4a4c2c),_0x4a4c2c;}catch(_0xab1fd){this[_0x49df88(0x1ca)][_0x49df88(0x1d0)]['emit'](_0x49df88(0x1ce),{'error':_0xab1fd});throw _0xab1fd;}}async[a41_0x2cfe11(0x1db)](){const _0x5eeb08=a41_0x2cfe11;try{if(!this[_0x5eeb08(0x1ca)][_0x5eeb08(0x1d1)]())throw new Error(_0x5eeb08(0x1cc));const _0x1ba5f0=await this[_0x5eeb08(0x1ca)]['events'][_0x5eeb08(0x1cd)](_0x5eeb08(0x1e0),{});for(let _0x245860=0x0;_0x245860<_0x1ba5f0[_0x5eeb08(0x1c6)];_0x245860++){const _0x44a749=new Order(this['owl'],_0x1ba5f0[_0x245860]);this[_0x5eeb08(0x1de)][_0x5eeb08(0x1dc)](_0x44a749['id'],_0x44a749);}return this['owl']['events']['emit'](_0x5eeb08(0x1d9),this[_0x5eeb08(0x1de)][_0x5eeb08(0x1d5)]()),this[_0x5eeb08(0x1de)][_0x5eeb08(0x1d5)]();}catch(_0x5c1d18){this['owl'][_0x5eeb08(0x1d0)]['emit'](_0x5eeb08(0x1ce),{'error':_0x5c1d18});throw _0x5c1d18;}}async[a41_0x2cfe11(0x1dd)](_0x4d98fa){const _0x2d4b18=a41_0x2cfe11;try{if(!this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d1)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x3ed761=await this['owl'][_0x2d4b18(0x1d0)][_0x2d4b18(0x1cd)](_0x2d4b18(0x1bf),_0x4d98fa);for(let _0x21775a=0x0;_0x21775a<_0x3ed761[_0x2d4b18(0x1c6)];_0x21775a++){const _0x10e6e8=new Order(this[_0x2d4b18(0x1ca)],_0x3ed761[_0x21775a]);this[_0x2d4b18(0x1de)][_0x2d4b18(0x1dc)](_0x10e6e8['id'],_0x10e6e8);}return this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d0)]['emit']('order.cached.some',_0x3ed761),_0x3ed761;}catch(_0x3d409e){this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d0)]['emit'](_0x2d4b18(0x1ce),{'error':_0x3d409e});throw _0x3d409e;}}async['new'](_0x2fdc9c){const _0x5b52ca=a41_0x2cfe11;try{if(!this[_0x5b52ca(0x1ca)]['tokenIsValide']())throw new Error(_0x5b52ca(0x1cc));const _0x357a1a=await this[_0x5b52ca(0x1ca)]['events'][_0x5b52ca(0x1cd)](_0x5b52ca(0x1d4),{'order':_0x2fdc9c});_0x2fdc9c['id']=_0x357a1a;const _0x49fca1=new Order(this[_0x5b52ca(0x1ca)],_0x2fdc9c);return this[_0x5b52ca(0x1de)]['set'](_0x49fca1['id'],_0x49fca1),_0x49fca1;}catch(_0x3f3e92){this[_0x5b52ca(0x1ca)][_0x5b52ca(0x1d0)][_0x5b52ca(0x1cb)](_0x5b52ca(0x1ce),{'error':_0x3f3e92});throw _0x3f3e92;}}async['modify'](_0x12725d,_0x5f5aa9){const _0x36d853=a41_0x2cfe11;try{if(!this[_0x36d853(0x1ca)][_0x36d853(0x1d1)]())throw new Error('000001:\x20Invalid\x20Token.');await this['owl'][_0x36d853(0x1d0)]['request'](_0x36d853(0x1df),_0x5f5aa9)[_0x36d853(0x1d7)](_0x5f55f9=>{const _0x20f766=_0x36d853;this[_0x20f766(0x1de)][_0x20f766(0x1dc)](_0x12725d,_0x5f55f9);});}catch(_0x42a323){this['owl'][_0x36d853(0x1d0)][_0x36d853(0x1cb)](_0x36d853(0x1ce),{'error':_0x42a323});throw _0x42a323;}}async[a41_0x2cfe11(0x1c8)](_0x1784df){const _0x5a609d=a41_0x2cfe11;try{if(!this[_0x5a609d(0x1ca)][_0x5a609d(0x1d1)]())throw new Error(_0x5a609d(0x1cc));await this[_0x5a609d(0x1ca)]['events'][_0x5a609d(0x1cb)]('order.deleted',{'id':_0x1784df}),this[_0x5a609d(0x1de)][_0x5a609d(0x1c8)](_0x1784df);}catch(_0x1da904){this['owl'][_0x5a609d(0x1d0)][_0x5a609d(0x1cb)](_0x5a609d(0x1ce),{'error':_0x1da904});throw _0x1da904;}}}
1
+ function a41_0x19e5(_0x348587,_0x8abe7){_0x348587=_0x348587-0x158;const _0x261cbb=a41_0x261c();let _0x19e50b=_0x261cbb[_0x348587];return _0x19e50b;}const a41_0x4332b9=a41_0x19e5;(function(_0x43f2b2,_0x3f306e){const _0x550f2c=a41_0x19e5,_0x4cf8e9=_0x43f2b2();while(!![]){try{const _0x40f9f3=-parseInt(_0x550f2c(0x171))/0x1*(-parseInt(_0x550f2c(0x164))/0x2)+parseInt(_0x550f2c(0x162))/0x3*(parseInt(_0x550f2c(0x16b))/0x4)+-parseInt(_0x550f2c(0x160))/0x5+-parseInt(_0x550f2c(0x159))/0x6+-parseInt(_0x550f2c(0x173))/0x7+-parseInt(_0x550f2c(0x16a))/0x8*(parseInt(_0x550f2c(0x175))/0x9)+parseInt(_0x550f2c(0x165))/0xa;if(_0x40f9f3===_0x3f306e)break;else _0x4cf8e9['push'](_0x4cf8e9['shift']());}catch(_0x33d5ce){_0x4cf8e9['push'](_0x4cf8e9['shift']());}}}(a41_0x261c,0xcacff));import{Manager}from'../core/Manager.js';function a41_0x261c(){const _0x1b97b8=['37786010miRgyX','some','order.error','order.created','emit','8kRIzHu','4sMjpvV','tokenIsValide','get','owl','new','000001:\x20Invalid\x20Token.','19OoIFKQ','values','5096875ohxWsU','request','10214307jkAsDS','cache','order.read.all','order.read.some','7481856IYoKzv','order.cached.all','order.cached','events','delete','set','order.cached.some','6936280HyeJMf','then','3606177DVfnhd','order.deleted','36562wtEhyn'];a41_0x261c=function(){return _0x1b97b8;};return a41_0x261c();}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async['fetch'](_0x365f4d){const _0x492655=a41_0x19e5;try{if(!this[_0x492655(0x16e)]['tokenIsValide']())throw new Error(_0x492655(0x170));if(this[_0x492655(0x176)]['has'](_0x365f4d))return this['cache'][_0x492655(0x16d)](_0x365f4d);const _0x82233c=await this[_0x492655(0x16e)][_0x492655(0x15c)][_0x492655(0x174)]('order.read',{'id':_0x365f4d}),_0x329536=new Order(this[_0x492655(0x16e)],_0x82233c);return this[_0x492655(0x176)]['set'](_0x365f4d,_0x329536),this[_0x492655(0x16e)]['events'][_0x492655(0x169)](_0x492655(0x15b),_0x329536),_0x329536;}catch(_0x3ce703){this[_0x492655(0x16e)][_0x492655(0x15c)][_0x492655(0x169)](_0x492655(0x167),{'error':_0x3ce703});throw _0x3ce703;}}async['fetchAll'](){const _0x1820de=a41_0x19e5;try{if(!this['owl'][_0x1820de(0x16c)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x300ee5=await this['owl']['events'][_0x1820de(0x174)](_0x1820de(0x177),{});for(let _0x5ce1ba=0x0;_0x5ce1ba<_0x300ee5['length'];_0x5ce1ba++){const _0x188d86=new Order(this['owl'],_0x300ee5[_0x5ce1ba]);this[_0x1820de(0x176)]['set'](_0x188d86['id'],_0x188d86);}return this['owl'][_0x1820de(0x15c)][_0x1820de(0x169)](_0x1820de(0x15a),this[_0x1820de(0x176)][_0x1820de(0x172)]()),this[_0x1820de(0x176)][_0x1820de(0x172)]();}catch(_0x5e7bbc){this[_0x1820de(0x16e)][_0x1820de(0x15c)][_0x1820de(0x169)](_0x1820de(0x167),{'error':_0x5e7bbc});throw _0x5e7bbc;}}async[a41_0x4332b9(0x166)](_0x530b63){const _0x395299=a41_0x4332b9;try{if(!this[_0x395299(0x16e)]['tokenIsValide']())throw new Error(_0x395299(0x170));const _0x1504ee=await this[_0x395299(0x16e)][_0x395299(0x15c)]['request'](_0x395299(0x158),_0x530b63);for(let _0x1d2995=0x0;_0x1d2995<_0x1504ee['length'];_0x1d2995++){const _0x1d5067=new Order(this[_0x395299(0x16e)],_0x1504ee[_0x1d2995]);this[_0x395299(0x176)][_0x395299(0x15e)](_0x1d5067['id'],_0x1d5067);}return this[_0x395299(0x16e)][_0x395299(0x15c)][_0x395299(0x169)](_0x395299(0x15f),_0x1504ee),_0x1504ee;}catch(_0x5d5da0){this[_0x395299(0x16e)][_0x395299(0x15c)]['emit']('order.error',{'error':_0x5d5da0});throw _0x5d5da0;}}async[a41_0x4332b9(0x16f)](_0x19766f){const _0x5a33b0=a41_0x4332b9;try{if(!this[_0x5a33b0(0x16e)][_0x5a33b0(0x16c)]())throw new Error(_0x5a33b0(0x170));const _0x5232ca=await this[_0x5a33b0(0x16e)]['events'][_0x5a33b0(0x174)](_0x5a33b0(0x168),{'order':_0x19766f});_0x19766f['id']=_0x5232ca;const _0x4299fd=new Order(this[_0x5a33b0(0x16e)],_0x19766f);return this[_0x5a33b0(0x176)][_0x5a33b0(0x15e)](_0x4299fd['id'],_0x4299fd),_0x4299fd;}catch(_0x51e450){this[_0x5a33b0(0x16e)][_0x5a33b0(0x15c)][_0x5a33b0(0x169)](_0x5a33b0(0x167),{'error':_0x51e450});throw _0x51e450;}}async['modify'](_0x123eeb,_0x20fa94){const _0x44816c=a41_0x4332b9;try{if(!this[_0x44816c(0x16e)][_0x44816c(0x16c)]())throw new Error(_0x44816c(0x170));await this[_0x44816c(0x16e)][_0x44816c(0x15c)][_0x44816c(0x174)]('order.updated',_0x20fa94)[_0x44816c(0x161)](_0x166a6b=>{const _0x494f8d=_0x44816c;this[_0x494f8d(0x176)][_0x494f8d(0x15e)](_0x123eeb,_0x166a6b);});}catch(_0x2180c0){this[_0x44816c(0x16e)]['events'][_0x44816c(0x169)](_0x44816c(0x167),{'error':_0x2180c0});throw _0x2180c0;}}async[a41_0x4332b9(0x15d)](_0x57d4c4){const _0x4d4ac7=a41_0x4332b9;try{if(!this[_0x4d4ac7(0x16e)][_0x4d4ac7(0x16c)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4d4ac7(0x16e)][_0x4d4ac7(0x15c)][_0x4d4ac7(0x169)](_0x4d4ac7(0x163),{'id':_0x57d4c4}),this['cache'][_0x4d4ac7(0x15d)](_0x57d4c4);}catch(_0x3cb1d9){this[_0x4d4ac7(0x16e)]['events']['emit'](_0x4d4ac7(0x167),{'error':_0x3cb1d9});throw _0x3cb1d9;}}}
@@ -1 +1 @@
1
- function a42_0x2c3b(_0x4de0cd,_0x725009){_0x4de0cd=_0x4de0cd-0x95;const _0x27266a=a42_0x2726();let _0x2c3b6a=_0x27266a[_0x4de0cd];return _0x2c3b6a;}const a42_0x143734=a42_0x2c3b;(function(_0x56a787,_0x1c1882){const _0x2b2f1c=a42_0x2c3b,_0x45e67b=_0x56a787();while(!![]){try{const _0x2d3e01=-parseInt(_0x2b2f1c(0xaf))/0x1*(-parseInt(_0x2b2f1c(0x99))/0x2)+-parseInt(_0x2b2f1c(0xb3))/0x3+parseInt(_0x2b2f1c(0x95))/0x4*(-parseInt(_0x2b2f1c(0xab))/0x5)+parseInt(_0x2b2f1c(0xa1))/0x6+-parseInt(_0x2b2f1c(0xa3))/0x7+parseInt(_0x2b2f1c(0xaa))/0x8*(-parseInt(_0x2b2f1c(0x9d))/0x9)+parseInt(_0x2b2f1c(0x97))/0xa;if(_0x2d3e01===_0x1c1882)break;else _0x45e67b['push'](_0x45e67b['shift']());}catch(_0x3ec4eb){_0x45e67b['push'](_0x45e67b['shift']());}}}(a42_0x2726,0x4bc69));import{Manager}from'../core/Manager.js';function a42_0x2726(){const _0x46948d=['151687FAjOJn','some','get','preparation.updated','3414kqmRkf','preparation.read','cache','34172jaXbOB','preparation.read.some','8892870bpMsZW','length','2KrJRgd','values','preparation.cached.all','request','117VHOSpv','owl','events','fetch','2520744vfHFod','modify','3633980fSIxmV','emit','preparation.cached.some','preparation.error','tokenIsValide','set','preparation.created','366936aUJOqM','20CBHTTR','new','000001:\x20Invalid\x20Token.','preparation.deleted'];a42_0x2726=function(){return _0x46948d;};return a42_0x2726();}import{Preparation}from'../entities/Preparation.js';export class PreparationManager extends Manager{async[a42_0x143734(0xa0)](_0x840e86){const _0x46f770=a42_0x143734;try{if(!this['owl'][_0x46f770(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x46f770(0xb5)]['has'](_0x840e86))return this[_0x46f770(0xb5)][_0x46f770(0xb1)](_0x840e86);const _0x4b02d3=await this[_0x46f770(0x9e)][_0x46f770(0x9f)][_0x46f770(0x9c)](_0x46f770(0xb4),{'id':_0x840e86}),_0x135687=new Preparation(this[_0x46f770(0x9e)],_0x4b02d3);return this['cache']['set'](_0x840e86,_0x135687),this[_0x46f770(0x9e)]['events'][_0x46f770(0xa4)]('preparation.cached',_0x135687),_0x135687;}catch(_0x45cd8a){this['owl'][_0x46f770(0x9f)]['emit']('preparation.error',{'error':_0x45cd8a});throw _0x45cd8a;}}async['fetchAll'](){const _0xcf09da=a42_0x143734;try{if(!this[_0xcf09da(0x9e)][_0xcf09da(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4d650e=await this[_0xcf09da(0x9e)][_0xcf09da(0x9f)][_0xcf09da(0x9c)]('preparation.read.all',{});for(let _0x34985f=0x0;_0x34985f<_0x4d650e[_0xcf09da(0x98)];_0x34985f++){const _0x328fd7=new Preparation(this[_0xcf09da(0x9e)],_0x4d650e[_0x34985f]);this[_0xcf09da(0xb5)][_0xcf09da(0xa8)](_0x328fd7['id'],_0x328fd7);}return this['owl']['events'][_0xcf09da(0xa4)](_0xcf09da(0x9b),this[_0xcf09da(0xb5)][_0xcf09da(0x9a)]()),this['cache'][_0xcf09da(0x9a)]();}catch(_0x27f17b){this['owl'][_0xcf09da(0x9f)][_0xcf09da(0xa4)](_0xcf09da(0xa6),{'error':_0x27f17b});throw _0x27f17b;}}async[a42_0x143734(0xb0)](_0x3e0162){const _0xaa0c88=a42_0x143734;try{if(!this[_0xaa0c88(0x9e)][_0xaa0c88(0xa7)]())throw new Error(_0xaa0c88(0xad));const _0xf2c00a=await this[_0xaa0c88(0x9e)][_0xaa0c88(0x9f)][_0xaa0c88(0x9c)](_0xaa0c88(0x96),_0x3e0162);for(let _0x1891ba=0x0;_0x1891ba<_0xf2c00a['length'];_0x1891ba++){const _0x4b83af=new Preparation(this[_0xaa0c88(0x9e)],_0xf2c00a[_0x1891ba]);this[_0xaa0c88(0xb5)]['set'](_0x4b83af['id'],_0x4b83af);}return this[_0xaa0c88(0x9e)][_0xaa0c88(0x9f)][_0xaa0c88(0xa4)](_0xaa0c88(0xa5),_0xf2c00a),_0xf2c00a;}catch(_0x519400){this['owl'][_0xaa0c88(0x9f)][_0xaa0c88(0xa4)]('preparation.error',{'error':_0x519400});throw _0x519400;}}async[a42_0x143734(0xac)](_0x3910f9){const _0x1b188c=a42_0x143734;try{if(!this[_0x1b188c(0x9e)][_0x1b188c(0xa7)]())throw new Error(_0x1b188c(0xad));const _0x1b2ec4=await this[_0x1b188c(0x9e)][_0x1b188c(0x9f)][_0x1b188c(0x9c)](_0x1b188c(0xa9),{'preparation':_0x3910f9});_0x3910f9['id']=_0x1b2ec4;const _0x564760=new Preparation(this[_0x1b188c(0x9e)],_0x3910f9);return this['cache'][_0x1b188c(0xa8)](_0x564760['id'],_0x564760),_0x564760;}catch(_0x473c2e){this['owl']['events'][_0x1b188c(0xa4)](_0x1b188c(0xa6),{'error':_0x473c2e});throw _0x473c2e;}}async[a42_0x143734(0xa2)](_0x42aa4c,_0x34cd87){const _0x35e03f=a42_0x143734;try{if(!this[_0x35e03f(0x9e)][_0x35e03f(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events'][_0x35e03f(0x9c)](_0x35e03f(0xb2),_0x34cd87)['then'](_0xa13750=>{const _0x1df71c=_0x35e03f;this['cache'][_0x1df71c(0xa8)](_0x42aa4c,_0xa13750);});}catch(_0x1639a8){this[_0x35e03f(0x9e)][_0x35e03f(0x9f)]['emit']('preparation.error',{'error':_0x1639a8});throw _0x1639a8;}}async['delete'](_0x555ce6){const _0x4de43d=a42_0x143734;try{if(!this[_0x4de43d(0x9e)][_0x4de43d(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4de43d(0x9e)][_0x4de43d(0x9f)][_0x4de43d(0xa4)](_0x4de43d(0xae),{'id':_0x555ce6}),this[_0x4de43d(0xb5)]['delete'](_0x555ce6);}catch(_0x18c226){this[_0x4de43d(0x9e)][_0x4de43d(0x9f)][_0x4de43d(0xa4)]('preparation.error',{'error':_0x18c226});throw _0x18c226;}}}
1
+ const a42_0x3c270d=a42_0x4fc7;(function(_0x54a56f,_0x458c38){const _0x1b24c6=a42_0x4fc7,_0x1b7f87=_0x54a56f();while(!![]){try{const _0x15af46=parseInt(_0x1b24c6(0xe6))/0x1+parseInt(_0x1b24c6(0xda))/0x2*(-parseInt(_0x1b24c6(0xef))/0x3)+-parseInt(_0x1b24c6(0xd9))/0x4+-parseInt(_0x1b24c6(0xe0))/0x5+-parseInt(_0x1b24c6(0xdb))/0x6*(-parseInt(_0x1b24c6(0xf9))/0x7)+parseInt(_0x1b24c6(0xec))/0x8+parseInt(_0x1b24c6(0xfb))/0x9*(parseInt(_0x1b24c6(0xde))/0xa);if(_0x15af46===_0x458c38)break;else _0x1b7f87['push'](_0x1b7f87['shift']());}catch(_0x5c4ce5){_0x1b7f87['push'](_0x1b7f87['shift']());}}}(a42_0x4064,0x8ca70));function a42_0x4064(){const _0x5d6cf8=['787347zLWltN','events','preparation.cached','preparation.created','values','request','7182320gxuzEq','owl','new','3rzrTbh','preparation.cached.all','preparation.deleted','tokenIsValide','preparation.cached.some','cache','then','has','preparation.read.some','emit','73178pjBbvD','modify','621tvntZa','preparation.error','3544744sqabDH','776392ZMOWFg','246lMCzzx','000001:\x20Invalid\x20Token.','get','59530twSfWd','length','3370070doeqNl','delete','preparation.updated','set','fetchAll','fetch'];a42_0x4064=function(){return _0x5d6cf8;};return a42_0x4064();}import{Manager}from'../core/Manager.js';import{Preparation}from'../entities/Preparation.js';function a42_0x4fc7(_0x49996c,_0x544b6f){_0x49996c=_0x49996c-0xd9;const _0x40648d=a42_0x4064();let _0x4fc7ce=_0x40648d[_0x49996c];return _0x4fc7ce;}export class PreparationManager extends Manager{async[a42_0x3c270d(0xe5)](_0x3d2c77){const _0x3e9aa3=a42_0x3c270d;try{if(!this[_0x3e9aa3(0xed)][_0x3e9aa3(0xf2)]())throw new Error(_0x3e9aa3(0xdc));if(this[_0x3e9aa3(0xf4)][_0x3e9aa3(0xf6)](_0x3d2c77))return this[_0x3e9aa3(0xf4)][_0x3e9aa3(0xdd)](_0x3d2c77);const _0x1b4757=await this['owl']['events'][_0x3e9aa3(0xeb)]('preparation.read',{'id':_0x3d2c77}),_0x28e742=new Preparation(this['owl'],_0x1b4757);return this['cache'][_0x3e9aa3(0xe3)](_0x3d2c77,_0x28e742),this['owl'][_0x3e9aa3(0xe7)]['emit'](_0x3e9aa3(0xe8),_0x28e742),_0x28e742;}catch(_0x10908c){this[_0x3e9aa3(0xed)]['events'][_0x3e9aa3(0xf8)](_0x3e9aa3(0xfc),{'error':_0x10908c});throw _0x10908c;}}async[a42_0x3c270d(0xe4)](){const _0x54fdaa=a42_0x3c270d;try{if(!this[_0x54fdaa(0xed)][_0x54fdaa(0xf2)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x364279=await this[_0x54fdaa(0xed)][_0x54fdaa(0xe7)]['request']('preparation.read.all',{});for(let _0x496daf=0x0;_0x496daf<_0x364279[_0x54fdaa(0xdf)];_0x496daf++){const _0x4aab44=new Preparation(this['owl'],_0x364279[_0x496daf]);this[_0x54fdaa(0xf4)][_0x54fdaa(0xe3)](_0x4aab44['id'],_0x4aab44);}return this['owl'][_0x54fdaa(0xe7)][_0x54fdaa(0xf8)](_0x54fdaa(0xf0),this[_0x54fdaa(0xf4)][_0x54fdaa(0xea)]()),this[_0x54fdaa(0xf4)][_0x54fdaa(0xea)]();}catch(_0x18203f){this[_0x54fdaa(0xed)][_0x54fdaa(0xe7)]['emit'](_0x54fdaa(0xfc),{'error':_0x18203f});throw _0x18203f;}}async['some'](_0xfef9ca){const _0x5a4308=a42_0x3c270d;try{if(!this[_0x5a4308(0xed)][_0x5a4308(0xf2)]())throw new Error(_0x5a4308(0xdc));const _0x45b5d9=await this[_0x5a4308(0xed)][_0x5a4308(0xe7)]['request'](_0x5a4308(0xf7),_0xfef9ca);for(let _0x5714e8=0x0;_0x5714e8<_0x45b5d9[_0x5a4308(0xdf)];_0x5714e8++){const _0x34a66c=new Preparation(this['owl'],_0x45b5d9[_0x5714e8]);this['cache'][_0x5a4308(0xe3)](_0x34a66c['id'],_0x34a66c);}return this['owl'][_0x5a4308(0xe7)][_0x5a4308(0xf8)](_0x5a4308(0xf3),_0x45b5d9),_0x45b5d9;}catch(_0x293e5a){this['owl']['events'][_0x5a4308(0xf8)](_0x5a4308(0xfc),{'error':_0x293e5a});throw _0x293e5a;}}async[a42_0x3c270d(0xee)](_0xea2cb5){const _0x1ada8a=a42_0x3c270d;try{if(!this[_0x1ada8a(0xed)][_0x1ada8a(0xf2)]())throw new Error(_0x1ada8a(0xdc));const _0x5b85d7=await this[_0x1ada8a(0xed)]['events'][_0x1ada8a(0xeb)](_0x1ada8a(0xe9),{'preparation':_0xea2cb5});_0xea2cb5['id']=_0x5b85d7;const _0x265063=new Preparation(this[_0x1ada8a(0xed)],_0xea2cb5);return this[_0x1ada8a(0xf4)][_0x1ada8a(0xe3)](_0x265063['id'],_0x265063),_0x265063;}catch(_0x34bc85){this[_0x1ada8a(0xed)][_0x1ada8a(0xe7)][_0x1ada8a(0xf8)]('preparation.error',{'error':_0x34bc85});throw _0x34bc85;}}async[a42_0x3c270d(0xfa)](_0x32dad9,_0x196ebe){const _0x442618=a42_0x3c270d;try{if(!this[_0x442618(0xed)][_0x442618(0xf2)]())throw new Error(_0x442618(0xdc));await this[_0x442618(0xed)][_0x442618(0xe7)][_0x442618(0xeb)](_0x442618(0xe2),_0x196ebe)[_0x442618(0xf5)](_0x174f95=>{const _0x3db3fa=_0x442618;this[_0x3db3fa(0xf4)]['set'](_0x32dad9,_0x174f95);});}catch(_0x580749){this['owl'][_0x442618(0xe7)][_0x442618(0xf8)](_0x442618(0xfc),{'error':_0x580749});throw _0x580749;}}async[a42_0x3c270d(0xe1)](_0x41b5d6){const _0x1069c8=a42_0x3c270d;try{if(!this[_0x1069c8(0xed)][_0x1069c8(0xf2)]())throw new Error(_0x1069c8(0xdc));await this[_0x1069c8(0xed)][_0x1069c8(0xe7)][_0x1069c8(0xf8)](_0x1069c8(0xf1),{'id':_0x41b5d6}),this[_0x1069c8(0xf4)][_0x1069c8(0xe1)](_0x41b5d6);}catch(_0x1da864){this['owl'][_0x1069c8(0xe7)][_0x1069c8(0xf8)](_0x1069c8(0xfc),{'error':_0x1da864});throw _0x1da864;}}}
@@ -1 +1 @@
1
- const a43_0x22faf0=a43_0x4336;(function(_0x34b8cc,_0x1fa445){const _0x5adfc3=a43_0x4336,_0x175ce2=_0x34b8cc();while(!![]){try{const _0x30639e=-parseInt(_0x5adfc3(0x131))/0x1*(parseInt(_0x5adfc3(0x138))/0x2)+parseInt(_0x5adfc3(0x135))/0x3*(parseInt(_0x5adfc3(0x140))/0x4)+parseInt(_0x5adfc3(0x13c))/0x5*(parseInt(_0x5adfc3(0x13f))/0x6)+-parseInt(_0x5adfc3(0x139))/0x7+parseInt(_0x5adfc3(0x141))/0x8+parseInt(_0x5adfc3(0x137))/0x9*(-parseInt(_0x5adfc3(0x142))/0xa)+parseInt(_0x5adfc3(0x132))/0xb;if(_0x30639e===_0x1fa445)break;else _0x175ce2['push'](_0x175ce2['shift']());}catch(_0x9a7f14){_0x175ce2['push'](_0x175ce2['shift']());}}}(a43_0x78bc,0x73e26));import{Manager}from'../core/Manager.js';function a43_0x4336(_0x1c50c2,_0xdf7745){_0x1c50c2=_0x1c50c2-0x130;const _0x78bc93=a43_0x78bc();let _0x433604=_0x78bc93[_0x1c50c2];return _0x433604;}function a43_0x78bc(){const _0x2f3baa=['request','purchase.read.all','delete','length','fetchAll','purchase.cached','purchase.updated','fetch','events','values','emit','purchase.deleted','000001:\x20Invalid\x20Token.','purchase.cached.some','18133SBkOGY','940489VWBcoI','set','new','21GGVNBE','modify','4232331jmEvte','40UjNLLY','1776635SeguBo','then','has','5FQHmBP','owl','purchase.error','3710082WoZQRQ','322312JHlUjJ','6110024rEpidW','20CECnPj','cache','tokenIsValide'];a43_0x78bc=function(){return _0x2f3baa;};return a43_0x78bc();}import{Purchase}from'../entities/Purchase.js';export class PurchaseManager extends Manager{async[a43_0x22faf0(0x14c)](_0x563476){const _0x4678ff=a43_0x22faf0;try{if(!this[_0x4678ff(0x13d)][_0x4678ff(0x144)]())throw new Error(_0x4678ff(0x151));if(this['cache'][_0x4678ff(0x13b)](_0x563476))return this[_0x4678ff(0x143)]['get'](_0x563476);const _0x31594d=await this['owl']['events']['request']('purchase.read',{'id':_0x563476}),_0x156787=new Purchase(this[_0x4678ff(0x13d)],_0x31594d);return this[_0x4678ff(0x143)][_0x4678ff(0x133)](_0x563476,_0x156787),this[_0x4678ff(0x13d)][_0x4678ff(0x14d)][_0x4678ff(0x14f)](_0x4678ff(0x14a),_0x156787),_0x156787;}catch(_0x2d1608){this[_0x4678ff(0x13d)][_0x4678ff(0x14d)][_0x4678ff(0x14f)](_0x4678ff(0x13e),{'error':_0x2d1608});throw _0x2d1608;}}async[a43_0x22faf0(0x149)](){const _0x241e11=a43_0x22faf0;try{if(!this[_0x241e11(0x13d)][_0x241e11(0x144)]())throw new Error(_0x241e11(0x151));const _0x29d3ad=await this['owl'][_0x241e11(0x14d)][_0x241e11(0x145)](_0x241e11(0x146),{});for(let _0x15619c=0x0;_0x15619c<_0x29d3ad[_0x241e11(0x148)];_0x15619c++){const _0x3cfe9d=new Purchase(this['owl'],_0x29d3ad[_0x15619c]);this[_0x241e11(0x143)][_0x241e11(0x133)](_0x3cfe9d['id'],_0x3cfe9d);}return this[_0x241e11(0x13d)][_0x241e11(0x14d)]['emit']('purchase.cached.all',this[_0x241e11(0x143)][_0x241e11(0x14e)]()),this[_0x241e11(0x143)][_0x241e11(0x14e)]();}catch(_0x41f030){this['owl'][_0x241e11(0x14d)][_0x241e11(0x14f)](_0x241e11(0x13e),{'error':_0x41f030});throw _0x41f030;}}async['some'](_0x58c9b7){const _0x549751=a43_0x22faf0;try{if(!this[_0x549751(0x13d)][_0x549751(0x144)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x599c41=await this['owl'][_0x549751(0x14d)]['request']('purchase.read.some',_0x58c9b7);for(let _0x108e8c=0x0;_0x108e8c<_0x599c41[_0x549751(0x148)];_0x108e8c++){const _0x244054=new Purchase(this['owl'],_0x599c41[_0x108e8c]);this[_0x549751(0x143)][_0x549751(0x133)](_0x244054['id'],_0x244054);}return this[_0x549751(0x13d)][_0x549751(0x14d)][_0x549751(0x14f)](_0x549751(0x130),_0x599c41),_0x599c41;}catch(_0x2eed17){this['owl'][_0x549751(0x14d)][_0x549751(0x14f)](_0x549751(0x13e),{'error':_0x2eed17});throw _0x2eed17;}}async[a43_0x22faf0(0x134)](_0x521659){const _0x42712a=a43_0x22faf0;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x42712a(0x151));const _0x3e06e8=await this[_0x42712a(0x13d)][_0x42712a(0x14d)][_0x42712a(0x145)]('purchase.created',{'purchase':_0x521659});_0x521659['id']=_0x3e06e8;const _0x43e598=new Purchase(this[_0x42712a(0x13d)],_0x521659);return this['cache'][_0x42712a(0x133)](_0x43e598['id'],_0x43e598),_0x43e598;}catch(_0x21b4ac){this['owl'][_0x42712a(0x14d)][_0x42712a(0x14f)]('purchase.error',{'error':_0x21b4ac});throw _0x21b4ac;}}async[a43_0x22faf0(0x136)](_0x2d5395,_0xc33ea6){const _0x33c497=a43_0x22faf0;try{if(!this['owl'][_0x33c497(0x144)]())throw new Error(_0x33c497(0x151));await this[_0x33c497(0x13d)][_0x33c497(0x14d)][_0x33c497(0x145)](_0x33c497(0x14b),_0xc33ea6)[_0x33c497(0x13a)](_0x1ca84a=>{const _0xa30c6c=_0x33c497;this[_0xa30c6c(0x143)][_0xa30c6c(0x133)](_0x2d5395,_0x1ca84a);});}catch(_0x1e24b5){this['owl'][_0x33c497(0x14d)]['emit'](_0x33c497(0x13e),{'error':_0x1e24b5});throw _0x1e24b5;}}async[a43_0x22faf0(0x147)](_0x4305ee){const _0x1fb55b=a43_0x22faf0;try{if(!this[_0x1fb55b(0x13d)][_0x1fb55b(0x144)]())throw new Error(_0x1fb55b(0x151));await this[_0x1fb55b(0x13d)][_0x1fb55b(0x14d)][_0x1fb55b(0x14f)](_0x1fb55b(0x150),{'id':_0x4305ee}),this[_0x1fb55b(0x143)][_0x1fb55b(0x147)](_0x4305ee);}catch(_0x513930){this['owl'][_0x1fb55b(0x14d)][_0x1fb55b(0x14f)](_0x1fb55b(0x13e),{'error':_0x513930});throw _0x513930;}}}
1
+ function a43_0x45e9(){const _0x3c76fa=['purchase.cached.all','length','request','72592SGXqPZ','fetchAll','some','has','purchase.updated','events','7761177TkZPcB','42670BOWRfx','emit','purchase.created','get','3ggivzA','1057784eGVgbi','24581580oMqWQg','purchase.read','164tFqQwU','cache','purchase.error','000001:\x20Invalid\x20Token.','purchase.cached.some','delete','822763RCYkdP','tokenIsValide','5528922YfGsgu','then','owl','purchase.deleted','modify','35EnJHbb','set','purchase.cached'];a43_0x45e9=function(){return _0x3c76fa;};return a43_0x45e9();}const a43_0xb4549f=a43_0x3266;function a43_0x3266(_0x489fa3,_0x4d2f97){_0x489fa3=_0x489fa3-0xa9;const _0x45e92b=a43_0x45e9();let _0x326665=_0x45e92b[_0x489fa3];return _0x326665;}(function(_0x30ba88,_0x2e3c97){const _0x1bce51=a43_0x3266,_0x427698=_0x30ba88();while(!![]){try{const _0x25586d=parseInt(_0x1bce51(0xbf))/0x1+-parseInt(_0x1bce51(0xaa))/0x2*(-parseInt(_0x1bce51(0xb5))/0x3)+-parseInt(_0x1bce51(0xb9))/0x4*(parseInt(_0x1bce51(0xb1))/0x5)+parseInt(_0x1bce51(0xc1))/0x6+-parseInt(_0x1bce51(0xc6))/0x7*(-parseInt(_0x1bce51(0xb6))/0x8)+parseInt(_0x1bce51(0xb0))/0x9+-parseInt(_0x1bce51(0xb7))/0xa;if(_0x25586d===_0x2e3c97)break;else _0x427698['push'](_0x427698['shift']());}catch(_0x5cb0e3){_0x427698['push'](_0x427698['shift']());}}}(a43_0x45e9,0x7915a));import{Manager}from'../core/Manager.js';import{Purchase}from'../entities/Purchase.js';export class PurchaseManager extends Manager{async['fetch'](_0x5f2f50){const _0x4f17ae=a43_0x3266;try{if(!this[_0x4f17ae(0xc3)][_0x4f17ae(0xc0)]())throw new Error(_0x4f17ae(0xbc));if(this['cache'][_0x4f17ae(0xad)](_0x5f2f50))return this['cache'][_0x4f17ae(0xb4)](_0x5f2f50);const _0x1413db=await this[_0x4f17ae(0xc3)][_0x4f17ae(0xaf)]['request'](_0x4f17ae(0xb8),{'id':_0x5f2f50}),_0x2030b8=new Purchase(this[_0x4f17ae(0xc3)],_0x1413db);return this[_0x4f17ae(0xba)][_0x4f17ae(0xc7)](_0x5f2f50,_0x2030b8),this[_0x4f17ae(0xc3)][_0x4f17ae(0xaf)]['emit'](_0x4f17ae(0xc8),_0x2030b8),_0x2030b8;}catch(_0x8913e7){this[_0x4f17ae(0xc3)]['events']['emit']('purchase.error',{'error':_0x8913e7});throw _0x8913e7;}}async[a43_0xb4549f(0xab)](){const _0x22d68a=a43_0xb4549f;try{if(!this[_0x22d68a(0xc3)]['tokenIsValide']())throw new Error(_0x22d68a(0xbc));const _0x58c8c7=await this[_0x22d68a(0xc3)][_0x22d68a(0xaf)]['request']('purchase.read.all',{});for(let _0x5886fe=0x0;_0x5886fe<_0x58c8c7[_0x22d68a(0xca)];_0x5886fe++){const _0x2efcdf=new Purchase(this[_0x22d68a(0xc3)],_0x58c8c7[_0x5886fe]);this[_0x22d68a(0xba)][_0x22d68a(0xc7)](_0x2efcdf['id'],_0x2efcdf);}return this[_0x22d68a(0xc3)]['events'][_0x22d68a(0xb2)](_0x22d68a(0xc9),this[_0x22d68a(0xba)]['values']()),this[_0x22d68a(0xba)]['values']();}catch(_0x4d11b2){this[_0x22d68a(0xc3)][_0x22d68a(0xaf)][_0x22d68a(0xb2)](_0x22d68a(0xbb),{'error':_0x4d11b2});throw _0x4d11b2;}}async[a43_0xb4549f(0xac)](_0x4612c3){const _0xbf2e44=a43_0xb4549f;try{if(!this[_0xbf2e44(0xc3)][_0xbf2e44(0xc0)]())throw new Error(_0xbf2e44(0xbc));const _0x405efc=await this['owl']['events'][_0xbf2e44(0xa9)]('purchase.read.some',_0x4612c3);for(let _0xddc308=0x0;_0xddc308<_0x405efc['length'];_0xddc308++){const _0x4fe256=new Purchase(this[_0xbf2e44(0xc3)],_0x405efc[_0xddc308]);this['cache']['set'](_0x4fe256['id'],_0x4fe256);}return this[_0xbf2e44(0xc3)][_0xbf2e44(0xaf)][_0xbf2e44(0xb2)](_0xbf2e44(0xbd),_0x405efc),_0x405efc;}catch(_0x29b0f5){this[_0xbf2e44(0xc3)]['events'][_0xbf2e44(0xb2)](_0xbf2e44(0xbb),{'error':_0x29b0f5});throw _0x29b0f5;}}async['new'](_0x14326d){const _0xe75a10=a43_0xb4549f;try{if(!this['owl']['tokenIsValide']())throw new Error(_0xe75a10(0xbc));const _0x20dc7b=await this[_0xe75a10(0xc3)][_0xe75a10(0xaf)][_0xe75a10(0xa9)](_0xe75a10(0xb3),{'purchase':_0x14326d});_0x14326d['id']=_0x20dc7b;const _0x59e992=new Purchase(this[_0xe75a10(0xc3)],_0x14326d);return this[_0xe75a10(0xba)]['set'](_0x59e992['id'],_0x59e992),_0x59e992;}catch(_0x5d8678){this[_0xe75a10(0xc3)]['events'][_0xe75a10(0xb2)](_0xe75a10(0xbb),{'error':_0x5d8678});throw _0x5d8678;}}async[a43_0xb4549f(0xc5)](_0x4f2846,_0x55ba26){const _0x5a5d82=a43_0xb4549f;try{if(!this['owl'][_0x5a5d82(0xc0)]())throw new Error(_0x5a5d82(0xbc));await this[_0x5a5d82(0xc3)][_0x5a5d82(0xaf)][_0x5a5d82(0xa9)](_0x5a5d82(0xae),_0x55ba26)[_0x5a5d82(0xc2)](_0x492756=>{const _0x135375=_0x5a5d82;this[_0x135375(0xba)][_0x135375(0xc7)](_0x4f2846,_0x492756);});}catch(_0x33bc4c){this[_0x5a5d82(0xc3)][_0x5a5d82(0xaf)][_0x5a5d82(0xb2)](_0x5a5d82(0xbb),{'error':_0x33bc4c});throw _0x33bc4c;}}async[a43_0xb4549f(0xbe)](_0x1c8ecc){const _0x343815=a43_0xb4549f;try{if(!this['owl'][_0x343815(0xc0)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x343815(0xc3)]['events']['emit'](_0x343815(0xc4),{'id':_0x1c8ecc}),this['cache'][_0x343815(0xbe)](_0x1c8ecc);}catch(_0x22c0c3){this[_0x343815(0xc3)]['events'][_0x343815(0xb2)](_0x343815(0xbb),{'error':_0x22c0c3});throw _0x22c0c3;}}}
@@ -1 +1 @@
1
- const a44_0x45f3f1=a44_0x4260;function a44_0x16d4(){const _0xb2bdb6=['tokenIsValide','9xSaSFI','modify','reception.read.all','get','reception.cached','4847766NlvfAZ','then','7792631UCVgEB','654QFqDlA','15418110nGajnB','reception.deleted','329JYwOmr','reception.created','reception.read.some','8FiCcCq','events','fetchAll','delete','owl','119915bGyoCN','145634hGrCvt','reception.read','22424EXBEqF','length','some','cache','reception.updated','reception.cached.some','reception.cached.all','set','request','values','emit','000001:\x20Invalid\x20Token.','296680NYrpYU','reception.error'];a44_0x16d4=function(){return _0xb2bdb6;};return a44_0x16d4();}function a44_0x4260(_0x3662e5,_0x833577){_0x3662e5=_0x3662e5-0x134;const _0x16d4b4=a44_0x16d4();let _0x426011=_0x16d4b4[_0x3662e5];return _0x426011;}(function(_0x2f70f2,_0x22d29c){const _0x2f5a15=a44_0x4260,_0x2bb09c=_0x2f70f2();while(!![]){try{const _0x3e8e31=-parseInt(_0x2f5a15(0x150))/0x1*(parseInt(_0x2f5a15(0x156))/0x2)+parseInt(_0x2f5a15(0x14a))/0x3*(parseInt(_0x2f5a15(0x158))/0x4)+parseInt(_0x2f5a15(0x155))/0x5+parseInt(_0x2f5a15(0x147))/0x6+-parseInt(_0x2f5a15(0x14d))/0x7*(-parseInt(_0x2f5a15(0x13f))/0x8)+-parseInt(_0x2f5a15(0x142))/0x9*(parseInt(_0x2f5a15(0x14b))/0xa)+-parseInt(_0x2f5a15(0x149))/0xb;if(_0x3e8e31===_0x22d29c)break;else _0x2bb09c['push'](_0x2bb09c['shift']());}catch(_0x63fe23){_0x2bb09c['push'](_0x2bb09c['shift']());}}}(a44_0x16d4,0xeb6b7));import{Manager}from'../core/Manager.js';import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async['fetch'](_0x2ad9c0){const _0x380285=a44_0x4260;try{if(!this[_0x380285(0x154)][_0x380285(0x141)]())throw new Error(_0x380285(0x13e));if(this['cache']['has'](_0x2ad9c0))return this[_0x380285(0x136)][_0x380285(0x145)](_0x2ad9c0);const _0x3e8502=await this[_0x380285(0x154)][_0x380285(0x151)]['request'](_0x380285(0x157),{'id':_0x2ad9c0}),_0x3b08b2=new Reception(this['owl'],_0x3e8502);return this['cache'][_0x380285(0x13a)](_0x2ad9c0,_0x3b08b2),this['owl']['events'][_0x380285(0x13d)](_0x380285(0x146),_0x3b08b2),_0x3b08b2;}catch(_0x1dcfbc){this['owl'][_0x380285(0x151)][_0x380285(0x13d)]('reception.error',{'error':_0x1dcfbc});throw _0x1dcfbc;}}async[a44_0x45f3f1(0x152)](){const _0xb8ac48=a44_0x45f3f1;try{if(!this[_0xb8ac48(0x154)]['tokenIsValide']())throw new Error(_0xb8ac48(0x13e));const _0x4b568e=await this[_0xb8ac48(0x154)][_0xb8ac48(0x151)][_0xb8ac48(0x13b)](_0xb8ac48(0x144),{});for(let _0x362783=0x0;_0x362783<_0x4b568e[_0xb8ac48(0x134)];_0x362783++){const _0x186945=new Reception(this[_0xb8ac48(0x154)],_0x4b568e[_0x362783]);this[_0xb8ac48(0x136)]['set'](_0x186945['id'],_0x186945);}return this['owl'][_0xb8ac48(0x151)][_0xb8ac48(0x13d)](_0xb8ac48(0x139),this[_0xb8ac48(0x136)][_0xb8ac48(0x13c)]()),this['cache']['values']();}catch(_0x446758){this[_0xb8ac48(0x154)][_0xb8ac48(0x151)][_0xb8ac48(0x13d)](_0xb8ac48(0x140),{'error':_0x446758});throw _0x446758;}}async[a44_0x45f3f1(0x135)](_0x42b203){const _0x3dbd74=a44_0x45f3f1;try{if(!this[_0x3dbd74(0x154)]['tokenIsValide']())throw new Error(_0x3dbd74(0x13e));const _0x3f3230=await this[_0x3dbd74(0x154)][_0x3dbd74(0x151)][_0x3dbd74(0x13b)](_0x3dbd74(0x14f),_0x42b203);for(let _0x2f7462=0x0;_0x2f7462<_0x3f3230[_0x3dbd74(0x134)];_0x2f7462++){const _0x5e7c70=new Reception(this['owl'],_0x3f3230[_0x2f7462]);this[_0x3dbd74(0x136)][_0x3dbd74(0x13a)](_0x5e7c70['id'],_0x5e7c70);}return this[_0x3dbd74(0x154)][_0x3dbd74(0x151)]['emit'](_0x3dbd74(0x138),_0x3f3230),_0x3f3230;}catch(_0x5e7831){this[_0x3dbd74(0x154)][_0x3dbd74(0x151)][_0x3dbd74(0x13d)](_0x3dbd74(0x140),{'error':_0x5e7831});throw _0x5e7831;}}async['new'](_0x157fbb){const _0x38dac5=a44_0x45f3f1;try{if(!this[_0x38dac5(0x154)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x402810=await this[_0x38dac5(0x154)][_0x38dac5(0x151)][_0x38dac5(0x13b)](_0x38dac5(0x14e),{'reception':_0x157fbb});_0x157fbb['id']=_0x402810;const _0x581002=new Reception(this['owl'],_0x157fbb);return this['cache'][_0x38dac5(0x13a)](_0x581002['id'],_0x581002),_0x581002;}catch(_0x38c60a){this['owl']['events'][_0x38dac5(0x13d)]('reception.error',{'error':_0x38c60a});throw _0x38c60a;}}async[a44_0x45f3f1(0x143)](_0x59a402,_0xf38bc0){const _0x8e1b0b=a44_0x45f3f1;try{if(!this[_0x8e1b0b(0x154)][_0x8e1b0b(0x141)]())throw new Error(_0x8e1b0b(0x13e));await this[_0x8e1b0b(0x154)][_0x8e1b0b(0x151)][_0x8e1b0b(0x13b)](_0x8e1b0b(0x137),_0xf38bc0)[_0x8e1b0b(0x148)](_0x1381fa=>{const _0x17024d=_0x8e1b0b;this[_0x17024d(0x136)][_0x17024d(0x13a)](_0x59a402,_0x1381fa);});}catch(_0x2fbb30){this['owl'][_0x8e1b0b(0x151)][_0x8e1b0b(0x13d)](_0x8e1b0b(0x140),{'error':_0x2fbb30});throw _0x2fbb30;}}async['delete'](_0x282218){const _0x1bec88=a44_0x45f3f1;try{if(!this[_0x1bec88(0x154)][_0x1bec88(0x141)]())throw new Error(_0x1bec88(0x13e));await this[_0x1bec88(0x154)][_0x1bec88(0x151)][_0x1bec88(0x13d)](_0x1bec88(0x14c),{'id':_0x282218}),this[_0x1bec88(0x136)][_0x1bec88(0x153)](_0x282218);}catch(_0x40e8d1){this[_0x1bec88(0x154)][_0x1bec88(0x151)][_0x1bec88(0x13d)](_0x1bec88(0x140),{'error':_0x40e8d1});throw _0x40e8d1;}}}
1
+ function a44_0x59a4(){const _0x24dcbd=['has','cache','1794198IWyBth','reception.deleted','set','1851230gMcPGA','000001:\x20Invalid\x20Token.','request','modify','3KycMRu','reception.read.all','emit','894NayGbW','45siFGwt','1752964IQgwcX','reception.cached','reception.cached.all','reception.created','760524DVCJXB','events','owl','reception.cached.some','reception.error','get','tokenIsValide','41489oHhPMS','length','6135304RVuVxp','3425350huYcTp','some','delete','values'];a44_0x59a4=function(){return _0x24dcbd;};return a44_0x59a4();}function a44_0x3dfa(_0x39f08e,_0x4d3f57){_0x39f08e=_0x39f08e-0x10d;const _0x59a4c3=a44_0x59a4();let _0x3dfa28=_0x59a4c3[_0x39f08e];return _0x3dfa28;}const a44_0x345cb3=a44_0x3dfa;(function(_0xb1879d,_0x597b72){const _0x187da4=a44_0x3dfa,_0x5347ec=_0xb1879d();while(!![]){try{const _0x2ffabd=-parseInt(_0x187da4(0x118))/0x1+parseInt(_0x187da4(0x128))/0x2*(parseInt(_0x187da4(0x10f))/0x3)+parseInt(_0x187da4(0x114))/0x4+-parseInt(_0x187da4(0x122))/0x5+-parseInt(_0x187da4(0x112))/0x6*(-parseInt(_0x187da4(0x11f))/0x7)+parseInt(_0x187da4(0x121))/0x8+-parseInt(_0x187da4(0x113))/0x9*(parseInt(_0x187da4(0x12b))/0xa);if(_0x2ffabd===_0x597b72)break;else _0x5347ec['push'](_0x5347ec['shift']());}catch(_0x18472f){_0x5347ec['push'](_0x5347ec['shift']());}}}(a44_0x59a4,0x95f17));import{Manager}from'../core/Manager.js';import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async['fetch'](_0x3d04b7){const _0x3a7ac8=a44_0x3dfa;try{if(!this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x11e)]())throw new Error(_0x3a7ac8(0x12c));if(this[_0x3a7ac8(0x127)][_0x3a7ac8(0x126)](_0x3d04b7))return this[_0x3a7ac8(0x127)][_0x3a7ac8(0x11d)](_0x3d04b7);const _0x134cd4=await this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x119)][_0x3a7ac8(0x10d)]('reception.read',{'id':_0x3d04b7}),_0x50bfd5=new Reception(this[_0x3a7ac8(0x11a)],_0x134cd4);return this[_0x3a7ac8(0x127)][_0x3a7ac8(0x12a)](_0x3d04b7,_0x50bfd5),this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x119)][_0x3a7ac8(0x111)](_0x3a7ac8(0x115),_0x50bfd5),_0x50bfd5;}catch(_0x50711d){this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x119)][_0x3a7ac8(0x111)](_0x3a7ac8(0x11c),{'error':_0x50711d});throw _0x50711d;}}async['fetchAll'](){const _0xeb5da3=a44_0x3dfa;try{if(!this[_0xeb5da3(0x11a)][_0xeb5da3(0x11e)]())throw new Error(_0xeb5da3(0x12c));const _0x1700a5=await this['owl'][_0xeb5da3(0x119)][_0xeb5da3(0x10d)](_0xeb5da3(0x110),{});for(let _0x31127c=0x0;_0x31127c<_0x1700a5[_0xeb5da3(0x120)];_0x31127c++){const _0x5abadb=new Reception(this[_0xeb5da3(0x11a)],_0x1700a5[_0x31127c]);this['cache'][_0xeb5da3(0x12a)](_0x5abadb['id'],_0x5abadb);}return this[_0xeb5da3(0x11a)][_0xeb5da3(0x119)][_0xeb5da3(0x111)](_0xeb5da3(0x116),this['cache'][_0xeb5da3(0x125)]()),this[_0xeb5da3(0x127)][_0xeb5da3(0x125)]();}catch(_0x50ab0d){this[_0xeb5da3(0x11a)][_0xeb5da3(0x119)][_0xeb5da3(0x111)]('reception.error',{'error':_0x50ab0d});throw _0x50ab0d;}}async[a44_0x345cb3(0x123)](_0x2f2165){const _0x28b30c=a44_0x345cb3;try{if(!this['owl'][_0x28b30c(0x11e)]())throw new Error(_0x28b30c(0x12c));const _0x2c470b=await this[_0x28b30c(0x11a)][_0x28b30c(0x119)][_0x28b30c(0x10d)]('reception.read.some',_0x2f2165);for(let _0x588e59=0x0;_0x588e59<_0x2c470b['length'];_0x588e59++){const _0x113bec=new Reception(this[_0x28b30c(0x11a)],_0x2c470b[_0x588e59]);this[_0x28b30c(0x127)]['set'](_0x113bec['id'],_0x113bec);}return this[_0x28b30c(0x11a)][_0x28b30c(0x119)]['emit'](_0x28b30c(0x11b),_0x2c470b),_0x2c470b;}catch(_0x39d616){this['owl'][_0x28b30c(0x119)][_0x28b30c(0x111)](_0x28b30c(0x11c),{'error':_0x39d616});throw _0x39d616;}}async['new'](_0x4867d2){const _0x4394fe=a44_0x345cb3;try{if(!this[_0x4394fe(0x11a)]['tokenIsValide']())throw new Error(_0x4394fe(0x12c));const _0x24e6cc=await this['owl'][_0x4394fe(0x119)]['request'](_0x4394fe(0x117),{'reception':_0x4867d2});_0x4867d2['id']=_0x24e6cc;const _0x16c854=new Reception(this['owl'],_0x4867d2);return this[_0x4394fe(0x127)][_0x4394fe(0x12a)](_0x16c854['id'],_0x16c854),_0x16c854;}catch(_0x52eba5){this[_0x4394fe(0x11a)][_0x4394fe(0x119)][_0x4394fe(0x111)](_0x4394fe(0x11c),{'error':_0x52eba5});throw _0x52eba5;}}async[a44_0x345cb3(0x10e)](_0x23c1d4,_0x201504){const _0x1c1d2a=a44_0x345cb3;try{if(!this[_0x1c1d2a(0x11a)][_0x1c1d2a(0x11e)]())throw new Error(_0x1c1d2a(0x12c));await this[_0x1c1d2a(0x11a)][_0x1c1d2a(0x119)][_0x1c1d2a(0x10d)]('reception.updated',_0x201504)['then'](_0x501b5b=>{const _0x41a994=_0x1c1d2a;this[_0x41a994(0x127)][_0x41a994(0x12a)](_0x23c1d4,_0x501b5b);});}catch(_0x201f3b){this[_0x1c1d2a(0x11a)][_0x1c1d2a(0x119)]['emit'](_0x1c1d2a(0x11c),{'error':_0x201f3b});throw _0x201f3b;}}async[a44_0x345cb3(0x124)](_0x51109f){const _0x2fedd7=a44_0x345cb3;try{if(!this['owl'][_0x2fedd7(0x11e)]())throw new Error(_0x2fedd7(0x12c));await this[_0x2fedd7(0x11a)][_0x2fedd7(0x119)][_0x2fedd7(0x111)](_0x2fedd7(0x129),{'id':_0x51109f}),this['cache'][_0x2fedd7(0x124)](_0x51109f);}catch(_0x21bb2f){this[_0x2fedd7(0x11a)][_0x2fedd7(0x119)][_0x2fedd7(0x111)](_0x2fedd7(0x11c),{'error':_0x21bb2f});throw _0x21bb2f;}}}
@@ -1 +1 @@
1
- const a45_0x560fba=a45_0x311a;function a45_0x311a(_0x1e7542,_0x39c872){_0x1e7542=_0x1e7542-0x1c2;const _0x18ec51=a45_0x18ec();let _0x311a68=_0x18ec51[_0x1e7542];return _0x311a68;}(function(_0x26bec1,_0x232d5c){const _0x12d431=a45_0x311a,_0x19642d=_0x26bec1();while(!![]){try{const _0x2056fd=-parseInt(_0x12d431(0x1df))/0x1+-parseInt(_0x12d431(0x1cc))/0x2+parseInt(_0x12d431(0x1cb))/0x3+parseInt(_0x12d431(0x1ce))/0x4+-parseInt(_0x12d431(0x1d7))/0x5*(parseInt(_0x12d431(0x1d4))/0x6)+-parseInt(_0x12d431(0x1d3))/0x7*(-parseInt(_0x12d431(0x1d0))/0x8)+parseInt(_0x12d431(0x1e0))/0x9;if(_0x2056fd===_0x232d5c)break;else _0x19642d['push'](_0x19642d['shift']());}catch(_0x5c6c85){_0x19642d['push'](_0x19642d['shift']());}}}(a45_0x18ec,0xa9b41));import{Manager}from'../core/Manager.js';import{Stock}from'../entities/Stock.js';export class StockManager extends Manager{async[a45_0x560fba(0x1da)](_0x18594b){const _0x22ca07=a45_0x560fba;try{if(!this[_0x22ca07(0x1ca)][_0x22ca07(0x1c7)]())throw new Error(_0x22ca07(0x1e1));if(this['cache'][_0x22ca07(0x1db)](_0x18594b))return this[_0x22ca07(0x1dd)][_0x22ca07(0x1de)](_0x18594b);const _0x89c096=await this[_0x22ca07(0x1ca)]['events'][_0x22ca07(0x1c3)](_0x22ca07(0x1d9),{'id':_0x18594b}),_0x1b74c2=new Stock(this[_0x22ca07(0x1ca)],_0x89c096);return this[_0x22ca07(0x1dd)][_0x22ca07(0x1e2)](_0x18594b,_0x1b74c2),this['owl'][_0x22ca07(0x1d8)]['emit']('stock.cached',_0x1b74c2),_0x1b74c2;}catch(_0x2d72cf){this[_0x22ca07(0x1ca)][_0x22ca07(0x1d8)][_0x22ca07(0x1cf)](_0x22ca07(0x1c8),{'error':_0x2d72cf});throw _0x2d72cf;}}async['fetchAll'](){const _0x2e2d11=a45_0x560fba;try{if(!this[_0x2e2d11(0x1ca)]['tokenIsValide']())throw new Error(_0x2e2d11(0x1e1));const _0x104a6d=await this[_0x2e2d11(0x1ca)][_0x2e2d11(0x1d8)][_0x2e2d11(0x1c3)](_0x2e2d11(0x1d6),{});for(let _0x15f3d9=0x0;_0x15f3d9<_0x104a6d[_0x2e2d11(0x1d5)];_0x15f3d9++){const _0x377eab=new Stock(this['owl'],_0x104a6d[_0x15f3d9]);this['cache'][_0x2e2d11(0x1e2)](_0x377eab['id'],_0x377eab);}return this[_0x2e2d11(0x1ca)][_0x2e2d11(0x1d8)][_0x2e2d11(0x1cf)]('stock.cached.all',this[_0x2e2d11(0x1dd)][_0x2e2d11(0x1dc)]()),this[_0x2e2d11(0x1dd)]['values']();}catch(_0x48178d){this[_0x2e2d11(0x1ca)][_0x2e2d11(0x1d8)]['emit'](_0x2e2d11(0x1c8),{'error':_0x48178d});throw _0x48178d;}}async['some'](_0x5f5a51){const _0x5d3dd4=a45_0x560fba;try{if(!this[_0x5d3dd4(0x1ca)][_0x5d3dd4(0x1c7)]())throw new Error(_0x5d3dd4(0x1e1));const _0x4155e3=await this[_0x5d3dd4(0x1ca)][_0x5d3dd4(0x1d8)][_0x5d3dd4(0x1c3)](_0x5d3dd4(0x1d1),_0x5f5a51);for(let _0x37c08f=0x0;_0x37c08f<_0x4155e3[_0x5d3dd4(0x1d5)];_0x37c08f++){const _0x1b9f52=new Stock(this[_0x5d3dd4(0x1ca)],_0x4155e3[_0x37c08f]);this['cache'][_0x5d3dd4(0x1e2)](_0x1b9f52['id'],_0x1b9f52);}return this[_0x5d3dd4(0x1ca)][_0x5d3dd4(0x1d8)]['emit'](_0x5d3dd4(0x1c2),_0x4155e3),_0x4155e3;}catch(_0x28d350){this['owl'][_0x5d3dd4(0x1d8)][_0x5d3dd4(0x1cf)](_0x5d3dd4(0x1c8),{'error':_0x28d350});throw _0x28d350;}}async[a45_0x560fba(0x1d2)](_0x5e929c){const _0x346dc1=a45_0x560fba;try{if(!this[_0x346dc1(0x1ca)][_0x346dc1(0x1c7)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4c9ae1=await this[_0x346dc1(0x1ca)][_0x346dc1(0x1d8)][_0x346dc1(0x1c3)](_0x346dc1(0x1cd),{'stock':_0x5e929c});_0x5e929c['id']=_0x4c9ae1;const _0x2329fd=new Stock(this['owl'],_0x5e929c);return this[_0x346dc1(0x1dd)][_0x346dc1(0x1e2)](_0x2329fd['id'],_0x2329fd),_0x2329fd;}catch(_0x21a0ad){this[_0x346dc1(0x1ca)][_0x346dc1(0x1d8)]['emit']('stock.error',{'error':_0x21a0ad});throw _0x21a0ad;}}async[a45_0x560fba(0x1c4)](_0x17305b,_0x4d985e){const _0x475aae=a45_0x560fba;try{if(!this[_0x475aae(0x1ca)][_0x475aae(0x1c7)]())throw new Error(_0x475aae(0x1e1));await this[_0x475aae(0x1ca)]['events'][_0x475aae(0x1c3)](_0x475aae(0x1c6),_0x4d985e)[_0x475aae(0x1c9)](_0x54d2f9=>{const _0x24761f=_0x475aae;this[_0x24761f(0x1dd)][_0x24761f(0x1e2)](_0x17305b,_0x54d2f9);});}catch(_0x362402){this[_0x475aae(0x1ca)][_0x475aae(0x1d8)][_0x475aae(0x1cf)](_0x475aae(0x1c8),{'error':_0x362402});throw _0x362402;}}async[a45_0x560fba(0x1c5)](_0x26917c){const _0x9ab95a=a45_0x560fba;try{if(!this[_0x9ab95a(0x1ca)][_0x9ab95a(0x1c7)]())throw new Error(_0x9ab95a(0x1e1));await this[_0x9ab95a(0x1ca)][_0x9ab95a(0x1d8)][_0x9ab95a(0x1cf)]('stock.deleted',{'id':_0x26917c}),this[_0x9ab95a(0x1dd)][_0x9ab95a(0x1c5)](_0x26917c);}catch(_0x1a59a0){this[_0x9ab95a(0x1ca)][_0x9ab95a(0x1d8)][_0x9ab95a(0x1cf)](_0x9ab95a(0x1c8),{'error':_0x1a59a0});throw _0x1a59a0;}}}function a45_0x18ec(){const _0x376f47=['632441yOZMhX','15845877dPVZrx','000001:\x20Invalid\x20Token.','set','stock.cached.some','request','modify','delete','stock.updated','tokenIsValide','stock.error','then','owl','101580prnsBL','2531434bFuMiu','stock.created','5026600RkAtBd','emit','8ALRtvW','stock.read.some','new','1234877luQSZS','162FszaKX','length','stock.read.all','117465taMTVJ','events','stock.read','fetch','has','values','cache','get'];a45_0x18ec=function(){return _0x376f47;};return a45_0x18ec();}
1
+ function a45_0x1fec(){const _0x46114a=['set','owl','322yOSjGI','then','length','tokenIsValide','750205GDTZDZ','delete','2088736JAQcNJ','127112bLhBCC','000001:\x20Invalid\x20Token.','33667335DFQeGI','2185026erQTzd','fetch','emit','new','fetchAll','stock.read.some','events','8318550NYzWmx','request','stock.created','modify','cache','stock.cached.all','stock.cached.some','782267SwbQwp','12YOlspD','stock.error','stock.updated','stock.cached'];a45_0x1fec=function(){return _0x46114a;};return a45_0x1fec();}const a45_0x2296bd=a45_0x4219;(function(_0x1e1ee4,_0x5d42b9){const _0x535427=a45_0x4219,_0x51c938=_0x1e1ee4();while(!![]){try{const _0x2fb2ab=-parseInt(_0x535427(0x1c4))/0x1+parseInt(_0x535427(0x1b2))/0x2+-parseInt(_0x535427(0x1b6))/0x3+-parseInt(_0x535427(0x1c5))/0x4*(parseInt(_0x535427(0x1cf))/0x5)+-parseInt(_0x535427(0x1bd))/0x6+-parseInt(_0x535427(0x1cb))/0x7*(parseInt(_0x535427(0x1b3))/0x8)+parseInt(_0x535427(0x1b5))/0x9;if(_0x2fb2ab===_0x5d42b9)break;else _0x51c938['push'](_0x51c938['shift']());}catch(_0x24a34e){_0x51c938['push'](_0x51c938['shift']());}}}(a45_0x1fec,0xaca3c));import{Manager}from'../core/Manager.js';import{Stock}from'../entities/Stock.js';function a45_0x4219(_0x332634,_0x8d2582){_0x332634=_0x332634-0x1b2;const _0x1fec39=a45_0x1fec();let _0x421926=_0x1fec39[_0x332634];return _0x421926;}export class StockManager extends Manager{async[a45_0x2296bd(0x1b7)](_0xd46994){const _0x5ad529=a45_0x2296bd;try{if(!this[_0x5ad529(0x1ca)][_0x5ad529(0x1ce)]())throw new Error(_0x5ad529(0x1b4));if(this[_0x5ad529(0x1c1)]['has'](_0xd46994))return this['cache']['get'](_0xd46994);const _0x949072=await this[_0x5ad529(0x1ca)][_0x5ad529(0x1bc)][_0x5ad529(0x1be)]('stock.read',{'id':_0xd46994}),_0x1fb5a3=new Stock(this[_0x5ad529(0x1ca)],_0x949072);return this[_0x5ad529(0x1c1)][_0x5ad529(0x1c9)](_0xd46994,_0x1fb5a3),this[_0x5ad529(0x1ca)]['events'][_0x5ad529(0x1b8)](_0x5ad529(0x1c8),_0x1fb5a3),_0x1fb5a3;}catch(_0x1a3b24){this[_0x5ad529(0x1ca)][_0x5ad529(0x1bc)][_0x5ad529(0x1b8)]('stock.error',{'error':_0x1a3b24});throw _0x1a3b24;}}async[a45_0x2296bd(0x1ba)](){const _0x9db36f=a45_0x2296bd;try{if(!this[_0x9db36f(0x1ca)][_0x9db36f(0x1ce)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4402c2=await this[_0x9db36f(0x1ca)][_0x9db36f(0x1bc)][_0x9db36f(0x1be)]('stock.read.all',{});for(let _0x5337f0=0x0;_0x5337f0<_0x4402c2[_0x9db36f(0x1cd)];_0x5337f0++){const _0x60fc9d=new Stock(this[_0x9db36f(0x1ca)],_0x4402c2[_0x5337f0]);this[_0x9db36f(0x1c1)]['set'](_0x60fc9d['id'],_0x60fc9d);}return this[_0x9db36f(0x1ca)][_0x9db36f(0x1bc)][_0x9db36f(0x1b8)](_0x9db36f(0x1c2),this[_0x9db36f(0x1c1)]['values']()),this[_0x9db36f(0x1c1)]['values']();}catch(_0x205d4b){this[_0x9db36f(0x1ca)][_0x9db36f(0x1bc)][_0x9db36f(0x1b8)](_0x9db36f(0x1c6),{'error':_0x205d4b});throw _0x205d4b;}}async['some'](_0x763e25){const _0x590a7d=a45_0x2296bd;try{if(!this[_0x590a7d(0x1ca)][_0x590a7d(0x1ce)]())throw new Error(_0x590a7d(0x1b4));const _0x333a90=await this[_0x590a7d(0x1ca)]['events'][_0x590a7d(0x1be)](_0x590a7d(0x1bb),_0x763e25);for(let _0x408113=0x0;_0x408113<_0x333a90[_0x590a7d(0x1cd)];_0x408113++){const _0xed791f=new Stock(this[_0x590a7d(0x1ca)],_0x333a90[_0x408113]);this[_0x590a7d(0x1c1)][_0x590a7d(0x1c9)](_0xed791f['id'],_0xed791f);}return this[_0x590a7d(0x1ca)][_0x590a7d(0x1bc)][_0x590a7d(0x1b8)](_0x590a7d(0x1c3),_0x333a90),_0x333a90;}catch(_0x20dcd8){this[_0x590a7d(0x1ca)]['events'][_0x590a7d(0x1b8)](_0x590a7d(0x1c6),{'error':_0x20dcd8});throw _0x20dcd8;}}async[a45_0x2296bd(0x1b9)](_0x20c6b3){const _0x3ba065=a45_0x2296bd;try{if(!this[_0x3ba065(0x1ca)][_0x3ba065(0x1ce)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x598107=await this[_0x3ba065(0x1ca)][_0x3ba065(0x1bc)][_0x3ba065(0x1be)](_0x3ba065(0x1bf),{'stock':_0x20c6b3});_0x20c6b3['id']=_0x598107;const _0xe51daf=new Stock(this[_0x3ba065(0x1ca)],_0x20c6b3);return this[_0x3ba065(0x1c1)]['set'](_0xe51daf['id'],_0xe51daf),_0xe51daf;}catch(_0x4dcc2e){this[_0x3ba065(0x1ca)]['events']['emit']('stock.error',{'error':_0x4dcc2e});throw _0x4dcc2e;}}async[a45_0x2296bd(0x1c0)](_0x250ae8,_0x228117){const _0x4455ab=a45_0x2296bd;try{if(!this[_0x4455ab(0x1ca)][_0x4455ab(0x1ce)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4455ab(0x1ca)][_0x4455ab(0x1bc)][_0x4455ab(0x1be)](_0x4455ab(0x1c7),_0x228117)[_0x4455ab(0x1cc)](_0x17a468=>{const _0x24606f=_0x4455ab;this[_0x24606f(0x1c1)]['set'](_0x250ae8,_0x17a468);});}catch(_0x5ef43a){this[_0x4455ab(0x1ca)][_0x4455ab(0x1bc)]['emit']('stock.error',{'error':_0x5ef43a});throw _0x5ef43a;}}async[a45_0x2296bd(0x1d0)](_0x455345){const _0x4d906c=a45_0x2296bd;try{if(!this['owl'][_0x4d906c(0x1ce)]())throw new Error(_0x4d906c(0x1b4));await this[_0x4d906c(0x1ca)][_0x4d906c(0x1bc)][_0x4d906c(0x1b8)]('stock.deleted',{'id':_0x455345}),this[_0x4d906c(0x1c1)]['delete'](_0x455345);}catch(_0xeb2374){this['owl'][_0x4d906c(0x1bc)][_0x4d906c(0x1b8)]('stock.error',{'error':_0xeb2374});throw _0xeb2374;}}}
@@ -1 +1 @@
1
- const a46_0x2b5218=a46_0x4390;function a46_0x2eaf(){const _0x40ee6e=['fetch','supplier.cached','supplier.error','fetchAll','56QDHloi','get','tokenIsValide','supplier.cached.all','7276kCOXTN','56849fFqqIF','new','28RXQpSo','supplier.read','set','events','request','537468TYHRkU','2846492KFrPqr','supplier.created','has','supplier.read.all','3438864loKxrK','24eTixGD','then','474nmvnjF','supplier.updated','delete','supplier.deleted','cache','000001:\x20Invalid\x20Token.','length','9TwZyua','owl','emit','1909470pTyDti','modify','3576975BStCCc'];a46_0x2eaf=function(){return _0x40ee6e;};return a46_0x2eaf();}function a46_0x4390(_0x48923b,_0x528e76){_0x48923b=_0x48923b-0x144;const _0x2eafb1=a46_0x2eaf();let _0x4390c3=_0x2eafb1[_0x48923b];return _0x4390c3;}(function(_0x2216b4,_0x4ca34b){const _0x5de9da=a46_0x4390,_0x46d1ea=_0x2216b4();while(!![]){try{const _0x16c98d=parseInt(_0x5de9da(0x14d))/0x1*(parseInt(_0x5de9da(0x14f))/0x2)+parseInt(_0x5de9da(0x15c))/0x3*(-parseInt(_0x5de9da(0x14c))/0x4)+-parseInt(_0x5de9da(0x168))/0x5+-parseInt(_0x5de9da(0x154))/0x6*(-parseInt(_0x5de9da(0x148))/0x7)+-parseInt(_0x5de9da(0x159))/0x8+-parseInt(_0x5de9da(0x163))/0x9*(parseInt(_0x5de9da(0x166))/0xa)+-parseInt(_0x5de9da(0x155))/0xb*(-parseInt(_0x5de9da(0x15a))/0xc);if(_0x16c98d===_0x4ca34b)break;else _0x46d1ea['push'](_0x46d1ea['shift']());}catch(_0x2b22e5){_0x46d1ea['push'](_0x46d1ea['shift']());}}}(a46_0x2eaf,0x633b4));import{Manager}from'../core/Manager.js';import{Supplier}from'../entities/Supplier.js';export class SupplierManager extends Manager{async[a46_0x2b5218(0x144)](_0x28a3eb){const _0x4c92ec=a46_0x2b5218;try{if(!this[_0x4c92ec(0x164)][_0x4c92ec(0x14a)]())throw new Error(_0x4c92ec(0x161));if(this[_0x4c92ec(0x160)][_0x4c92ec(0x157)](_0x28a3eb))return this[_0x4c92ec(0x160)][_0x4c92ec(0x149)](_0x28a3eb);const _0x225621=await this[_0x4c92ec(0x164)][_0x4c92ec(0x152)][_0x4c92ec(0x153)](_0x4c92ec(0x150),{'id':_0x28a3eb}),_0xcbb2f1=new Supplier(this['owl'],_0x225621);return this[_0x4c92ec(0x160)][_0x4c92ec(0x151)](_0x28a3eb,_0xcbb2f1),this[_0x4c92ec(0x164)][_0x4c92ec(0x152)][_0x4c92ec(0x165)](_0x4c92ec(0x145),_0xcbb2f1),_0xcbb2f1;}catch(_0x5d481e){this['owl'][_0x4c92ec(0x152)][_0x4c92ec(0x165)](_0x4c92ec(0x146),{'error':_0x5d481e});throw _0x5d481e;}}async[a46_0x2b5218(0x147)](){const _0x11c5d6=a46_0x2b5218;try{if(!this[_0x11c5d6(0x164)][_0x11c5d6(0x14a)]())throw new Error(_0x11c5d6(0x161));const _0x103ab0=await this[_0x11c5d6(0x164)][_0x11c5d6(0x152)]['request'](_0x11c5d6(0x158),{});for(let _0x5f1304=0x0;_0x5f1304<_0x103ab0['length'];_0x5f1304++){const _0xd028cc=new Supplier(this[_0x11c5d6(0x164)],_0x103ab0[_0x5f1304]);this['cache'][_0x11c5d6(0x151)](_0xd028cc['id'],_0xd028cc);}return this[_0x11c5d6(0x164)]['events'][_0x11c5d6(0x165)](_0x11c5d6(0x14b),this['cache']['values']()),this['cache']['values']();}catch(_0x5a068a){this[_0x11c5d6(0x164)]['events'][_0x11c5d6(0x165)](_0x11c5d6(0x146),{'error':_0x5a068a});throw _0x5a068a;}}async['some'](_0x46bd9a){const _0x4ddd31=a46_0x2b5218;try{if(!this['owl'][_0x4ddd31(0x14a)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x3d7c31=await this[_0x4ddd31(0x164)][_0x4ddd31(0x152)][_0x4ddd31(0x153)]('supplier.read.some',_0x46bd9a);for(let _0x50926c=0x0;_0x50926c<_0x3d7c31[_0x4ddd31(0x162)];_0x50926c++){const _0x5816b9=new Supplier(this[_0x4ddd31(0x164)],_0x3d7c31[_0x50926c]);this[_0x4ddd31(0x160)]['set'](_0x5816b9['id'],_0x5816b9);}return this[_0x4ddd31(0x164)][_0x4ddd31(0x152)][_0x4ddd31(0x165)]('supplier.cached.some',_0x3d7c31),_0x3d7c31;}catch(_0x26341e){this[_0x4ddd31(0x164)]['events'][_0x4ddd31(0x165)]('supplier.error',{'error':_0x26341e});throw _0x26341e;}}async[a46_0x2b5218(0x14e)](_0x5c6752){const _0x1326dd=a46_0x2b5218;try{if(!this['owl'][_0x1326dd(0x14a)]())throw new Error(_0x1326dd(0x161));const _0x451fbe=await this[_0x1326dd(0x164)][_0x1326dd(0x152)]['request'](_0x1326dd(0x156),{'supplier':_0x5c6752});_0x5c6752['id']=_0x451fbe;const _0x103a59=new Supplier(this[_0x1326dd(0x164)],_0x5c6752);return this['cache'][_0x1326dd(0x151)](_0x103a59['id'],_0x103a59),_0x103a59;}catch(_0x2ab780){this[_0x1326dd(0x164)][_0x1326dd(0x152)][_0x1326dd(0x165)](_0x1326dd(0x146),{'error':_0x2ab780});throw _0x2ab780;}}async[a46_0x2b5218(0x167)](_0x5707b5,_0x425c81){const _0x54c4c4=a46_0x2b5218;try{if(!this['owl'][_0x54c4c4(0x14a)]())throw new Error(_0x54c4c4(0x161));await this[_0x54c4c4(0x164)][_0x54c4c4(0x152)][_0x54c4c4(0x153)](_0x54c4c4(0x15d),_0x425c81)[_0x54c4c4(0x15b)](_0x1bb29a=>{const _0x11a2ee=_0x54c4c4;this['cache'][_0x11a2ee(0x151)](_0x5707b5,_0x1bb29a);});}catch(_0x3a6287){this['owl'][_0x54c4c4(0x152)]['emit'](_0x54c4c4(0x146),{'error':_0x3a6287});throw _0x3a6287;}}async[a46_0x2b5218(0x15e)](_0x2533b5){const _0x91a8bc=a46_0x2b5218;try{if(!this[_0x91a8bc(0x164)][_0x91a8bc(0x14a)]())throw new Error(_0x91a8bc(0x161));await this[_0x91a8bc(0x164)][_0x91a8bc(0x152)][_0x91a8bc(0x165)](_0x91a8bc(0x15f),{'id':_0x2533b5}),this['cache'][_0x91a8bc(0x15e)](_0x2533b5);}catch(_0x41bc78){this['owl']['events'][_0x91a8bc(0x165)]('supplier.error',{'error':_0x41bc78});throw _0x41bc78;}}}
1
+ const a46_0x51cb88=a46_0x11eb;function a46_0x3798(){const _0x481597=['then','values','000001:\x20Invalid\x20Token.','127835DfxLZb','944OWyuEn','supplier.read','588oCjfXH','get','20BiXwCx','supplier.cached.all','2578774gzeBlD','463011USUesx','owl','12DwJSpG','tokenIsValide','344016aBvzIY','supplier.read.all','new','219605hwAldT','set','cache','delete','events','supplier.created','supplier.cached.some','supplier.error','modify','1238448hbhfMS','emit','request','2WzlcEX'];a46_0x3798=function(){return _0x481597;};return a46_0x3798();}(function(_0x49ee01,_0x53bbdc){const _0x12ebf3=a46_0x11eb,_0x42c6c5=_0x49ee01();while(!![]){try{const _0x5c7780=-parseInt(_0x12ebf3(0x1e3))/0x1*(parseInt(_0x12ebf3(0x1ef))/0x2)+-parseInt(_0x12ebf3(0x1fb))/0x3+-parseInt(_0x12ebf3(0x1de))/0x4*(parseInt(_0x12ebf3(0x1f3))/0x5)+parseInt(_0x12ebf3(0x1ec))/0x6+-parseInt(_0x12ebf3(0x1f6))/0x7*(-parseInt(_0x12ebf3(0x1f4))/0x8)+parseInt(_0x12ebf3(0x1e0))/0x9+-parseInt(_0x12ebf3(0x1f8))/0xa*(-parseInt(_0x12ebf3(0x1fa))/0xb);if(_0x5c7780===_0x53bbdc)break;else _0x42c6c5['push'](_0x42c6c5['shift']());}catch(_0x4c0695){_0x42c6c5['push'](_0x42c6c5['shift']());}}}(a46_0x3798,0x42981));function a46_0x11eb(_0x4a10ca,_0x49a400){_0x4a10ca=_0x4a10ca-0x1de;const _0x3798dc=a46_0x3798();let _0x11eb6=_0x3798dc[_0x4a10ca];return _0x11eb6;}import{Manager}from'../core/Manager.js';import{Supplier}from'../entities/Supplier.js';export class SupplierManager extends Manager{async['fetch'](_0x71bf27){const _0x3aa3e8=a46_0x11eb;try{if(!this[_0x3aa3e8(0x1fc)][_0x3aa3e8(0x1df)]())throw new Error(_0x3aa3e8(0x1f2));if(this[_0x3aa3e8(0x1e5)]['has'](_0x71bf27))return this[_0x3aa3e8(0x1e5)][_0x3aa3e8(0x1f7)](_0x71bf27);const _0x16e87f=await this[_0x3aa3e8(0x1fc)][_0x3aa3e8(0x1e7)]['request'](_0x3aa3e8(0x1f5),{'id':_0x71bf27}),_0x3c85a0=new Supplier(this['owl'],_0x16e87f);return this[_0x3aa3e8(0x1e5)][_0x3aa3e8(0x1e4)](_0x71bf27,_0x3c85a0),this[_0x3aa3e8(0x1fc)][_0x3aa3e8(0x1e7)][_0x3aa3e8(0x1ed)]('supplier.cached',_0x3c85a0),_0x3c85a0;}catch(_0x14c2d7){this[_0x3aa3e8(0x1fc)]['events'][_0x3aa3e8(0x1ed)](_0x3aa3e8(0x1ea),{'error':_0x14c2d7});throw _0x14c2d7;}}async['fetchAll'](){const _0x292346=a46_0x11eb;try{if(!this[_0x292346(0x1fc)]['tokenIsValide']())throw new Error(_0x292346(0x1f2));const _0x40cdec=await this[_0x292346(0x1fc)][_0x292346(0x1e7)]['request'](_0x292346(0x1e1),{});for(let _0x104c7c=0x0;_0x104c7c<_0x40cdec['length'];_0x104c7c++){const _0x7f8a28=new Supplier(this['owl'],_0x40cdec[_0x104c7c]);this['cache'][_0x292346(0x1e4)](_0x7f8a28['id'],_0x7f8a28);}return this['owl'][_0x292346(0x1e7)][_0x292346(0x1ed)](_0x292346(0x1f9),this[_0x292346(0x1e5)][_0x292346(0x1f1)]()),this[_0x292346(0x1e5)][_0x292346(0x1f1)]();}catch(_0x418a7d){this[_0x292346(0x1fc)][_0x292346(0x1e7)][_0x292346(0x1ed)](_0x292346(0x1ea),{'error':_0x418a7d});throw _0x418a7d;}}async['some'](_0x3f94e8){const _0x22eed4=a46_0x11eb;try{if(!this[_0x22eed4(0x1fc)][_0x22eed4(0x1df)]())throw new Error(_0x22eed4(0x1f2));const _0x1dc16b=await this[_0x22eed4(0x1fc)][_0x22eed4(0x1e7)][_0x22eed4(0x1ee)]('supplier.read.some',_0x3f94e8);for(let _0x29a4e3=0x0;_0x29a4e3<_0x1dc16b['length'];_0x29a4e3++){const _0x38c3b0=new Supplier(this[_0x22eed4(0x1fc)],_0x1dc16b[_0x29a4e3]);this[_0x22eed4(0x1e5)][_0x22eed4(0x1e4)](_0x38c3b0['id'],_0x38c3b0);}return this[_0x22eed4(0x1fc)][_0x22eed4(0x1e7)][_0x22eed4(0x1ed)](_0x22eed4(0x1e9),_0x1dc16b),_0x1dc16b;}catch(_0x35af26){this[_0x22eed4(0x1fc)]['events'][_0x22eed4(0x1ed)](_0x22eed4(0x1ea),{'error':_0x35af26});throw _0x35af26;}}async[a46_0x51cb88(0x1e2)](_0x9e2517){const _0x54f495=a46_0x51cb88;try{if(!this[_0x54f495(0x1fc)][_0x54f495(0x1df)]())throw new Error(_0x54f495(0x1f2));const _0x33382d=await this[_0x54f495(0x1fc)][_0x54f495(0x1e7)]['request'](_0x54f495(0x1e8),{'supplier':_0x9e2517});_0x9e2517['id']=_0x33382d;const _0x2426ee=new Supplier(this[_0x54f495(0x1fc)],_0x9e2517);return this[_0x54f495(0x1e5)][_0x54f495(0x1e4)](_0x2426ee['id'],_0x2426ee),_0x2426ee;}catch(_0x311b88){this[_0x54f495(0x1fc)][_0x54f495(0x1e7)]['emit'](_0x54f495(0x1ea),{'error':_0x311b88});throw _0x311b88;}}async[a46_0x51cb88(0x1eb)](_0x2f90fa,_0x7d4f93){const _0x388154=a46_0x51cb88;try{if(!this[_0x388154(0x1fc)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events']['request']('supplier.updated',_0x7d4f93)[_0x388154(0x1f0)](_0x433e9a=>{const _0x166639=_0x388154;this[_0x166639(0x1e5)][_0x166639(0x1e4)](_0x2f90fa,_0x433e9a);});}catch(_0xb6e2cd){this[_0x388154(0x1fc)][_0x388154(0x1e7)][_0x388154(0x1ed)](_0x388154(0x1ea),{'error':_0xb6e2cd});throw _0xb6e2cd;}}async['delete'](_0x1d01a9){const _0x271de3=a46_0x51cb88;try{if(!this[_0x271de3(0x1fc)][_0x271de3(0x1df)]())throw new Error(_0x271de3(0x1f2));await this['owl']['events']['emit']('supplier.deleted',{'id':_0x1d01a9}),this[_0x271de3(0x1e5)][_0x271de3(0x1e6)](_0x1d01a9);}catch(_0x384d34){this[_0x271de3(0x1fc)][_0x271de3(0x1e7)]['emit'](_0x271de3(0x1ea),{'error':_0x384d34});throw _0x384d34;}}}
@@ -1 +1 @@
1
- const a47_0x5c0e00=a47_0x47ff;function a47_0x50f0(){const _0x4610db=['767684hdWrFb','new','2222788llCgPN','emit','owl','values','tax.deleted','tax.cached.all','tax.error','tax.updated','events','set','get','1632970PWJcyT','fetch','delete','tokenIsValide','length','477164ZFRBuJ','3332118DETQyI','12tLtLhK','10850RbJLeJ','fetchAll','cache','tax.created','7983bdiFwf','000001:\x20Invalid\x20Token.','tax.read.some','request','14UOITCK','tax.read','tax.cached.some','some','2159896JdYFfN','tax.read.all'];a47_0x50f0=function(){return _0x4610db;};return a47_0x50f0();}(function(_0x40dc78,_0x25ea6e){const _0x131f5d=a47_0x47ff,_0x1973e7=_0x40dc78();while(!![]){try{const _0x4c89a4=parseInt(_0x131f5d(0x9d))/0x1+-parseInt(_0x131f5d(0x9f))/0x2+parseInt(_0x131f5d(0xb1))/0x3*(parseInt(_0x131f5d(0xaf))/0x4)+parseInt(_0x131f5d(0xaa))/0x5+parseInt(_0x131f5d(0xb0))/0x6+-parseInt(_0x131f5d(0x97))/0x7*(-parseInt(_0x131f5d(0x9b))/0x8)+parseInt(_0x131f5d(0xb6))/0x9*(-parseInt(_0x131f5d(0xb2))/0xa);if(_0x4c89a4===_0x25ea6e)break;else _0x1973e7['push'](_0x1973e7['shift']());}catch(_0x4d6763){_0x1973e7['push'](_0x1973e7['shift']());}}}(a47_0x50f0,0x90c54));import{Manager}from'../core/Manager.js';import{Tax}from'../entities/Tax.js';function a47_0x47ff(_0x4ddd38,_0x3914c7){_0x4ddd38=_0x4ddd38-0x94;const _0x50f0ce=a47_0x50f0();let _0x47ffff=_0x50f0ce[_0x4ddd38];return _0x47ffff;}export class TaxManager extends Manager{async[a47_0x5c0e00(0xab)](_0x5654cd){const _0x27b9fa=a47_0x5c0e00;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x27b9fa(0x94));if(this[_0x27b9fa(0xb4)]['has'](_0x5654cd))return this[_0x27b9fa(0xb4)][_0x27b9fa(0xa9)](_0x5654cd);const _0x3498d6=await this[_0x27b9fa(0xa1)][_0x27b9fa(0xa7)]['request'](_0x27b9fa(0x98),{'id':_0x5654cd}),_0x37234d=new Tax(this[_0x27b9fa(0xa1)],_0x3498d6);return this[_0x27b9fa(0xb4)][_0x27b9fa(0xa8)](_0x5654cd,_0x37234d),this[_0x27b9fa(0xa1)][_0x27b9fa(0xa7)][_0x27b9fa(0xa0)]('tax.cached',_0x37234d),_0x37234d;}catch(_0x21558f){this[_0x27b9fa(0xa1)][_0x27b9fa(0xa7)]['emit']('tax.error',{'error':_0x21558f});throw _0x21558f;}}async[a47_0x5c0e00(0xb3)](){const _0x506f9f=a47_0x5c0e00;try{if(!this[_0x506f9f(0xa1)][_0x506f9f(0xad)]())throw new Error(_0x506f9f(0x94));const _0x4ace20=await this['owl'][_0x506f9f(0xa7)][_0x506f9f(0x96)](_0x506f9f(0x9c),{});for(let _0x1f7204=0x0;_0x1f7204<_0x4ace20['length'];_0x1f7204++){const _0x550f21=new Tax(this[_0x506f9f(0xa1)],_0x4ace20[_0x1f7204]);this['cache'][_0x506f9f(0xa8)](_0x550f21['id'],_0x550f21);}return this[_0x506f9f(0xa1)]['events'][_0x506f9f(0xa0)](_0x506f9f(0xa4),this[_0x506f9f(0xb4)][_0x506f9f(0xa2)]()),this[_0x506f9f(0xb4)][_0x506f9f(0xa2)]();}catch(_0x112eb0){this[_0x506f9f(0xa1)][_0x506f9f(0xa7)][_0x506f9f(0xa0)](_0x506f9f(0xa5),{'error':_0x112eb0});throw _0x112eb0;}}async[a47_0x5c0e00(0x9a)](_0x44990c){const _0x42dbac=a47_0x5c0e00;try{if(!this[_0x42dbac(0xa1)][_0x42dbac(0xad)]())throw new Error(_0x42dbac(0x94));const _0x625384=await this[_0x42dbac(0xa1)]['events'][_0x42dbac(0x96)](_0x42dbac(0x95),_0x44990c);for(let _0x1b848b=0x0;_0x1b848b<_0x625384[_0x42dbac(0xae)];_0x1b848b++){const _0x4b775f=new Tax(this[_0x42dbac(0xa1)],_0x625384[_0x1b848b]);this[_0x42dbac(0xb4)][_0x42dbac(0xa8)](_0x4b775f['id'],_0x4b775f);}return this['owl']['events']['emit'](_0x42dbac(0x99),_0x625384),_0x625384;}catch(_0x260c3d){this['owl'][_0x42dbac(0xa7)][_0x42dbac(0xa0)](_0x42dbac(0xa5),{'error':_0x260c3d});throw _0x260c3d;}}async[a47_0x5c0e00(0x9e)](_0x2e245f){const _0x286ca2=a47_0x5c0e00;try{if(!this[_0x286ca2(0xa1)][_0x286ca2(0xad)]())throw new Error(_0x286ca2(0x94));const _0x3f822c=await this[_0x286ca2(0xa1)][_0x286ca2(0xa7)]['request'](_0x286ca2(0xb5),{'tax':_0x2e245f});_0x2e245f['id']=_0x3f822c;const _0x3f18d1=new Tax(this[_0x286ca2(0xa1)],_0x2e245f);return this[_0x286ca2(0xb4)][_0x286ca2(0xa8)](_0x3f18d1['id'],_0x3f18d1),_0x3f18d1;}catch(_0x45fadf){this[_0x286ca2(0xa1)][_0x286ca2(0xa7)][_0x286ca2(0xa0)](_0x286ca2(0xa5),{'error':_0x45fadf});throw _0x45fadf;}}async['modify'](_0x30038a,_0x146100){const _0x185577=a47_0x5c0e00;try{if(!this[_0x185577(0xa1)]['tokenIsValide']())throw new Error(_0x185577(0x94));await this['owl'][_0x185577(0xa7)][_0x185577(0x96)](_0x185577(0xa6),_0x146100)['then'](_0x38514b=>{const _0x53cb29=_0x185577;this[_0x53cb29(0xb4)][_0x53cb29(0xa8)](_0x30038a,_0x38514b);});}catch(_0x2fce81){this[_0x185577(0xa1)][_0x185577(0xa7)][_0x185577(0xa0)](_0x185577(0xa5),{'error':_0x2fce81});throw _0x2fce81;}}async[a47_0x5c0e00(0xac)](_0x44f0d4){const _0x4555c9=a47_0x5c0e00;try{if(!this[_0x4555c9(0xa1)]['tokenIsValide']())throw new Error(_0x4555c9(0x94));await this[_0x4555c9(0xa1)]['events']['emit'](_0x4555c9(0xa3),{'id':_0x44f0d4}),this[_0x4555c9(0xb4)][_0x4555c9(0xac)](_0x44f0d4);}catch(_0x1d5e23){this[_0x4555c9(0xa1)][_0x4555c9(0xa7)]['emit'](_0x4555c9(0xa5),{'error':_0x1d5e23});throw _0x1d5e23;}}}
1
+ const a47_0x3e8b41=a47_0x42ba;(function(_0x4d9909,_0x284596){const _0x273998=a47_0x42ba,_0x1bfb32=_0x4d9909();while(!![]){try{const _0x26c9e6=-parseInt(_0x273998(0xc0))/0x1*(parseInt(_0x273998(0xbc))/0x2)+parseInt(_0x273998(0xae))/0x3+-parseInt(_0x273998(0xa9))/0x4+-parseInt(_0x273998(0xa6))/0x5*(parseInt(_0x273998(0xaf))/0x6)+-parseInt(_0x273998(0xb2))/0x7+parseInt(_0x273998(0xb9))/0x8+parseInt(_0x273998(0xb5))/0x9;if(_0x26c9e6===_0x284596)break;else _0x1bfb32['push'](_0x1bfb32['shift']());}catch(_0x5577bd){_0x1bfb32['push'](_0x1bfb32['shift']());}}}(a47_0x4d13,0x88f98));function a47_0x4d13(){const _0x4b6b8b=['values','owl','6220040kWvBgz','emit','tax.updated','6LCDnIZ','new','tax.read.some','get','130569oKyMuA','tax.cached.all','tax.created','events','cache','000001:\x20Invalid\x20Token.','10oMvZNt','modify','set','3449820ZxPNdF','then','tax.error','tokenIsValide','delete','1829271jfIiwd','255894Akahnd','request','length','6293476NYAwFF','tax.read','fetch','12710826gmqiBD','tax.cached.some'];a47_0x4d13=function(){return _0x4b6b8b;};return a47_0x4d13();}import{Manager}from'../core/Manager.js';import{Tax}from'../entities/Tax.js';function a47_0x42ba(_0x5b133d,_0x1d95b2){_0x5b133d=_0x5b133d-0xa3;const _0x4d139e=a47_0x4d13();let _0x42bac5=_0x4d139e[_0x5b133d];return _0x42bac5;}export class TaxManager extends Manager{async[a47_0x3e8b41(0xb4)](_0xf4d7d3){const _0x474d8c=a47_0x3e8b41;try{if(!this[_0x474d8c(0xb8)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x474d8c(0xa4)]['has'](_0xf4d7d3))return this[_0x474d8c(0xa4)][_0x474d8c(0xbf)](_0xf4d7d3);const _0x21eb7e=await this[_0x474d8c(0xb8)][_0x474d8c(0xa3)]['request'](_0x474d8c(0xb3),{'id':_0xf4d7d3}),_0x358d84=new Tax(this['owl'],_0x21eb7e);return this['cache'][_0x474d8c(0xa8)](_0xf4d7d3,_0x358d84),this[_0x474d8c(0xb8)][_0x474d8c(0xa3)]['emit']('tax.cached',_0x358d84),_0x358d84;}catch(_0x4dd171){this[_0x474d8c(0xb8)]['events'][_0x474d8c(0xba)](_0x474d8c(0xab),{'error':_0x4dd171});throw _0x4dd171;}}async['fetchAll'](){const _0xc9ef8d=a47_0x3e8b41;try{if(!this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xac)]())throw new Error(_0xc9ef8d(0xa5));const _0x4f921c=await this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xa3)][_0xc9ef8d(0xb0)]('tax.read.all',{});for(let _0x3e6e4e=0x0;_0x3e6e4e<_0x4f921c[_0xc9ef8d(0xb1)];_0x3e6e4e++){const _0x335078=new Tax(this[_0xc9ef8d(0xb8)],_0x4f921c[_0x3e6e4e]);this[_0xc9ef8d(0xa4)][_0xc9ef8d(0xa8)](_0x335078['id'],_0x335078);}return this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xa3)][_0xc9ef8d(0xba)](_0xc9ef8d(0xc1),this['cache'][_0xc9ef8d(0xb7)]()),this[_0xc9ef8d(0xa4)][_0xc9ef8d(0xb7)]();}catch(_0x9a08a7){this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xa3)][_0xc9ef8d(0xba)](_0xc9ef8d(0xab),{'error':_0x9a08a7});throw _0x9a08a7;}}async['some'](_0x176644){const _0x2f4e74=a47_0x3e8b41;try{if(!this[_0x2f4e74(0xb8)]['tokenIsValide']())throw new Error(_0x2f4e74(0xa5));const _0x5a98dd=await this[_0x2f4e74(0xb8)][_0x2f4e74(0xa3)][_0x2f4e74(0xb0)](_0x2f4e74(0xbe),_0x176644);for(let _0x410939=0x0;_0x410939<_0x5a98dd[_0x2f4e74(0xb1)];_0x410939++){const _0x245b7d=new Tax(this['owl'],_0x5a98dd[_0x410939]);this[_0x2f4e74(0xa4)]['set'](_0x245b7d['id'],_0x245b7d);}return this['owl'][_0x2f4e74(0xa3)][_0x2f4e74(0xba)](_0x2f4e74(0xb6),_0x5a98dd),_0x5a98dd;}catch(_0x32b9a7){this['owl'][_0x2f4e74(0xa3)][_0x2f4e74(0xba)](_0x2f4e74(0xab),{'error':_0x32b9a7});throw _0x32b9a7;}}async[a47_0x3e8b41(0xbd)](_0xd171cf){const _0x16efa5=a47_0x3e8b41;try{if(!this[_0x16efa5(0xb8)]['tokenIsValide']())throw new Error(_0x16efa5(0xa5));const _0x158015=await this[_0x16efa5(0xb8)][_0x16efa5(0xa3)][_0x16efa5(0xb0)](_0x16efa5(0xc2),{'tax':_0xd171cf});_0xd171cf['id']=_0x158015;const _0x3b1bd1=new Tax(this['owl'],_0xd171cf);return this[_0x16efa5(0xa4)]['set'](_0x3b1bd1['id'],_0x3b1bd1),_0x3b1bd1;}catch(_0x1900c8){this[_0x16efa5(0xb8)][_0x16efa5(0xa3)][_0x16efa5(0xba)](_0x16efa5(0xab),{'error':_0x1900c8});throw _0x1900c8;}}async[a47_0x3e8b41(0xa7)](_0x477cb8,_0x3ef6b7){const _0x3fe139=a47_0x3e8b41;try{if(!this[_0x3fe139(0xb8)]['tokenIsValide']())throw new Error(_0x3fe139(0xa5));await this[_0x3fe139(0xb8)][_0x3fe139(0xa3)][_0x3fe139(0xb0)](_0x3fe139(0xbb),_0x3ef6b7)[_0x3fe139(0xaa)](_0x4e1961=>{const _0x392049=_0x3fe139;this[_0x392049(0xa4)]['set'](_0x477cb8,_0x4e1961);});}catch(_0x1a22ae){this[_0x3fe139(0xb8)][_0x3fe139(0xa3)][_0x3fe139(0xba)]('tax.error',{'error':_0x1a22ae});throw _0x1a22ae;}}async[a47_0x3e8b41(0xad)](_0x296a49){const _0x95f05e=a47_0x3e8b41;try{if(!this[_0x95f05e(0xb8)][_0x95f05e(0xac)]())throw new Error(_0x95f05e(0xa5));await this['owl'][_0x95f05e(0xa3)]['emit']('tax.deleted',{'id':_0x296a49}),this[_0x95f05e(0xa4)]['delete'](_0x296a49);}catch(_0x4cc4d3){this['owl'][_0x95f05e(0xa3)][_0x95f05e(0xba)](_0x95f05e(0xab),{'error':_0x4cc4d3});throw _0x4cc4d3;}}}
@@ -1 +1 @@
1
- const a48_0x3a95a0=a48_0x3cf6;(function(_0x4fc821,_0x50a13c){const _0x5bfbc0=a48_0x3cf6,_0x98c15f=_0x4fc821();while(!![]){try{const _0x863227=parseInt(_0x5bfbc0(0xd7))/0x1*(-parseInt(_0x5bfbc0(0xd5))/0x2)+-parseInt(_0x5bfbc0(0xe5))/0x3+-parseInt(_0x5bfbc0(0xd4))/0x4+-parseInt(_0x5bfbc0(0xce))/0x5+-parseInt(_0x5bfbc0(0xe6))/0x6+-parseInt(_0x5bfbc0(0xee))/0x7+parseInt(_0x5bfbc0(0xd8))/0x8;if(_0x863227===_0x50a13c)break;else _0x98c15f['push'](_0x98c15f['shift']());}catch(_0x4e017c){_0x98c15f['push'](_0x98c15f['shift']());}}}(a48_0x10d4,0xef96d));function a48_0x10d4(){const _0x2c12a8=['events','000001:\x20Invalid\x20Token.','user.cached.some','then','emit','user.read','user.loggedIn','980964MIdHAN','5933520rtQVGy','some','tokenIsValide','user.created','user.updated','user.read.some','length','user.error','8072134tQiXBh','user.read.all','user.cached','login','8325375ZEgeIc','cache','user.cached.all','delete','fetchAll','owl','3981568MQtJaZ','66CtGKQd','set','10583srFuZW','51681064SyxmXV','has','user.login','values','fetch','request'];a48_0x10d4=function(){return _0x2c12a8;};return a48_0x10d4();}import{Manager}from'../core/Manager.js';import{User}from'../entities/User.js';function a48_0x3cf6(_0xc6264e,_0x4a366a){_0xc6264e=_0xc6264e-0xcd;const _0x10d4f0=a48_0x10d4();let _0x3cf610=_0x10d4f0[_0xc6264e];return _0x3cf610;}export class UserManager extends Manager{async[a48_0x3a95a0(0xcd)](_0x135412,_0x516d7b){const _0x3c9d1e=a48_0x3a95a0;try{if(!this['owl'][_0x3c9d1e(0xe8)]())throw new Error(_0x3c9d1e(0xdf));const _0x14b408=await this['owl'][_0x3c9d1e(0xde)][_0x3c9d1e(0xdd)](_0x3c9d1e(0xda),{'email':_0x135412,'password':_0x516d7b}),_0x5f5b88=new User(this['owl'],_0x14b408);return this[_0x3c9d1e(0xcf)][_0x3c9d1e(0xd6)](_0x5f5b88['id'],_0x5f5b88),this[_0x3c9d1e(0xd3)]['events']['emit'](_0x3c9d1e(0xe4),_0x5f5b88),_0x5f5b88;}catch(_0x573858){this[_0x3c9d1e(0xd3)][_0x3c9d1e(0xde)][_0x3c9d1e(0xe2)](_0x3c9d1e(0xed),{'error':_0x573858});throw _0x573858;}}async[a48_0x3a95a0(0xdc)](_0x22ac1b){const _0x26f131=a48_0x3a95a0;try{if(!this['owl'][_0x26f131(0xe8)]())throw new Error(_0x26f131(0xdf));if(this[_0x26f131(0xcf)][_0x26f131(0xd9)](_0x22ac1b))return this[_0x26f131(0xcf)]['get'](_0x22ac1b);const _0x4952bd=await this[_0x26f131(0xd3)][_0x26f131(0xde)][_0x26f131(0xdd)](_0x26f131(0xe3),{'id':_0x22ac1b}),_0x4c0961=new User(this[_0x26f131(0xd3)],_0x4952bd);return this[_0x26f131(0xcf)][_0x26f131(0xd6)](_0x22ac1b,_0x4c0961),this[_0x26f131(0xd3)]['events']['emit'](_0x26f131(0xf0),_0x4c0961),_0x4c0961;}catch(_0x1d1225){this['owl'][_0x26f131(0xde)][_0x26f131(0xe2)](_0x26f131(0xed),{'error':_0x1d1225});throw _0x1d1225;}}async[a48_0x3a95a0(0xd2)](){const _0x47ba7f=a48_0x3a95a0;try{if(!this[_0x47ba7f(0xd3)][_0x47ba7f(0xe8)]())throw new Error(_0x47ba7f(0xdf));const _0x48628d=await this[_0x47ba7f(0xd3)]['events'][_0x47ba7f(0xdd)](_0x47ba7f(0xef),{});for(let _0x1d9d2a=0x0;_0x1d9d2a<_0x48628d[_0x47ba7f(0xec)];_0x1d9d2a++){const _0x4e64e5=new User(this[_0x47ba7f(0xd3)],_0x48628d[_0x1d9d2a]);this[_0x47ba7f(0xcf)][_0x47ba7f(0xd6)](_0x4e64e5['id'],_0x4e64e5);}return this['owl'][_0x47ba7f(0xde)][_0x47ba7f(0xe2)](_0x47ba7f(0xd0),this[_0x47ba7f(0xcf)]['values']()),this[_0x47ba7f(0xcf)][_0x47ba7f(0xdb)]();}catch(_0x26c88f){this[_0x47ba7f(0xd3)][_0x47ba7f(0xde)][_0x47ba7f(0xe2)](_0x47ba7f(0xed),{'error':_0x26c88f});throw _0x26c88f;}}async[a48_0x3a95a0(0xe7)](_0x2ebcd1){const _0x545bad=a48_0x3a95a0;try{if(!this['owl'][_0x545bad(0xe8)]())throw new Error(_0x545bad(0xdf));const _0x1769da=await this['owl'][_0x545bad(0xde)]['request'](_0x545bad(0xeb),_0x2ebcd1);for(let _0x3c31c3=0x0;_0x3c31c3<_0x1769da[_0x545bad(0xec)];_0x3c31c3++){const _0x557acb=new User(this[_0x545bad(0xd3)],_0x1769da[_0x3c31c3]);this[_0x545bad(0xcf)][_0x545bad(0xd6)](_0x557acb['id'],_0x557acb);}return this[_0x545bad(0xd3)]['events']['emit'](_0x545bad(0xe0),_0x1769da),_0x1769da;}catch(_0x3678bb){this[_0x545bad(0xd3)][_0x545bad(0xde)]['emit']('user.error',{'error':_0x3678bb});throw _0x3678bb;}}async['new'](_0x5465fa){const _0x294257=a48_0x3a95a0;try{if(!this['owl'][_0x294257(0xe8)]())throw new Error(_0x294257(0xdf));const _0x14a941=await this['owl'][_0x294257(0xde)][_0x294257(0xdd)](_0x294257(0xe9),{'user':_0x5465fa});_0x5465fa['id']=_0x14a941;const _0x3d7864=new User(this[_0x294257(0xd3)],_0x5465fa);return this[_0x294257(0xcf)][_0x294257(0xd6)](_0x3d7864['id'],_0x3d7864),_0x3d7864;}catch(_0x302113){this['owl']['events'][_0x294257(0xe2)](_0x294257(0xed),{'error':_0x302113});throw _0x302113;}}async['modify'](_0x3fecec,_0x14dc9f){const _0x1fde24=a48_0x3a95a0;try{if(!this[_0x1fde24(0xd3)][_0x1fde24(0xe8)]())throw new Error(_0x1fde24(0xdf));await this['owl'][_0x1fde24(0xde)][_0x1fde24(0xdd)](_0x1fde24(0xea),_0x14dc9f)[_0x1fde24(0xe1)](_0x55f71c=>{const _0x225036=_0x1fde24;this[_0x225036(0xcf)]['set'](_0x3fecec,_0x55f71c);});}catch(_0x3721e3){this[_0x1fde24(0xd3)][_0x1fde24(0xde)][_0x1fde24(0xe2)](_0x1fde24(0xed),{'error':_0x3721e3});throw _0x3721e3;}}async[a48_0x3a95a0(0xd1)](_0x6b85c3){const _0x4de974=a48_0x3a95a0;try{if(!this['owl'][_0x4de974(0xe8)]())throw new Error(_0x4de974(0xdf));await this[_0x4de974(0xd3)][_0x4de974(0xde)]['emit']('user.deleted',{'id':_0x6b85c3}),this['cache'][_0x4de974(0xd1)](_0x6b85c3);}catch(_0x3888ad){this[_0x4de974(0xd3)]['events']['emit'](_0x4de974(0xed),{'error':_0x3888ad});throw _0x3888ad;}}}
1
+ function a48_0x2a16(){const _0x2646b0=['length','3091FMAUZz','user.cached','user.read.some','cache','has','579706rdxTaD','delete','000001:\x20Invalid\x20Token.','1709160mwNxje','user.cached.all','values','emit','new','user.error','user.read.all','18aQMgGU','owl','modify','user.login','9981otnWXB','user.updated','9390Dzovdt','set','get','fetchAll','events','2666372bnNdny','request','then','tokenIsValide','user.loggedIn','14tatcRD','login','user.read','3741072vPYqLa','some','690877tfJdCF','9HzlPSv','user.cached.some','user.deleted','54552kOYOkB'];a48_0x2a16=function(){return _0x2646b0;};return a48_0x2a16();}const a48_0x375fee=a48_0x9b5f;(function(_0x45169d,_0xdd752f){const _0x35041c=a48_0x9b5f,_0x52b3af=_0x45169d();while(!![]){try{const _0x1aab8d=parseInt(_0x35041c(0x1e2))/0x1+parseInt(_0x35041c(0x1ed))/0x2*(-parseInt(_0x35041c(0x1e3))/0x3)+parseInt(_0x35041c(0x1d8))/0x4+parseInt(_0x35041c(0x1c6))/0x5*(-parseInt(_0x35041c(0x1cd))/0x6)+-parseInt(_0x35041c(0x1dd))/0x7*(-parseInt(_0x35041c(0x1e0))/0x8)+-parseInt(_0x35041c(0x1d1))/0x9*(parseInt(_0x35041c(0x1d3))/0xa)+parseInt(_0x35041c(0x1e8))/0xb*(parseInt(_0x35041c(0x1e6))/0xc);if(_0x1aab8d===_0xdd752f)break;else _0x52b3af['push'](_0x52b3af['shift']());}catch(_0x2b03e1){_0x52b3af['push'](_0x52b3af['shift']());}}}(a48_0x2a16,0x9ab9e));function a48_0x9b5f(_0x61892e,_0x54f4f9){_0x61892e=_0x61892e-0x1c4;const _0x2a164a=a48_0x2a16();let _0x9b5fb2=_0x2a164a[_0x61892e];return _0x9b5fb2;}import{Manager}from'../core/Manager.js';import{User}from'../entities/User.js';export class UserManager extends Manager{async[a48_0x375fee(0x1de)](_0x5852bc,_0xe2be82){const _0x57dc2c=a48_0x375fee;try{if(!this[_0x57dc2c(0x1ce)][_0x57dc2c(0x1db)]())throw new Error(_0x57dc2c(0x1c5));const _0x32ff19=await this[_0x57dc2c(0x1ce)]['events'][_0x57dc2c(0x1d9)](_0x57dc2c(0x1d0),{'email':_0x5852bc,'password':_0xe2be82}),_0x1eea49=new User(this[_0x57dc2c(0x1ce)],_0x32ff19);return this[_0x57dc2c(0x1eb)]['set'](_0x1eea49['id'],_0x1eea49),this[_0x57dc2c(0x1ce)][_0x57dc2c(0x1d7)][_0x57dc2c(0x1c9)](_0x57dc2c(0x1dc),_0x1eea49),_0x1eea49;}catch(_0x3795da){this['owl']['events'][_0x57dc2c(0x1c9)](_0x57dc2c(0x1cb),{'error':_0x3795da});throw _0x3795da;}}async['fetch'](_0x3dbf67){const _0x123c84=a48_0x375fee;try{if(!this[_0x123c84(0x1ce)][_0x123c84(0x1db)]())throw new Error(_0x123c84(0x1c5));if(this[_0x123c84(0x1eb)][_0x123c84(0x1ec)](_0x3dbf67))return this[_0x123c84(0x1eb)][_0x123c84(0x1d5)](_0x3dbf67);const _0x22f0ba=await this[_0x123c84(0x1ce)][_0x123c84(0x1d7)][_0x123c84(0x1d9)](_0x123c84(0x1df),{'id':_0x3dbf67}),_0x5712bb=new User(this[_0x123c84(0x1ce)],_0x22f0ba);return this[_0x123c84(0x1eb)][_0x123c84(0x1d4)](_0x3dbf67,_0x5712bb),this[_0x123c84(0x1ce)][_0x123c84(0x1d7)][_0x123c84(0x1c9)](_0x123c84(0x1e9),_0x5712bb),_0x5712bb;}catch(_0x630914){this[_0x123c84(0x1ce)][_0x123c84(0x1d7)][_0x123c84(0x1c9)](_0x123c84(0x1cb),{'error':_0x630914});throw _0x630914;}}async[a48_0x375fee(0x1d6)](){const _0x3d829f=a48_0x375fee;try{if(!this[_0x3d829f(0x1ce)][_0x3d829f(0x1db)]())throw new Error(_0x3d829f(0x1c5));const _0x1bb6e9=await this['owl'][_0x3d829f(0x1d7)][_0x3d829f(0x1d9)](_0x3d829f(0x1cc),{});for(let _0x4ca74a=0x0;_0x4ca74a<_0x1bb6e9[_0x3d829f(0x1e7)];_0x4ca74a++){const _0x359515=new User(this[_0x3d829f(0x1ce)],_0x1bb6e9[_0x4ca74a]);this[_0x3d829f(0x1eb)][_0x3d829f(0x1d4)](_0x359515['id'],_0x359515);}return this[_0x3d829f(0x1ce)][_0x3d829f(0x1d7)]['emit'](_0x3d829f(0x1c7),this['cache'][_0x3d829f(0x1c8)]()),this[_0x3d829f(0x1eb)][_0x3d829f(0x1c8)]();}catch(_0x5b6e3c){this[_0x3d829f(0x1ce)][_0x3d829f(0x1d7)][_0x3d829f(0x1c9)](_0x3d829f(0x1cb),{'error':_0x5b6e3c});throw _0x5b6e3c;}}async[a48_0x375fee(0x1e1)](_0x140930){const _0xc7ccc4=a48_0x375fee;try{if(!this[_0xc7ccc4(0x1ce)][_0xc7ccc4(0x1db)]())throw new Error(_0xc7ccc4(0x1c5));const _0x58a7b2=await this[_0xc7ccc4(0x1ce)]['events']['request'](_0xc7ccc4(0x1ea),_0x140930);for(let _0x246e06=0x0;_0x246e06<_0x58a7b2['length'];_0x246e06++){const _0x51efdd=new User(this['owl'],_0x58a7b2[_0x246e06]);this[_0xc7ccc4(0x1eb)][_0xc7ccc4(0x1d4)](_0x51efdd['id'],_0x51efdd);}return this[_0xc7ccc4(0x1ce)][_0xc7ccc4(0x1d7)]['emit'](_0xc7ccc4(0x1e4),_0x58a7b2),_0x58a7b2;}catch(_0x2d48cd){this[_0xc7ccc4(0x1ce)][_0xc7ccc4(0x1d7)][_0xc7ccc4(0x1c9)](_0xc7ccc4(0x1cb),{'error':_0x2d48cd});throw _0x2d48cd;}}async[a48_0x375fee(0x1ca)](_0x207fe8){const _0x5cfc5a=a48_0x375fee;try{if(!this[_0x5cfc5a(0x1ce)][_0x5cfc5a(0x1db)]())throw new Error(_0x5cfc5a(0x1c5));const _0x298db5=await this[_0x5cfc5a(0x1ce)][_0x5cfc5a(0x1d7)]['request']('user.created',{'user':_0x207fe8});_0x207fe8['id']=_0x298db5;const _0x2b55ac=new User(this['owl'],_0x207fe8);return this[_0x5cfc5a(0x1eb)][_0x5cfc5a(0x1d4)](_0x2b55ac['id'],_0x2b55ac),_0x2b55ac;}catch(_0x414280){this[_0x5cfc5a(0x1ce)][_0x5cfc5a(0x1d7)][_0x5cfc5a(0x1c9)](_0x5cfc5a(0x1cb),{'error':_0x414280});throw _0x414280;}}async[a48_0x375fee(0x1cf)](_0x3d483a,_0x256d0e){const _0x52632b=a48_0x375fee;try{if(!this['owl'][_0x52632b(0x1db)]())throw new Error(_0x52632b(0x1c5));await this[_0x52632b(0x1ce)][_0x52632b(0x1d7)][_0x52632b(0x1d9)](_0x52632b(0x1d2),_0x256d0e)[_0x52632b(0x1da)](_0x4300a6=>{const _0x151c1f=_0x52632b;this[_0x151c1f(0x1eb)]['set'](_0x3d483a,_0x4300a6);});}catch(_0x3e983c){this[_0x52632b(0x1ce)][_0x52632b(0x1d7)][_0x52632b(0x1c9)](_0x52632b(0x1cb),{'error':_0x3e983c});throw _0x3e983c;}}async[a48_0x375fee(0x1c4)](_0x3a3187){const _0x59adf7=a48_0x375fee;try{if(!this[_0x59adf7(0x1ce)][_0x59adf7(0x1db)]())throw new Error(_0x59adf7(0x1c5));await this[_0x59adf7(0x1ce)][_0x59adf7(0x1d7)][_0x59adf7(0x1c9)](_0x59adf7(0x1e5),{'id':_0x3a3187}),this[_0x59adf7(0x1eb)][_0x59adf7(0x1c4)](_0x3a3187);}catch(_0xb89cf8){this[_0x59adf7(0x1ce)][_0x59adf7(0x1d7)][_0x59adf7(0x1c9)]('user.error',{'error':_0xb89cf8});throw _0xb89cf8;}}}
@@ -1 +1 @@
1
- function a49_0x4c78(){const _0x4e71db=['360473BaJLGk','enc','158851YRvoZw','tokenIsValide','getCurrentUser','1068984QBmLft','fetchAll','http://localhost:3000/check','application/json','init','517whhPSK','213310yiWjwH','tokenValidate','token','users','receptions','3744onkbdB','validateToken','orders','login','000001:\x20Invalid\x20Token.','result','POST','866490UWXSCZ','events','toString','currentUser','30MovCbh','admin','taxes','then','5787xwGMjq','66kjRGEF','items','SHA256','purchases','stringify','suppliers','user.loggedIn','push','Hex','modules','17230znyqyk'];a49_0x4c78=function(){return _0x4e71db;};return a49_0x4c78();}const a49_0x1693e3=a49_0x4674;(function(_0x5c7797,_0xff8365){const _0x31938f=a49_0x4674,_0x7b1dc5=_0x5c7797();while(!![]){try{const _0x5887c3=-parseInt(_0x31938f(0x11c))/0x1+-parseInt(_0x31938f(0x11b))/0x2*(-parseInt(_0x31938f(0x111))/0x3)+-parseInt(_0x31938f(0x121))/0x4+-parseInt(_0x31938f(0x108))/0x5+parseInt(_0x31938f(0x10c))/0x6*(parseInt(_0x31938f(0x11e))/0x7)+-parseInt(_0x31938f(0x101))/0x8*(parseInt(_0x31938f(0x110))/0x9)+-parseInt(_0x31938f(0xfc))/0xa*(-parseInt(_0x31938f(0xfb))/0xb);if(_0x5887c3===_0xff8365)break;else _0x7b1dc5['push'](_0x7b1dc5['shift']());}catch(_0x594cfc){_0x7b1dc5['push'](_0x7b1dc5['shift']());}}}(a49_0x4c78,0x31b5b));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';import{PreparationManager}from'../managers/PreparationManager.js';import{PurchaseManager}from'../managers/PurchaseManager.js';import{ReceptionManager}from'../managers/ReceptionManager.js';import{StockManager}from'../managers/StockManager.js';function a49_0x4674(_0x3d8d67,_0x22e366){_0x3d8d67=_0x3d8d67-0xf9;const _0x4c7842=a49_0x4c78();let _0x46749f=_0x4c7842[_0x3d8d67];return _0x46749f;}import{TaxManager}from'../managers/TaxManager.js';import*as a49_0x500989 from'crypto-js';import{EventsDatabase}from'../core/EventsDatabase.js';export class OWLClient{constructor(_0xea5cbc){const _0x381a74=a49_0x4674;this[_0x381a74(0x11a)]=[],this[_0x381a74(0xfd)]=![],this[_0x381a74(0xfe)]=_0xea5cbc,this['users']=new UserManager(this),this['clients']=new ClientManager(this),this[_0x381a74(0x116)]=new SupplierManager(this),this[_0x381a74(0x112)]=new ItemManager(this),this[_0x381a74(0x103)]=new OrderManager(this),this['preparations']=new PreparationManager(this),this[_0x381a74(0x114)]=new PurchaseManager(this),this[_0x381a74(0x100)]=new ReceptionManager(this),this['stocks']=new StockManager(this),this[_0x381a74(0x10e)]=new TaxManager(this),this[_0x381a74(0x109)]=new EventBus();}async[a49_0x1693e3(0x102)](){const _0x5610c3=a49_0x1693e3,_0x5c0845=await fetch(_0x5610c3(0x123),{'method':_0x5610c3(0x107),'headers':{'Content-Type':_0x5610c3(0xf9)},'body':JSON[_0x5610c3(0x115)]({'content':a49_0x500989[_0x5610c3(0x113)](this[_0x5610c3(0xfe)])[_0x5610c3(0x10a)](a49_0x500989[_0x5610c3(0x11d)][_0x5610c3(0x119)])})}),_0x46ef90=await _0x5c0845['json']();return _0x46ef90[_0x5610c3(0x106)];}async['init'](){const _0x48ca04=a49_0x1693e3;await this[_0x48ca04(0x104)](),this['dbEvents']=new EventsDatabase(this),this[_0x48ca04(0x10b)]=new User(this,{'authorizations':new Set(['ADMIN'])}),await this[_0x48ca04(0xff)][_0x48ca04(0x122)]()[_0x48ca04(0x10f)](_0x42ceef=>{const _0x230231=_0x48ca04;[..._0x42ceef]['length']==0x0&&this[_0x230231(0xff)]['new']({'email':_0x230231(0x10d),'password':_0x230231(0x10d),'authorizations':new Set(['ADMIN'])}),this['currentUser']=undefined;}),this[_0x48ca04(0x109)]['on'](_0x48ca04(0x117),_0x2f95fc=>{const _0x22219b=_0x48ca04;this[_0x22219b(0x10b)]=_0x2f95fc;});}async['login'](){const _0x2d85f1=a49_0x1693e3;this[_0x2d85f1(0xfd)]=await this[_0x2d85f1(0x102)]();if(!this['tokenValidate'])throw new Error(_0x2d85f1(0x105));}['tokenIsValide'](){const _0x572f48=a49_0x1693e3;return this[_0x572f48(0xfd)];}[a49_0x1693e3(0x120)](){const _0x3c793d=a49_0x1693e3;if(!this[_0x3c793d(0x11f)]())throw new Error(_0x3c793d(0x105));return this[_0x3c793d(0x10b)]||new User(this,{});}['registerModule'](_0x210601){const _0x1b5c3d=a49_0x1693e3;if(!this['tokenIsValide']())throw new Error(_0x1b5c3d(0x105));_0x210601[_0x1b5c3d(0xfa)](this),this['modules'][_0x1b5c3d(0x118)](_0x210601);}}
1
+ const a49_0x3e600c=a49_0x1fc8;(function(_0x5e6f59,_0x11dc00){const _0x437c78=a49_0x1fc8,_0x18e63b=_0x5e6f59();while(!![]){try{const _0x3da81c=-parseInt(_0x437c78(0xee))/0x1*(parseInt(_0x437c78(0xfd))/0x2)+parseInt(_0x437c78(0xed))/0x3+-parseInt(_0x437c78(0x100))/0x4+parseInt(_0x437c78(0xfa))/0x5+-parseInt(_0x437c78(0xe1))/0x6*(-parseInt(_0x437c78(0xe6))/0x7)+parseInt(_0x437c78(0xfb))/0x8+-parseInt(_0x437c78(0xec))/0x9*(parseInt(_0x437c78(0xf6))/0xa);if(_0x3da81c===_0x11dc00)break;else _0x18e63b['push'](_0x18e63b['shift']());}catch(_0x38bd28){_0x18e63b['push'](_0x18e63b['shift']());}}}(a49_0x3c60,0x66084));function a49_0x3c60(){const _0x595946=['items','purchases','tokenIsValide','tokenValidate','42IQLlks','getCurrentUser','Hex','taxes','enc','742287HZmCut','login','fetchAll','receptions','stringify','json','32661VrXDlM','816120AdUXWN','5vCmNBK','then','suppliers','ADMIN','admin','user.loggedIn','stocks','new','1460SJkNJC','length','000001:\x20Invalid\x20Token.','registerModule','1898595zQWNDH','5210184YuxSjs','init','290270iuGjIS','events','clients','1487544TvqIIr','validateToken','token','currentUser','users','POST'];a49_0x3c60=function(){return _0x595946;};return a49_0x3c60();}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';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*as a49_0x2c8748 from'crypto-js';function a49_0x1fc8(_0x38dbba,_0x3d1f89){_0x38dbba=_0x38dbba-0xe0;const _0x3c600d=a49_0x3c60();let _0x1fc84e=_0x3c600d[_0x38dbba];return _0x1fc84e;}import{EventsDatabase}from'../core/EventsDatabase.js';export class OWLClient{constructor(_0x25ee51){const _0x4fb219=a49_0x1fc8;this['modules']=[],this['tokenValidate']=![],this[_0x4fb219(0x102)]=_0x25ee51,this[_0x4fb219(0x104)]=new UserManager(this),this[_0x4fb219(0xff)]=new ClientManager(this),this[_0x4fb219(0xf0)]=new SupplierManager(this),this[_0x4fb219(0x106)]=new ItemManager(this),this['orders']=new OrderManager(this),this['preparations']=new PreparationManager(this),this[_0x4fb219(0x107)]=new PurchaseManager(this),this[_0x4fb219(0xe9)]=new ReceptionManager(this),this[_0x4fb219(0xf4)]=new StockManager(this),this[_0x4fb219(0xe4)]=new TaxManager(this),this[_0x4fb219(0xfe)]=new EventBus();}async['validateToken'](){const _0x188097=a49_0x1fc8,_0x75b6f=await fetch('http://localhost:3000/check',{'method':_0x188097(0x105),'headers':{'Content-Type':'application/json'},'body':JSON[_0x188097(0xea)]({'content':a49_0x2c8748['SHA256'](this[_0x188097(0x102)])['toString'](a49_0x2c8748[_0x188097(0xe5)][_0x188097(0xe3)])})}),_0x2ee2dc=await _0x75b6f[_0x188097(0xeb)]();return _0x2ee2dc['result'];}async[a49_0x3e600c(0xfc)](){const _0x5993fe=a49_0x3e600c;await this[_0x5993fe(0xe7)](),this['dbEvents']=new EventsDatabase(this),this['currentUser']=new User(this,{'authorizations':new Set([_0x5993fe(0xf1)])}),await this[_0x5993fe(0x104)][_0x5993fe(0xe8)]()[_0x5993fe(0xef)](_0x8d31a=>{const _0x928e50=_0x5993fe;[..._0x8d31a][_0x928e50(0xf7)]==0x0&&this[_0x928e50(0x104)][_0x928e50(0xf5)]({'email':_0x928e50(0xf2),'password':_0x928e50(0xf2),'authorizations':new Set([_0x928e50(0xf1)])}),this['currentUser']=undefined;}),this['events']['on'](_0x5993fe(0xf3),_0x168939=>{const _0x1b17a1=_0x5993fe;this[_0x1b17a1(0x103)]=_0x168939;});}async[a49_0x3e600c(0xe7)](){const _0x569b2c=a49_0x3e600c;this[_0x569b2c(0xe0)]=await this[_0x569b2c(0x101)]();if(!this[_0x569b2c(0xe0)])throw new Error(_0x569b2c(0xf8));}[a49_0x3e600c(0x108)](){return this['tokenValidate'];}[a49_0x3e600c(0xe2)](){const _0x58a189=a49_0x3e600c;if(!this[_0x58a189(0x108)]())throw new Error(_0x58a189(0xf8));return this[_0x58a189(0x103)]||new User(this,{});}[a49_0x3e600c(0xf9)](_0x920376){const _0x4c0bdc=a49_0x3e600c;if(!this[_0x4c0bdc(0x108)]())throw new Error(_0x4c0bdc(0xf8));_0x920376[_0x4c0bdc(0xfc)](this),this['modules']['push'](_0x920376);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-progiciel",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Progiciel / ERP modulaire",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,7 +35,7 @@ model User {
35
35
 
36
36
  model Client {
37
37
  id Int @id @default(autoincrement())
38
- ref Int?
38
+ ref String?
39
39
  name String?
40
40
  tel String?
41
41
  email String?
@@ -49,7 +49,7 @@ model Client {
49
49
 
50
50
  model Supplier {
51
51
  id Int @id @default(autoincrement())
52
- ref Int?
52
+ ref String?
53
53
  name String?
54
54
  tel String?
55
55
  email String?
@@ -106,7 +106,7 @@ model Order {
106
106
 
107
107
  model Preparation {
108
108
  id Int @id @default(autoincrement())
109
- ref Int?
109
+ ref String?
110
110
  userId Int?
111
111
  state String?
112
112
  batch String?
@@ -123,7 +123,7 @@ model Preparation {
123
123
 
124
124
  model Purchase {
125
125
  id Int @id @default(autoincrement())
126
- ref Int?
126
+ ref String?
127
127
  userId Int?
128
128
  state String?
129
129
  dateOrdered DateTime?
@@ -140,7 +140,7 @@ model Purchase {
140
140
 
141
141
  model Reception {
142
142
  id Int @id @default(autoincrement())
143
- ref Int?
143
+ ref String?
144
144
  userId Int?
145
145
  state String?
146
146
  batch String?
@@ -167,7 +167,7 @@ model Stock {
167
167
 
168
168
  model Tax {
169
169
  id Int @id @default(autoincrement())
170
- ref Int?
170
+ ref String?
171
171
  group String?
172
172
  label String?
173
173
  fix Float?