owl-progiciel 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/api/routes/client.routes.js +1 -1
  2. package/dist/api/routes/item.routes.js +1 -1
  3. package/dist/api/routes/order.routes.js +1 -1
  4. package/dist/api/routes/preparation.routes.js +1 -1
  5. package/dist/api/routes/purchase.routes.js +1 -1
  6. package/dist/api/routes/reception.routes.js +1 -1
  7. package/dist/api/routes/stock.routes.js +1 -1
  8. package/dist/api/routes/supplier.routes.js +1 -1
  9. package/dist/api/routes/tax.routes.js +1 -1
  10. package/dist/api/routes/user.routes.js +1 -1
  11. package/dist/api/server.js +1 -1
  12. package/dist/core/Entity.js +1 -1
  13. package/dist/core/EventBus.js +1 -1
  14. package/dist/core/EventsDatabase.js +1 -1
  15. package/dist/core/Manager.js +1 -1
  16. package/dist/core/events/ClientEvents.js +1 -1
  17. package/dist/core/events/ItemEvents.js +1 -1
  18. package/dist/core/events/OrderEvents.js +1 -1
  19. package/dist/core/events/PreparationEvents.js +1 -1
  20. package/dist/core/events/PurchaseEvents.js +1 -1
  21. package/dist/core/events/ReceptionEvents.js +1 -1
  22. package/dist/core/events/StockEvents.js +1 -1
  23. package/dist/core/events/SupplierEvents.js +1 -1
  24. package/dist/core/events/TaxEvents.js +1 -1
  25. package/dist/core/events/UserEvents.js +1 -1
  26. package/dist/entities/Client.js +1 -1
  27. package/dist/entities/Item.js +1 -1
  28. package/dist/entities/Order.js +1 -1
  29. package/dist/entities/Preparation.js +1 -1
  30. package/dist/entities/Purchase.js +1 -1
  31. package/dist/entities/Reception.js +1 -1
  32. package/dist/entities/Stock.js +1 -1
  33. package/dist/entities/Supplier.js +1 -1
  34. package/dist/entities/Tax.js +1 -1
  35. package/dist/entities/User.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/managers/ClientManager.js +1 -1
  38. package/dist/managers/ItemManager.js +1 -1
  39. package/dist/managers/OrderManager.js +1 -1
  40. package/dist/managers/PreparationManager.js +1 -1
  41. package/dist/managers/PurchaseManager.js +1 -1
  42. package/dist/managers/ReceptionManager.js +1 -1
  43. package/dist/managers/StockManager.js +1 -1
  44. package/dist/managers/SupplierManager.js +1 -1
  45. package/dist/managers/TaxManager.js +1 -1
  46. package/dist/managers/UserManager.js +1 -1
  47. package/dist/owl/OWLClient.js +1 -1
  48. package/package.json +4 -2
  49. package/prisma/schema.prisma +6 -6
@@ -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
+ const a39_0x44e0fb=a39_0xc75c;(function(_0x317542,_0x2fd0a7){const _0x432ab8=a39_0xc75c,_0x877b7b=_0x317542();while(!![]){try{const _0x52ecb5=parseInt(_0x432ab8(0x94))/0x1*(parseInt(_0x432ab8(0x9f))/0x2)+-parseInt(_0x432ab8(0x96))/0x3*(parseInt(_0x432ab8(0x91))/0x4)+parseInt(_0x432ab8(0xad))/0x5*(-parseInt(_0x432ab8(0xa9))/0x6)+-parseInt(_0x432ab8(0xab))/0x7+-parseInt(_0x432ab8(0x9b))/0x8+parseInt(_0x432ab8(0xa7))/0x9*(parseInt(_0x432ab8(0xa3))/0xa)+parseInt(_0x432ab8(0x97))/0xb*(parseInt(_0x432ab8(0xa0))/0xc);if(_0x52ecb5===_0x2fd0a7)break;else _0x877b7b['push'](_0x877b7b['shift']());}catch(_0x5cc29e){_0x877b7b['push'](_0x877b7b['shift']());}}}(a39_0x3611,0x5511c));import{Manager}from'../core/Manager.js';function a39_0xc75c(_0x4abcd6,_0x571e31){_0x4abcd6=_0x4abcd6-0x91;const _0x36117d=a39_0x3611();let _0xc75c58=_0x36117d[_0x4abcd6];return _0xc75c58;}import{Client}from'../entities/Client.js';function a39_0x3611(){const _0x20b7ce=['1029540UtZYrT','client.created','client.read.all','10PgScwa','set','length','fetch','1456011mFgdSQ','then','6YpSAWa','emit','1166802jCbqxy','tokenIsValide','475575fFKtrU','fetchAll','has','events','get','client.cached.some','client.updated','delete','client.cached.all','224KVUrlZ','owl','client.cached','16JISZro','client.read.some','1707DQGhNz','44eXvRKO','modify','request','000001:\x20Invalid\x20Token.','1573136onXcNt','cache','client.error','client.read','41724Ichogs'];a39_0x3611=function(){return _0x20b7ce;};return a39_0x3611();}export class ClientManager extends Manager{async[a39_0x44e0fb(0xa6)](_0x2982f1){const _0x29fc55=a39_0x44e0fb;try{if(!this[_0x29fc55(0x92)][_0x29fc55(0xac)]())throw new Error(_0x29fc55(0x9a));if(this[_0x29fc55(0x9c)][_0x29fc55(0xaf)](_0x2982f1))return this[_0x29fc55(0x9c)][_0x29fc55(0xb1)](_0x2982f1);const _0x39d68e=await this[_0x29fc55(0x92)][_0x29fc55(0xb0)][_0x29fc55(0x99)](_0x29fc55(0x9e),{'id':_0x2982f1}),_0x4dff32=new Client(this[_0x29fc55(0x92)],_0x39d68e);return this[_0x29fc55(0x9c)][_0x29fc55(0xa4)](_0x2982f1,_0x4dff32),this[_0x29fc55(0x92)][_0x29fc55(0xb0)][_0x29fc55(0xaa)](_0x29fc55(0x93),_0x4dff32),_0x4dff32;}catch(_0x3559a6){this[_0x29fc55(0x92)][_0x29fc55(0xb0)][_0x29fc55(0xaa)](_0x29fc55(0x9d),{'error':_0x3559a6});throw _0x3559a6;}}async[a39_0x44e0fb(0xae)](){const _0x1f8bab=a39_0x44e0fb;try{if(!this[_0x1f8bab(0x92)][_0x1f8bab(0xac)]())throw new Error(_0x1f8bab(0x9a));const _0x563186=await this[_0x1f8bab(0x92)][_0x1f8bab(0xb0)]['request'](_0x1f8bab(0xa2),{});for(let _0x2d17bc=0x0;_0x2d17bc<_0x563186[_0x1f8bab(0xa5)];_0x2d17bc++){const _0x2c8fb4=new Client(this['owl'],_0x563186[_0x2d17bc]);this[_0x1f8bab(0x9c)][_0x1f8bab(0xa4)](_0x2c8fb4['id'],_0x2c8fb4);}return this['owl']['events']['emit'](_0x1f8bab(0xb5),this[_0x1f8bab(0x9c)]['values']()),this[_0x1f8bab(0x9c)]['values']();}catch(_0x522119){this[_0x1f8bab(0x92)]['events'][_0x1f8bab(0xaa)]('client.error',{'error':_0x522119});throw _0x522119;}}async['some'](_0x50fc12){const _0x4f1ef3=a39_0x44e0fb;try{if(!this[_0x4f1ef3(0x92)]['tokenIsValide']())throw new Error(_0x4f1ef3(0x9a));const _0x1491df=await this[_0x4f1ef3(0x92)][_0x4f1ef3(0xb0)][_0x4f1ef3(0x99)](_0x4f1ef3(0x95),_0x50fc12);for(let _0x34f81d=0x0;_0x34f81d<_0x1491df[_0x4f1ef3(0xa5)];_0x34f81d++){const _0x1cec4f=new Client(this[_0x4f1ef3(0x92)],_0x1491df[_0x34f81d]);this[_0x4f1ef3(0x9c)][_0x4f1ef3(0xa4)](_0x1cec4f['id'],_0x1cec4f);}return this[_0x4f1ef3(0x92)][_0x4f1ef3(0xb0)][_0x4f1ef3(0xaa)](_0x4f1ef3(0xb2),_0x1491df),_0x1491df;}catch(_0x2cc356){this[_0x4f1ef3(0x92)][_0x4f1ef3(0xb0)][_0x4f1ef3(0xaa)](_0x4f1ef3(0x9d),{'error':_0x2cc356});throw _0x2cc356;}}async['new'](_0x1fbbad){const _0x46d0c9=a39_0x44e0fb;try{if(!this[_0x46d0c9(0x92)][_0x46d0c9(0xac)]())throw new Error(_0x46d0c9(0x9a));const _0x29b929=await this[_0x46d0c9(0x92)][_0x46d0c9(0xb0)][_0x46d0c9(0x99)](_0x46d0c9(0xa1),{'client':_0x1fbbad});_0x1fbbad['id']=_0x29b929;const _0x43548b=new Client(this['owl'],_0x1fbbad);return this['cache'][_0x46d0c9(0xa4)](_0x43548b['id'],_0x43548b),_0x43548b;}catch(_0x5567f1){this['owl'][_0x46d0c9(0xb0)][_0x46d0c9(0xaa)]('client.error',{'error':_0x5567f1});throw _0x5567f1;}}async[a39_0x44e0fb(0x98)](_0x4d9ca6,_0x3288ed){const _0x35b3c7=a39_0x44e0fb;try{if(!this[_0x35b3c7(0x92)][_0x35b3c7(0xac)]())throw new Error(_0x35b3c7(0x9a));await this[_0x35b3c7(0x92)]['events'][_0x35b3c7(0x99)](_0x35b3c7(0xb3),_0x3288ed)[_0x35b3c7(0xa8)](_0xefcb88=>{const _0x6d4f56=_0x35b3c7;this[_0x6d4f56(0x9c)]['set'](_0x4d9ca6,_0xefcb88);});}catch(_0x5ec2a){this[_0x35b3c7(0x92)]['events'][_0x35b3c7(0xaa)](_0x35b3c7(0x9d),{'error':_0x5ec2a});throw _0x5ec2a;}}async[a39_0x44e0fb(0xb4)](_0x3efc9d){const _0x364999=a39_0x44e0fb;try{if(!this[_0x364999(0x92)][_0x364999(0xac)]())throw new Error(_0x364999(0x9a));await this[_0x364999(0x92)][_0x364999(0xb0)]['emit']('client.deleted',{'id':_0x3efc9d}),this['cache'][_0x364999(0xb4)](_0x3efc9d);}catch(_0x116468){this[_0x364999(0x92)][_0x364999(0xb0)][_0x364999(0xaa)](_0x364999(0x9d),{'error':_0x116468});throw _0x116468;}}}
@@ -1 +1 @@
1
- const a40_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_0x3b256d=a40_0x75f5;function a40_0x75f5(_0x3c1a13,_0x4d3f9f){_0x3c1a13=_0x3c1a13-0x17f;const _0x54a3f2=a40_0x54a3();let _0x75f5bb=_0x54a3f2[_0x3c1a13];return _0x75f5bb;}(function(_0x4d53b,_0xdd7aad){const _0x5c4ce9=a40_0x75f5,_0x135c6f=_0x4d53b();while(!![]){try{const _0x11b526=-parseInt(_0x5c4ce9(0x192))/0x1+-parseInt(_0x5c4ce9(0x19a))/0x2+parseInt(_0x5c4ce9(0x191))/0x3+parseInt(_0x5c4ce9(0x19d))/0x4+parseInt(_0x5c4ce9(0x181))/0x5*(-parseInt(_0x5c4ce9(0x198))/0x6)+-parseInt(_0x5c4ce9(0x19c))/0x7*(-parseInt(_0x5c4ce9(0x182))/0x8)+parseInt(_0x5c4ce9(0x17f))/0x9*(parseInt(_0x5c4ce9(0x18c))/0xa);if(_0x11b526===_0xdd7aad)break;else _0x135c6f['push'](_0x135c6f['shift']());}catch(_0x4f90b2){_0x135c6f['push'](_0x135c6f['shift']());}}}(a40_0x54a3,0x797ef));import{Manager}from'../core/Manager.js';import{Item}from'../entities/Item.js';function a40_0x54a3(){const _0x4298d6=['1855287rUCpay','fetch','5zOcmmw','1058152wMHrSG','values','tokenIsValide','length','events','request','item.deleted','has','emit','owl','90roZIIG','item.created','delete','item.read.some','item.read','280374fASIaZ','507981kPCHcQ','cache','item.cached.all','item.error','set','get','5831862DyjRBT','then','1936638QHvBCH','item.updated','49EYIdvv','285184CEtwKU','modify','000001:\x20Invalid\x20Token.'];a40_0x54a3=function(){return _0x4298d6;};return a40_0x54a3();}export class ItemManager extends Manager{async[a40_0x3b256d(0x180)](_0x2a7b8a){const _0x1ee7ff=a40_0x3b256d;try{if(!this[_0x1ee7ff(0x18b)]['tokenIsValide']())throw new Error(_0x1ee7ff(0x19f));if(this['cache'][_0x1ee7ff(0x189)](_0x2a7b8a))return this[_0x1ee7ff(0x193)][_0x1ee7ff(0x197)](_0x2a7b8a);const _0x4fc55c=await this[_0x1ee7ff(0x18b)][_0x1ee7ff(0x186)][_0x1ee7ff(0x187)](_0x1ee7ff(0x190),{'id':_0x2a7b8a}),_0x57077e=new Item(this[_0x1ee7ff(0x18b)],_0x4fc55c);return this[_0x1ee7ff(0x193)][_0x1ee7ff(0x196)](_0x2a7b8a,_0x57077e),this['owl'][_0x1ee7ff(0x186)][_0x1ee7ff(0x18a)]('item.cached',_0x57077e),_0x57077e;}catch(_0x589a06){this['owl'][_0x1ee7ff(0x186)][_0x1ee7ff(0x18a)]('item.error',{'error':_0x589a06});throw _0x589a06;}}async['fetchAll'](){const _0x4efe70=a40_0x3b256d;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x4efe70(0x19f));const _0x40899e=await this[_0x4efe70(0x18b)]['events'][_0x4efe70(0x187)]('item.read.all',{});for(let _0x5316f4=0x0;_0x5316f4<_0x40899e['length'];_0x5316f4++){const _0x314c01=new Item(this[_0x4efe70(0x18b)],_0x40899e[_0x5316f4]);this[_0x4efe70(0x193)][_0x4efe70(0x196)](_0x314c01['id'],_0x314c01);}return this[_0x4efe70(0x18b)]['events'][_0x4efe70(0x18a)](_0x4efe70(0x194),this['cache'][_0x4efe70(0x183)]()),this[_0x4efe70(0x193)]['values']();}catch(_0x121c0f){this[_0x4efe70(0x18b)][_0x4efe70(0x186)][_0x4efe70(0x18a)]('item.error',{'error':_0x121c0f});throw _0x121c0f;}}async['some'](_0xfa67a6){const _0x435082=a40_0x3b256d;try{if(!this[_0x435082(0x18b)][_0x435082(0x184)]())throw new Error(_0x435082(0x19f));const _0x287dd5=await this[_0x435082(0x18b)][_0x435082(0x186)]['request'](_0x435082(0x18f),_0xfa67a6);for(let _0x8e6a14=0x0;_0x8e6a14<_0x287dd5[_0x435082(0x185)];_0x8e6a14++){const _0x9d9593=new Item(this['owl'],_0x287dd5[_0x8e6a14]);this['cache'][_0x435082(0x196)](_0x9d9593['id'],_0x9d9593);}return this[_0x435082(0x18b)][_0x435082(0x186)]['emit']('item.cached.some',_0x287dd5),_0x287dd5;}catch(_0xca0407){this[_0x435082(0x18b)][_0x435082(0x186)][_0x435082(0x18a)](_0x435082(0x195),{'error':_0xca0407});throw _0xca0407;}}async['new'](_0x106454){const _0x5875f1=a40_0x3b256d;try{if(!this[_0x5875f1(0x18b)]['tokenIsValide']())throw new Error(_0x5875f1(0x19f));const _0x12ee7f=await this[_0x5875f1(0x18b)][_0x5875f1(0x186)][_0x5875f1(0x187)](_0x5875f1(0x18d),{'item':_0x106454});_0x106454['id']=_0x12ee7f;const _0x2fd67c=new Item(this['owl'],_0x106454);return this[_0x5875f1(0x193)][_0x5875f1(0x196)](_0x2fd67c['id'],_0x2fd67c),_0x2fd67c;}catch(_0x4b1c72){this[_0x5875f1(0x18b)]['events'][_0x5875f1(0x18a)](_0x5875f1(0x195),{'error':_0x4b1c72});throw _0x4b1c72;}}async[a40_0x3b256d(0x19e)](_0x1ab7c5,_0x4c0fa1){const _0xcbe6f7=a40_0x3b256d;try{if(!this['owl'][_0xcbe6f7(0x184)]())throw new Error(_0xcbe6f7(0x19f));await this[_0xcbe6f7(0x18b)]['events']['request'](_0xcbe6f7(0x19b),_0x4c0fa1)[_0xcbe6f7(0x199)](_0x4a6ffb=>{const _0x415518=_0xcbe6f7;this[_0x415518(0x193)][_0x415518(0x196)](_0x1ab7c5,_0x4a6ffb);});}catch(_0x14fd6e){this['owl'][_0xcbe6f7(0x186)][_0xcbe6f7(0x18a)]('item.error',{'error':_0x14fd6e});throw _0x14fd6e;}}async['delete'](_0xec6833){const _0x11f4e7=a40_0x3b256d;try{if(!this[_0x11f4e7(0x18b)]['tokenIsValide']())throw new Error(_0x11f4e7(0x19f));await this['owl'][_0x11f4e7(0x186)][_0x11f4e7(0x18a)](_0x11f4e7(0x188),{'id':_0xec6833}),this[_0x11f4e7(0x193)][_0x11f4e7(0x18e)](_0xec6833);}catch(_0x279727){this[_0x11f4e7(0x18b)][_0x11f4e7(0x186)][_0x11f4e7(0x18a)]('item.error',{'error':_0x279727});throw _0x279727;}}}
@@ -1 +1 @@
1
- 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_0x19e5(_0x348587,_0x8abe7){_0x348587=_0x348587-0x158;const _0x261cbb=a41_0x261c();let _0x19e50b=_0x261cbb[_0x348587];return _0x19e50b;}const a41_0x4332b9=a41_0x19e5;(function(_0x43f2b2,_0x3f306e){const _0x550f2c=a41_0x19e5,_0x4cf8e9=_0x43f2b2();while(!![]){try{const _0x40f9f3=-parseInt(_0x550f2c(0x171))/0x1*(-parseInt(_0x550f2c(0x164))/0x2)+parseInt(_0x550f2c(0x162))/0x3*(parseInt(_0x550f2c(0x16b))/0x4)+-parseInt(_0x550f2c(0x160))/0x5+-parseInt(_0x550f2c(0x159))/0x6+-parseInt(_0x550f2c(0x173))/0x7+-parseInt(_0x550f2c(0x16a))/0x8*(parseInt(_0x550f2c(0x175))/0x9)+parseInt(_0x550f2c(0x165))/0xa;if(_0x40f9f3===_0x3f306e)break;else _0x4cf8e9['push'](_0x4cf8e9['shift']());}catch(_0x33d5ce){_0x4cf8e9['push'](_0x4cf8e9['shift']());}}}(a41_0x261c,0xcacff));import{Manager}from'../core/Manager.js';function a41_0x261c(){const _0x1b97b8=['37786010miRgyX','some','order.error','order.created','emit','8kRIzHu','4sMjpvV','tokenIsValide','get','owl','new','000001:\x20Invalid\x20Token.','19OoIFKQ','values','5096875ohxWsU','request','10214307jkAsDS','cache','order.read.all','order.read.some','7481856IYoKzv','order.cached.all','order.cached','events','delete','set','order.cached.some','6936280HyeJMf','then','3606177DVfnhd','order.deleted','36562wtEhyn'];a41_0x261c=function(){return _0x1b97b8;};return a41_0x261c();}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async['fetch'](_0x365f4d){const _0x492655=a41_0x19e5;try{if(!this[_0x492655(0x16e)]['tokenIsValide']())throw new Error(_0x492655(0x170));if(this[_0x492655(0x176)]['has'](_0x365f4d))return this['cache'][_0x492655(0x16d)](_0x365f4d);const _0x82233c=await this[_0x492655(0x16e)][_0x492655(0x15c)][_0x492655(0x174)]('order.read',{'id':_0x365f4d}),_0x329536=new Order(this[_0x492655(0x16e)],_0x82233c);return this[_0x492655(0x176)]['set'](_0x365f4d,_0x329536),this[_0x492655(0x16e)]['events'][_0x492655(0x169)](_0x492655(0x15b),_0x329536),_0x329536;}catch(_0x3ce703){this[_0x492655(0x16e)][_0x492655(0x15c)][_0x492655(0x169)](_0x492655(0x167),{'error':_0x3ce703});throw _0x3ce703;}}async['fetchAll'](){const _0x1820de=a41_0x19e5;try{if(!this['owl'][_0x1820de(0x16c)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x300ee5=await this['owl']['events'][_0x1820de(0x174)](_0x1820de(0x177),{});for(let _0x5ce1ba=0x0;_0x5ce1ba<_0x300ee5['length'];_0x5ce1ba++){const _0x188d86=new Order(this['owl'],_0x300ee5[_0x5ce1ba]);this[_0x1820de(0x176)]['set'](_0x188d86['id'],_0x188d86);}return this['owl'][_0x1820de(0x15c)][_0x1820de(0x169)](_0x1820de(0x15a),this[_0x1820de(0x176)][_0x1820de(0x172)]()),this[_0x1820de(0x176)][_0x1820de(0x172)]();}catch(_0x5e7bbc){this[_0x1820de(0x16e)][_0x1820de(0x15c)][_0x1820de(0x169)](_0x1820de(0x167),{'error':_0x5e7bbc});throw _0x5e7bbc;}}async[a41_0x4332b9(0x166)](_0x530b63){const _0x395299=a41_0x4332b9;try{if(!this[_0x395299(0x16e)]['tokenIsValide']())throw new Error(_0x395299(0x170));const _0x1504ee=await this[_0x395299(0x16e)][_0x395299(0x15c)]['request'](_0x395299(0x158),_0x530b63);for(let _0x1d2995=0x0;_0x1d2995<_0x1504ee['length'];_0x1d2995++){const _0x1d5067=new Order(this[_0x395299(0x16e)],_0x1504ee[_0x1d2995]);this[_0x395299(0x176)][_0x395299(0x15e)](_0x1d5067['id'],_0x1d5067);}return this[_0x395299(0x16e)][_0x395299(0x15c)][_0x395299(0x169)](_0x395299(0x15f),_0x1504ee),_0x1504ee;}catch(_0x5d5da0){this[_0x395299(0x16e)][_0x395299(0x15c)]['emit']('order.error',{'error':_0x5d5da0});throw _0x5d5da0;}}async[a41_0x4332b9(0x16f)](_0x19766f){const _0x5a33b0=a41_0x4332b9;try{if(!this[_0x5a33b0(0x16e)][_0x5a33b0(0x16c)]())throw new Error(_0x5a33b0(0x170));const _0x5232ca=await this[_0x5a33b0(0x16e)]['events'][_0x5a33b0(0x174)](_0x5a33b0(0x168),{'order':_0x19766f});_0x19766f['id']=_0x5232ca;const _0x4299fd=new Order(this[_0x5a33b0(0x16e)],_0x19766f);return this[_0x5a33b0(0x176)][_0x5a33b0(0x15e)](_0x4299fd['id'],_0x4299fd),_0x4299fd;}catch(_0x51e450){this[_0x5a33b0(0x16e)][_0x5a33b0(0x15c)][_0x5a33b0(0x169)](_0x5a33b0(0x167),{'error':_0x51e450});throw _0x51e450;}}async['modify'](_0x123eeb,_0x20fa94){const _0x44816c=a41_0x4332b9;try{if(!this[_0x44816c(0x16e)][_0x44816c(0x16c)]())throw new Error(_0x44816c(0x170));await this[_0x44816c(0x16e)][_0x44816c(0x15c)][_0x44816c(0x174)]('order.updated',_0x20fa94)[_0x44816c(0x161)](_0x166a6b=>{const _0x494f8d=_0x44816c;this[_0x494f8d(0x176)][_0x494f8d(0x15e)](_0x123eeb,_0x166a6b);});}catch(_0x2180c0){this[_0x44816c(0x16e)]['events'][_0x44816c(0x169)](_0x44816c(0x167),{'error':_0x2180c0});throw _0x2180c0;}}async[a41_0x4332b9(0x15d)](_0x57d4c4){const _0x4d4ac7=a41_0x4332b9;try{if(!this[_0x4d4ac7(0x16e)][_0x4d4ac7(0x16c)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4d4ac7(0x16e)][_0x4d4ac7(0x15c)][_0x4d4ac7(0x169)](_0x4d4ac7(0x163),{'id':_0x57d4c4}),this['cache'][_0x4d4ac7(0x15d)](_0x57d4c4);}catch(_0x3cb1d9){this[_0x4d4ac7(0x16e)]['events']['emit'](_0x4d4ac7(0x167),{'error':_0x3cb1d9});throw _0x3cb1d9;}}}
@@ -1 +1 @@
1
- function a42_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
+ const a42_0x3c270d=a42_0x4fc7;(function(_0x54a56f,_0x458c38){const _0x1b24c6=a42_0x4fc7,_0x1b7f87=_0x54a56f();while(!![]){try{const _0x15af46=parseInt(_0x1b24c6(0xe6))/0x1+parseInt(_0x1b24c6(0xda))/0x2*(-parseInt(_0x1b24c6(0xef))/0x3)+-parseInt(_0x1b24c6(0xd9))/0x4+-parseInt(_0x1b24c6(0xe0))/0x5+-parseInt(_0x1b24c6(0xdb))/0x6*(-parseInt(_0x1b24c6(0xf9))/0x7)+parseInt(_0x1b24c6(0xec))/0x8+parseInt(_0x1b24c6(0xfb))/0x9*(parseInt(_0x1b24c6(0xde))/0xa);if(_0x15af46===_0x458c38)break;else _0x1b7f87['push'](_0x1b7f87['shift']());}catch(_0x5c4ce5){_0x1b7f87['push'](_0x1b7f87['shift']());}}}(a42_0x4064,0x8ca70));function a42_0x4064(){const _0x5d6cf8=['787347zLWltN','events','preparation.cached','preparation.created','values','request','7182320gxuzEq','owl','new','3rzrTbh','preparation.cached.all','preparation.deleted','tokenIsValide','preparation.cached.some','cache','then','has','preparation.read.some','emit','73178pjBbvD','modify','621tvntZa','preparation.error','3544744sqabDH','776392ZMOWFg','246lMCzzx','000001:\x20Invalid\x20Token.','get','59530twSfWd','length','3370070doeqNl','delete','preparation.updated','set','fetchAll','fetch'];a42_0x4064=function(){return _0x5d6cf8;};return a42_0x4064();}import{Manager}from'../core/Manager.js';import{Preparation}from'../entities/Preparation.js';function a42_0x4fc7(_0x49996c,_0x544b6f){_0x49996c=_0x49996c-0xd9;const _0x40648d=a42_0x4064();let _0x4fc7ce=_0x40648d[_0x49996c];return _0x4fc7ce;}export class PreparationManager extends Manager{async[a42_0x3c270d(0xe5)](_0x3d2c77){const _0x3e9aa3=a42_0x3c270d;try{if(!this[_0x3e9aa3(0xed)][_0x3e9aa3(0xf2)]())throw new Error(_0x3e9aa3(0xdc));if(this[_0x3e9aa3(0xf4)][_0x3e9aa3(0xf6)](_0x3d2c77))return this[_0x3e9aa3(0xf4)][_0x3e9aa3(0xdd)](_0x3d2c77);const _0x1b4757=await this['owl']['events'][_0x3e9aa3(0xeb)]('preparation.read',{'id':_0x3d2c77}),_0x28e742=new Preparation(this['owl'],_0x1b4757);return this['cache'][_0x3e9aa3(0xe3)](_0x3d2c77,_0x28e742),this['owl'][_0x3e9aa3(0xe7)]['emit'](_0x3e9aa3(0xe8),_0x28e742),_0x28e742;}catch(_0x10908c){this[_0x3e9aa3(0xed)]['events'][_0x3e9aa3(0xf8)](_0x3e9aa3(0xfc),{'error':_0x10908c});throw _0x10908c;}}async[a42_0x3c270d(0xe4)](){const _0x54fdaa=a42_0x3c270d;try{if(!this[_0x54fdaa(0xed)][_0x54fdaa(0xf2)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x364279=await this[_0x54fdaa(0xed)][_0x54fdaa(0xe7)]['request']('preparation.read.all',{});for(let _0x496daf=0x0;_0x496daf<_0x364279[_0x54fdaa(0xdf)];_0x496daf++){const _0x4aab44=new Preparation(this['owl'],_0x364279[_0x496daf]);this[_0x54fdaa(0xf4)][_0x54fdaa(0xe3)](_0x4aab44['id'],_0x4aab44);}return this['owl'][_0x54fdaa(0xe7)][_0x54fdaa(0xf8)](_0x54fdaa(0xf0),this[_0x54fdaa(0xf4)][_0x54fdaa(0xea)]()),this[_0x54fdaa(0xf4)][_0x54fdaa(0xea)]();}catch(_0x18203f){this[_0x54fdaa(0xed)][_0x54fdaa(0xe7)]['emit'](_0x54fdaa(0xfc),{'error':_0x18203f});throw _0x18203f;}}async['some'](_0xfef9ca){const _0x5a4308=a42_0x3c270d;try{if(!this[_0x5a4308(0xed)][_0x5a4308(0xf2)]())throw new Error(_0x5a4308(0xdc));const _0x45b5d9=await this[_0x5a4308(0xed)][_0x5a4308(0xe7)]['request'](_0x5a4308(0xf7),_0xfef9ca);for(let _0x5714e8=0x0;_0x5714e8<_0x45b5d9[_0x5a4308(0xdf)];_0x5714e8++){const _0x34a66c=new Preparation(this['owl'],_0x45b5d9[_0x5714e8]);this['cache'][_0x5a4308(0xe3)](_0x34a66c['id'],_0x34a66c);}return this['owl'][_0x5a4308(0xe7)][_0x5a4308(0xf8)](_0x5a4308(0xf3),_0x45b5d9),_0x45b5d9;}catch(_0x293e5a){this['owl']['events'][_0x5a4308(0xf8)](_0x5a4308(0xfc),{'error':_0x293e5a});throw _0x293e5a;}}async[a42_0x3c270d(0xee)](_0xea2cb5){const _0x1ada8a=a42_0x3c270d;try{if(!this[_0x1ada8a(0xed)][_0x1ada8a(0xf2)]())throw new Error(_0x1ada8a(0xdc));const _0x5b85d7=await this[_0x1ada8a(0xed)]['events'][_0x1ada8a(0xeb)](_0x1ada8a(0xe9),{'preparation':_0xea2cb5});_0xea2cb5['id']=_0x5b85d7;const _0x265063=new Preparation(this[_0x1ada8a(0xed)],_0xea2cb5);return this[_0x1ada8a(0xf4)][_0x1ada8a(0xe3)](_0x265063['id'],_0x265063),_0x265063;}catch(_0x34bc85){this[_0x1ada8a(0xed)][_0x1ada8a(0xe7)][_0x1ada8a(0xf8)]('preparation.error',{'error':_0x34bc85});throw _0x34bc85;}}async[a42_0x3c270d(0xfa)](_0x32dad9,_0x196ebe){const _0x442618=a42_0x3c270d;try{if(!this[_0x442618(0xed)][_0x442618(0xf2)]())throw new Error(_0x442618(0xdc));await this[_0x442618(0xed)][_0x442618(0xe7)][_0x442618(0xeb)](_0x442618(0xe2),_0x196ebe)[_0x442618(0xf5)](_0x174f95=>{const _0x3db3fa=_0x442618;this[_0x3db3fa(0xf4)]['set'](_0x32dad9,_0x174f95);});}catch(_0x580749){this['owl'][_0x442618(0xe7)][_0x442618(0xf8)](_0x442618(0xfc),{'error':_0x580749});throw _0x580749;}}async[a42_0x3c270d(0xe1)](_0x41b5d6){const _0x1069c8=a42_0x3c270d;try{if(!this[_0x1069c8(0xed)][_0x1069c8(0xf2)]())throw new Error(_0x1069c8(0xdc));await this[_0x1069c8(0xed)][_0x1069c8(0xe7)][_0x1069c8(0xf8)](_0x1069c8(0xf1),{'id':_0x41b5d6}),this[_0x1069c8(0xf4)][_0x1069c8(0xe1)](_0x41b5d6);}catch(_0x1da864){this['owl'][_0x1069c8(0xe7)][_0x1069c8(0xf8)](_0x1069c8(0xfc),{'error':_0x1da864});throw _0x1da864;}}}
@@ -1 +1 @@
1
- const a43_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
+ function a43_0x45e9(){const _0x3c76fa=['purchase.cached.all','length','request','72592SGXqPZ','fetchAll','some','has','purchase.updated','events','7761177TkZPcB','42670BOWRfx','emit','purchase.created','get','3ggivzA','1057784eGVgbi','24581580oMqWQg','purchase.read','164tFqQwU','cache','purchase.error','000001:\x20Invalid\x20Token.','purchase.cached.some','delete','822763RCYkdP','tokenIsValide','5528922YfGsgu','then','owl','purchase.deleted','modify','35EnJHbb','set','purchase.cached'];a43_0x45e9=function(){return _0x3c76fa;};return a43_0x45e9();}const a43_0xb4549f=a43_0x3266;function a43_0x3266(_0x489fa3,_0x4d2f97){_0x489fa3=_0x489fa3-0xa9;const _0x45e92b=a43_0x45e9();let _0x326665=_0x45e92b[_0x489fa3];return _0x326665;}(function(_0x30ba88,_0x2e3c97){const _0x1bce51=a43_0x3266,_0x427698=_0x30ba88();while(!![]){try{const _0x25586d=parseInt(_0x1bce51(0xbf))/0x1+-parseInt(_0x1bce51(0xaa))/0x2*(-parseInt(_0x1bce51(0xb5))/0x3)+-parseInt(_0x1bce51(0xb9))/0x4*(parseInt(_0x1bce51(0xb1))/0x5)+parseInt(_0x1bce51(0xc1))/0x6+-parseInt(_0x1bce51(0xc6))/0x7*(-parseInt(_0x1bce51(0xb6))/0x8)+parseInt(_0x1bce51(0xb0))/0x9+-parseInt(_0x1bce51(0xb7))/0xa;if(_0x25586d===_0x2e3c97)break;else _0x427698['push'](_0x427698['shift']());}catch(_0x5cb0e3){_0x427698['push'](_0x427698['shift']());}}}(a43_0x45e9,0x7915a));import{Manager}from'../core/Manager.js';import{Purchase}from'../entities/Purchase.js';export class PurchaseManager extends Manager{async['fetch'](_0x5f2f50){const _0x4f17ae=a43_0x3266;try{if(!this[_0x4f17ae(0xc3)][_0x4f17ae(0xc0)]())throw new Error(_0x4f17ae(0xbc));if(this['cache'][_0x4f17ae(0xad)](_0x5f2f50))return this['cache'][_0x4f17ae(0xb4)](_0x5f2f50);const _0x1413db=await this[_0x4f17ae(0xc3)][_0x4f17ae(0xaf)]['request'](_0x4f17ae(0xb8),{'id':_0x5f2f50}),_0x2030b8=new Purchase(this[_0x4f17ae(0xc3)],_0x1413db);return this[_0x4f17ae(0xba)][_0x4f17ae(0xc7)](_0x5f2f50,_0x2030b8),this[_0x4f17ae(0xc3)][_0x4f17ae(0xaf)]['emit'](_0x4f17ae(0xc8),_0x2030b8),_0x2030b8;}catch(_0x8913e7){this[_0x4f17ae(0xc3)]['events']['emit']('purchase.error',{'error':_0x8913e7});throw _0x8913e7;}}async[a43_0xb4549f(0xab)](){const _0x22d68a=a43_0xb4549f;try{if(!this[_0x22d68a(0xc3)]['tokenIsValide']())throw new Error(_0x22d68a(0xbc));const _0x58c8c7=await this[_0x22d68a(0xc3)][_0x22d68a(0xaf)]['request']('purchase.read.all',{});for(let _0x5886fe=0x0;_0x5886fe<_0x58c8c7[_0x22d68a(0xca)];_0x5886fe++){const _0x2efcdf=new Purchase(this[_0x22d68a(0xc3)],_0x58c8c7[_0x5886fe]);this[_0x22d68a(0xba)][_0x22d68a(0xc7)](_0x2efcdf['id'],_0x2efcdf);}return this[_0x22d68a(0xc3)]['events'][_0x22d68a(0xb2)](_0x22d68a(0xc9),this[_0x22d68a(0xba)]['values']()),this[_0x22d68a(0xba)]['values']();}catch(_0x4d11b2){this[_0x22d68a(0xc3)][_0x22d68a(0xaf)][_0x22d68a(0xb2)](_0x22d68a(0xbb),{'error':_0x4d11b2});throw _0x4d11b2;}}async[a43_0xb4549f(0xac)](_0x4612c3){const _0xbf2e44=a43_0xb4549f;try{if(!this[_0xbf2e44(0xc3)][_0xbf2e44(0xc0)]())throw new Error(_0xbf2e44(0xbc));const _0x405efc=await this['owl']['events'][_0xbf2e44(0xa9)]('purchase.read.some',_0x4612c3);for(let _0xddc308=0x0;_0xddc308<_0x405efc['length'];_0xddc308++){const _0x4fe256=new Purchase(this[_0xbf2e44(0xc3)],_0x405efc[_0xddc308]);this['cache']['set'](_0x4fe256['id'],_0x4fe256);}return this[_0xbf2e44(0xc3)][_0xbf2e44(0xaf)][_0xbf2e44(0xb2)](_0xbf2e44(0xbd),_0x405efc),_0x405efc;}catch(_0x29b0f5){this[_0xbf2e44(0xc3)]['events'][_0xbf2e44(0xb2)](_0xbf2e44(0xbb),{'error':_0x29b0f5});throw _0x29b0f5;}}async['new'](_0x14326d){const _0xe75a10=a43_0xb4549f;try{if(!this['owl']['tokenIsValide']())throw new Error(_0xe75a10(0xbc));const _0x20dc7b=await this[_0xe75a10(0xc3)][_0xe75a10(0xaf)][_0xe75a10(0xa9)](_0xe75a10(0xb3),{'purchase':_0x14326d});_0x14326d['id']=_0x20dc7b;const _0x59e992=new Purchase(this[_0xe75a10(0xc3)],_0x14326d);return this[_0xe75a10(0xba)]['set'](_0x59e992['id'],_0x59e992),_0x59e992;}catch(_0x5d8678){this[_0xe75a10(0xc3)]['events'][_0xe75a10(0xb2)](_0xe75a10(0xbb),{'error':_0x5d8678});throw _0x5d8678;}}async[a43_0xb4549f(0xc5)](_0x4f2846,_0x55ba26){const _0x5a5d82=a43_0xb4549f;try{if(!this['owl'][_0x5a5d82(0xc0)]())throw new Error(_0x5a5d82(0xbc));await this[_0x5a5d82(0xc3)][_0x5a5d82(0xaf)][_0x5a5d82(0xa9)](_0x5a5d82(0xae),_0x55ba26)[_0x5a5d82(0xc2)](_0x492756=>{const _0x135375=_0x5a5d82;this[_0x135375(0xba)][_0x135375(0xc7)](_0x4f2846,_0x492756);});}catch(_0x33bc4c){this[_0x5a5d82(0xc3)][_0x5a5d82(0xaf)][_0x5a5d82(0xb2)](_0x5a5d82(0xbb),{'error':_0x33bc4c});throw _0x33bc4c;}}async[a43_0xb4549f(0xbe)](_0x1c8ecc){const _0x343815=a43_0xb4549f;try{if(!this['owl'][_0x343815(0xc0)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x343815(0xc3)]['events']['emit'](_0x343815(0xc4),{'id':_0x1c8ecc}),this['cache'][_0x343815(0xbe)](_0x1c8ecc);}catch(_0x22c0c3){this[_0x343815(0xc3)]['events'][_0x343815(0xb2)](_0x343815(0xbb),{'error':_0x22c0c3});throw _0x22c0c3;}}}
@@ -1 +1 @@
1
- const a44_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
+ function a44_0x59a4(){const _0x24dcbd=['has','cache','1794198IWyBth','reception.deleted','set','1851230gMcPGA','000001:\x20Invalid\x20Token.','request','modify','3KycMRu','reception.read.all','emit','894NayGbW','45siFGwt','1752964IQgwcX','reception.cached','reception.cached.all','reception.created','760524DVCJXB','events','owl','reception.cached.some','reception.error','get','tokenIsValide','41489oHhPMS','length','6135304RVuVxp','3425350huYcTp','some','delete','values'];a44_0x59a4=function(){return _0x24dcbd;};return a44_0x59a4();}function a44_0x3dfa(_0x39f08e,_0x4d3f57){_0x39f08e=_0x39f08e-0x10d;const _0x59a4c3=a44_0x59a4();let _0x3dfa28=_0x59a4c3[_0x39f08e];return _0x3dfa28;}const a44_0x345cb3=a44_0x3dfa;(function(_0xb1879d,_0x597b72){const _0x187da4=a44_0x3dfa,_0x5347ec=_0xb1879d();while(!![]){try{const _0x2ffabd=-parseInt(_0x187da4(0x118))/0x1+parseInt(_0x187da4(0x128))/0x2*(parseInt(_0x187da4(0x10f))/0x3)+parseInt(_0x187da4(0x114))/0x4+-parseInt(_0x187da4(0x122))/0x5+-parseInt(_0x187da4(0x112))/0x6*(-parseInt(_0x187da4(0x11f))/0x7)+parseInt(_0x187da4(0x121))/0x8+-parseInt(_0x187da4(0x113))/0x9*(parseInt(_0x187da4(0x12b))/0xa);if(_0x2ffabd===_0x597b72)break;else _0x5347ec['push'](_0x5347ec['shift']());}catch(_0x18472f){_0x5347ec['push'](_0x5347ec['shift']());}}}(a44_0x59a4,0x95f17));import{Manager}from'../core/Manager.js';import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async['fetch'](_0x3d04b7){const _0x3a7ac8=a44_0x3dfa;try{if(!this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x11e)]())throw new Error(_0x3a7ac8(0x12c));if(this[_0x3a7ac8(0x127)][_0x3a7ac8(0x126)](_0x3d04b7))return this[_0x3a7ac8(0x127)][_0x3a7ac8(0x11d)](_0x3d04b7);const _0x134cd4=await this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x119)][_0x3a7ac8(0x10d)]('reception.read',{'id':_0x3d04b7}),_0x50bfd5=new Reception(this[_0x3a7ac8(0x11a)],_0x134cd4);return this[_0x3a7ac8(0x127)][_0x3a7ac8(0x12a)](_0x3d04b7,_0x50bfd5),this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x119)][_0x3a7ac8(0x111)](_0x3a7ac8(0x115),_0x50bfd5),_0x50bfd5;}catch(_0x50711d){this[_0x3a7ac8(0x11a)][_0x3a7ac8(0x119)][_0x3a7ac8(0x111)](_0x3a7ac8(0x11c),{'error':_0x50711d});throw _0x50711d;}}async['fetchAll'](){const _0xeb5da3=a44_0x3dfa;try{if(!this[_0xeb5da3(0x11a)][_0xeb5da3(0x11e)]())throw new Error(_0xeb5da3(0x12c));const _0x1700a5=await this['owl'][_0xeb5da3(0x119)][_0xeb5da3(0x10d)](_0xeb5da3(0x110),{});for(let _0x31127c=0x0;_0x31127c<_0x1700a5[_0xeb5da3(0x120)];_0x31127c++){const _0x5abadb=new Reception(this[_0xeb5da3(0x11a)],_0x1700a5[_0x31127c]);this['cache'][_0xeb5da3(0x12a)](_0x5abadb['id'],_0x5abadb);}return this[_0xeb5da3(0x11a)][_0xeb5da3(0x119)][_0xeb5da3(0x111)](_0xeb5da3(0x116),this['cache'][_0xeb5da3(0x125)]()),this[_0xeb5da3(0x127)][_0xeb5da3(0x125)]();}catch(_0x50ab0d){this[_0xeb5da3(0x11a)][_0xeb5da3(0x119)][_0xeb5da3(0x111)]('reception.error',{'error':_0x50ab0d});throw _0x50ab0d;}}async[a44_0x345cb3(0x123)](_0x2f2165){const _0x28b30c=a44_0x345cb3;try{if(!this['owl'][_0x28b30c(0x11e)]())throw new Error(_0x28b30c(0x12c));const _0x2c470b=await this[_0x28b30c(0x11a)][_0x28b30c(0x119)][_0x28b30c(0x10d)]('reception.read.some',_0x2f2165);for(let _0x588e59=0x0;_0x588e59<_0x2c470b['length'];_0x588e59++){const _0x113bec=new Reception(this[_0x28b30c(0x11a)],_0x2c470b[_0x588e59]);this[_0x28b30c(0x127)]['set'](_0x113bec['id'],_0x113bec);}return this[_0x28b30c(0x11a)][_0x28b30c(0x119)]['emit'](_0x28b30c(0x11b),_0x2c470b),_0x2c470b;}catch(_0x39d616){this['owl'][_0x28b30c(0x119)][_0x28b30c(0x111)](_0x28b30c(0x11c),{'error':_0x39d616});throw _0x39d616;}}async['new'](_0x4867d2){const _0x4394fe=a44_0x345cb3;try{if(!this[_0x4394fe(0x11a)]['tokenIsValide']())throw new Error(_0x4394fe(0x12c));const _0x24e6cc=await this['owl'][_0x4394fe(0x119)]['request'](_0x4394fe(0x117),{'reception':_0x4867d2});_0x4867d2['id']=_0x24e6cc;const _0x16c854=new Reception(this['owl'],_0x4867d2);return this[_0x4394fe(0x127)][_0x4394fe(0x12a)](_0x16c854['id'],_0x16c854),_0x16c854;}catch(_0x52eba5){this[_0x4394fe(0x11a)][_0x4394fe(0x119)][_0x4394fe(0x111)](_0x4394fe(0x11c),{'error':_0x52eba5});throw _0x52eba5;}}async[a44_0x345cb3(0x10e)](_0x23c1d4,_0x201504){const _0x1c1d2a=a44_0x345cb3;try{if(!this[_0x1c1d2a(0x11a)][_0x1c1d2a(0x11e)]())throw new Error(_0x1c1d2a(0x12c));await this[_0x1c1d2a(0x11a)][_0x1c1d2a(0x119)][_0x1c1d2a(0x10d)]('reception.updated',_0x201504)['then'](_0x501b5b=>{const _0x41a994=_0x1c1d2a;this[_0x41a994(0x127)][_0x41a994(0x12a)](_0x23c1d4,_0x501b5b);});}catch(_0x201f3b){this[_0x1c1d2a(0x11a)][_0x1c1d2a(0x119)]['emit'](_0x1c1d2a(0x11c),{'error':_0x201f3b});throw _0x201f3b;}}async[a44_0x345cb3(0x124)](_0x51109f){const _0x2fedd7=a44_0x345cb3;try{if(!this['owl'][_0x2fedd7(0x11e)]())throw new Error(_0x2fedd7(0x12c));await this[_0x2fedd7(0x11a)][_0x2fedd7(0x119)][_0x2fedd7(0x111)](_0x2fedd7(0x129),{'id':_0x51109f}),this['cache'][_0x2fedd7(0x124)](_0x51109f);}catch(_0x21bb2f){this[_0x2fedd7(0x11a)][_0x2fedd7(0x119)][_0x2fedd7(0x111)](_0x2fedd7(0x11c),{'error':_0x21bb2f});throw _0x21bb2f;}}}
@@ -1 +1 @@
1
- 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
+ function a45_0x1fec(){const _0x46114a=['set','owl','322yOSjGI','then','length','tokenIsValide','750205GDTZDZ','delete','2088736JAQcNJ','127112bLhBCC','000001:\x20Invalid\x20Token.','33667335DFQeGI','2185026erQTzd','fetch','emit','new','fetchAll','stock.read.some','events','8318550NYzWmx','request','stock.created','modify','cache','stock.cached.all','stock.cached.some','782267SwbQwp','12YOlspD','stock.error','stock.updated','stock.cached'];a45_0x1fec=function(){return _0x46114a;};return a45_0x1fec();}const a45_0x2296bd=a45_0x4219;(function(_0x1e1ee4,_0x5d42b9){const _0x535427=a45_0x4219,_0x51c938=_0x1e1ee4();while(!![]){try{const _0x2fb2ab=-parseInt(_0x535427(0x1c4))/0x1+parseInt(_0x535427(0x1b2))/0x2+-parseInt(_0x535427(0x1b6))/0x3+-parseInt(_0x535427(0x1c5))/0x4*(parseInt(_0x535427(0x1cf))/0x5)+-parseInt(_0x535427(0x1bd))/0x6+-parseInt(_0x535427(0x1cb))/0x7*(parseInt(_0x535427(0x1b3))/0x8)+parseInt(_0x535427(0x1b5))/0x9;if(_0x2fb2ab===_0x5d42b9)break;else _0x51c938['push'](_0x51c938['shift']());}catch(_0x24a34e){_0x51c938['push'](_0x51c938['shift']());}}}(a45_0x1fec,0xaca3c));import{Manager}from'../core/Manager.js';import{Stock}from'../entities/Stock.js';function a45_0x4219(_0x332634,_0x8d2582){_0x332634=_0x332634-0x1b2;const _0x1fec39=a45_0x1fec();let _0x421926=_0x1fec39[_0x332634];return _0x421926;}export class StockManager extends Manager{async[a45_0x2296bd(0x1b7)](_0xd46994){const _0x5ad529=a45_0x2296bd;try{if(!this[_0x5ad529(0x1ca)][_0x5ad529(0x1ce)]())throw new Error(_0x5ad529(0x1b4));if(this[_0x5ad529(0x1c1)]['has'](_0xd46994))return this['cache']['get'](_0xd46994);const _0x949072=await this[_0x5ad529(0x1ca)][_0x5ad529(0x1bc)][_0x5ad529(0x1be)]('stock.read',{'id':_0xd46994}),_0x1fb5a3=new Stock(this[_0x5ad529(0x1ca)],_0x949072);return this[_0x5ad529(0x1c1)][_0x5ad529(0x1c9)](_0xd46994,_0x1fb5a3),this[_0x5ad529(0x1ca)]['events'][_0x5ad529(0x1b8)](_0x5ad529(0x1c8),_0x1fb5a3),_0x1fb5a3;}catch(_0x1a3b24){this[_0x5ad529(0x1ca)][_0x5ad529(0x1bc)][_0x5ad529(0x1b8)]('stock.error',{'error':_0x1a3b24});throw _0x1a3b24;}}async[a45_0x2296bd(0x1ba)](){const _0x9db36f=a45_0x2296bd;try{if(!this[_0x9db36f(0x1ca)][_0x9db36f(0x1ce)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4402c2=await this[_0x9db36f(0x1ca)][_0x9db36f(0x1bc)][_0x9db36f(0x1be)]('stock.read.all',{});for(let _0x5337f0=0x0;_0x5337f0<_0x4402c2[_0x9db36f(0x1cd)];_0x5337f0++){const _0x60fc9d=new Stock(this[_0x9db36f(0x1ca)],_0x4402c2[_0x5337f0]);this[_0x9db36f(0x1c1)]['set'](_0x60fc9d['id'],_0x60fc9d);}return this[_0x9db36f(0x1ca)][_0x9db36f(0x1bc)][_0x9db36f(0x1b8)](_0x9db36f(0x1c2),this[_0x9db36f(0x1c1)]['values']()),this[_0x9db36f(0x1c1)]['values']();}catch(_0x205d4b){this[_0x9db36f(0x1ca)][_0x9db36f(0x1bc)][_0x9db36f(0x1b8)](_0x9db36f(0x1c6),{'error':_0x205d4b});throw _0x205d4b;}}async['some'](_0x763e25){const _0x590a7d=a45_0x2296bd;try{if(!this[_0x590a7d(0x1ca)][_0x590a7d(0x1ce)]())throw new Error(_0x590a7d(0x1b4));const _0x333a90=await this[_0x590a7d(0x1ca)]['events'][_0x590a7d(0x1be)](_0x590a7d(0x1bb),_0x763e25);for(let _0x408113=0x0;_0x408113<_0x333a90[_0x590a7d(0x1cd)];_0x408113++){const _0xed791f=new Stock(this[_0x590a7d(0x1ca)],_0x333a90[_0x408113]);this[_0x590a7d(0x1c1)][_0x590a7d(0x1c9)](_0xed791f['id'],_0xed791f);}return this[_0x590a7d(0x1ca)][_0x590a7d(0x1bc)][_0x590a7d(0x1b8)](_0x590a7d(0x1c3),_0x333a90),_0x333a90;}catch(_0x20dcd8){this[_0x590a7d(0x1ca)]['events'][_0x590a7d(0x1b8)](_0x590a7d(0x1c6),{'error':_0x20dcd8});throw _0x20dcd8;}}async[a45_0x2296bd(0x1b9)](_0x20c6b3){const _0x3ba065=a45_0x2296bd;try{if(!this[_0x3ba065(0x1ca)][_0x3ba065(0x1ce)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x598107=await this[_0x3ba065(0x1ca)][_0x3ba065(0x1bc)][_0x3ba065(0x1be)](_0x3ba065(0x1bf),{'stock':_0x20c6b3});_0x20c6b3['id']=_0x598107;const _0xe51daf=new Stock(this[_0x3ba065(0x1ca)],_0x20c6b3);return this[_0x3ba065(0x1c1)]['set'](_0xe51daf['id'],_0xe51daf),_0xe51daf;}catch(_0x4dcc2e){this[_0x3ba065(0x1ca)]['events']['emit']('stock.error',{'error':_0x4dcc2e});throw _0x4dcc2e;}}async[a45_0x2296bd(0x1c0)](_0x250ae8,_0x228117){const _0x4455ab=a45_0x2296bd;try{if(!this[_0x4455ab(0x1ca)][_0x4455ab(0x1ce)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4455ab(0x1ca)][_0x4455ab(0x1bc)][_0x4455ab(0x1be)](_0x4455ab(0x1c7),_0x228117)[_0x4455ab(0x1cc)](_0x17a468=>{const _0x24606f=_0x4455ab;this[_0x24606f(0x1c1)]['set'](_0x250ae8,_0x17a468);});}catch(_0x5ef43a){this[_0x4455ab(0x1ca)][_0x4455ab(0x1bc)]['emit']('stock.error',{'error':_0x5ef43a});throw _0x5ef43a;}}async[a45_0x2296bd(0x1d0)](_0x455345){const _0x4d906c=a45_0x2296bd;try{if(!this['owl'][_0x4d906c(0x1ce)]())throw new Error(_0x4d906c(0x1b4));await this[_0x4d906c(0x1ca)][_0x4d906c(0x1bc)][_0x4d906c(0x1b8)]('stock.deleted',{'id':_0x455345}),this[_0x4d906c(0x1c1)]['delete'](_0x455345);}catch(_0xeb2374){this['owl'][_0x4d906c(0x1bc)][_0x4d906c(0x1b8)]('stock.error',{'error':_0xeb2374});throw _0xeb2374;}}}
@@ -1 +1 @@
1
- const a46_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_0x51cb88=a46_0x11eb;function a46_0x3798(){const _0x481597=['then','values','000001:\x20Invalid\x20Token.','127835DfxLZb','944OWyuEn','supplier.read','588oCjfXH','get','20BiXwCx','supplier.cached.all','2578774gzeBlD','463011USUesx','owl','12DwJSpG','tokenIsValide','344016aBvzIY','supplier.read.all','new','219605hwAldT','set','cache','delete','events','supplier.created','supplier.cached.some','supplier.error','modify','1238448hbhfMS','emit','request','2WzlcEX'];a46_0x3798=function(){return _0x481597;};return a46_0x3798();}(function(_0x49ee01,_0x53bbdc){const _0x12ebf3=a46_0x11eb,_0x42c6c5=_0x49ee01();while(!![]){try{const _0x5c7780=-parseInt(_0x12ebf3(0x1e3))/0x1*(parseInt(_0x12ebf3(0x1ef))/0x2)+-parseInt(_0x12ebf3(0x1fb))/0x3+-parseInt(_0x12ebf3(0x1de))/0x4*(parseInt(_0x12ebf3(0x1f3))/0x5)+parseInt(_0x12ebf3(0x1ec))/0x6+-parseInt(_0x12ebf3(0x1f6))/0x7*(-parseInt(_0x12ebf3(0x1f4))/0x8)+parseInt(_0x12ebf3(0x1e0))/0x9+-parseInt(_0x12ebf3(0x1f8))/0xa*(-parseInt(_0x12ebf3(0x1fa))/0xb);if(_0x5c7780===_0x53bbdc)break;else _0x42c6c5['push'](_0x42c6c5['shift']());}catch(_0x4c0695){_0x42c6c5['push'](_0x42c6c5['shift']());}}}(a46_0x3798,0x42981));function a46_0x11eb(_0x4a10ca,_0x49a400){_0x4a10ca=_0x4a10ca-0x1de;const _0x3798dc=a46_0x3798();let _0x11eb6=_0x3798dc[_0x4a10ca];return _0x11eb6;}import{Manager}from'../core/Manager.js';import{Supplier}from'../entities/Supplier.js';export class SupplierManager extends Manager{async['fetch'](_0x71bf27){const _0x3aa3e8=a46_0x11eb;try{if(!this[_0x3aa3e8(0x1fc)][_0x3aa3e8(0x1df)]())throw new Error(_0x3aa3e8(0x1f2));if(this[_0x3aa3e8(0x1e5)]['has'](_0x71bf27))return this[_0x3aa3e8(0x1e5)][_0x3aa3e8(0x1f7)](_0x71bf27);const _0x16e87f=await this[_0x3aa3e8(0x1fc)][_0x3aa3e8(0x1e7)]['request'](_0x3aa3e8(0x1f5),{'id':_0x71bf27}),_0x3c85a0=new Supplier(this['owl'],_0x16e87f);return this[_0x3aa3e8(0x1e5)][_0x3aa3e8(0x1e4)](_0x71bf27,_0x3c85a0),this[_0x3aa3e8(0x1fc)][_0x3aa3e8(0x1e7)][_0x3aa3e8(0x1ed)]('supplier.cached',_0x3c85a0),_0x3c85a0;}catch(_0x14c2d7){this[_0x3aa3e8(0x1fc)]['events'][_0x3aa3e8(0x1ed)](_0x3aa3e8(0x1ea),{'error':_0x14c2d7});throw _0x14c2d7;}}async['fetchAll'](){const _0x292346=a46_0x11eb;try{if(!this[_0x292346(0x1fc)]['tokenIsValide']())throw new Error(_0x292346(0x1f2));const _0x40cdec=await this[_0x292346(0x1fc)][_0x292346(0x1e7)]['request'](_0x292346(0x1e1),{});for(let _0x104c7c=0x0;_0x104c7c<_0x40cdec['length'];_0x104c7c++){const _0x7f8a28=new Supplier(this['owl'],_0x40cdec[_0x104c7c]);this['cache'][_0x292346(0x1e4)](_0x7f8a28['id'],_0x7f8a28);}return this['owl'][_0x292346(0x1e7)][_0x292346(0x1ed)](_0x292346(0x1f9),this[_0x292346(0x1e5)][_0x292346(0x1f1)]()),this[_0x292346(0x1e5)][_0x292346(0x1f1)]();}catch(_0x418a7d){this[_0x292346(0x1fc)][_0x292346(0x1e7)][_0x292346(0x1ed)](_0x292346(0x1ea),{'error':_0x418a7d});throw _0x418a7d;}}async['some'](_0x3f94e8){const _0x22eed4=a46_0x11eb;try{if(!this[_0x22eed4(0x1fc)][_0x22eed4(0x1df)]())throw new Error(_0x22eed4(0x1f2));const _0x1dc16b=await this[_0x22eed4(0x1fc)][_0x22eed4(0x1e7)][_0x22eed4(0x1ee)]('supplier.read.some',_0x3f94e8);for(let _0x29a4e3=0x0;_0x29a4e3<_0x1dc16b['length'];_0x29a4e3++){const _0x38c3b0=new Supplier(this[_0x22eed4(0x1fc)],_0x1dc16b[_0x29a4e3]);this[_0x22eed4(0x1e5)][_0x22eed4(0x1e4)](_0x38c3b0['id'],_0x38c3b0);}return this[_0x22eed4(0x1fc)][_0x22eed4(0x1e7)][_0x22eed4(0x1ed)](_0x22eed4(0x1e9),_0x1dc16b),_0x1dc16b;}catch(_0x35af26){this[_0x22eed4(0x1fc)]['events'][_0x22eed4(0x1ed)](_0x22eed4(0x1ea),{'error':_0x35af26});throw _0x35af26;}}async[a46_0x51cb88(0x1e2)](_0x9e2517){const _0x54f495=a46_0x51cb88;try{if(!this[_0x54f495(0x1fc)][_0x54f495(0x1df)]())throw new Error(_0x54f495(0x1f2));const _0x33382d=await this[_0x54f495(0x1fc)][_0x54f495(0x1e7)]['request'](_0x54f495(0x1e8),{'supplier':_0x9e2517});_0x9e2517['id']=_0x33382d;const _0x2426ee=new Supplier(this[_0x54f495(0x1fc)],_0x9e2517);return this[_0x54f495(0x1e5)][_0x54f495(0x1e4)](_0x2426ee['id'],_0x2426ee),_0x2426ee;}catch(_0x311b88){this[_0x54f495(0x1fc)][_0x54f495(0x1e7)]['emit'](_0x54f495(0x1ea),{'error':_0x311b88});throw _0x311b88;}}async[a46_0x51cb88(0x1eb)](_0x2f90fa,_0x7d4f93){const _0x388154=a46_0x51cb88;try{if(!this[_0x388154(0x1fc)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events']['request']('supplier.updated',_0x7d4f93)[_0x388154(0x1f0)](_0x433e9a=>{const _0x166639=_0x388154;this[_0x166639(0x1e5)][_0x166639(0x1e4)](_0x2f90fa,_0x433e9a);});}catch(_0xb6e2cd){this[_0x388154(0x1fc)][_0x388154(0x1e7)][_0x388154(0x1ed)](_0x388154(0x1ea),{'error':_0xb6e2cd});throw _0xb6e2cd;}}async['delete'](_0x1d01a9){const _0x271de3=a46_0x51cb88;try{if(!this[_0x271de3(0x1fc)][_0x271de3(0x1df)]())throw new Error(_0x271de3(0x1f2));await this['owl']['events']['emit']('supplier.deleted',{'id':_0x1d01a9}),this[_0x271de3(0x1e5)][_0x271de3(0x1e6)](_0x1d01a9);}catch(_0x384d34){this[_0x271de3(0x1fc)][_0x271de3(0x1e7)]['emit'](_0x271de3(0x1ea),{'error':_0x384d34});throw _0x384d34;}}}
@@ -1 +1 @@
1
- const a47_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_0x3e8b41=a47_0x42ba;(function(_0x4d9909,_0x284596){const _0x273998=a47_0x42ba,_0x1bfb32=_0x4d9909();while(!![]){try{const _0x26c9e6=-parseInt(_0x273998(0xc0))/0x1*(parseInt(_0x273998(0xbc))/0x2)+parseInt(_0x273998(0xae))/0x3+-parseInt(_0x273998(0xa9))/0x4+-parseInt(_0x273998(0xa6))/0x5*(parseInt(_0x273998(0xaf))/0x6)+-parseInt(_0x273998(0xb2))/0x7+parseInt(_0x273998(0xb9))/0x8+parseInt(_0x273998(0xb5))/0x9;if(_0x26c9e6===_0x284596)break;else _0x1bfb32['push'](_0x1bfb32['shift']());}catch(_0x5577bd){_0x1bfb32['push'](_0x1bfb32['shift']());}}}(a47_0x4d13,0x88f98));function a47_0x4d13(){const _0x4b6b8b=['values','owl','6220040kWvBgz','emit','tax.updated','6LCDnIZ','new','tax.read.some','get','130569oKyMuA','tax.cached.all','tax.created','events','cache','000001:\x20Invalid\x20Token.','10oMvZNt','modify','set','3449820ZxPNdF','then','tax.error','tokenIsValide','delete','1829271jfIiwd','255894Akahnd','request','length','6293476NYAwFF','tax.read','fetch','12710826gmqiBD','tax.cached.some'];a47_0x4d13=function(){return _0x4b6b8b;};return a47_0x4d13();}import{Manager}from'../core/Manager.js';import{Tax}from'../entities/Tax.js';function a47_0x42ba(_0x5b133d,_0x1d95b2){_0x5b133d=_0x5b133d-0xa3;const _0x4d139e=a47_0x4d13();let _0x42bac5=_0x4d139e[_0x5b133d];return _0x42bac5;}export class TaxManager extends Manager{async[a47_0x3e8b41(0xb4)](_0xf4d7d3){const _0x474d8c=a47_0x3e8b41;try{if(!this[_0x474d8c(0xb8)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x474d8c(0xa4)]['has'](_0xf4d7d3))return this[_0x474d8c(0xa4)][_0x474d8c(0xbf)](_0xf4d7d3);const _0x21eb7e=await this[_0x474d8c(0xb8)][_0x474d8c(0xa3)]['request'](_0x474d8c(0xb3),{'id':_0xf4d7d3}),_0x358d84=new Tax(this['owl'],_0x21eb7e);return this['cache'][_0x474d8c(0xa8)](_0xf4d7d3,_0x358d84),this[_0x474d8c(0xb8)][_0x474d8c(0xa3)]['emit']('tax.cached',_0x358d84),_0x358d84;}catch(_0x4dd171){this[_0x474d8c(0xb8)]['events'][_0x474d8c(0xba)](_0x474d8c(0xab),{'error':_0x4dd171});throw _0x4dd171;}}async['fetchAll'](){const _0xc9ef8d=a47_0x3e8b41;try{if(!this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xac)]())throw new Error(_0xc9ef8d(0xa5));const _0x4f921c=await this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xa3)][_0xc9ef8d(0xb0)]('tax.read.all',{});for(let _0x3e6e4e=0x0;_0x3e6e4e<_0x4f921c[_0xc9ef8d(0xb1)];_0x3e6e4e++){const _0x335078=new Tax(this[_0xc9ef8d(0xb8)],_0x4f921c[_0x3e6e4e]);this[_0xc9ef8d(0xa4)][_0xc9ef8d(0xa8)](_0x335078['id'],_0x335078);}return this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xa3)][_0xc9ef8d(0xba)](_0xc9ef8d(0xc1),this['cache'][_0xc9ef8d(0xb7)]()),this[_0xc9ef8d(0xa4)][_0xc9ef8d(0xb7)]();}catch(_0x9a08a7){this[_0xc9ef8d(0xb8)][_0xc9ef8d(0xa3)][_0xc9ef8d(0xba)](_0xc9ef8d(0xab),{'error':_0x9a08a7});throw _0x9a08a7;}}async['some'](_0x176644){const _0x2f4e74=a47_0x3e8b41;try{if(!this[_0x2f4e74(0xb8)]['tokenIsValide']())throw new Error(_0x2f4e74(0xa5));const _0x5a98dd=await this[_0x2f4e74(0xb8)][_0x2f4e74(0xa3)][_0x2f4e74(0xb0)](_0x2f4e74(0xbe),_0x176644);for(let _0x410939=0x0;_0x410939<_0x5a98dd[_0x2f4e74(0xb1)];_0x410939++){const _0x245b7d=new Tax(this['owl'],_0x5a98dd[_0x410939]);this[_0x2f4e74(0xa4)]['set'](_0x245b7d['id'],_0x245b7d);}return this['owl'][_0x2f4e74(0xa3)][_0x2f4e74(0xba)](_0x2f4e74(0xb6),_0x5a98dd),_0x5a98dd;}catch(_0x32b9a7){this['owl'][_0x2f4e74(0xa3)][_0x2f4e74(0xba)](_0x2f4e74(0xab),{'error':_0x32b9a7});throw _0x32b9a7;}}async[a47_0x3e8b41(0xbd)](_0xd171cf){const _0x16efa5=a47_0x3e8b41;try{if(!this[_0x16efa5(0xb8)]['tokenIsValide']())throw new Error(_0x16efa5(0xa5));const _0x158015=await this[_0x16efa5(0xb8)][_0x16efa5(0xa3)][_0x16efa5(0xb0)](_0x16efa5(0xc2),{'tax':_0xd171cf});_0xd171cf['id']=_0x158015;const _0x3b1bd1=new Tax(this['owl'],_0xd171cf);return this[_0x16efa5(0xa4)]['set'](_0x3b1bd1['id'],_0x3b1bd1),_0x3b1bd1;}catch(_0x1900c8){this[_0x16efa5(0xb8)][_0x16efa5(0xa3)][_0x16efa5(0xba)](_0x16efa5(0xab),{'error':_0x1900c8});throw _0x1900c8;}}async[a47_0x3e8b41(0xa7)](_0x477cb8,_0x3ef6b7){const _0x3fe139=a47_0x3e8b41;try{if(!this[_0x3fe139(0xb8)]['tokenIsValide']())throw new Error(_0x3fe139(0xa5));await this[_0x3fe139(0xb8)][_0x3fe139(0xa3)][_0x3fe139(0xb0)](_0x3fe139(0xbb),_0x3ef6b7)[_0x3fe139(0xaa)](_0x4e1961=>{const _0x392049=_0x3fe139;this[_0x392049(0xa4)]['set'](_0x477cb8,_0x4e1961);});}catch(_0x1a22ae){this[_0x3fe139(0xb8)][_0x3fe139(0xa3)][_0x3fe139(0xba)]('tax.error',{'error':_0x1a22ae});throw _0x1a22ae;}}async[a47_0x3e8b41(0xad)](_0x296a49){const _0x95f05e=a47_0x3e8b41;try{if(!this[_0x95f05e(0xb8)][_0x95f05e(0xac)]())throw new Error(_0x95f05e(0xa5));await this['owl'][_0x95f05e(0xa3)]['emit']('tax.deleted',{'id':_0x296a49}),this[_0x95f05e(0xa4)]['delete'](_0x296a49);}catch(_0x4cc4d3){this['owl'][_0x95f05e(0xa3)][_0x95f05e(0xba)](_0x95f05e(0xab),{'error':_0x4cc4d3});throw _0x4cc4d3;}}}
@@ -1 +1 @@
1
- const a48_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
+ function a48_0x2a16(){const _0x2646b0=['length','3091FMAUZz','user.cached','user.read.some','cache','has','579706rdxTaD','delete','000001:\x20Invalid\x20Token.','1709160mwNxje','user.cached.all','values','emit','new','user.error','user.read.all','18aQMgGU','owl','modify','user.login','9981otnWXB','user.updated','9390Dzovdt','set','get','fetchAll','events','2666372bnNdny','request','then','tokenIsValide','user.loggedIn','14tatcRD','login','user.read','3741072vPYqLa','some','690877tfJdCF','9HzlPSv','user.cached.some','user.deleted','54552kOYOkB'];a48_0x2a16=function(){return _0x2646b0;};return a48_0x2a16();}const a48_0x375fee=a48_0x9b5f;(function(_0x45169d,_0xdd752f){const _0x35041c=a48_0x9b5f,_0x52b3af=_0x45169d();while(!![]){try{const _0x1aab8d=parseInt(_0x35041c(0x1e2))/0x1+parseInt(_0x35041c(0x1ed))/0x2*(-parseInt(_0x35041c(0x1e3))/0x3)+parseInt(_0x35041c(0x1d8))/0x4+parseInt(_0x35041c(0x1c6))/0x5*(-parseInt(_0x35041c(0x1cd))/0x6)+-parseInt(_0x35041c(0x1dd))/0x7*(-parseInt(_0x35041c(0x1e0))/0x8)+-parseInt(_0x35041c(0x1d1))/0x9*(parseInt(_0x35041c(0x1d3))/0xa)+parseInt(_0x35041c(0x1e8))/0xb*(parseInt(_0x35041c(0x1e6))/0xc);if(_0x1aab8d===_0xdd752f)break;else _0x52b3af['push'](_0x52b3af['shift']());}catch(_0x2b03e1){_0x52b3af['push'](_0x52b3af['shift']());}}}(a48_0x2a16,0x9ab9e));function a48_0x9b5f(_0x61892e,_0x54f4f9){_0x61892e=_0x61892e-0x1c4;const _0x2a164a=a48_0x2a16();let _0x9b5fb2=_0x2a164a[_0x61892e];return _0x9b5fb2;}import{Manager}from'../core/Manager.js';import{User}from'../entities/User.js';export class UserManager extends Manager{async[a48_0x375fee(0x1de)](_0x5852bc,_0xe2be82){const _0x57dc2c=a48_0x375fee;try{if(!this[_0x57dc2c(0x1ce)][_0x57dc2c(0x1db)]())throw new Error(_0x57dc2c(0x1c5));const _0x32ff19=await this[_0x57dc2c(0x1ce)]['events'][_0x57dc2c(0x1d9)](_0x57dc2c(0x1d0),{'email':_0x5852bc,'password':_0xe2be82}),_0x1eea49=new User(this[_0x57dc2c(0x1ce)],_0x32ff19);return this[_0x57dc2c(0x1eb)]['set'](_0x1eea49['id'],_0x1eea49),this[_0x57dc2c(0x1ce)][_0x57dc2c(0x1d7)][_0x57dc2c(0x1c9)](_0x57dc2c(0x1dc),_0x1eea49),_0x1eea49;}catch(_0x3795da){this['owl']['events'][_0x57dc2c(0x1c9)](_0x57dc2c(0x1cb),{'error':_0x3795da});throw _0x3795da;}}async['fetch'](_0x3dbf67){const _0x123c84=a48_0x375fee;try{if(!this[_0x123c84(0x1ce)][_0x123c84(0x1db)]())throw new Error(_0x123c84(0x1c5));if(this[_0x123c84(0x1eb)][_0x123c84(0x1ec)](_0x3dbf67))return this[_0x123c84(0x1eb)][_0x123c84(0x1d5)](_0x3dbf67);const _0x22f0ba=await this[_0x123c84(0x1ce)][_0x123c84(0x1d7)][_0x123c84(0x1d9)](_0x123c84(0x1df),{'id':_0x3dbf67}),_0x5712bb=new User(this[_0x123c84(0x1ce)],_0x22f0ba);return this[_0x123c84(0x1eb)][_0x123c84(0x1d4)](_0x3dbf67,_0x5712bb),this[_0x123c84(0x1ce)][_0x123c84(0x1d7)][_0x123c84(0x1c9)](_0x123c84(0x1e9),_0x5712bb),_0x5712bb;}catch(_0x630914){this[_0x123c84(0x1ce)][_0x123c84(0x1d7)][_0x123c84(0x1c9)](_0x123c84(0x1cb),{'error':_0x630914});throw _0x630914;}}async[a48_0x375fee(0x1d6)](){const _0x3d829f=a48_0x375fee;try{if(!this[_0x3d829f(0x1ce)][_0x3d829f(0x1db)]())throw new Error(_0x3d829f(0x1c5));const _0x1bb6e9=await this['owl'][_0x3d829f(0x1d7)][_0x3d829f(0x1d9)](_0x3d829f(0x1cc),{});for(let _0x4ca74a=0x0;_0x4ca74a<_0x1bb6e9[_0x3d829f(0x1e7)];_0x4ca74a++){const _0x359515=new User(this[_0x3d829f(0x1ce)],_0x1bb6e9[_0x4ca74a]);this[_0x3d829f(0x1eb)][_0x3d829f(0x1d4)](_0x359515['id'],_0x359515);}return this[_0x3d829f(0x1ce)][_0x3d829f(0x1d7)]['emit'](_0x3d829f(0x1c7),this['cache'][_0x3d829f(0x1c8)]()),this[_0x3d829f(0x1eb)][_0x3d829f(0x1c8)]();}catch(_0x5b6e3c){this[_0x3d829f(0x1ce)][_0x3d829f(0x1d7)][_0x3d829f(0x1c9)](_0x3d829f(0x1cb),{'error':_0x5b6e3c});throw _0x5b6e3c;}}async[a48_0x375fee(0x1e1)](_0x140930){const _0xc7ccc4=a48_0x375fee;try{if(!this[_0xc7ccc4(0x1ce)][_0xc7ccc4(0x1db)]())throw new Error(_0xc7ccc4(0x1c5));const _0x58a7b2=await this[_0xc7ccc4(0x1ce)]['events']['request'](_0xc7ccc4(0x1ea),_0x140930);for(let _0x246e06=0x0;_0x246e06<_0x58a7b2['length'];_0x246e06++){const _0x51efdd=new User(this['owl'],_0x58a7b2[_0x246e06]);this[_0xc7ccc4(0x1eb)][_0xc7ccc4(0x1d4)](_0x51efdd['id'],_0x51efdd);}return this[_0xc7ccc4(0x1ce)][_0xc7ccc4(0x1d7)]['emit'](_0xc7ccc4(0x1e4),_0x58a7b2),_0x58a7b2;}catch(_0x2d48cd){this[_0xc7ccc4(0x1ce)][_0xc7ccc4(0x1d7)][_0xc7ccc4(0x1c9)](_0xc7ccc4(0x1cb),{'error':_0x2d48cd});throw _0x2d48cd;}}async[a48_0x375fee(0x1ca)](_0x207fe8){const _0x5cfc5a=a48_0x375fee;try{if(!this[_0x5cfc5a(0x1ce)][_0x5cfc5a(0x1db)]())throw new Error(_0x5cfc5a(0x1c5));const _0x298db5=await this[_0x5cfc5a(0x1ce)][_0x5cfc5a(0x1d7)]['request']('user.created',{'user':_0x207fe8});_0x207fe8['id']=_0x298db5;const _0x2b55ac=new User(this['owl'],_0x207fe8);return this[_0x5cfc5a(0x1eb)][_0x5cfc5a(0x1d4)](_0x2b55ac['id'],_0x2b55ac),_0x2b55ac;}catch(_0x414280){this[_0x5cfc5a(0x1ce)][_0x5cfc5a(0x1d7)][_0x5cfc5a(0x1c9)](_0x5cfc5a(0x1cb),{'error':_0x414280});throw _0x414280;}}async[a48_0x375fee(0x1cf)](_0x3d483a,_0x256d0e){const _0x52632b=a48_0x375fee;try{if(!this['owl'][_0x52632b(0x1db)]())throw new Error(_0x52632b(0x1c5));await this[_0x52632b(0x1ce)][_0x52632b(0x1d7)][_0x52632b(0x1d9)](_0x52632b(0x1d2),_0x256d0e)[_0x52632b(0x1da)](_0x4300a6=>{const _0x151c1f=_0x52632b;this[_0x151c1f(0x1eb)]['set'](_0x3d483a,_0x4300a6);});}catch(_0x3e983c){this[_0x52632b(0x1ce)][_0x52632b(0x1d7)][_0x52632b(0x1c9)](_0x52632b(0x1cb),{'error':_0x3e983c});throw _0x3e983c;}}async[a48_0x375fee(0x1c4)](_0x3a3187){const _0x59adf7=a48_0x375fee;try{if(!this[_0x59adf7(0x1ce)][_0x59adf7(0x1db)]())throw new Error(_0x59adf7(0x1c5));await this[_0x59adf7(0x1ce)][_0x59adf7(0x1d7)][_0x59adf7(0x1c9)](_0x59adf7(0x1e5),{'id':_0x3a3187}),this[_0x59adf7(0x1eb)][_0x59adf7(0x1c4)](_0x3a3187);}catch(_0xb89cf8){this[_0x59adf7(0x1ce)][_0x59adf7(0x1d7)][_0x59adf7(0x1c9)]('user.error',{'error':_0xb89cf8});throw _0xb89cf8;}}}
@@ -1 +1 @@
1
- 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
+ const a49_0x3e600c=a49_0x1fc8;(function(_0x5e6f59,_0x11dc00){const _0x437c78=a49_0x1fc8,_0x18e63b=_0x5e6f59();while(!![]){try{const _0x3da81c=-parseInt(_0x437c78(0xee))/0x1*(parseInt(_0x437c78(0xfd))/0x2)+parseInt(_0x437c78(0xed))/0x3+-parseInt(_0x437c78(0x100))/0x4+parseInt(_0x437c78(0xfa))/0x5+-parseInt(_0x437c78(0xe1))/0x6*(-parseInt(_0x437c78(0xe6))/0x7)+parseInt(_0x437c78(0xfb))/0x8+-parseInt(_0x437c78(0xec))/0x9*(parseInt(_0x437c78(0xf6))/0xa);if(_0x3da81c===_0x11dc00)break;else _0x18e63b['push'](_0x18e63b['shift']());}catch(_0x38bd28){_0x18e63b['push'](_0x18e63b['shift']());}}}(a49_0x3c60,0x66084));function a49_0x3c60(){const _0x595946=['items','purchases','tokenIsValide','tokenValidate','42IQLlks','getCurrentUser','Hex','taxes','enc','742287HZmCut','login','fetchAll','receptions','stringify','json','32661VrXDlM','816120AdUXWN','5vCmNBK','then','suppliers','ADMIN','admin','user.loggedIn','stocks','new','1460SJkNJC','length','000001:\x20Invalid\x20Token.','registerModule','1898595zQWNDH','5210184YuxSjs','init','290270iuGjIS','events','clients','1487544TvqIIr','validateToken','token','currentUser','users','POST'];a49_0x3c60=function(){return _0x595946;};return a49_0x3c60();}import{EventBus}from'../core/EventBus.js';import{UserManager}from'../managers/UserManager.js';import{OrderManager}from'../managers/OrderManager.js';import{User}from'../entities/User.js';import{ClientManager}from'../managers/ClientManager.js';import{SupplierManager}from'../managers/SupplierManager.js';import{ItemManager}from'../managers/ItemManager.js';import{PreparationManager}from'../managers/PreparationManager.js';import{PurchaseManager}from'../managers/PurchaseManager.js';import{ReceptionManager}from'../managers/ReceptionManager.js';import{StockManager}from'../managers/StockManager.js';import{TaxManager}from'../managers/TaxManager.js';import*as a49_0x2c8748 from'crypto-js';function a49_0x1fc8(_0x38dbba,_0x3d1f89){_0x38dbba=_0x38dbba-0xe0;const _0x3c600d=a49_0x3c60();let _0x1fc84e=_0x3c600d[_0x38dbba];return _0x1fc84e;}import{EventsDatabase}from'../core/EventsDatabase.js';export class OWLClient{constructor(_0x25ee51){const _0x4fb219=a49_0x1fc8;this['modules']=[],this['tokenValidate']=![],this[_0x4fb219(0x102)]=_0x25ee51,this[_0x4fb219(0x104)]=new UserManager(this),this[_0x4fb219(0xff)]=new ClientManager(this),this[_0x4fb219(0xf0)]=new SupplierManager(this),this[_0x4fb219(0x106)]=new ItemManager(this),this['orders']=new OrderManager(this),this['preparations']=new PreparationManager(this),this[_0x4fb219(0x107)]=new PurchaseManager(this),this[_0x4fb219(0xe9)]=new ReceptionManager(this),this[_0x4fb219(0xf4)]=new StockManager(this),this[_0x4fb219(0xe4)]=new TaxManager(this),this[_0x4fb219(0xfe)]=new EventBus();}async['validateToken'](){const _0x188097=a49_0x1fc8,_0x75b6f=await fetch('http://localhost:3000/check',{'method':_0x188097(0x105),'headers':{'Content-Type':'application/json'},'body':JSON[_0x188097(0xea)]({'content':a49_0x2c8748['SHA256'](this[_0x188097(0x102)])['toString'](a49_0x2c8748[_0x188097(0xe5)][_0x188097(0xe3)])})}),_0x2ee2dc=await _0x75b6f[_0x188097(0xeb)]();return _0x2ee2dc['result'];}async[a49_0x3e600c(0xfc)](){const _0x5993fe=a49_0x3e600c;await this[_0x5993fe(0xe7)](),this['dbEvents']=new EventsDatabase(this),this['currentUser']=new User(this,{'authorizations':new Set([_0x5993fe(0xf1)])}),await this[_0x5993fe(0x104)][_0x5993fe(0xe8)]()[_0x5993fe(0xef)](_0x8d31a=>{const _0x928e50=_0x5993fe;[..._0x8d31a][_0x928e50(0xf7)]==0x0&&this[_0x928e50(0x104)][_0x928e50(0xf5)]({'email':_0x928e50(0xf2),'password':_0x928e50(0xf2),'authorizations':new Set([_0x928e50(0xf1)])}),this['currentUser']=undefined;}),this['events']['on'](_0x5993fe(0xf3),_0x168939=>{const _0x1b17a1=_0x5993fe;this[_0x1b17a1(0x103)]=_0x168939;});}async[a49_0x3e600c(0xe7)](){const _0x569b2c=a49_0x3e600c;this[_0x569b2c(0xe0)]=await this[_0x569b2c(0x101)]();if(!this[_0x569b2c(0xe0)])throw new Error(_0x569b2c(0xf8));}[a49_0x3e600c(0x108)](){return this['tokenValidate'];}[a49_0x3e600c(0xe2)](){const _0x58a189=a49_0x3e600c;if(!this[_0x58a189(0x108)]())throw new Error(_0x58a189(0xf8));return this[_0x58a189(0x103)]||new User(this,{});}[a49_0x3e600c(0xf9)](_0x920376){const _0x4c0bdc=a49_0x3e600c;if(!this[_0x4c0bdc(0x108)]())throw new Error(_0x4c0bdc(0xf8));_0x920376[_0x4c0bdc(0xfc)](this),this['modules']['push'](_0x920376);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-progiciel",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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
+ }
@@ -35,7 +35,7 @@ model User {
35
35
 
36
36
  model Client {
37
37
  id Int @id @default(autoincrement())
38
- ref Int?
38
+ ref String?
39
39
  name String?
40
40
  tel String?
41
41
  email String?
@@ -49,7 +49,7 @@ model Client {
49
49
 
50
50
  model Supplier {
51
51
  id Int @id @default(autoincrement())
52
- ref Int?
52
+ ref String?
53
53
  name String?
54
54
  tel String?
55
55
  email String?
@@ -106,7 +106,7 @@ model Order {
106
106
 
107
107
  model Preparation {
108
108
  id Int @id @default(autoincrement())
109
- ref Int?
109
+ ref String?
110
110
  userId Int?
111
111
  state String?
112
112
  batch String?
@@ -123,7 +123,7 @@ model Preparation {
123
123
 
124
124
  model Purchase {
125
125
  id Int @id @default(autoincrement())
126
- ref Int?
126
+ ref String?
127
127
  userId Int?
128
128
  state String?
129
129
  dateOrdered DateTime?
@@ -140,7 +140,7 @@ model Purchase {
140
140
 
141
141
  model Reception {
142
142
  id Int @id @default(autoincrement())
143
- ref Int?
143
+ ref String?
144
144
  userId Int?
145
145
  state String?
146
146
  batch String?
@@ -167,7 +167,7 @@ model Stock {
167
167
 
168
168
  model Tax {
169
169
  id Int @id @default(autoincrement())
170
- ref Int?
170
+ ref String?
171
171
  group String?
172
172
  label String?
173
173
  fix Float?