owl-progiciel 1.0.3 → 1.0.4

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 (48) 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 +4 -2
@@ -1 +1 @@
1
- const a39_0x2e2338=a39_0x41ce;(function(_0x45685f,_0x2a771a){const _0x5ad6aa=a39_0x41ce,_0x240439=_0x45685f();while(!![]){try{const _0x113926=-parseInt(_0x5ad6aa(0x20a))/0x1*(-parseInt(_0x5ad6aa(0x207))/0x2)+parseInt(_0x5ad6aa(0x1f4))/0x3+parseInt(_0x5ad6aa(0x200))/0x4+parseInt(_0x5ad6aa(0x202))/0x5*(-parseInt(_0x5ad6aa(0x1f1))/0x6)+-parseInt(_0x5ad6aa(0x1f8))/0x7*(-parseInt(_0x5ad6aa(0x205))/0x8)+-parseInt(_0x5ad6aa(0x1ef))/0x9+-parseInt(_0x5ad6aa(0x1f2))/0xa;if(_0x113926===_0x2a771a)break;else _0x240439['push'](_0x240439['shift']());}catch(_0x432187){_0x240439['push'](_0x240439['shift']());}}}(a39_0x620a,0x31d91));function a39_0x41ce(_0x425279,_0x2f671a){_0x425279=_0x425279-0x1ee;const _0x620a15=a39_0x620a();let _0x41cefd=_0x620a15[_0x425279];return _0x41cefd;}import{Manager}from'../core/Manager.js';import{Client}from'../entities/Client.js';export class ClientManager extends Manager{async['fetch'](_0x3a6ede){const _0x3bac08=a39_0x41ce;try{if(!this[_0x3bac08(0x1f9)][_0x3bac08(0x1fe)]())throw new Error(_0x3bac08(0x1f0));if(this[_0x3bac08(0x20c)][_0x3bac08(0x20f)](_0x3a6ede))return this[_0x3bac08(0x20c)]['get'](_0x3a6ede);const _0x2f1a32=await this[_0x3bac08(0x1f9)][_0x3bac08(0x1fd)][_0x3bac08(0x201)]('client.read',{'id':_0x3a6ede}),_0x550262=new Client(this[_0x3bac08(0x1f9)],_0x2f1a32);return this[_0x3bac08(0x20c)]['set'](_0x3a6ede,_0x550262),this[_0x3bac08(0x1f9)][_0x3bac08(0x1fd)][_0x3bac08(0x208)](_0x3bac08(0x1f6),_0x550262),_0x550262;}catch(_0x233776){this[_0x3bac08(0x1f9)][_0x3bac08(0x1fd)][_0x3bac08(0x208)](_0x3bac08(0x1fb),{'error':_0x233776});throw _0x233776;}}async[a39_0x2e2338(0x20d)](){const _0x1e340f=a39_0x2e2338;try{if(!this[_0x1e340f(0x1f9)][_0x1e340f(0x1fe)]())throw new Error(_0x1e340f(0x1f0));const _0x42e879=await this[_0x1e340f(0x1f9)]['events'][_0x1e340f(0x201)](_0x1e340f(0x1f7),{});for(let _0x48b29c=0x0;_0x48b29c<_0x42e879[_0x1e340f(0x206)];_0x48b29c++){const _0x203953=new Client(this['owl'],_0x42e879[_0x48b29c]);this['cache'][_0x1e340f(0x203)](_0x203953['id'],_0x203953);}return this['owl'][_0x1e340f(0x1fd)]['emit'](_0x1e340f(0x1fa),this[_0x1e340f(0x20c)][_0x1e340f(0x204)]()),this['cache'][_0x1e340f(0x204)]();}catch(_0x1f3e93){this[_0x1e340f(0x1f9)][_0x1e340f(0x1fd)][_0x1e340f(0x208)](_0x1e340f(0x1fb),{'error':_0x1f3e93});throw _0x1f3e93;}}async[a39_0x2e2338(0x20b)](_0x33100e){const _0x260126=a39_0x2e2338;try{if(!this[_0x260126(0x1f9)][_0x260126(0x1fe)]())throw new Error(_0x260126(0x1f0));const _0x49acc0=await this[_0x260126(0x1f9)][_0x260126(0x1fd)][_0x260126(0x201)](_0x260126(0x1f5),_0x33100e);for(let _0x2ea267=0x0;_0x2ea267<_0x49acc0[_0x260126(0x206)];_0x2ea267++){const _0x690f78=new Client(this[_0x260126(0x1f9)],_0x49acc0[_0x2ea267]);this['cache'][_0x260126(0x203)](_0x690f78['id'],_0x690f78);}return this[_0x260126(0x1f9)][_0x260126(0x1fd)]['emit']('client.cached.some',_0x49acc0),_0x49acc0;}catch(_0x3c4673){this[_0x260126(0x1f9)][_0x260126(0x1fd)][_0x260126(0x208)](_0x260126(0x1fb),{'error':_0x3c4673});throw _0x3c4673;}}async['new'](_0x2319dd){const _0xbb2e73=a39_0x2e2338;try{if(!this[_0xbb2e73(0x1f9)][_0xbb2e73(0x1fe)]())throw new Error(_0xbb2e73(0x1f0));const _0x2dcf8=await this[_0xbb2e73(0x1f9)][_0xbb2e73(0x1fd)][_0xbb2e73(0x201)](_0xbb2e73(0x1f3),{'client':_0x2319dd});_0x2319dd['id']=_0x2dcf8;const _0x37ff52=new Client(this['owl'],_0x2319dd);return this[_0xbb2e73(0x20c)][_0xbb2e73(0x203)](_0x37ff52['id'],_0x37ff52),_0x37ff52;}catch(_0x221147){this[_0xbb2e73(0x1f9)]['events'][_0xbb2e73(0x208)](_0xbb2e73(0x1fb),{'error':_0x221147});throw _0x221147;}}async[a39_0x2e2338(0x1fc)](_0x25345b,_0x719c77){const _0x5a1ba4=a39_0x2e2338;try{if(!this[_0x5a1ba4(0x1f9)][_0x5a1ba4(0x1fe)]())throw new Error(_0x5a1ba4(0x1f0));await this['owl']['events'][_0x5a1ba4(0x201)](_0x5a1ba4(0x1ff),_0x719c77)[_0x5a1ba4(0x209)](_0x13532b=>{const _0x38e3dc=_0x5a1ba4;this[_0x38e3dc(0x20c)][_0x38e3dc(0x203)](_0x25345b,_0x13532b);});}catch(_0x4abead){this[_0x5a1ba4(0x1f9)][_0x5a1ba4(0x1fd)][_0x5a1ba4(0x208)](_0x5a1ba4(0x1fb),{'error':_0x4abead});throw _0x4abead;}}async[a39_0x2e2338(0x1ee)](_0x241214){const _0x2a6fff=a39_0x2e2338;try{if(!this[_0x2a6fff(0x1f9)]['tokenIsValide']())throw new Error(_0x2a6fff(0x1f0));await this['owl'][_0x2a6fff(0x1fd)][_0x2a6fff(0x208)](_0x2a6fff(0x20e),{'id':_0x241214}),this[_0x2a6fff(0x20c)][_0x2a6fff(0x1ee)](_0x241214);}catch(_0x35e411){this[_0x2a6fff(0x1f9)][_0x2a6fff(0x1fd)]['emit'](_0x2a6fff(0x1fb),{'error':_0x35e411});throw _0x35e411;}}}function a39_0x620a(){const _0x4a5ef9=['request','5aDsvYY','set','values','62984LFmzXE','length','4oJTdCU','emit','then','141682EcVtDI','some','cache','fetchAll','client.deleted','has','delete','3480552qHkGjF','000001:\x20Invalid\x20Token.','840198NvMrQw','4298550NwcVld','client.created','1042431IVTeWt','client.read.some','client.cached','client.read.all','301YyVkom','owl','client.cached.all','client.error','modify','events','tokenIsValide','client.updated','765652yBfJiR'];a39_0x620a=function(){return _0x4a5ef9;};return a39_0x620a();}
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 +1 @@
1
- const a40_0x90f42e=a40_0x34cb;function a40_0x439d(){const _0x4d5d59=['cache','tokenIsValide','item.updated','request','2504MSSEvP','emit','item.cached','has','delete','8032860lDrgJB','values','230665wXVGcZ','owl','item.error','then','7450929gefIpP','74389FXswpS','item.deleted','429Fqkkwz','6xzWYTm','fetch','item.cached.some','fetchAll','set','144XpzmCd','length','3891ZjIdxh','000001:\x20Invalid\x20Token.','events','item.cached.all','some','get','129198OqxZJY','10BNVoHw','modify','item.created','273444IikMRh','55oFfmpz'];a40_0x439d=function(){return _0x4d5d59;};return a40_0x439d();}(function(_0x47e53e,_0x4da48b){const _0x1252d7=a40_0x34cb,_0x355eab=_0x47e53e();while(!![]){try{const _0x4196f0=-parseInt(_0x1252d7(0x129))/0x1*(-parseInt(_0x1252d7(0x10b))/0x2)+parseInt(_0x1252d7(0x112))/0x3*(parseInt(_0x1252d7(0x122))/0x4)+-parseInt(_0x1252d7(0x11d))/0x5*(parseInt(_0x1252d7(0x118))/0x6)+parseInt(_0x1252d7(0x108))/0x7*(-parseInt(_0x1252d7(0x110))/0x8)+-parseInt(_0x1252d7(0x12d))/0x9*(-parseInt(_0x1252d7(0x119))/0xa)+-parseInt(_0x1252d7(0x127))/0xb+-parseInt(_0x1252d7(0x11c))/0xc*(parseInt(_0x1252d7(0x10a))/0xd);if(_0x4196f0===_0x4da48b)break;else _0x355eab['push'](_0x355eab['shift']());}catch(_0x477964){_0x355eab['push'](_0x355eab['shift']());}}}(a40_0x439d,0x66e2a));function a40_0x34cb(_0x4fd3f3,_0x448213){_0x4fd3f3=_0x4fd3f3-0x108;const _0x439d28=a40_0x439d();let _0x34cb65=_0x439d28[_0x4fd3f3];return _0x34cb65;}import{Manager}from'../core/Manager.js';import{Item}from'../entities/Item.js';export class ItemManager extends Manager{async[a40_0x90f42e(0x10c)](_0x45fcc4){const _0x198aed=a40_0x90f42e;try{if(!this[_0x198aed(0x12a)][_0x198aed(0x11f)]())throw new Error(_0x198aed(0x113));if(this[_0x198aed(0x11e)][_0x198aed(0x125)](_0x45fcc4))return this[_0x198aed(0x11e)][_0x198aed(0x117)](_0x45fcc4);const _0xaa556c=await this[_0x198aed(0x12a)][_0x198aed(0x114)][_0x198aed(0x121)]('item.read',{'id':_0x45fcc4}),_0x198f4f=new Item(this[_0x198aed(0x12a)],_0xaa556c);return this[_0x198aed(0x11e)]['set'](_0x45fcc4,_0x198f4f),this[_0x198aed(0x12a)]['events'][_0x198aed(0x123)](_0x198aed(0x124),_0x198f4f),_0x198f4f;}catch(_0x551d92){this[_0x198aed(0x12a)][_0x198aed(0x114)][_0x198aed(0x123)](_0x198aed(0x12b),{'error':_0x551d92});throw _0x551d92;}}async[a40_0x90f42e(0x10e)](){const _0x43d256=a40_0x90f42e;try{if(!this['owl'][_0x43d256(0x11f)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x493141=await this[_0x43d256(0x12a)]['events'][_0x43d256(0x121)]('item.read.all',{});for(let _0xfb1516=0x0;_0xfb1516<_0x493141[_0x43d256(0x111)];_0xfb1516++){const _0x266ae0=new Item(this['owl'],_0x493141[_0xfb1516]);this[_0x43d256(0x11e)][_0x43d256(0x10f)](_0x266ae0['id'],_0x266ae0);}return this[_0x43d256(0x12a)][_0x43d256(0x114)][_0x43d256(0x123)](_0x43d256(0x115),this[_0x43d256(0x11e)][_0x43d256(0x128)]()),this[_0x43d256(0x11e)][_0x43d256(0x128)]();}catch(_0x2c08cd){this[_0x43d256(0x12a)][_0x43d256(0x114)][_0x43d256(0x123)](_0x43d256(0x12b),{'error':_0x2c08cd});throw _0x2c08cd;}}async[a40_0x90f42e(0x116)](_0x2a6deb){const _0x9abe14=a40_0x90f42e;try{if(!this[_0x9abe14(0x12a)]['tokenIsValide']())throw new Error(_0x9abe14(0x113));const _0x24d540=await this[_0x9abe14(0x12a)][_0x9abe14(0x114)][_0x9abe14(0x121)]('item.read.some',_0x2a6deb);for(let _0x4da2d3=0x0;_0x4da2d3<_0x24d540['length'];_0x4da2d3++){const _0x344206=new Item(this['owl'],_0x24d540[_0x4da2d3]);this[_0x9abe14(0x11e)][_0x9abe14(0x10f)](_0x344206['id'],_0x344206);}return this[_0x9abe14(0x12a)][_0x9abe14(0x114)][_0x9abe14(0x123)](_0x9abe14(0x10d),_0x24d540),_0x24d540;}catch(_0x190248){this[_0x9abe14(0x12a)]['events'][_0x9abe14(0x123)](_0x9abe14(0x12b),{'error':_0x190248});throw _0x190248;}}async['new'](_0x55a0cf){const _0xdab18c=a40_0x90f42e;try{if(!this[_0xdab18c(0x12a)][_0xdab18c(0x11f)]())throw new Error(_0xdab18c(0x113));const _0x2d188e=await this[_0xdab18c(0x12a)][_0xdab18c(0x114)][_0xdab18c(0x121)](_0xdab18c(0x11b),{'item':_0x55a0cf});_0x55a0cf['id']=_0x2d188e;const _0xc2da0a=new Item(this[_0xdab18c(0x12a)],_0x55a0cf);return this[_0xdab18c(0x11e)]['set'](_0xc2da0a['id'],_0xc2da0a),_0xc2da0a;}catch(_0x45edfa){this[_0xdab18c(0x12a)][_0xdab18c(0x114)][_0xdab18c(0x123)]('item.error',{'error':_0x45edfa});throw _0x45edfa;}}async[a40_0x90f42e(0x11a)](_0x996c0a,_0x405d02){const _0x413e9d=a40_0x90f42e;try{if(!this[_0x413e9d(0x12a)][_0x413e9d(0x11f)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x413e9d(0x12a)][_0x413e9d(0x114)][_0x413e9d(0x121)](_0x413e9d(0x120),_0x405d02)[_0x413e9d(0x12c)](_0x42c695=>{const _0x205df5=_0x413e9d;this[_0x205df5(0x11e)][_0x205df5(0x10f)](_0x996c0a,_0x42c695);});}catch(_0x94f975){this['owl'][_0x413e9d(0x114)][_0x413e9d(0x123)]('item.error',{'error':_0x94f975});throw _0x94f975;}}async[a40_0x90f42e(0x126)](_0x32b6b8){const _0x16dac3=a40_0x90f42e;try{if(!this[_0x16dac3(0x12a)][_0x16dac3(0x11f)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x16dac3(0x12a)]['events'][_0x16dac3(0x123)](_0x16dac3(0x109),{'id':_0x32b6b8}),this[_0x16dac3(0x11e)][_0x16dac3(0x126)](_0x32b6b8);}catch(_0x137ad4){this['owl'][_0x16dac3(0x114)]['emit'](_0x16dac3(0x12b),{'error':_0x137ad4});throw _0x137ad4;}}}
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 +1 @@
1
- const a41_0x315e61=a41_0x1489;function a41_0x5168(){const _0x5d688b=['values','request','delete','cache','order.created','36160cCQEZL','order.error','events','emit','2007QabZPI','tokenIsValide','430420sCBpTi','get','193966hKFtdv','modify','11SHPtQK','then','order.updated','000001:\x20Invalid\x20Token.','4019805RxWxAn','order.cached.some','1384TxHpaS','some','order.read.some','order.cached.all','fetchAll','11606PwAziJ','has','set','length','7564458cfAjUz','order.deleted','6274240nKCAhR','owl'];a41_0x5168=function(){return _0x5d688b;};return a41_0x5168();}(function(_0x11703a,_0x22a4fd){const _0x10f89d=a41_0x1489,_0x1bb6cb=_0x11703a();while(!![]){try{const _0x14c7ab=parseInt(_0x10f89d(0x1aa))/0x1*(parseInt(_0x10f89d(0x1ca))/0x2)+-parseInt(_0x10f89d(0x1ae))/0x3+-parseInt(_0x10f89d(0x1c8))/0x4+-parseInt(_0x10f89d(0x1bb))/0x5+parseInt(_0x10f89d(0x1b9))/0x6+-parseInt(_0x10f89d(0x1b5))/0x7*(-parseInt(_0x10f89d(0x1b0))/0x8)+-parseInt(_0x10f89d(0x1c6))/0x9*(-parseInt(_0x10f89d(0x1c2))/0xa);if(_0x14c7ab===_0x22a4fd)break;else _0x1bb6cb['push'](_0x1bb6cb['shift']());}catch(_0x48b3ac){_0x1bb6cb['push'](_0x1bb6cb['shift']());}}}(a41_0x5168,0xaf622));import{Manager}from'../core/Manager.js';function a41_0x1489(_0x374495,_0x32018b){_0x374495=_0x374495-0x1aa;const _0x516802=a41_0x5168();let _0x148915=_0x516802[_0x374495];return _0x148915;}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async['fetch'](_0x4abafc){const _0x325fc2=a41_0x1489;try{if(!this[_0x325fc2(0x1bc)][_0x325fc2(0x1c7)]())throw new Error(_0x325fc2(0x1ad));if(this[_0x325fc2(0x1c0)][_0x325fc2(0x1b6)](_0x4abafc))return this[_0x325fc2(0x1c0)][_0x325fc2(0x1c9)](_0x4abafc);const _0x2d8711=await this['owl'][_0x325fc2(0x1c4)][_0x325fc2(0x1be)]('order.read',{'id':_0x4abafc}),_0x5b4d8e=new Order(this[_0x325fc2(0x1bc)],_0x2d8711);return this['cache'][_0x325fc2(0x1b7)](_0x4abafc,_0x5b4d8e),this[_0x325fc2(0x1bc)][_0x325fc2(0x1c4)][_0x325fc2(0x1c5)]('order.cached',_0x5b4d8e),_0x5b4d8e;}catch(_0x1839a5){this['owl'][_0x325fc2(0x1c4)][_0x325fc2(0x1c5)](_0x325fc2(0x1c3),{'error':_0x1839a5});throw _0x1839a5;}}async[a41_0x315e61(0x1b4)](){const _0x2f57e1=a41_0x315e61;try{if(!this[_0x2f57e1(0x1bc)][_0x2f57e1(0x1c7)]())throw new Error(_0x2f57e1(0x1ad));const _0x2b27a9=await this[_0x2f57e1(0x1bc)][_0x2f57e1(0x1c4)][_0x2f57e1(0x1be)]('order.read.all',{});for(let _0x372b35=0x0;_0x372b35<_0x2b27a9[_0x2f57e1(0x1b8)];_0x372b35++){const _0x1d9490=new Order(this[_0x2f57e1(0x1bc)],_0x2b27a9[_0x372b35]);this[_0x2f57e1(0x1c0)][_0x2f57e1(0x1b7)](_0x1d9490['id'],_0x1d9490);}return this[_0x2f57e1(0x1bc)][_0x2f57e1(0x1c4)][_0x2f57e1(0x1c5)](_0x2f57e1(0x1b3),this['cache'][_0x2f57e1(0x1bd)]()),this[_0x2f57e1(0x1c0)][_0x2f57e1(0x1bd)]();}catch(_0x1f413f){this['owl']['events'][_0x2f57e1(0x1c5)]('order.error',{'error':_0x1f413f});throw _0x1f413f;}}async[a41_0x315e61(0x1b1)](_0x4fdf80){const _0xc1c347=a41_0x315e61;try{if(!this[_0xc1c347(0x1bc)][_0xc1c347(0x1c7)]())throw new Error(_0xc1c347(0x1ad));const _0x1a443b=await this[_0xc1c347(0x1bc)][_0xc1c347(0x1c4)][_0xc1c347(0x1be)](_0xc1c347(0x1b2),_0x4fdf80);for(let _0x542436=0x0;_0x542436<_0x1a443b[_0xc1c347(0x1b8)];_0x542436++){const _0x9c7c58=new Order(this[_0xc1c347(0x1bc)],_0x1a443b[_0x542436]);this[_0xc1c347(0x1c0)][_0xc1c347(0x1b7)](_0x9c7c58['id'],_0x9c7c58);}return this['owl'][_0xc1c347(0x1c4)][_0xc1c347(0x1c5)](_0xc1c347(0x1af),_0x1a443b),_0x1a443b;}catch(_0x26f9db){this[_0xc1c347(0x1bc)]['events'][_0xc1c347(0x1c5)]('order.error',{'error':_0x26f9db});throw _0x26f9db;}}async['new'](_0x334d4e){const _0x28a9e5=a41_0x315e61;try{if(!this[_0x28a9e5(0x1bc)][_0x28a9e5(0x1c7)]())throw new Error(_0x28a9e5(0x1ad));const _0x52f9bb=await this[_0x28a9e5(0x1bc)][_0x28a9e5(0x1c4)]['request'](_0x28a9e5(0x1c1),{'order':_0x334d4e});_0x334d4e['id']=_0x52f9bb;const _0x13b938=new Order(this[_0x28a9e5(0x1bc)],_0x334d4e);return this[_0x28a9e5(0x1c0)][_0x28a9e5(0x1b7)](_0x13b938['id'],_0x13b938),_0x13b938;}catch(_0x49f0a6){this[_0x28a9e5(0x1bc)][_0x28a9e5(0x1c4)][_0x28a9e5(0x1c5)](_0x28a9e5(0x1c3),{'error':_0x49f0a6});throw _0x49f0a6;}}async[a41_0x315e61(0x1cb)](_0x6bf59a,_0x373d14){const _0x42dbb6=a41_0x315e61;try{if(!this[_0x42dbb6(0x1bc)]['tokenIsValide']())throw new Error(_0x42dbb6(0x1ad));await this['owl']['events'][_0x42dbb6(0x1be)](_0x42dbb6(0x1ac),_0x373d14)[_0x42dbb6(0x1ab)](_0x3ab2fe=>{const _0x4e99ba=_0x42dbb6;this['cache'][_0x4e99ba(0x1b7)](_0x6bf59a,_0x3ab2fe);});}catch(_0x2eca35){this[_0x42dbb6(0x1bc)][_0x42dbb6(0x1c4)][_0x42dbb6(0x1c5)](_0x42dbb6(0x1c3),{'error':_0x2eca35});throw _0x2eca35;}}async[a41_0x315e61(0x1bf)](_0x41d1db){const _0x5da3cb=a41_0x315e61;try{if(!this[_0x5da3cb(0x1bc)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x5da3cb(0x1bc)][_0x5da3cb(0x1c4)][_0x5da3cb(0x1c5)](_0x5da3cb(0x1ba),{'id':_0x41d1db}),this[_0x5da3cb(0x1c0)][_0x5da3cb(0x1bf)](_0x41d1db);}catch(_0x4eb14d){this[_0x5da3cb(0x1bc)]['events'][_0x5da3cb(0x1c5)]('order.error',{'error':_0x4eb14d});throw _0x4eb14d;}}}
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 +1 @@
1
- function a42_0x499f(){const _0x5650f4=['preparation.error','set','14815050gsEiFH','preparation.cached','129iBZsCb','fetchAll','50DFiepp','get','43433112CItZyz','then','delete','tokenIsValide','000001:\x20Invalid\x20Token.','emit','preparation.read.some','has','length','13377573aLSCRL','owl','some','3758370XSovWF','values','fetch','preparation.created','11aCUDGW','preparation.read.all','new','6170TPbfjP','3349182adiigx','preparation.cached.some','8RbUqUr','events','request','24NvMDsy','cache','7qiCjSQ','preparation.cached.all'];a42_0x499f=function(){return _0x5650f4;};return a42_0x499f();}function a42_0x16f4(_0xbd9e93,_0x5a2a7a){_0xbd9e93=_0xbd9e93-0x164;const _0x499fe4=a42_0x499f();let _0x16f43b=_0x499fe4[_0xbd9e93];return _0x16f43b;}const a42_0x1f4f23=a42_0x16f4;(function(_0x21636a,_0x5073a4){const _0x351eeb=a42_0x16f4,_0x3ea02c=_0x21636a();while(!![]){try{const _0x17bd79=parseInt(_0x351eeb(0x183))/0x1*(parseInt(_0x351eeb(0x173))/0x2)+-parseInt(_0x351eeb(0x181))/0x3*(parseInt(_0x351eeb(0x179))/0x4)+parseInt(_0x351eeb(0x16c))/0x5+parseInt(_0x351eeb(0x174))/0x6*(parseInt(_0x351eeb(0x17b))/0x7)+-parseInt(_0x351eeb(0x176))/0x8*(-parseInt(_0x351eeb(0x169))/0x9)+parseInt(_0x351eeb(0x17f))/0xa+-parseInt(_0x351eeb(0x170))/0xb*(parseInt(_0x351eeb(0x185))/0xc);if(_0x17bd79===_0x5073a4)break;else _0x3ea02c['push'](_0x3ea02c['shift']());}catch(_0x512e7c){_0x3ea02c['push'](_0x3ea02c['shift']());}}}(a42_0x499f,0xc6533));import{Manager}from'../core/Manager.js';import{Preparation}from'../entities/Preparation.js';export class PreparationManager extends Manager{async[a42_0x1f4f23(0x16e)](_0xbf4602){const _0x2f74e3=a42_0x1f4f23;try{if(!this[_0x2f74e3(0x16a)][_0x2f74e3(0x188)]())throw new Error(_0x2f74e3(0x164));if(this['cache'][_0x2f74e3(0x167)](_0xbf4602))return this[_0x2f74e3(0x17a)][_0x2f74e3(0x184)](_0xbf4602);const _0xd1e25e=await this[_0x2f74e3(0x16a)][_0x2f74e3(0x177)][_0x2f74e3(0x178)]('preparation.read',{'id':_0xbf4602}),_0x5d9fe5=new Preparation(this[_0x2f74e3(0x16a)],_0xd1e25e);return this['cache'][_0x2f74e3(0x17e)](_0xbf4602,_0x5d9fe5),this[_0x2f74e3(0x16a)][_0x2f74e3(0x177)][_0x2f74e3(0x165)](_0x2f74e3(0x180),_0x5d9fe5),_0x5d9fe5;}catch(_0x6b7fd2){this[_0x2f74e3(0x16a)][_0x2f74e3(0x177)][_0x2f74e3(0x165)]('preparation.error',{'error':_0x6b7fd2});throw _0x6b7fd2;}}async[a42_0x1f4f23(0x182)](){const _0x55356d=a42_0x1f4f23;try{if(!this[_0x55356d(0x16a)][_0x55356d(0x188)]())throw new Error(_0x55356d(0x164));const _0x30458a=await this[_0x55356d(0x16a)][_0x55356d(0x177)]['request'](_0x55356d(0x171),{});for(let _0x13e854=0x0;_0x13e854<_0x30458a[_0x55356d(0x168)];_0x13e854++){const _0x376ea7=new Preparation(this[_0x55356d(0x16a)],_0x30458a[_0x13e854]);this[_0x55356d(0x17a)]['set'](_0x376ea7['id'],_0x376ea7);}return this['owl'][_0x55356d(0x177)][_0x55356d(0x165)](_0x55356d(0x17c),this[_0x55356d(0x17a)]['values']()),this[_0x55356d(0x17a)][_0x55356d(0x16d)]();}catch(_0x26dc4a){this['owl'][_0x55356d(0x177)][_0x55356d(0x165)](_0x55356d(0x17d),{'error':_0x26dc4a});throw _0x26dc4a;}}async[a42_0x1f4f23(0x16b)](_0x4ff1e0){const _0x4d00f0=a42_0x1f4f23;try{if(!this[_0x4d00f0(0x16a)][_0x4d00f0(0x188)]())throw new Error(_0x4d00f0(0x164));const _0x4d57b8=await this[_0x4d00f0(0x16a)][_0x4d00f0(0x177)][_0x4d00f0(0x178)](_0x4d00f0(0x166),_0x4ff1e0);for(let _0x11dc20=0x0;_0x11dc20<_0x4d57b8[_0x4d00f0(0x168)];_0x11dc20++){const _0x263fc8=new Preparation(this[_0x4d00f0(0x16a)],_0x4d57b8[_0x11dc20]);this['cache'][_0x4d00f0(0x17e)](_0x263fc8['id'],_0x263fc8);}return this[_0x4d00f0(0x16a)][_0x4d00f0(0x177)][_0x4d00f0(0x165)](_0x4d00f0(0x175),_0x4d57b8),_0x4d57b8;}catch(_0x36c33f){this[_0x4d00f0(0x16a)][_0x4d00f0(0x177)][_0x4d00f0(0x165)](_0x4d00f0(0x17d),{'error':_0x36c33f});throw _0x36c33f;}}async[a42_0x1f4f23(0x172)](_0x38a130){const _0x132e04=a42_0x1f4f23;try{if(!this[_0x132e04(0x16a)][_0x132e04(0x188)]())throw new Error(_0x132e04(0x164));const _0x2c6b10=await this[_0x132e04(0x16a)][_0x132e04(0x177)][_0x132e04(0x178)](_0x132e04(0x16f),{'preparation':_0x38a130});_0x38a130['id']=_0x2c6b10;const _0x4bbaba=new Preparation(this[_0x132e04(0x16a)],_0x38a130);return this[_0x132e04(0x17a)][_0x132e04(0x17e)](_0x4bbaba['id'],_0x4bbaba),_0x4bbaba;}catch(_0x350923){this['owl'][_0x132e04(0x177)]['emit'](_0x132e04(0x17d),{'error':_0x350923});throw _0x350923;}}async['modify'](_0x1d0435,_0x3540a7){const _0x3cabf3=a42_0x1f4f23;try{if(!this[_0x3cabf3(0x16a)][_0x3cabf3(0x188)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x3cabf3(0x16a)]['events'][_0x3cabf3(0x178)]('preparation.updated',_0x3540a7)[_0x3cabf3(0x186)](_0x1486c1=>{const _0x3dce0a=_0x3cabf3;this[_0x3dce0a(0x17a)][_0x3dce0a(0x17e)](_0x1d0435,_0x1486c1);});}catch(_0x3007fc){this[_0x3cabf3(0x16a)][_0x3cabf3(0x177)][_0x3cabf3(0x165)](_0x3cabf3(0x17d),{'error':_0x3007fc});throw _0x3007fc;}}async[a42_0x1f4f23(0x187)](_0x17df7c){const _0x185b5e=a42_0x1f4f23;try{if(!this[_0x185b5e(0x16a)]['tokenIsValide']())throw new Error(_0x185b5e(0x164));await this['owl'][_0x185b5e(0x177)][_0x185b5e(0x165)]('preparation.deleted',{'id':_0x17df7c}),this[_0x185b5e(0x17a)][_0x185b5e(0x187)](_0x17df7c);}catch(_0x4f1ac8){this[_0x185b5e(0x16a)][_0x185b5e(0x177)][_0x185b5e(0x165)](_0x185b5e(0x17d),{'error':_0x4f1ac8});throw _0x4f1ac8;}}}
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 +1 @@
1
- const a43_0x1904b1=a43_0x4b23;(function(_0x22bdac,_0x184fb8){const _0xdec4fa=a43_0x4b23,_0x537a09=_0x22bdac();while(!![]){try{const _0x16ad1c=parseInt(_0xdec4fa(0x100))/0x1*(-parseInt(_0xdec4fa(0x10e))/0x2)+-parseInt(_0xdec4fa(0x10b))/0x3*(parseInt(_0xdec4fa(0x10a))/0x4)+parseInt(_0xdec4fa(0x115))/0x5*(parseInt(_0xdec4fa(0x102))/0x6)+parseInt(_0xdec4fa(0xfe))/0x7*(-parseInt(_0xdec4fa(0x111))/0x8)+parseInt(_0xdec4fa(0x10c))/0x9+parseInt(_0xdec4fa(0xff))/0xa+-parseInt(_0xdec4fa(0x101))/0xb*(parseInt(_0xdec4fa(0xf2))/0xc);if(_0x16ad1c===_0x184fb8)break;else _0x537a09['push'](_0x537a09['shift']());}catch(_0xd525b6){_0x537a09['push'](_0x537a09['shift']());}}}(a43_0x1e7b,0xb1978));import{Manager}from'../core/Manager.js';function a43_0x4b23(_0x24a7b4,_0x2d875b){_0x24a7b4=_0x24a7b4-0xf1;const _0x1e7b41=a43_0x1e7b();let _0x4b23ad=_0x1e7b41[_0x24a7b4];return _0x4b23ad;}import{Purchase}from'../entities/Purchase.js';function a43_0x1e7b(){const _0x231d90=['10606270wPLWlN','1189057CbRoxV','916993FECLEc','18XzkMGA','delete','set','purchase.cached.some','purchase.cached.all','events','purchase.read','purchase.deleted','28doiTje','378204arMnUV','11313864trWyCs','purchase.cached','2acycJi','000001:\x20Invalid\x20Token.','some','14936xnNdnS','tokenIsValide','request','cache','2034115ZHTgmk','new','owl','emit','36ogerEl','length','purchase.updated','then','purchase.error','modify','purchase.created','values','purchase.read.all','has','fetch','get','1834CLQOTO'];a43_0x1e7b=function(){return _0x231d90;};return a43_0x1e7b();}export class PurchaseManager extends Manager{async[a43_0x1904b1(0xfc)](_0x31444b){const _0x20a9c9=a43_0x1904b1;try{if(!this[_0x20a9c9(0x117)][_0x20a9c9(0x112)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x20a9c9(0x114)][_0x20a9c9(0xfb)](_0x31444b))return this['cache'][_0x20a9c9(0xfd)](_0x31444b);const _0xf3216a=await this['owl'][_0x20a9c9(0x107)][_0x20a9c9(0x113)](_0x20a9c9(0x108),{'id':_0x31444b}),_0x3d8bbf=new Purchase(this[_0x20a9c9(0x117)],_0xf3216a);return this[_0x20a9c9(0x114)][_0x20a9c9(0x104)](_0x31444b,_0x3d8bbf),this[_0x20a9c9(0x117)][_0x20a9c9(0x107)]['emit'](_0x20a9c9(0x10d),_0x3d8bbf),_0x3d8bbf;}catch(_0x240f1c){this[_0x20a9c9(0x117)]['events']['emit'](_0x20a9c9(0xf6),{'error':_0x240f1c});throw _0x240f1c;}}async['fetchAll'](){const _0x353263=a43_0x1904b1;try{if(!this[_0x353263(0x117)][_0x353263(0x112)]())throw new Error(_0x353263(0x10f));const _0x5902d1=await this['owl'][_0x353263(0x107)][_0x353263(0x113)](_0x353263(0xfa),{});for(let _0x4b4212=0x0;_0x4b4212<_0x5902d1[_0x353263(0xf3)];_0x4b4212++){const _0x448398=new Purchase(this[_0x353263(0x117)],_0x5902d1[_0x4b4212]);this[_0x353263(0x114)]['set'](_0x448398['id'],_0x448398);}return this[_0x353263(0x117)]['events'][_0x353263(0xf1)](_0x353263(0x106),this[_0x353263(0x114)]['values']()),this[_0x353263(0x114)][_0x353263(0xf9)]();}catch(_0x28f3d7){this['owl'][_0x353263(0x107)][_0x353263(0xf1)](_0x353263(0xf6),{'error':_0x28f3d7});throw _0x28f3d7;}}async[a43_0x1904b1(0x110)](_0x25ef6e){const _0x221d89=a43_0x1904b1;try{if(!this[_0x221d89(0x117)]['tokenIsValide']())throw new Error(_0x221d89(0x10f));const _0x1731c5=await this[_0x221d89(0x117)]['events']['request']('purchase.read.some',_0x25ef6e);for(let _0x1cc0dc=0x0;_0x1cc0dc<_0x1731c5[_0x221d89(0xf3)];_0x1cc0dc++){const _0x17521b=new Purchase(this['owl'],_0x1731c5[_0x1cc0dc]);this[_0x221d89(0x114)][_0x221d89(0x104)](_0x17521b['id'],_0x17521b);}return this[_0x221d89(0x117)][_0x221d89(0x107)][_0x221d89(0xf1)](_0x221d89(0x105),_0x1731c5),_0x1731c5;}catch(_0x1130ff){this['owl'][_0x221d89(0x107)][_0x221d89(0xf1)](_0x221d89(0xf6),{'error':_0x1130ff});throw _0x1130ff;}}async[a43_0x1904b1(0x116)](_0xbb1c98){const _0x467d97=a43_0x1904b1;try{if(!this[_0x467d97(0x117)][_0x467d97(0x112)]())throw new Error(_0x467d97(0x10f));const _0x312488=await this[_0x467d97(0x117)][_0x467d97(0x107)][_0x467d97(0x113)](_0x467d97(0xf8),{'purchase':_0xbb1c98});_0xbb1c98['id']=_0x312488;const _0x159bed=new Purchase(this[_0x467d97(0x117)],_0xbb1c98);return this[_0x467d97(0x114)][_0x467d97(0x104)](_0x159bed['id'],_0x159bed),_0x159bed;}catch(_0x1834b8){this[_0x467d97(0x117)][_0x467d97(0x107)][_0x467d97(0xf1)](_0x467d97(0xf6),{'error':_0x1834b8});throw _0x1834b8;}}async[a43_0x1904b1(0xf7)](_0x1833af,_0xa15708){const _0x3452fe=a43_0x1904b1;try{if(!this[_0x3452fe(0x117)][_0x3452fe(0x112)]())throw new Error(_0x3452fe(0x10f));await this[_0x3452fe(0x117)][_0x3452fe(0x107)][_0x3452fe(0x113)](_0x3452fe(0xf4),_0xa15708)[_0x3452fe(0xf5)](_0x3a43b4=>{const _0xe43f33=_0x3452fe;this['cache'][_0xe43f33(0x104)](_0x1833af,_0x3a43b4);});}catch(_0x4c4e6c){this[_0x3452fe(0x117)][_0x3452fe(0x107)][_0x3452fe(0xf1)](_0x3452fe(0xf6),{'error':_0x4c4e6c});throw _0x4c4e6c;}}async[a43_0x1904b1(0x103)](_0x20e224){const _0x37f1ee=a43_0x1904b1;try{if(!this[_0x37f1ee(0x117)][_0x37f1ee(0x112)]())throw new Error(_0x37f1ee(0x10f));await this[_0x37f1ee(0x117)][_0x37f1ee(0x107)]['emit'](_0x37f1ee(0x109),{'id':_0x20e224}),this[_0x37f1ee(0x114)]['delete'](_0x20e224);}catch(_0x3056ef){this[_0x37f1ee(0x117)]['events'][_0x37f1ee(0xf1)](_0x37f1ee(0xf6),{'error':_0x3056ef});throw _0x3056ef;}}}
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 +1 @@
1
- const a44_0x301364=a44_0x3420;(function(_0x143f18,_0x9488b0){const _0x28d87a=a44_0x3420,_0x2e35ec=_0x143f18();while(!![]){try{const _0x333bee=parseInt(_0x28d87a(0x184))/0x1+parseInt(_0x28d87a(0x188))/0x2+-parseInt(_0x28d87a(0x17e))/0x3+parseInt(_0x28d87a(0x192))/0x4*(-parseInt(_0x28d87a(0x18a))/0x5)+parseInt(_0x28d87a(0x194))/0x6+parseInt(_0x28d87a(0x186))/0x7+-parseInt(_0x28d87a(0x178))/0x8;if(_0x333bee===_0x9488b0)break;else _0x2e35ec['push'](_0x2e35ec['shift']());}catch(_0x427e41){_0x2e35ec['push'](_0x2e35ec['shift']());}}}(a44_0x1fba,0xc6f1d));import{Manager}from'../core/Manager.js';function a44_0x1fba(){const _0x3220f7=['reception.cached.all','524330CNBUgJ','request','10388350zDkQEm','owl','156780RSWavN','reception.read.all','10jiaNrD','modify','set','delete','has','events','values','get','1438408cVBLmd','reception.created','8217786ruQCFS','reception.updated','emit','fetch','cache','7927232WpEpdj','new','reception.cached.some','000001:\x20Invalid\x20Token.','reception.cached','tokenIsValide','2794248QyIboB','some','reception.error','length','fetchAll'];a44_0x1fba=function(){return _0x3220f7;};return a44_0x1fba();}function a44_0x3420(_0xef2da5,_0x6457b9){_0xef2da5=_0xef2da5-0x174;const _0x1fbad1=a44_0x1fba();let _0x34202e=_0x1fbad1[_0xef2da5];return _0x34202e;}import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async[a44_0x301364(0x176)](_0x19189d){const _0x2e26b7=a44_0x301364;try{if(!this[_0x2e26b7(0x187)][_0x2e26b7(0x17d)]())throw new Error(_0x2e26b7(0x17b));if(this[_0x2e26b7(0x177)][_0x2e26b7(0x18e)](_0x19189d))return this['cache'][_0x2e26b7(0x191)](_0x19189d);const _0x523222=await this['owl'][_0x2e26b7(0x18f)][_0x2e26b7(0x185)]('reception.read',{'id':_0x19189d}),_0x4335bd=new Reception(this['owl'],_0x523222);return this[_0x2e26b7(0x177)][_0x2e26b7(0x18c)](_0x19189d,_0x4335bd),this[_0x2e26b7(0x187)][_0x2e26b7(0x18f)][_0x2e26b7(0x175)](_0x2e26b7(0x17c),_0x4335bd),_0x4335bd;}catch(_0x1f0d08){this[_0x2e26b7(0x187)][_0x2e26b7(0x18f)][_0x2e26b7(0x175)](_0x2e26b7(0x180),{'error':_0x1f0d08});throw _0x1f0d08;}}async[a44_0x301364(0x182)](){const _0x4854d0=a44_0x301364;try{if(!this[_0x4854d0(0x187)][_0x4854d0(0x17d)]())throw new Error(_0x4854d0(0x17b));const _0x38bd42=await this[_0x4854d0(0x187)][_0x4854d0(0x18f)][_0x4854d0(0x185)](_0x4854d0(0x189),{});for(let _0xcfcc5c=0x0;_0xcfcc5c<_0x38bd42['length'];_0xcfcc5c++){const _0x4d2d2d=new Reception(this[_0x4854d0(0x187)],_0x38bd42[_0xcfcc5c]);this['cache'][_0x4854d0(0x18c)](_0x4d2d2d['id'],_0x4d2d2d);}return this[_0x4854d0(0x187)]['events'][_0x4854d0(0x175)](_0x4854d0(0x183),this[_0x4854d0(0x177)][_0x4854d0(0x190)]()),this[_0x4854d0(0x177)]['values']();}catch(_0x11b83d){this['owl'][_0x4854d0(0x18f)][_0x4854d0(0x175)](_0x4854d0(0x180),{'error':_0x11b83d});throw _0x11b83d;}}async[a44_0x301364(0x17f)](_0x476e41){const _0x11aeb4=a44_0x301364;try{if(!this['owl'][_0x11aeb4(0x17d)]())throw new Error(_0x11aeb4(0x17b));const _0x47c382=await this[_0x11aeb4(0x187)][_0x11aeb4(0x18f)][_0x11aeb4(0x185)]('reception.read.some',_0x476e41);for(let _0x234884=0x0;_0x234884<_0x47c382[_0x11aeb4(0x181)];_0x234884++){const _0x1de0fa=new Reception(this['owl'],_0x47c382[_0x234884]);this['cache'][_0x11aeb4(0x18c)](_0x1de0fa['id'],_0x1de0fa);}return this[_0x11aeb4(0x187)][_0x11aeb4(0x18f)][_0x11aeb4(0x175)](_0x11aeb4(0x17a),_0x47c382),_0x47c382;}catch(_0x472648){this['owl'][_0x11aeb4(0x18f)]['emit']('reception.error',{'error':_0x472648});throw _0x472648;}}async[a44_0x301364(0x179)](_0x260883){const _0x353746=a44_0x301364;try{if(!this[_0x353746(0x187)][_0x353746(0x17d)]())throw new Error(_0x353746(0x17b));const _0x1ef2f9=await this[_0x353746(0x187)][_0x353746(0x18f)][_0x353746(0x185)](_0x353746(0x193),{'reception':_0x260883});_0x260883['id']=_0x1ef2f9;const _0x50622f=new Reception(this[_0x353746(0x187)],_0x260883);return this['cache'][_0x353746(0x18c)](_0x50622f['id'],_0x50622f),_0x50622f;}catch(_0x41c335){this[_0x353746(0x187)]['events']['emit'](_0x353746(0x180),{'error':_0x41c335});throw _0x41c335;}}async[a44_0x301364(0x18b)](_0x463b38,_0x2824bb){const _0x1f6f79=a44_0x301364;try{if(!this[_0x1f6f79(0x187)][_0x1f6f79(0x17d)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x1f6f79(0x187)][_0x1f6f79(0x18f)]['request'](_0x1f6f79(0x174),_0x2824bb)['then'](_0x18a5c3=>{const _0x178008=_0x1f6f79;this[_0x178008(0x177)]['set'](_0x463b38,_0x18a5c3);});}catch(_0x366609){this['owl'][_0x1f6f79(0x18f)][_0x1f6f79(0x175)](_0x1f6f79(0x180),{'error':_0x366609});throw _0x366609;}}async[a44_0x301364(0x18d)](_0x5339d6){const _0x1e96c3=a44_0x301364;try{if(!this[_0x1e96c3(0x187)][_0x1e96c3(0x17d)]())throw new Error(_0x1e96c3(0x17b));await this[_0x1e96c3(0x187)][_0x1e96c3(0x18f)]['emit']('reception.deleted',{'id':_0x5339d6}),this[_0x1e96c3(0x177)][_0x1e96c3(0x18d)](_0x5339d6);}catch(_0x2ebb52){this[_0x1e96c3(0x187)][_0x1e96c3(0x18f)][_0x1e96c3(0x175)]('reception.error',{'error':_0x2ebb52});throw _0x2ebb52;}}}
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 +1 @@
1
- function a45_0x57ec(){const _0x3b5e21=['10tkjSUy','then','12693048PAdKzA','927WOPAsT','stock.updated','events','cache','stock.cached.some','emit','delete','16597818mvAdkU','fetch','new','9898609rINTpA','request','10330020swamdn','has','get','set','218931loJllq','stock.read.some','46pHlClV','stock.error','stock.deleted','000001:\x20Invalid\x20Token.','fetchAll','stock.read','owl','length','stock.cached.all','tokenIsValide','some','values','3498564guKjfc'];a45_0x57ec=function(){return _0x3b5e21;};return a45_0x57ec();}const a45_0x154d13=a45_0x55e1;(function(_0xb97dce,_0x264973){const _0x4db19c=a45_0x55e1,_0x49bb05=_0xb97dce();while(!![]){try{const _0x22d61b=-parseInt(_0x4db19c(0x149))/0x1+parseInt(_0x4db19c(0x14b))/0x2*(-parseInt(_0x4db19c(0x139))/0x3)+-parseInt(_0x4db19c(0x135))/0x4*(parseInt(_0x4db19c(0x136))/0x5)+parseInt(_0x4db19c(0x145))/0x6+parseInt(_0x4db19c(0x143))/0x7+parseInt(_0x4db19c(0x138))/0x8+-parseInt(_0x4db19c(0x140))/0x9;if(_0x22d61b===_0x264973)break;else _0x49bb05['push'](_0x49bb05['shift']());}catch(_0xfb6bbe){_0x49bb05['push'](_0x49bb05['shift']());}}}(a45_0x57ec,0xdc6d2));import{Manager}from'../core/Manager.js';function a45_0x55e1(_0x38127c,_0x4dfda5){_0x38127c=_0x38127c-0x12d;const _0x57ec97=a45_0x57ec();let _0x55e1ad=_0x57ec97[_0x38127c];return _0x55e1ad;}import{Stock}from'../entities/Stock.js';export class StockManager extends Manager{async[a45_0x154d13(0x141)](_0x46fe34){const _0x4d2ec8=a45_0x154d13;try{if(!this['owl'][_0x4d2ec8(0x132)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x4d2ec8(0x13c)][_0x4d2ec8(0x146)](_0x46fe34))return this['cache'][_0x4d2ec8(0x147)](_0x46fe34);const _0x36f96b=await this[_0x4d2ec8(0x12f)][_0x4d2ec8(0x13b)][_0x4d2ec8(0x144)](_0x4d2ec8(0x12e),{'id':_0x46fe34}),_0x9570e3=new Stock(this[_0x4d2ec8(0x12f)],_0x36f96b);return this['cache'][_0x4d2ec8(0x148)](_0x46fe34,_0x9570e3),this[_0x4d2ec8(0x12f)][_0x4d2ec8(0x13b)][_0x4d2ec8(0x13e)]('stock.cached',_0x9570e3),_0x9570e3;}catch(_0x3ed8d9){this[_0x4d2ec8(0x12f)][_0x4d2ec8(0x13b)][_0x4d2ec8(0x13e)](_0x4d2ec8(0x14c),{'error':_0x3ed8d9});throw _0x3ed8d9;}}async[a45_0x154d13(0x12d)](){const _0x41f011=a45_0x154d13;try{if(!this['owl'][_0x41f011(0x132)]())throw new Error(_0x41f011(0x14e));const _0x19c724=await this[_0x41f011(0x12f)][_0x41f011(0x13b)]['request']('stock.read.all',{});for(let _0x41e612=0x0;_0x41e612<_0x19c724[_0x41f011(0x130)];_0x41e612++){const _0x2ecfa9=new Stock(this[_0x41f011(0x12f)],_0x19c724[_0x41e612]);this['cache'][_0x41f011(0x148)](_0x2ecfa9['id'],_0x2ecfa9);}return this[_0x41f011(0x12f)]['events'][_0x41f011(0x13e)](_0x41f011(0x131),this[_0x41f011(0x13c)]['values']()),this['cache'][_0x41f011(0x134)]();}catch(_0x2f5bf5){this['owl'][_0x41f011(0x13b)]['emit'](_0x41f011(0x14c),{'error':_0x2f5bf5});throw _0x2f5bf5;}}async[a45_0x154d13(0x133)](_0x818a25){const _0x103756=a45_0x154d13;try{if(!this[_0x103756(0x12f)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x3b97b0=await this['owl'][_0x103756(0x13b)][_0x103756(0x144)](_0x103756(0x14a),_0x818a25);for(let _0x2f20d0=0x0;_0x2f20d0<_0x3b97b0['length'];_0x2f20d0++){const _0x24cfe5=new Stock(this['owl'],_0x3b97b0[_0x2f20d0]);this['cache'][_0x103756(0x148)](_0x24cfe5['id'],_0x24cfe5);}return this['owl'][_0x103756(0x13b)][_0x103756(0x13e)](_0x103756(0x13d),_0x3b97b0),_0x3b97b0;}catch(_0x326058){this[_0x103756(0x12f)][_0x103756(0x13b)][_0x103756(0x13e)](_0x103756(0x14c),{'error':_0x326058});throw _0x326058;}}async[a45_0x154d13(0x142)](_0xee36cd){const _0x491c5d=a45_0x154d13;try{if(!this[_0x491c5d(0x12f)][_0x491c5d(0x132)]())throw new Error(_0x491c5d(0x14e));const _0xa59532=await this[_0x491c5d(0x12f)][_0x491c5d(0x13b)][_0x491c5d(0x144)]('stock.created',{'stock':_0xee36cd});_0xee36cd['id']=_0xa59532;const _0x43da40=new Stock(this['owl'],_0xee36cd);return this['cache']['set'](_0x43da40['id'],_0x43da40),_0x43da40;}catch(_0xfdc2de){this['owl'][_0x491c5d(0x13b)][_0x491c5d(0x13e)](_0x491c5d(0x14c),{'error':_0xfdc2de});throw _0xfdc2de;}}async['modify'](_0xd9a8ad,_0x430168){const _0x169d47=a45_0x154d13;try{if(!this['owl'][_0x169d47(0x132)]())throw new Error(_0x169d47(0x14e));await this['owl'][_0x169d47(0x13b)][_0x169d47(0x144)](_0x169d47(0x13a),_0x430168)[_0x169d47(0x137)](_0x1092e1=>{const _0x4e52fb=_0x169d47;this[_0x4e52fb(0x13c)][_0x4e52fb(0x148)](_0xd9a8ad,_0x1092e1);});}catch(_0x3471d0){this[_0x169d47(0x12f)][_0x169d47(0x13b)][_0x169d47(0x13e)](_0x169d47(0x14c),{'error':_0x3471d0});throw _0x3471d0;}}async[a45_0x154d13(0x13f)](_0x349d86){const _0x504c28=a45_0x154d13;try{if(!this[_0x504c28(0x12f)][_0x504c28(0x132)]())throw new Error(_0x504c28(0x14e));await this[_0x504c28(0x12f)][_0x504c28(0x13b)][_0x504c28(0x13e)](_0x504c28(0x14d),{'id':_0x349d86}),this[_0x504c28(0x13c)][_0x504c28(0x13f)](_0x349d86);}catch(_0x11bb01){this['owl'][_0x504c28(0x13b)][_0x504c28(0x13e)](_0x504c28(0x14c),{'error':_0x11bb01});throw _0x11bb01;}}}
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 +1 @@
1
- const a46_0x2443bc=a46_0x37ef;function a46_0x37ef(_0x4bf04a,_0x3e3d37){_0x4bf04a=_0x4bf04a-0x134;const _0x1796d7=a46_0x1796();let _0x37efcd=_0x1796d7[_0x4bf04a];return _0x37efcd;}(function(_0xc6ee9c,_0x43c707){const _0x4afb7b=a46_0x37ef,_0x76068=_0xc6ee9c();while(!![]){try{const _0x3ff1ff=parseInt(_0x4afb7b(0x13e))/0x1+parseInt(_0x4afb7b(0x152))/0x2*(parseInt(_0x4afb7b(0x150))/0x3)+parseInt(_0x4afb7b(0x141))/0x4+-parseInt(_0x4afb7b(0x13b))/0x5+parseInt(_0x4afb7b(0x14e))/0x6*(-parseInt(_0x4afb7b(0x139))/0x7)+-parseInt(_0x4afb7b(0x14c))/0x8+parseInt(_0x4afb7b(0x14d))/0x9*(parseInt(_0x4afb7b(0x148))/0xa);if(_0x3ff1ff===_0x43c707)break;else _0x76068['push'](_0x76068['shift']());}catch(_0x310563){_0x76068['push'](_0x76068['shift']());}}}(a46_0x1796,0xe4e99));import{Manager}from'../core/Manager.js';import{Supplier}from'../entities/Supplier.js';export class SupplierManager extends Manager{async[a46_0x2443bc(0x144)](_0x368b4d){const _0x14c156=a46_0x2443bc;try{if(!this[_0x14c156(0x142)][_0x14c156(0x146)]())throw new Error(_0x14c156(0x137));if(this[_0x14c156(0x147)]['has'](_0x368b4d))return this[_0x14c156(0x147)][_0x14c156(0x154)](_0x368b4d);const _0x2f5747=await this[_0x14c156(0x142)][_0x14c156(0x13c)]['request'](_0x14c156(0x136),{'id':_0x368b4d}),_0x2b653b=new Supplier(this['owl'],_0x2f5747);return this['cache'][_0x14c156(0x14f)](_0x368b4d,_0x2b653b),this[_0x14c156(0x142)][_0x14c156(0x13c)][_0x14c156(0x156)](_0x14c156(0x14a),_0x2b653b),_0x2b653b;}catch(_0x1e58f9){this[_0x14c156(0x142)]['events'][_0x14c156(0x156)]('supplier.error',{'error':_0x1e58f9});throw _0x1e58f9;}}async[a46_0x2443bc(0x13d)](){const _0x413145=a46_0x2443bc;try{if(!this[_0x413145(0x142)][_0x413145(0x146)]())throw new Error(_0x413145(0x137));const _0x92bff2=await this[_0x413145(0x142)][_0x413145(0x13c)][_0x413145(0x153)](_0x413145(0x143),{});for(let _0x277a9c=0x0;_0x277a9c<_0x92bff2[_0x413145(0x149)];_0x277a9c++){const _0x3d6dd5=new Supplier(this['owl'],_0x92bff2[_0x277a9c]);this[_0x413145(0x147)][_0x413145(0x14f)](_0x3d6dd5['id'],_0x3d6dd5);}return this[_0x413145(0x142)][_0x413145(0x13c)][_0x413145(0x156)](_0x413145(0x13a),this[_0x413145(0x147)][_0x413145(0x135)]()),this[_0x413145(0x147)][_0x413145(0x135)]();}catch(_0x18cc9b){this[_0x413145(0x142)][_0x413145(0x13c)][_0x413145(0x156)](_0x413145(0x14b),{'error':_0x18cc9b});throw _0x18cc9b;}}async[a46_0x2443bc(0x157)](_0x9d5711){const _0x59cd48=a46_0x2443bc;try{if(!this[_0x59cd48(0x142)]['tokenIsValide']())throw new Error(_0x59cd48(0x137));const _0x5b3784=await this[_0x59cd48(0x142)][_0x59cd48(0x13c)][_0x59cd48(0x153)](_0x59cd48(0x155),_0x9d5711);for(let _0x12d78a=0x0;_0x12d78a<_0x5b3784[_0x59cd48(0x149)];_0x12d78a++){const _0x3cc028=new Supplier(this[_0x59cd48(0x142)],_0x5b3784[_0x12d78a]);this['cache'][_0x59cd48(0x14f)](_0x3cc028['id'],_0x3cc028);}return this[_0x59cd48(0x142)][_0x59cd48(0x13c)][_0x59cd48(0x156)]('supplier.cached.some',_0x5b3784),_0x5b3784;}catch(_0x5d9d38){this[_0x59cd48(0x142)]['events'][_0x59cd48(0x156)](_0x59cd48(0x14b),{'error':_0x5d9d38});throw _0x5d9d38;}}async[a46_0x2443bc(0x138)](_0x2d13fb){const _0x54b801=a46_0x2443bc;try{if(!this[_0x54b801(0x142)][_0x54b801(0x146)]())throw new Error(_0x54b801(0x137));const _0x5920c6=await this['owl']['events']['request'](_0x54b801(0x151),{'supplier':_0x2d13fb});_0x2d13fb['id']=_0x5920c6;const _0x89605e=new Supplier(this['owl'],_0x2d13fb);return this[_0x54b801(0x147)]['set'](_0x89605e['id'],_0x89605e),_0x89605e;}catch(_0x18081f){this['owl'][_0x54b801(0x13c)]['emit'](_0x54b801(0x14b),{'error':_0x18081f});throw _0x18081f;}}async['modify'](_0x49449e,_0x2184de){const _0x3729f3=a46_0x2443bc;try{if(!this[_0x3729f3(0x142)][_0x3729f3(0x146)]())throw new Error(_0x3729f3(0x137));await this['owl'][_0x3729f3(0x13c)][_0x3729f3(0x153)](_0x3729f3(0x145),_0x2184de)[_0x3729f3(0x13f)](_0xef3d75=>{const _0x6bfdf7=_0x3729f3;this[_0x6bfdf7(0x147)][_0x6bfdf7(0x14f)](_0x49449e,_0xef3d75);});}catch(_0x404c66){this[_0x3729f3(0x142)][_0x3729f3(0x13c)][_0x3729f3(0x156)](_0x3729f3(0x14b),{'error':_0x404c66});throw _0x404c66;}}async['delete'](_0x13c4ac){const _0x5c5627=a46_0x2443bc;try{if(!this[_0x5c5627(0x142)][_0x5c5627(0x146)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x5c5627(0x142)][_0x5c5627(0x13c)][_0x5c5627(0x156)](_0x5c5627(0x134),{'id':_0x13c4ac}),this[_0x5c5627(0x147)][_0x5c5627(0x140)](_0x13c4ac);}catch(_0x56faa4){this[_0x5c5627(0x142)][_0x5c5627(0x13c)][_0x5c5627(0x156)](_0x5c5627(0x14b),{'error':_0x56faa4});throw _0x56faa4;}}}function a46_0x1796(){const _0x23dd84=['then','delete','1752824arFvoi','owl','supplier.read.all','fetch','supplier.updated','tokenIsValide','cache','20nzKWfJ','length','supplier.cached','supplier.error','808320yjcgsY','5870781MIsxoW','6fKFIrl','set','4885497deyALg','supplier.created','2XnVRgQ','request','get','supplier.read.some','emit','some','supplier.deleted','values','supplier.read','000001:\x20Invalid\x20Token.','new','8409583zwAgzx','supplier.cached.all','7369695deKmnd','events','fetchAll','342650JqVclg'];a46_0x1796=function(){return _0x23dd84;};return a46_0x1796();}
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 +1 @@
1
- const a47_0x38fb5e=a47_0x565e;function a47_0x27b3(){const _0x2b3ea8=['tax.read.all','tax.read','936NASDHb','1631lGONmn','4599535pmNcCQ','delete','tax.cached','emit','set','2046HtXafq','length','request','570hloanc','has','67011ZwsHXS','tax.updated','fetchAll','000001:\x20Invalid\x20Token.','owl','tax.cached.some','46090kUgkOv','events','2866392IUjIQE','38673cxxdjU','4997022bUqoJk','then','cache','get','4KoJHdx','tax.read.some','363WSoMTH','tokenIsValide','modify','tax.error','tax.created'];a47_0x27b3=function(){return _0x2b3ea8;};return a47_0x27b3();}(function(_0x562b3b,_0x44c013){const _0x39929a=a47_0x565e,_0x5692c9=_0x562b3b();while(!![]){try{const _0x3e4d00=-parseInt(_0x39929a(0x1f2))/0x1*(-parseInt(_0x39929a(0x1f8))/0x2)+parseInt(_0x39929a(0x207))/0x3*(-parseInt(_0x39929a(0x1e8))/0x4)+parseInt(_0x39929a(0x1f3))/0x5+-parseInt(_0x39929a(0x1fb))/0x6*(parseInt(_0x39929a(0x1fd))/0x7)+parseInt(_0x39929a(0x1f1))/0x8*(parseInt(_0x39929a(0x206))/0x9)+-parseInt(_0x39929a(0x203))/0xa*(-parseInt(_0x39929a(0x1ea))/0xb)+parseInt(_0x39929a(0x205))/0xc;if(_0x3e4d00===_0x44c013)break;else _0x5692c9['push'](_0x5692c9['shift']());}catch(_0x5e9eaf){_0x5692c9['push'](_0x5692c9['shift']());}}}(a47_0x27b3,0xdd70f));import{Manager}from'../core/Manager.js';import{Tax}from'../entities/Tax.js';function a47_0x565e(_0x59e3f3,_0x8df3d0){_0x59e3f3=_0x59e3f3-0x1e8;const _0x27b377=a47_0x27b3();let _0x565e87=_0x27b377[_0x59e3f3];return _0x565e87;}export class TaxManager extends Manager{async['fetch'](_0xaa5353){const _0x438f3e=a47_0x565e;try{if(!this[_0x438f3e(0x201)][_0x438f3e(0x1eb)]())throw new Error(_0x438f3e(0x200));if(this[_0x438f3e(0x209)][_0x438f3e(0x1fc)](_0xaa5353))return this[_0x438f3e(0x209)][_0x438f3e(0x20a)](_0xaa5353);const _0x4107d9=await this[_0x438f3e(0x201)][_0x438f3e(0x204)][_0x438f3e(0x1fa)](_0x438f3e(0x1f0),{'id':_0xaa5353}),_0x406b55=new Tax(this[_0x438f3e(0x201)],_0x4107d9);return this[_0x438f3e(0x209)][_0x438f3e(0x1f7)](_0xaa5353,_0x406b55),this[_0x438f3e(0x201)][_0x438f3e(0x204)][_0x438f3e(0x1f6)](_0x438f3e(0x1f5),_0x406b55),_0x406b55;}catch(_0x40f4a0){this[_0x438f3e(0x201)][_0x438f3e(0x204)][_0x438f3e(0x1f6)]('tax.error',{'error':_0x40f4a0});throw _0x40f4a0;}}async[a47_0x38fb5e(0x1ff)](){const _0x201d98=a47_0x38fb5e;try{if(!this[_0x201d98(0x201)][_0x201d98(0x1eb)]())throw new Error(_0x201d98(0x200));const _0x42ae44=await this[_0x201d98(0x201)][_0x201d98(0x204)][_0x201d98(0x1fa)](_0x201d98(0x1ef),{});for(let _0x4e0304=0x0;_0x4e0304<_0x42ae44['length'];_0x4e0304++){const _0x43ad50=new Tax(this[_0x201d98(0x201)],_0x42ae44[_0x4e0304]);this[_0x201d98(0x209)][_0x201d98(0x1f7)](_0x43ad50['id'],_0x43ad50);}return this[_0x201d98(0x201)]['events']['emit']('tax.cached.all',this[_0x201d98(0x209)]['values']()),this[_0x201d98(0x209)]['values']();}catch(_0x2c74d6){this['owl'][_0x201d98(0x204)][_0x201d98(0x1f6)]('tax.error',{'error':_0x2c74d6});throw _0x2c74d6;}}async['some'](_0x5c78d1){const _0xdbb323=a47_0x38fb5e;try{if(!this[_0xdbb323(0x201)]['tokenIsValide']())throw new Error(_0xdbb323(0x200));const _0x53da39=await this[_0xdbb323(0x201)][_0xdbb323(0x204)][_0xdbb323(0x1fa)](_0xdbb323(0x1e9),_0x5c78d1);for(let _0x419422=0x0;_0x419422<_0x53da39[_0xdbb323(0x1f9)];_0x419422++){const _0x1b7a64=new Tax(this[_0xdbb323(0x201)],_0x53da39[_0x419422]);this[_0xdbb323(0x209)][_0xdbb323(0x1f7)](_0x1b7a64['id'],_0x1b7a64);}return this[_0xdbb323(0x201)]['events'][_0xdbb323(0x1f6)](_0xdbb323(0x202),_0x53da39),_0x53da39;}catch(_0x241ae2){this[_0xdbb323(0x201)][_0xdbb323(0x204)][_0xdbb323(0x1f6)](_0xdbb323(0x1ed),{'error':_0x241ae2});throw _0x241ae2;}}async['new'](_0x310547){const _0x2cf76b=a47_0x38fb5e;try{if(!this[_0x2cf76b(0x201)][_0x2cf76b(0x1eb)]())throw new Error(_0x2cf76b(0x200));const _0x4c6e1e=await this['owl'][_0x2cf76b(0x204)][_0x2cf76b(0x1fa)](_0x2cf76b(0x1ee),{'tax':_0x310547});_0x310547['id']=_0x4c6e1e;const _0x1cc775=new Tax(this['owl'],_0x310547);return this[_0x2cf76b(0x209)][_0x2cf76b(0x1f7)](_0x1cc775['id'],_0x1cc775),_0x1cc775;}catch(_0x10d345){this[_0x2cf76b(0x201)]['events'][_0x2cf76b(0x1f6)](_0x2cf76b(0x1ed),{'error':_0x10d345});throw _0x10d345;}}async[a47_0x38fb5e(0x1ec)](_0x507123,_0x2ccf50){const _0x4d7c5f=a47_0x38fb5e;try{if(!this[_0x4d7c5f(0x201)][_0x4d7c5f(0x1eb)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4d7c5f(0x201)][_0x4d7c5f(0x204)]['request'](_0x4d7c5f(0x1fe),_0x2ccf50)[_0x4d7c5f(0x208)](_0x23f229=>{const _0x2fa5d9=_0x4d7c5f;this[_0x2fa5d9(0x209)][_0x2fa5d9(0x1f7)](_0x507123,_0x23f229);});}catch(_0x56b2bf){this[_0x4d7c5f(0x201)][_0x4d7c5f(0x204)]['emit'](_0x4d7c5f(0x1ed),{'error':_0x56b2bf});throw _0x56b2bf;}}async[a47_0x38fb5e(0x1f4)](_0x37d30b){const _0x39b355=a47_0x38fb5e;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x39b355(0x200));await this[_0x39b355(0x201)]['events'][_0x39b355(0x1f6)]('tax.deleted',{'id':_0x37d30b}),this['cache']['delete'](_0x37d30b);}catch(_0x159b5d){this['owl'][_0x39b355(0x204)]['emit'](_0x39b355(0x1ed),{'error':_0x159b5d});throw _0x159b5d;}}}
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 +1 @@
1
- const a48_0x5a0194=a48_0x1c7f;(function(_0xac6b5a,_0x21f673){const _0x4c11fe=a48_0x1c7f,_0x481382=_0xac6b5a();while(!![]){try{const _0x479575=-parseInt(_0x4c11fe(0x120))/0x1*(parseInt(_0x4c11fe(0x11f))/0x2)+-parseInt(_0x4c11fe(0x12d))/0x3+parseInt(_0x4c11fe(0x130))/0x4+parseInt(_0x4c11fe(0x11e))/0x5*(-parseInt(_0x4c11fe(0x121))/0x6)+-parseInt(_0x4c11fe(0x123))/0x7+-parseInt(_0x4c11fe(0x125))/0x8*(-parseInt(_0x4c11fe(0x113))/0x9)+parseInt(_0x4c11fe(0x117))/0xa*(parseInt(_0x4c11fe(0x12b))/0xb);if(_0x479575===_0x21f673)break;else _0x481382['push'](_0x481382['shift']());}catch(_0x4a6f01){_0x481382['push'](_0x481382['shift']());}}}(a48_0x3ee5,0x3aed3));function a48_0x3ee5(){const _0x473f33=['emit','delete','tokenIsValide','new','user.loggedIn','9273alrAnq','cache','170688ENdwnT','modify','user.read.all','722180BefEhP','user.deleted','user.cached.some','events','fetchAll','request','user.login','2547081YvnuKb','user.cached.all','login','has','480zuiTvz','user.read.some','fetch','owl','length','set','000001:\x20Invalid\x20Token.','5YUOith','2ptKyWH','170237VOaHcW','62730gYFEYG','user.cached','175469nJxTGf','user.error','8ApiTXK'];a48_0x3ee5=function(){return _0x473f33;};return a48_0x3ee5();}import{Manager}from'../core/Manager.js';function a48_0x1c7f(_0x2d3a62,_0x4e22f5){_0x2d3a62=_0x2d3a62-0x110;const _0x3ee510=a48_0x3ee5();let _0x1c7f62=_0x3ee510[_0x2d3a62];return _0x1c7f62;}import{User}from'../entities/User.js';export class UserManager extends Manager{async[a48_0x5a0194(0x115)](_0x477cd7,_0x3551dd){const _0x1b75b1=a48_0x5a0194;try{if(!this[_0x1b75b1(0x11a)][_0x1b75b1(0x128)]())throw new Error(_0x1b75b1(0x11d));const _0x22e5eb=await this['owl'][_0x1b75b1(0x133)][_0x1b75b1(0x111)](_0x1b75b1(0x112),{'email':_0x477cd7,'password':_0x3551dd}),_0xb012f3=new User(this['owl'],_0x22e5eb);return this[_0x1b75b1(0x12c)][_0x1b75b1(0x11c)](_0xb012f3['id'],_0xb012f3),this['owl'][_0x1b75b1(0x133)][_0x1b75b1(0x126)](_0x1b75b1(0x12a),_0xb012f3),_0xb012f3;}catch(_0x3b5bc4){this[_0x1b75b1(0x11a)]['events'][_0x1b75b1(0x126)](_0x1b75b1(0x124),{'error':_0x3b5bc4});throw _0x3b5bc4;}}async[a48_0x5a0194(0x119)](_0x1e1dfa){const _0x2c9ae0=a48_0x5a0194;try{if(!this[_0x2c9ae0(0x11a)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x2c9ae0(0x12c)][_0x2c9ae0(0x116)](_0x1e1dfa))return this[_0x2c9ae0(0x12c)]['get'](_0x1e1dfa);const _0x592f12=await this['owl'][_0x2c9ae0(0x133)][_0x2c9ae0(0x111)]('user.read',{'id':_0x1e1dfa}),_0x1a92d0=new User(this['owl'],_0x592f12);return this['cache'][_0x2c9ae0(0x11c)](_0x1e1dfa,_0x1a92d0),this[_0x2c9ae0(0x11a)][_0x2c9ae0(0x133)][_0x2c9ae0(0x126)](_0x2c9ae0(0x122),_0x1a92d0),_0x1a92d0;}catch(_0x25e85f){this['owl'][_0x2c9ae0(0x133)][_0x2c9ae0(0x126)](_0x2c9ae0(0x124),{'error':_0x25e85f});throw _0x25e85f;}}async[a48_0x5a0194(0x110)](){const _0xfcaaa0=a48_0x5a0194;try{if(!this[_0xfcaaa0(0x11a)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x3dc976=await this[_0xfcaaa0(0x11a)][_0xfcaaa0(0x133)][_0xfcaaa0(0x111)](_0xfcaaa0(0x12f),{});for(let _0x19ab6f=0x0;_0x19ab6f<_0x3dc976['length'];_0x19ab6f++){const _0x334c13=new User(this[_0xfcaaa0(0x11a)],_0x3dc976[_0x19ab6f]);this[_0xfcaaa0(0x12c)][_0xfcaaa0(0x11c)](_0x334c13['id'],_0x334c13);}return this[_0xfcaaa0(0x11a)][_0xfcaaa0(0x133)][_0xfcaaa0(0x126)](_0xfcaaa0(0x114),this['cache']['values']()),this[_0xfcaaa0(0x12c)]['values']();}catch(_0x11638d){this[_0xfcaaa0(0x11a)][_0xfcaaa0(0x133)][_0xfcaaa0(0x126)](_0xfcaaa0(0x124),{'error':_0x11638d});throw _0x11638d;}}async['some'](_0x50c42e){const _0x4eb8e8=a48_0x5a0194;try{if(!this['owl'][_0x4eb8e8(0x128)]())throw new Error(_0x4eb8e8(0x11d));const _0x10a379=await this[_0x4eb8e8(0x11a)]['events'][_0x4eb8e8(0x111)](_0x4eb8e8(0x118),_0x50c42e);for(let _0x2905d6=0x0;_0x2905d6<_0x10a379[_0x4eb8e8(0x11b)];_0x2905d6++){const _0x632675=new User(this[_0x4eb8e8(0x11a)],_0x10a379[_0x2905d6]);this[_0x4eb8e8(0x12c)][_0x4eb8e8(0x11c)](_0x632675['id'],_0x632675);}return this[_0x4eb8e8(0x11a)]['events'][_0x4eb8e8(0x126)](_0x4eb8e8(0x132),_0x10a379),_0x10a379;}catch(_0x21921f){this[_0x4eb8e8(0x11a)][_0x4eb8e8(0x133)][_0x4eb8e8(0x126)](_0x4eb8e8(0x124),{'error':_0x21921f});throw _0x21921f;}}async[a48_0x5a0194(0x129)](_0x543e66){const _0x652435=a48_0x5a0194;try{if(!this[_0x652435(0x11a)][_0x652435(0x128)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x57c7fb=await this[_0x652435(0x11a)][_0x652435(0x133)][_0x652435(0x111)]('user.created',{'user':_0x543e66});_0x543e66['id']=_0x57c7fb;const _0x38e400=new User(this['owl'],_0x543e66);return this['cache'][_0x652435(0x11c)](_0x38e400['id'],_0x38e400),_0x38e400;}catch(_0x127a7f){this['owl'][_0x652435(0x133)][_0x652435(0x126)]('user.error',{'error':_0x127a7f});throw _0x127a7f;}}async[a48_0x5a0194(0x12e)](_0x1d5db1,_0x28ebac){const _0xab93b6=a48_0x5a0194;try{if(!this[_0xab93b6(0x11a)][_0xab93b6(0x128)]())throw new Error(_0xab93b6(0x11d));await this['owl'][_0xab93b6(0x133)]['request']('user.updated',_0x28ebac)['then'](_0x1efd80=>{const _0x370a28=_0xab93b6;this[_0x370a28(0x12c)][_0x370a28(0x11c)](_0x1d5db1,_0x1efd80);});}catch(_0x3debf7){this[_0xab93b6(0x11a)]['events']['emit'](_0xab93b6(0x124),{'error':_0x3debf7});throw _0x3debf7;}}async[a48_0x5a0194(0x127)](_0x823c90){const _0x114ede=a48_0x5a0194;try{if(!this[_0x114ede(0x11a)][_0x114ede(0x128)]())throw new Error(_0x114ede(0x11d));await this['owl'][_0x114ede(0x133)][_0x114ede(0x126)](_0x114ede(0x131),{'id':_0x823c90}),this[_0x114ede(0x12c)][_0x114ede(0x127)](_0x823c90);}catch(_0x608a1b){this['owl'][_0x114ede(0x133)][_0x114ede(0x126)](_0x114ede(0x124),{'error':_0x608a1b});throw _0x608a1b;}}}
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 +1 @@
1
- const a49_0x19536f=a49_0x117a;(function(_0x3c6440,_0x4959a9){const _0x3e7b89=a49_0x117a,_0x351b55=_0x3c6440();while(!![]){try{const _0x56a89e=parseInt(_0x3e7b89(0xaf))/0x1+parseInt(_0x3e7b89(0x9b))/0x2*(parseInt(_0x3e7b89(0xb0))/0x3)+-parseInt(_0x3e7b89(0xac))/0x4+parseInt(_0x3e7b89(0xa3))/0x5*(parseInt(_0x3e7b89(0xb3))/0x6)+parseInt(_0x3e7b89(0xa0))/0x7+-parseInt(_0x3e7b89(0xa6))/0x8+parseInt(_0x3e7b89(0xa5))/0x9;if(_0x56a89e===_0x4959a9)break;else _0x351b55['push'](_0x351b55['shift']());}catch(_0x318ea3){_0x351b55['push'](_0x351b55['shift']());}}}(a49_0x5abe,0x686cc));function a49_0x117a(_0x21058d,_0x3b1f7a){_0x21058d=_0x21058d-0x9b;const _0x5abe7d=a49_0x5abe();let _0x117a83=_0x5abe7d[_0x21058d];return _0x117a83;}import{EventBus}from'../core/EventBus.js';import{UserManager}from'../managers/UserManager.js';import{OrderManager}from'../managers/OrderManager.js';import{User}from'../entities/User.js';import{ClientManager}from'../managers/ClientManager.js';import{SupplierManager}from'../managers/SupplierManager.js';import{ItemManager}from'../managers/ItemManager.js';function a49_0x5abe(){const _0x4aa379=['stringify','json','tokenValidate','suppliers','dbEvents','user.loggedIn','events','sha256','tokenIsValide','http://localhost:3000/check','2658xpYCdY','users','receptions','then','modules','4424nMYLLZ','getCurrentUser','ADMIN','5bRWRiR','init','2193687iDIXgX','2873752PMRcvt','length','stocks','registerModule','token','new','2849932DkTbSR','update','hex','155346SLijxT','933yhTYGx','000001:\x20Invalid\x20Token.','currentUser','4118316gnmzuE','admin','digest','login','taxes','validateToken'];a49_0x5abe=function(){return _0x4aa379;};return a49_0x5abe();}import{PreparationManager}from'../managers/PreparationManager.js';import{PurchaseManager}from'../managers/PurchaseManager.js';import{ReceptionManager}from'../managers/ReceptionManager.js';import{StockManager}from'../managers/StockManager.js';import{TaxManager}from'../managers/TaxManager.js';import a49_0x2c0f67 from'crypto';import{EventsDatabase}from'../core/EventsDatabase.js';export class OWLClient{constructor(_0x394c34){const _0x3eba04=a49_0x117a;this[_0x3eba04(0x9f)]=[],this[_0x3eba04(0xbb)]=![],this['token']=_0x394c34,this[_0x3eba04(0x9c)]=new UserManager(this),this['clients']=new ClientManager(this),this[_0x3eba04(0xbc)]=new SupplierManager(this),this['items']=new ItemManager(this),this['orders']=new OrderManager(this),this['preparations']=new PreparationManager(this),this['purchases']=new PurchaseManager(this),this[_0x3eba04(0x9d)]=new ReceptionManager(this),this[_0x3eba04(0xa8)]=new StockManager(this),this[_0x3eba04(0xb7)]=new TaxManager(this),this['events']=new EventBus();}async[a49_0x19536f(0xb8)](){const _0x149404=a49_0x19536f,_0x1eb565=await fetch(_0x149404(0xc2),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x149404(0xb9)]({'content':a49_0x2c0f67['createHash'](_0x149404(0xc0))[_0x149404(0xad)](this[_0x149404(0xaa)])[_0x149404(0xb5)](_0x149404(0xae))})}),_0x53eb8b=await _0x1eb565[_0x149404(0xba)]();return _0x53eb8b['result'];}async['init'](){const _0x42edab=a49_0x19536f;await this[_0x42edab(0xb6)](),this[_0x42edab(0xbd)]=new EventsDatabase(this),this[_0x42edab(0xb2)]=new User(this,{'authorizations':new Set([_0x42edab(0xa2)])}),await this[_0x42edab(0x9c)]['fetchAll']()[_0x42edab(0x9e)](_0x4e7cec=>{const _0x3cd375=_0x42edab;[..._0x4e7cec][_0x3cd375(0xa7)]==0x0&&this['users'][_0x3cd375(0xab)]({'email':_0x3cd375(0xb4),'password':_0x3cd375(0xb4),'authorizations':new Set([_0x3cd375(0xa2)])}),this[_0x3cd375(0xb2)]=undefined;}),this[_0x42edab(0xbf)]['on'](_0x42edab(0xbe),_0x4ad9d2=>{this['currentUser']=_0x4ad9d2;});}async[a49_0x19536f(0xb6)](){const _0x584e00=a49_0x19536f;this['tokenValidate']=await this[_0x584e00(0xb8)]();if(!this[_0x584e00(0xbb)])throw new Error('000001:\x20Invalid\x20Token.');}[a49_0x19536f(0xc1)](){const _0x511584=a49_0x19536f;return this[_0x511584(0xbb)];}[a49_0x19536f(0xa1)](){const _0x4c6576=a49_0x19536f;if(!this[_0x4c6576(0xc1)]())throw new Error(_0x4c6576(0xb1));return this[_0x4c6576(0xb2)]||new User(this,{});}[a49_0x19536f(0xa9)](_0x3467de){const _0x3e9ada=a49_0x19536f;if(!this[_0x3e9ada(0xc1)]())throw new Error('000001:\x20Invalid\x20Token.');_0x3467de[_0x3e9ada(0xa4)](this),this['modules']['push'](_0x3467de);}}
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);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-progiciel",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Progiciel / ERP modulaire",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,6 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@types/body-parser": "^1.19.6",
28
28
  "@types/cors": "^2.8.19",
29
+ "@types/crypto-js": "^4.2.2",
29
30
  "@types/express": "^5.0.6",
30
31
  "@types/node": "^20.6.1",
31
32
  "prisma": "^6.19.2",
@@ -34,7 +35,8 @@
34
35
  "dependencies": {
35
36
  "@prisma/client": "^6.19.2",
36
37
  "cors": "^2.8.6",
38
+ "crypto-js": "^4.2.0",
37
39
  "express": "^5.2.1",
38
40
  "owl-progiciel": "^1.0.2"
39
41
  }
40
- }
42
+ }