owl-progiciel 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/api/routes/client.routes.d.ts +2 -0
  2. package/dist/api/routes/client.routes.js +1 -0
  3. package/dist/api/routes/item.routes.d.ts +2 -0
  4. package/dist/api/routes/item.routes.js +1 -0
  5. package/dist/api/routes/order.routes.d.ts +2 -0
  6. package/dist/api/routes/order.routes.js +1 -0
  7. package/dist/api/routes/preparation.routes.d.ts +2 -0
  8. package/dist/api/routes/preparation.routes.js +1 -0
  9. package/dist/api/routes/purchase.routes.d.ts +2 -0
  10. package/dist/api/routes/purchase.routes.js +1 -0
  11. package/dist/api/routes/reception.routes.d.ts +2 -0
  12. package/dist/api/routes/reception.routes.js +1 -0
  13. package/dist/api/routes/stock.routes.d.ts +2 -0
  14. package/dist/api/routes/stock.routes.js +1 -0
  15. package/dist/api/routes/supplier.routes.d.ts +2 -0
  16. package/dist/api/routes/supplier.routes.js +1 -0
  17. package/dist/api/routes/tax.routes.d.ts +2 -0
  18. package/dist/api/routes/tax.routes.js +1 -0
  19. package/dist/api/routes/user.routes.d.ts +2 -0
  20. package/dist/api/routes/user.routes.js +1 -0
  21. package/dist/api/server.d.ts +1 -0
  22. package/dist/api/server.js +1 -0
  23. package/dist/core/Entity.js +1 -1
  24. package/dist/core/EventBus.js +1 -1
  25. package/dist/core/{PrismaDatabase.d.ts → EventsDatabase.d.ts} +1 -3
  26. package/dist/core/EventsDatabase.js +1 -0
  27. package/dist/core/Manager.js +1 -1
  28. package/dist/core/events/ClientEvents.d.ts +1 -2
  29. package/dist/core/events/ClientEvents.js +1 -1
  30. package/dist/core/events/ItemEvents.d.ts +1 -2
  31. package/dist/core/events/ItemEvents.js +1 -1
  32. package/dist/core/events/OrderEvents.d.ts +1 -2
  33. package/dist/core/events/OrderEvents.js +1 -1
  34. package/dist/core/events/PreparationEvents.d.ts +1 -2
  35. package/dist/core/events/PreparationEvents.js +1 -1
  36. package/dist/core/events/PurchaseEvents.d.ts +1 -2
  37. package/dist/core/events/PurchaseEvents.js +1 -1
  38. package/dist/core/events/ReceptionEvents.d.ts +1 -2
  39. package/dist/core/events/ReceptionEvents.js +1 -1
  40. package/dist/core/events/StockEvents.d.ts +1 -2
  41. package/dist/core/events/StockEvents.js +1 -1
  42. package/dist/core/events/SupplierEvents.d.ts +1 -2
  43. package/dist/core/events/SupplierEvents.js +1 -1
  44. package/dist/core/events/TaxEvents.d.ts +1 -2
  45. package/dist/core/events/TaxEvents.js +1 -1
  46. package/dist/core/events/UserEvents.d.ts +1 -2
  47. package/dist/core/events/UserEvents.js +1 -1
  48. package/dist/entities/Client.js +1 -1
  49. package/dist/entities/Item.js +1 -1
  50. package/dist/entities/Order.js +1 -1
  51. package/dist/entities/Preparation.js +1 -1
  52. package/dist/entities/Purchase.js +1 -1
  53. package/dist/entities/Reception.js +1 -1
  54. package/dist/entities/Stock.js +1 -1
  55. package/dist/entities/Supplier.js +1 -1
  56. package/dist/entities/Tax.js +1 -1
  57. package/dist/entities/User.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/managers/ClientManager.js +1 -1
  60. package/dist/managers/ItemManager.js +1 -1
  61. package/dist/managers/OrderManager.js +1 -1
  62. package/dist/managers/PreparationManager.js +1 -1
  63. package/dist/managers/PurchaseManager.js +1 -1
  64. package/dist/managers/ReceptionManager.js +1 -1
  65. package/dist/managers/StockManager.js +1 -1
  66. package/dist/managers/SupplierManager.js +1 -1
  67. package/dist/managers/TaxManager.js +1 -1
  68. package/dist/managers/UserManager.js +1 -1
  69. package/dist/owl/OWLClient.d.ts +2 -2
  70. package/dist/owl/OWLClient.js +1 -1
  71. package/package.json +10 -2
  72. package/dist/core/PrismaDatabase.js +0 -1
@@ -1 +1 @@
1
- (function(_0x12948d,_0x1a1f80){const _0xcf824a=a10_0x2a83,_0x46b5fb=_0x12948d();while(!![]){try{const _0x3562b1=parseInt(_0xcf824a(0x140))/0x1+-parseInt(_0xcf824a(0x154))/0x2*(-parseInt(_0xcf824a(0x13c))/0x3)+parseInt(_0xcf824a(0x14e))/0x4*(-parseInt(_0xcf824a(0x13e))/0x5)+parseInt(_0xcf824a(0x158))/0x6*(-parseInt(_0xcf824a(0x156))/0x7)+-parseInt(_0xcf824a(0x143))/0x8+parseInt(_0xcf824a(0x14d))/0x9+parseInt(_0xcf824a(0x14b))/0xa;if(_0x3562b1===_0x1a1f80)break;else _0x46b5fb['push'](_0x46b5fb['shift']());}catch(_0x56c672){_0x46b5fb['push'](_0x46b5fb['shift']());}}}(a10_0x39b3,0x7af58));function a10_0x39b3(){const _0x2e4eed=['STOCK_DELETED','410001:\x20Action\x20not\x20allowed.','hasPermission','410002:\x20Action\x20not\x20allowed.','findMany','10283810KfiWrI','stock.read','7023915fTzupP','3949428AQmlRI','ADMIN','stock.deleted','onRequest','findUnique','events','34KBRcgW','stock.read.some','126wPsUol','STOCK_UPDATED','324840ZsINpt','update','stock.updated','stock.created','142617poGKEA','create','5TeAYfB','getCurrentUser','582314QZEAvo','STOCK_ALL','delete','5870208WxMMVX','stock','STOCK_CREATED'];a10_0x39b3=function(){return _0x2e4eed;};return a10_0x39b3();}function a10_0x2a83(_0xccb5e9,_0x529cad){_0xccb5e9=_0xccb5e9-0x139;const _0x39b340=a10_0x39b3();let _0x2a8335=_0x39b340[_0xccb5e9];return _0x2a8335;}export default function bindStockEvents(_0x5cf81b,_0x8f44eb){const _0x35ca46=a10_0x2a83;_0x5cf81b[_0x35ca46(0x153)][_0x35ca46(0x151)](_0x35ca46(0x13b),async _0x4f5676=>{const _0x46a7be=_0x35ca46;if(!_0x5cf81b['getCurrentUser']()[_0x46a7be(0x148)](_0x46a7be(0x14f))&&!_0x5cf81b[_0x46a7be(0x13f)]()[_0x46a7be(0x148)]('STOCK_ALL')&&!_0x5cf81b[_0x46a7be(0x13f)]()[_0x46a7be(0x148)](_0x46a7be(0x145)))throw new Error(_0x46a7be(0x147));const {item:_0x65ac1e,..._0x1865bd}=_0x4f5676[_0x46a7be(0x144)],_0x2efe20=await _0x8f44eb[_0x46a7be(0x144)][_0x46a7be(0x13d)]({'data':{..._0x1865bd,..._0x65ac1e?{'Item':{'create':{..._0x65ac1e}}}:{}},'include':{'item':!![]}});return _0x2efe20['id'];}),_0x5cf81b[_0x35ca46(0x153)]['onRequest'](_0x35ca46(0x14c),async({id:_0x2b6aa3})=>{const _0x5d5ed7=_0x35ca46;if(!_0x5cf81b[_0x5d5ed7(0x13f)]()[_0x5d5ed7(0x148)]('ADMIN')&&!_0x5cf81b['getCurrentUser']()[_0x5d5ed7(0x148)](_0x5d5ed7(0x141))&&!_0x5cf81b[_0x5d5ed7(0x13f)]()['hasPermission']('STOCK_READ'))throw new Error(_0x5d5ed7(0x149));const _0xe24de7=await _0x8f44eb[_0x5d5ed7(0x144)][_0x5d5ed7(0x152)]({'where':{'id':_0x2b6aa3}});return _0xe24de7;}),_0x5cf81b[_0x35ca46(0x153)][_0x35ca46(0x151)]('stock.read.all',async()=>{const _0x31e362=_0x35ca46;if(!_0x5cf81b['getCurrentUser']()['hasPermission'](_0x31e362(0x14f))&&!_0x5cf81b[_0x31e362(0x13f)]()[_0x31e362(0x148)](_0x31e362(0x141))&&!_0x5cf81b[_0x31e362(0x13f)]()[_0x31e362(0x148)]('STOCK_READ'))throw new Error(_0x31e362(0x149));const _0x5a7d17=await _0x8f44eb[_0x31e362(0x144)][_0x31e362(0x14a)]();return _0x5a7d17;}),_0x5cf81b[_0x35ca46(0x153)]['onRequest'](_0x35ca46(0x155),async _0x50dd66=>{const _0x484b0d=_0x35ca46;if(!_0x5cf81b[_0x484b0d(0x13f)]()[_0x484b0d(0x148)](_0x484b0d(0x14f))&&!_0x5cf81b['getCurrentUser']()[_0x484b0d(0x148)]('STOCK_ALL')&&!_0x5cf81b[_0x484b0d(0x13f)]()['hasPermission']('STOCK_READ'))throw new Error(_0x484b0d(0x149));const _0x1a802a=await _0x8f44eb[_0x484b0d(0x144)][_0x484b0d(0x14a)]({'where':_0x50dd66});return _0x1a802a;}),_0x5cf81b['events'][_0x35ca46(0x151)](_0x35ca46(0x13a),async _0x2c2a56=>{const _0x4e415a=_0x35ca46;if(!_0x5cf81b[_0x4e415a(0x13f)]()['hasPermission'](_0x4e415a(0x14f))&&!_0x5cf81b[_0x4e415a(0x13f)]()['hasPermission']('STOCK_ALL')&&!_0x5cf81b[_0x4e415a(0x13f)]()[_0x4e415a(0x148)](_0x4e415a(0x157)))throw new Error('410003:\x20Action\x20not\x20allowed.');const {where:_0x28ee5f,..._0xa93db3}=_0x2c2a56;return await _0x8f44eb[_0x4e415a(0x144)][_0x4e415a(0x139)]({'where':_0x28ee5f,'data':_0xa93db3});}),_0x5cf81b[_0x35ca46(0x153)]['on'](_0x35ca46(0x150),async({id:_0x13c6ba})=>{const _0x8b5f39=_0x35ca46;if(!_0x5cf81b[_0x8b5f39(0x13f)]()[_0x8b5f39(0x148)]('ADMIN')&&!_0x5cf81b[_0x8b5f39(0x13f)]()['hasPermission'](_0x8b5f39(0x141))&&!_0x5cf81b[_0x8b5f39(0x13f)]()[_0x8b5f39(0x148)](_0x8b5f39(0x146)))throw new Error('410004:\x20Action\x20not\x20allowed.');await _0x8f44eb[_0x8b5f39(0x144)][_0x8b5f39(0x142)]({'where':{'id':_0x13c6ba}});});}
1
+ const a21_0xf55d8=a21_0x48b4;(function(_0x40361b,_0x4b2e8e){const _0x27cd82=a21_0x48b4,_0x3ed4c1=_0x40361b();while(!![]){try{const _0x1cc8c4=-parseInt(_0x27cd82(0x1db))/0x1+-parseInt(_0x27cd82(0x1f5))/0x2+-parseInt(_0x27cd82(0x1e7))/0x3+-parseInt(_0x27cd82(0x1e9))/0x4+-parseInt(_0x27cd82(0x1d8))/0x5+parseInt(_0x27cd82(0x1f8))/0x6+parseInt(_0x27cd82(0x1f3))/0x7;if(_0x1cc8c4===_0x4b2e8e)break;else _0x3ed4c1['push'](_0x3ed4c1['shift']());}catch(_0x1490f4){_0x3ed4c1['push'](_0x3ed4c1['shift']());}}}(a21_0x5b91,0x499d4));function a21_0x48b4(_0x7ae669,_0x3b4812){_0x7ae669=_0x7ae669-0x1d4;const _0x5b9107=a21_0x5b91();let _0x48b468=_0x5b9107[_0x7ae669];return _0x48b468;}const API_BASE=a21_0xf55d8(0x1ea);function a21_0x5b91(){const _0x438a81=['PUT','410002:\x20Action\x20not\x20allowed.','2377545FwlmMi','ADMIN','events','539930fFtRGk','stock.read','STOCK_ALL','410004:\x20Action\x20not\x20allowed.','onRequest','application/json','stock.updated','getCurrentUser','410001:\x20Action\x20not\x20allowed.','statusText','stock.created','/search','1720134AHkhWV','DELETE','811516fCIDkb','http://localhost:5001/stocks','410003:\x20Action\x20not\x20allowed.','STOCK_CREATED','STOCK_DELETED','stringify','json','stock.deleted','stock','POST','10708425TjHXWm','hasPermission','78372stYxeb','stock.read.all','STOCK_READ','3615786sRXfvy','API\x20Error:\x20','STOCK_UPDATED'];a21_0x5b91=function(){return _0x438a81;};return a21_0x5b91();}export default function bindStockEvents(_0x9c9a7b){const _0x1bb952=a21_0xf55d8;_0x9c9a7b['events']['onRequest'](_0x1bb952(0x1e5),async _0x23605c=>{const _0x2b7965=_0x1bb952;if(!_0x9c9a7b[_0x2b7965(0x1e2)]()[_0x2b7965(0x1f4)]('ADMIN')&&!_0x9c9a7b[_0x2b7965(0x1e2)]()[_0x2b7965(0x1f4)](_0x2b7965(0x1dd))&&!_0x9c9a7b['getCurrentUser']()[_0x2b7965(0x1f4)](_0x2b7965(0x1ec)))throw new Error(_0x2b7965(0x1e3));const _0x469a1c=await fetch(''+API_BASE,{'method':_0x2b7965(0x1f2),'headers':{'Content-Type':_0x2b7965(0x1e0)},'body':JSON['stringify'](_0x23605c[_0x2b7965(0x1f1)])});if(!_0x469a1c['ok'])throw new Error(_0x2b7965(0x1d4)+_0x469a1c[_0x2b7965(0x1e4)]);const _0x1a4b53=await _0x469a1c['json']();return _0x1a4b53['id'];}),_0x9c9a7b[_0x1bb952(0x1da)][_0x1bb952(0x1df)](_0x1bb952(0x1dc),async({id:_0x3c0e4a})=>{const _0x55302e=_0x1bb952;if(!_0x9c9a7b[_0x55302e(0x1e2)]()[_0x55302e(0x1f4)](_0x55302e(0x1d9))&&!_0x9c9a7b['getCurrentUser']()['hasPermission'](_0x55302e(0x1dd))&&!_0x9c9a7b[_0x55302e(0x1e2)]()['hasPermission'](_0x55302e(0x1f7)))throw new Error(_0x55302e(0x1d7));const _0x3a5b08=await fetch(API_BASE+'/'+_0x3c0e4a);if(!_0x3a5b08['ok'])throw new Error('API\x20Error:\x20'+_0x3a5b08[_0x55302e(0x1e4)]);return await _0x3a5b08[_0x55302e(0x1ef)]();}),_0x9c9a7b[_0x1bb952(0x1da)]['onRequest'](_0x1bb952(0x1f6),async()=>{const _0x59dd77=_0x1bb952;if(!_0x9c9a7b['getCurrentUser']()[_0x59dd77(0x1f4)]('ADMIN')&&!_0x9c9a7b['getCurrentUser']()[_0x59dd77(0x1f4)]('STOCK_ALL')&&!_0x9c9a7b[_0x59dd77(0x1e2)]()[_0x59dd77(0x1f4)](_0x59dd77(0x1f7)))throw new Error(_0x59dd77(0x1d7));const _0x52ec9e=await fetch(''+API_BASE);if(!_0x52ec9e['ok'])throw new Error(_0x59dd77(0x1d4)+_0x52ec9e[_0x59dd77(0x1e4)]);return await _0x52ec9e[_0x59dd77(0x1ef)]();}),_0x9c9a7b[_0x1bb952(0x1da)][_0x1bb952(0x1df)]('stock.read.some',async _0x25cd37=>{const _0x522a58=_0x1bb952;if(!_0x9c9a7b['getCurrentUser']()['hasPermission'](_0x522a58(0x1d9))&&!_0x9c9a7b[_0x522a58(0x1e2)]()[_0x522a58(0x1f4)](_0x522a58(0x1dd))&&!_0x9c9a7b[_0x522a58(0x1e2)]()['hasPermission'](_0x522a58(0x1f7)))throw new Error(_0x522a58(0x1d7));const _0x100821=await fetch(API_BASE+_0x522a58(0x1e6),{'method':'POST','headers':{'Content-Type':_0x522a58(0x1e0)},'body':JSON[_0x522a58(0x1ee)](_0x25cd37)});if(!_0x100821['ok'])throw new Error('API\x20Error:\x20'+_0x100821['statusText']);return await _0x100821[_0x522a58(0x1ef)]();}),_0x9c9a7b[_0x1bb952(0x1da)][_0x1bb952(0x1df)](_0x1bb952(0x1e1),async _0x61183a=>{const _0x29f508=_0x1bb952;if(!_0x9c9a7b[_0x29f508(0x1e2)]()[_0x29f508(0x1f4)]('ADMIN')&&!_0x9c9a7b['getCurrentUser']()[_0x29f508(0x1f4)]('STOCK_ALL')&&!_0x9c9a7b[_0x29f508(0x1e2)]()['hasPermission'](_0x29f508(0x1d5)))throw new Error(_0x29f508(0x1eb));const {where:_0x209ada,..._0x85f534}=_0x61183a,_0xf3f54e=await fetch(API_BASE+'/'+_0x209ada['id'],{'method':_0x29f508(0x1d6),'headers':{'Content-Type':_0x29f508(0x1e0)},'body':JSON[_0x29f508(0x1ee)](_0x85f534)});if(!_0xf3f54e['ok'])throw new Error(_0x29f508(0x1d4)+_0xf3f54e['statusText']);return await _0xf3f54e[_0x29f508(0x1ef)]();}),_0x9c9a7b[_0x1bb952(0x1da)]['on'](_0x1bb952(0x1f0),async({id:_0x1ecaba})=>{const _0xfac6e1=_0x1bb952;if(!_0x9c9a7b[_0xfac6e1(0x1e2)]()[_0xfac6e1(0x1f4)]('ADMIN')&&!_0x9c9a7b[_0xfac6e1(0x1e2)]()[_0xfac6e1(0x1f4)](_0xfac6e1(0x1dd))&&!_0x9c9a7b['getCurrentUser']()[_0xfac6e1(0x1f4)](_0xfac6e1(0x1ed)))throw new Error(_0xfac6e1(0x1de));const _0x409e47=await fetch(API_BASE+'/'+_0x1ecaba,{'method':_0xfac6e1(0x1e8)});if(!_0x409e47['ok']&&_0x409e47['status']!==0xcc)throw new Error(_0xfac6e1(0x1d4)+_0x409e47[_0xfac6e1(0x1e4)]);});}
@@ -1,3 +1,2 @@
1
- import { PrismaClient } from "@prisma/client";
2
1
  import { OWLClient } from "../../owl/OWLClient.js";
3
- export default function bindSupplierEvents(owl: OWLClient, prisma: PrismaClient): void;
2
+ export default function bindSupplierEvents(owl: OWLClient): void;
@@ -1 +1 @@
1
- (function(_0x54da68,_0x483b25){const _0x12eeba=a11_0x5e1f,_0x197cff=_0x54da68();while(!![]){try{const _0x1d5456=parseInt(_0x12eeba(0x19d))/0x1*(parseInt(_0x12eeba(0x1a8))/0x2)+parseInt(_0x12eeba(0x192))/0x3*(parseInt(_0x12eeba(0x1a7))/0x4)+parseInt(_0x12eeba(0x194))/0x5+parseInt(_0x12eeba(0x19a))/0x6*(parseInt(_0x12eeba(0x1a0))/0x7)+-parseInt(_0x12eeba(0x1aa))/0x8*(parseInt(_0x12eeba(0x1a1))/0x9)+parseInt(_0x12eeba(0x1b1))/0xa+-parseInt(_0x12eeba(0x191))/0xb;if(_0x1d5456===_0x483b25)break;else _0x197cff['push'](_0x197cff['shift']());}catch(_0x4d90c3){_0x197cff['push'](_0x197cff['shift']());}}}(a11_0x48be,0xa0377));function a11_0x5e1f(_0x1ed2c7,_0x19ed63){_0x1ed2c7=_0x1ed2c7-0x18e;const _0x48be70=a11_0x48be();let _0x5e1f41=_0x48be70[_0x1ed2c7];return _0x5e1f41;}export default function bindSupplierEvents(_0x7157de,_0x2081dc){const _0x17629e=a11_0x5e1f;_0x7157de[_0x17629e(0x18f)][_0x17629e(0x1a2)](_0x17629e(0x1a5),async _0x1436a4=>{const _0x5cd77d=_0x17629e;if(!_0x7157de[_0x5cd77d(0x1a6)]()[_0x5cd77d(0x1ab)](_0x5cd77d(0x195))&&!_0x7157de[_0x5cd77d(0x1a6)]()[_0x5cd77d(0x1ab)](_0x5cd77d(0x1a9))&&!_0x7157de['getCurrentUser']()[_0x5cd77d(0x1ab)](_0x5cd77d(0x1af)))throw new Error(_0x5cd77d(0x197));const {taxes:_0x51c1bc,..._0x2b6948}=_0x1436a4[_0x5cd77d(0x1b0)],_0x155ce3=await _0x2081dc['supplier'][_0x5cd77d(0x19f)]({'data':{..._0x2b6948,'taxes':{'create':_0x51c1bc[_0x5cd77d(0x193)](_0x47b5c5=>({'tax':{'create':{..._0x47b5c5}}}))}},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x155ce3['id'];}),_0x7157de[_0x17629e(0x18f)][_0x17629e(0x1a2)](_0x17629e(0x18e),async({id:_0x5b55a8})=>{const _0x1084bd=_0x17629e;if(!_0x7157de[_0x1084bd(0x1a6)]()[_0x1084bd(0x1ab)](_0x1084bd(0x195))&&!_0x7157de[_0x1084bd(0x1a6)]()[_0x1084bd(0x1ab)]('SUPPLIER_ALL')&&!_0x7157de['getCurrentUser']()[_0x1084bd(0x1ab)](_0x1084bd(0x1ad)))throw new Error(_0x1084bd(0x19c));const _0x28faee=await _0x2081dc[_0x1084bd(0x1b0)][_0x1084bd(0x19e)]({'where':{'id':_0x5b55a8},'include':{'taxes':{'include':{'tax':!![]}}}});return _0x28faee;}),_0x7157de[_0x17629e(0x18f)]['onRequest'](_0x17629e(0x1b2),async()=>{const _0x5d7b69=_0x17629e;if(!_0x7157de[_0x5d7b69(0x1a6)]()[_0x5d7b69(0x1ab)]('ADMIN')&&!_0x7157de[_0x5d7b69(0x1a6)]()['hasPermission'](_0x5d7b69(0x1a9))&&!_0x7157de[_0x5d7b69(0x1a6)]()[_0x5d7b69(0x1ab)](_0x5d7b69(0x1ad)))throw new Error(_0x5d7b69(0x19c));const _0x332b63=await _0x2081dc[_0x5d7b69(0x1b0)][_0x5d7b69(0x198)]({'include':{'taxes':{'include':{'tax':!![]}}}});return _0x332b63;}),_0x7157de[_0x17629e(0x18f)][_0x17629e(0x1a2)](_0x17629e(0x1ac),async _0x2d7495=>{const _0x39bc0e=_0x17629e;if(!_0x7157de[_0x39bc0e(0x1a6)]()[_0x39bc0e(0x1ab)](_0x39bc0e(0x195))&&!_0x7157de['getCurrentUser']()[_0x39bc0e(0x1ab)]('SUPPLIER_ALL')&&!_0x7157de[_0x39bc0e(0x1a6)]()[_0x39bc0e(0x1ab)]('SUPPLIER_READ'))throw new Error(_0x39bc0e(0x19c));const _0x5eeecb=await _0x2081dc[_0x39bc0e(0x1b0)][_0x39bc0e(0x198)]({'where':_0x2d7495,'include':{'taxes':{'include':{'tax':!![]}}}});return _0x5eeecb;}),_0x7157de['events'][_0x17629e(0x1a2)](_0x17629e(0x190),async _0x1f8e82=>{const _0x4694d9=_0x17629e;if(!_0x7157de[_0x4694d9(0x1a6)]()[_0x4694d9(0x1ab)](_0x4694d9(0x195))&&!_0x7157de[_0x4694d9(0x1a6)]()[_0x4694d9(0x1ab)](_0x4694d9(0x1a9))&&!_0x7157de[_0x4694d9(0x1a6)]()[_0x4694d9(0x1ab)](_0x4694d9(0x199)))throw new Error('300003:\x20Action\x20not\x20allowed.');const {where:_0x4e6b18,..._0x5bc4c4}=_0x1f8e82;return await _0x2081dc[_0x4694d9(0x1b0)][_0x4694d9(0x1a3)]({'where':_0x4e6b18,'data':_0x5bc4c4});}),_0x7157de[_0x17629e(0x18f)]['on'](_0x17629e(0x1a4),async({id:_0x36468c})=>{const _0x4b653a=_0x17629e;if(!_0x7157de[_0x4b653a(0x1a6)]()['hasPermission'](_0x4b653a(0x195))&&!_0x7157de[_0x4b653a(0x1a6)]()['hasPermission'](_0x4b653a(0x1a9))&&!_0x7157de[_0x4b653a(0x1a6)]()['hasPermission'](_0x4b653a(0x19b)))throw new Error(_0x4b653a(0x1ae));await _0x2081dc['supplier'][_0x4b653a(0x196)]({'where':{'id':_0x36468c}});});}function a11_0x48be(){const _0x43685=['6WmRWtW','map','1250975ICumnm','ADMIN','delete','300001:\x20Action\x20not\x20allowed.','findMany','SUPPLIER_UPDATED','12OcHzJx','SUPPLIER_DELETED','300002:\x20Action\x20not\x20allowed.','1cBaJaH','findUnique','create','2173941KylteB','3519vdVrwl','onRequest','update','supplier.deleted','supplier.created','getCurrentUser','625172iUqRwr','1089584pqXEWj','SUPPLIER_ALL','6856VvVtXy','hasPermission','supplier.read.some','SUPPLIER_READ','300004:\x20Action\x20not\x20allowed.','SUPPLIER_CREATED','supplier','6874610MKmUFm','supplier.read.all','supplier.read','events','supplier.updated','15673086oQgkZm'];a11_0x48be=function(){return _0x43685;};return a11_0x48be();}
1
+ const a22_0x594a79=a22_0x3672;function a22_0x3672(_0x47537a,_0x207342){_0x47537a=_0x47537a-0x1ae;const _0x2e8692=a22_0x2e86();let _0x367282=_0x2e8692[_0x47537a];return _0x367282;}(function(_0x286b9a,_0x27f37d){const _0x1c1673=a22_0x3672,_0x1491fa=_0x286b9a();while(!![]){try{const _0x331a94=-parseInt(_0x1c1673(0x1d0))/0x1*(-parseInt(_0x1c1673(0x1b3))/0x2)+-parseInt(_0x1c1673(0x1c7))/0x3*(-parseInt(_0x1c1673(0x1d4))/0x4)+-parseInt(_0x1c1673(0x1ba))/0x5+-parseInt(_0x1c1673(0x1c3))/0x6*(-parseInt(_0x1c1673(0x1b9))/0x7)+-parseInt(_0x1c1673(0x1b2))/0x8*(parseInt(_0x1c1673(0x1c2))/0x9)+-parseInt(_0x1c1673(0x1af))/0xa+parseInt(_0x1c1673(0x1cc))/0xb*(parseInt(_0x1c1673(0x1c0))/0xc);if(_0x331a94===_0x27f37d)break;else _0x1491fa['push'](_0x1491fa['shift']());}catch(_0x453a33){_0x1491fa['push'](_0x1491fa['shift']());}}}(a22_0x2e86,0x5c439));const API_BASE=a22_0x594a79(0x1cd);export default function bindSupplierEvents(_0x1800ea){const _0x82fb8a=a22_0x594a79;_0x1800ea[_0x82fb8a(0x1cf)][_0x82fb8a(0x1ce)](_0x82fb8a(0x1b7),async _0x240830=>{const _0x59fa65=_0x82fb8a;if(!_0x1800ea[_0x59fa65(0x1b6)]()[_0x59fa65(0x1b1)](_0x59fa65(0x1c5))&&!_0x1800ea[_0x59fa65(0x1b6)]()[_0x59fa65(0x1b1)](_0x59fa65(0x1d3))&&!_0x1800ea['getCurrentUser']()[_0x59fa65(0x1b1)](_0x59fa65(0x1c1)))throw new Error(_0x59fa65(0x1bb));const _0x3c6665=await fetch(''+API_BASE,{'method':'POST','headers':{'Content-Type':_0x59fa65(0x1ae)},'body':JSON['stringify'](_0x240830[_0x59fa65(0x1c9)])});if(!_0x3c6665['ok'])throw new Error('API\x20Error:\x20'+_0x3c6665[_0x59fa65(0x1be)]);const _0x5df164=await _0x3c6665[_0x59fa65(0x1ca)]();return _0x5df164['id'];}),_0x1800ea['events']['onRequest'](_0x82fb8a(0x1c8),async({id:_0x23b4ea})=>{const _0x5d92cd=_0x82fb8a;if(!_0x1800ea[_0x5d92cd(0x1b6)]()[_0x5d92cd(0x1b1)](_0x5d92cd(0x1c5))&&!_0x1800ea[_0x5d92cd(0x1b6)]()['hasPermission']('SUPPLIER_ALL')&&!_0x1800ea[_0x5d92cd(0x1b6)]()[_0x5d92cd(0x1b1)](_0x5d92cd(0x1b5)))throw new Error(_0x5d92cd(0x1bc));const _0xee194=await fetch(API_BASE+'/'+_0x23b4ea);if(!_0xee194['ok'])throw new Error('API\x20Error:\x20'+_0xee194[_0x5d92cd(0x1be)]);return await _0xee194['json']();}),_0x1800ea[_0x82fb8a(0x1cf)][_0x82fb8a(0x1ce)]('supplier.read.all',async()=>{const _0x581cf5=_0x82fb8a;if(!_0x1800ea[_0x581cf5(0x1b6)]()[_0x581cf5(0x1b1)](_0x581cf5(0x1c5))&&!_0x1800ea[_0x581cf5(0x1b6)]()[_0x581cf5(0x1b1)](_0x581cf5(0x1d3))&&!_0x1800ea[_0x581cf5(0x1b6)]()[_0x581cf5(0x1b1)](_0x581cf5(0x1b5)))throw new Error(_0x581cf5(0x1bc));const _0x4544c3=await fetch(''+API_BASE);if(!_0x4544c3['ok'])throw new Error(_0x581cf5(0x1d2)+_0x4544c3['statusText']);return await _0x4544c3[_0x581cf5(0x1ca)]();}),_0x1800ea[_0x82fb8a(0x1cf)][_0x82fb8a(0x1ce)](_0x82fb8a(0x1bd),async _0x1cfde9=>{const _0x9f8705=_0x82fb8a;if(!_0x1800ea[_0x9f8705(0x1b6)]()[_0x9f8705(0x1b1)](_0x9f8705(0x1c5))&&!_0x1800ea[_0x9f8705(0x1b6)]()[_0x9f8705(0x1b1)]('SUPPLIER_ALL')&&!_0x1800ea[_0x9f8705(0x1b6)]()['hasPermission'](_0x9f8705(0x1b5)))throw new Error('300002:\x20Action\x20not\x20allowed.');const _0x4a842e=await fetch(API_BASE+_0x9f8705(0x1c4),{'method':_0x9f8705(0x1c6),'headers':{'Content-Type':_0x9f8705(0x1ae)},'body':JSON[_0x9f8705(0x1b4)](_0x1cfde9)});if(!_0x4a842e['ok'])throw new Error('API\x20Error:\x20'+_0x4a842e[_0x9f8705(0x1be)]);return await _0x4a842e[_0x9f8705(0x1ca)]();}),_0x1800ea[_0x82fb8a(0x1cf)][_0x82fb8a(0x1ce)](_0x82fb8a(0x1b8),async _0x35a4fe=>{const _0x555e08=_0x82fb8a;if(!_0x1800ea['getCurrentUser']()['hasPermission'](_0x555e08(0x1c5))&&!_0x1800ea[_0x555e08(0x1b6)]()[_0x555e08(0x1b1)](_0x555e08(0x1d3))&&!_0x1800ea[_0x555e08(0x1b6)]()[_0x555e08(0x1b1)](_0x555e08(0x1cb)))throw new Error(_0x555e08(0x1d5));const {where:_0x33499e,..._0x3698b8}=_0x35a4fe,_0x1b6b75=await fetch(API_BASE+'/'+_0x33499e['id'],{'method':_0x555e08(0x1bf),'headers':{'Content-Type':_0x555e08(0x1ae)},'body':JSON[_0x555e08(0x1b4)](_0x3698b8)});if(!_0x1b6b75['ok'])throw new Error(_0x555e08(0x1d2)+_0x1b6b75[_0x555e08(0x1be)]);return await _0x1b6b75[_0x555e08(0x1ca)]();}),_0x1800ea['events']['on'](_0x82fb8a(0x1d1),async({id:_0x4a72a9})=>{const _0x5efb59=_0x82fb8a;if(!_0x1800ea['getCurrentUser']()['hasPermission'](_0x5efb59(0x1c5))&&!_0x1800ea[_0x5efb59(0x1b6)]()['hasPermission'](_0x5efb59(0x1d3))&&!_0x1800ea[_0x5efb59(0x1b6)]()[_0x5efb59(0x1b1)](_0x5efb59(0x1b0)))throw new Error('300004:\x20Action\x20not\x20allowed.');const _0x3c32ac=await fetch(API_BASE+'/'+_0x4a72a9,{'method':'DELETE'});if(!_0x3c32ac['ok']&&_0x3c32ac['status']!==0xcc)throw new Error('API\x20Error:\x20'+_0x3c32ac[_0x5efb59(0x1be)]);});}function a22_0x2e86(){const _0x1f10fa=['300001:\x20Action\x20not\x20allowed.','300002:\x20Action\x20not\x20allowed.','supplier.read.some','statusText','PUT','532416fhwaah','SUPPLIER_CREATED','2394ZfkNAK','42XgBdNF','/search','ADMIN','POST','47682sCXCLs','supplier.read','supplier','json','SUPPLIER_UPDATED','286OsdsWM','http://localhost:5001/suppliers','onRequest','events','206KseFHu','supplier.deleted','API\x20Error:\x20','SUPPLIER_ALL','24oPandt','300003:\x20Action\x20not\x20allowed.','application/json','480650ZdiJQl','SUPPLIER_DELETED','hasPermission','16304Vlciso','3308bLrxEy','stringify','SUPPLIER_READ','getCurrentUser','supplier.created','supplier.updated','75838lgMuMf','3487040eVUxAD'];a22_0x2e86=function(){return _0x1f10fa;};return a22_0x2e86();}
@@ -1,3 +1,2 @@
1
- import { PrismaClient } from "@prisma/client";
2
1
  import { OWLClient } from "../../owl/OWLClient.js";
3
- export default function bindTaxEvents(owl: OWLClient, prisma: PrismaClient): void;
2
+ export default function bindTaxEvents(owl: OWLClient): void;
@@ -1 +1 @@
1
- function a12_0x374e(){const _0x55ee65=['7UjGlps','getCurrentUser','tax.created','tax.deleted','500002:\x20Action\x20not\x20allowed.','TAX_CREATED','6463044ibgDvf','500001:\x20Action\x20not\x20allowed.','onRequest','events','762333cuKGyF','50LBCODY','tax.read.all','TAX_UPDATED','5161866qgLhby','TAX_DELETED','65645WDwHhu','TAX_READ','tax','findMany','244rEDlsw','500003:\x20Action\x20not\x20allowed.','500004:\x20Action\x20not\x20allowed.','tax.updated','ADMIN','10zikMCO','5761376CFgwPg','hasPermission','10549671Pxdkky','delete','TAX_ALL','update','32250hpifDg'];a12_0x374e=function(){return _0x55ee65;};return a12_0x374e();}function a12_0x29b6(_0x56442c,_0x38cf89){_0x56442c=_0x56442c-0x154;const _0x374e71=a12_0x374e();let _0x29b66a=_0x374e71[_0x56442c];return _0x29b66a;}(function(_0x26369d,_0x27c4da){const _0x5a9565=a12_0x29b6,_0x20ce33=_0x26369d();while(!![]){try{const _0x5c5ddb=-parseInt(_0x5a9565(0x16f))/0x1+-parseInt(_0x5a9565(0x157))/0x2*(parseInt(_0x5a9565(0x169))/0x3)+-parseInt(_0x5a9565(0x173))/0x4*(parseInt(_0x5a9565(0x15e))/0x5)+parseInt(_0x5a9565(0x16d))/0x6*(-parseInt(_0x5a9565(0x15f))/0x7)+-parseInt(_0x5a9565(0x158))/0x8+-parseInt(_0x5a9565(0x165))/0x9+parseInt(_0x5a9565(0x16a))/0xa*(parseInt(_0x5a9565(0x15a))/0xb);if(_0x5c5ddb===_0x27c4da)break;else _0x20ce33['push'](_0x20ce33['shift']());}catch(_0x375819){_0x20ce33['push'](_0x20ce33['shift']());}}}(a12_0x374e,0xbb450));export default function bindTaxEvents(_0x18df63,_0x55d752){const _0xdb8dbc=a12_0x29b6;_0x18df63[_0xdb8dbc(0x168)][_0xdb8dbc(0x167)](_0xdb8dbc(0x161),async _0x40bc6e=>{const _0x3bdef2=_0xdb8dbc;if(!_0x18df63[_0x3bdef2(0x160)]()[_0x3bdef2(0x159)](_0x3bdef2(0x156))&&!_0x18df63['getCurrentUser']()[_0x3bdef2(0x159)](_0x3bdef2(0x15c))&&!_0x18df63[_0x3bdef2(0x160)]()[_0x3bdef2(0x159)](_0x3bdef2(0x164)))throw new Error(_0x3bdef2(0x166));const _0x39e26e=await _0x55d752[_0x3bdef2(0x171)]['create']({'data':_0x40bc6e[_0x3bdef2(0x171)]});return _0x39e26e['id'];}),_0x18df63[_0xdb8dbc(0x168)][_0xdb8dbc(0x167)]('tax.read',async({id:_0x5da376})=>{const _0x4b320d=_0xdb8dbc;if(!_0x18df63[_0x4b320d(0x160)]()[_0x4b320d(0x159)](_0x4b320d(0x156))&&!_0x18df63[_0x4b320d(0x160)]()[_0x4b320d(0x159)](_0x4b320d(0x15c))&&!_0x18df63['getCurrentUser']()['hasPermission'](_0x4b320d(0x170)))throw new Error(_0x4b320d(0x163));const _0x5718f5=await _0x55d752[_0x4b320d(0x171)]['findUnique']({'where':{'id':_0x5da376}});return _0x5718f5;}),_0x18df63[_0xdb8dbc(0x168)]['onRequest'](_0xdb8dbc(0x16b),async()=>{const _0x238788=_0xdb8dbc;if(!_0x18df63[_0x238788(0x160)]()[_0x238788(0x159)](_0x238788(0x156))&&!_0x18df63['getCurrentUser']()[_0x238788(0x159)](_0x238788(0x15c))&&!_0x18df63[_0x238788(0x160)]()['hasPermission'](_0x238788(0x170)))throw new Error('500002:\x20Action\x20not\x20allowed.');const _0xc9295d=await _0x55d752['tax'][_0x238788(0x172)]();return _0xc9295d;}),_0x18df63['events'][_0xdb8dbc(0x167)]('tax.read.some',async _0x35038f=>{const _0x47d1da=_0xdb8dbc;if(!_0x18df63[_0x47d1da(0x160)]()[_0x47d1da(0x159)](_0x47d1da(0x156))&&!_0x18df63[_0x47d1da(0x160)]()[_0x47d1da(0x159)](_0x47d1da(0x15c))&&!_0x18df63[_0x47d1da(0x160)]()[_0x47d1da(0x159)](_0x47d1da(0x170)))throw new Error(_0x47d1da(0x163));const _0x582a62=await _0x55d752[_0x47d1da(0x171)][_0x47d1da(0x172)]({'where':_0x35038f});return _0x582a62;}),_0x18df63[_0xdb8dbc(0x168)]['onRequest'](_0xdb8dbc(0x155),async _0x58edd5=>{const _0x58af89=_0xdb8dbc;if(!_0x18df63[_0x58af89(0x160)]()['hasPermission'](_0x58af89(0x156))&&!_0x18df63['getCurrentUser']()[_0x58af89(0x159)](_0x58af89(0x15c))&&!_0x18df63['getCurrentUser']()[_0x58af89(0x159)](_0x58af89(0x16c)))throw new Error(_0x58af89(0x174));const {where:_0x5166b3,..._0x54e7a4}=_0x58edd5;return await _0x55d752[_0x58af89(0x171)][_0x58af89(0x15d)]({'where':_0x5166b3,'data':_0x54e7a4});}),_0x18df63[_0xdb8dbc(0x168)]['on'](_0xdb8dbc(0x162),async({id:_0xa06b6b})=>{const _0x42e223=_0xdb8dbc;if(!_0x18df63[_0x42e223(0x160)]()[_0x42e223(0x159)](_0x42e223(0x156))&&!_0x18df63[_0x42e223(0x160)]()['hasPermission'](_0x42e223(0x15c))&&!_0x18df63[_0x42e223(0x160)]()[_0x42e223(0x159)](_0x42e223(0x16e)))throw new Error(_0x42e223(0x154));await _0x55d752[_0x42e223(0x171)][_0x42e223(0x15b)]({'where':{'id':_0xa06b6b}});});}
1
+ (function(_0x45823c,_0x4e9b1){const _0x5edff2=a23_0x3677,_0x57002b=_0x45823c();while(!![]){try{const _0x4af396=parseInt(_0x5edff2(0x129))/0x1+parseInt(_0x5edff2(0x130))/0x2+-parseInt(_0x5edff2(0x11e))/0x3+-parseInt(_0x5edff2(0x11f))/0x4+parseInt(_0x5edff2(0x124))/0x5+parseInt(_0x5edff2(0x12a))/0x6*(parseInt(_0x5edff2(0x128))/0x7)+parseInt(_0x5edff2(0x12c))/0x8*(-parseInt(_0x5edff2(0x112))/0x9);if(_0x4af396===_0x4e9b1)break;else _0x57002b['push'](_0x57002b['shift']());}catch(_0x10db7c){_0x57002b['push'](_0x57002b['shift']());}}}(a23_0x4ac6,0x73080));const API_BASE='http://localhost:5001/taxes';export default function bindTaxEvents(_0x43cc5e){const _0x20595a=a23_0x3677;_0x43cc5e[_0x20595a(0x126)]['onRequest'](_0x20595a(0x12e),async _0x423bf0=>{const _0x5a37de=_0x20595a;if(!_0x43cc5e[_0x5a37de(0x117)]()[_0x5a37de(0x12f)]('ADMIN')&&!_0x43cc5e[_0x5a37de(0x117)]()['hasPermission']('TAX_ALL')&&!_0x43cc5e[_0x5a37de(0x117)]()[_0x5a37de(0x12f)]('TAX_CREATED'))throw new Error(_0x5a37de(0x113));const _0x598736=await fetch(''+API_BASE,{'method':_0x5a37de(0x132),'headers':{'Content-Type':_0x5a37de(0x115)},'body':JSON['stringify'](_0x423bf0[_0x5a37de(0x114)])});if(!_0x598736['ok'])throw new Error(_0x5a37de(0x12b)+_0x598736[_0x5a37de(0x116)]);const _0x3a9425=await _0x598736[_0x5a37de(0x121)]();return _0x3a9425['id'];}),_0x43cc5e[_0x20595a(0x126)][_0x20595a(0x118)]('tax.read',async({id:_0x345474})=>{const _0x359870=_0x20595a;if(!_0x43cc5e[_0x359870(0x117)]()[_0x359870(0x12f)]('ADMIN')&&!_0x43cc5e[_0x359870(0x117)]()['hasPermission']('TAX_ALL')&&!_0x43cc5e['getCurrentUser']()[_0x359870(0x12f)](_0x359870(0x125)))throw new Error(_0x359870(0x133));const _0x3706f4=await fetch(API_BASE+'/'+_0x345474);if(!_0x3706f4['ok'])throw new Error(_0x359870(0x12b)+_0x3706f4[_0x359870(0x116)]);return await _0x3706f4[_0x359870(0x121)]();}),_0x43cc5e['events'][_0x20595a(0x118)]('tax.read.all',async()=>{const _0x3628e0=_0x20595a;if(!_0x43cc5e[_0x3628e0(0x117)]()[_0x3628e0(0x12f)](_0x3628e0(0x122))&&!_0x43cc5e[_0x3628e0(0x117)]()['hasPermission']('TAX_ALL')&&!_0x43cc5e['getCurrentUser']()[_0x3628e0(0x12f)](_0x3628e0(0x125)))throw new Error(_0x3628e0(0x133));const _0x458939=await fetch(''+API_BASE);if(!_0x458939['ok'])throw new Error(_0x3628e0(0x12b)+_0x458939[_0x3628e0(0x116)]);return await _0x458939[_0x3628e0(0x121)]();}),_0x43cc5e[_0x20595a(0x126)][_0x20595a(0x118)]('tax.read.some',async _0x2cdf49=>{const _0x221af7=_0x20595a;if(!_0x43cc5e[_0x221af7(0x117)]()[_0x221af7(0x12f)]('ADMIN')&&!_0x43cc5e[_0x221af7(0x117)]()['hasPermission'](_0x221af7(0x11d))&&!_0x43cc5e['getCurrentUser']()[_0x221af7(0x12f)](_0x221af7(0x125)))throw new Error(_0x221af7(0x133));const _0x1f374c=await fetch(API_BASE+_0x221af7(0x123),{'method':_0x221af7(0x132),'headers':{'Content-Type':'application/json'},'body':JSON[_0x221af7(0x120)](_0x2cdf49)});if(!_0x1f374c['ok'])throw new Error(_0x221af7(0x12b)+_0x1f374c[_0x221af7(0x116)]);return await _0x1f374c[_0x221af7(0x121)]();}),_0x43cc5e[_0x20595a(0x126)][_0x20595a(0x118)]('tax.updated',async _0x567544=>{const _0x331c0c=_0x20595a;if(!_0x43cc5e[_0x331c0c(0x117)]()[_0x331c0c(0x12f)](_0x331c0c(0x122))&&!_0x43cc5e[_0x331c0c(0x117)]()['hasPermission'](_0x331c0c(0x11d))&&!_0x43cc5e[_0x331c0c(0x117)]()[_0x331c0c(0x12f)](_0x331c0c(0x12d)))throw new Error(_0x331c0c(0x11b));const {where:_0x39cc7b,..._0x591e25}=_0x567544,_0x392990=await fetch(API_BASE+'/'+_0x39cc7b['id'],{'method':_0x331c0c(0x119),'headers':{'Content-Type':_0x331c0c(0x115)},'body':JSON['stringify'](_0x591e25)});if(!_0x392990['ok'])throw new Error(_0x331c0c(0x12b)+_0x392990[_0x331c0c(0x116)]);return await _0x392990[_0x331c0c(0x121)]();}),_0x43cc5e[_0x20595a(0x126)]['on']('tax.deleted',async({id:_0x5154d2})=>{const _0x1ed33d=_0x20595a;if(!_0x43cc5e[_0x1ed33d(0x117)]()[_0x1ed33d(0x12f)](_0x1ed33d(0x122))&&!_0x43cc5e['getCurrentUser']()[_0x1ed33d(0x12f)]('TAX_ALL')&&!_0x43cc5e[_0x1ed33d(0x117)]()['hasPermission'](_0x1ed33d(0x127)))throw new Error(_0x1ed33d(0x131));const _0x50b46e=await fetch(API_BASE+'/'+_0x5154d2,{'method':_0x1ed33d(0x11a)});if(!_0x50b46e['ok']&&_0x50b46e[_0x1ed33d(0x11c)]!==0xcc)throw new Error(_0x1ed33d(0x12b)+_0x50b46e[_0x1ed33d(0x116)]);});}function a23_0x3677(_0x5f1f1e,_0x3fd80b){_0x5f1f1e=_0x5f1f1e-0x112;const _0x4ac624=a23_0x4ac6();let _0x36773d=_0x4ac624[_0x5f1f1e];return _0x36773d;}function a23_0x4ac6(){const _0x2cf0c5=['1511160PgPvEh','500004:\x20Action\x20not\x20allowed.','POST','500002:\x20Action\x20not\x20allowed.','36mJwpmK','500001:\x20Action\x20not\x20allowed.','tax','application/json','statusText','getCurrentUser','onRequest','PUT','DELETE','500003:\x20Action\x20not\x20allowed.','status','TAX_ALL','1473216uNdBWD','1710576hRPIOy','stringify','json','ADMIN','/search','4288210fjUIWy','TAX_READ','events','TAX_DELETED','490FBcAfZ','283656ezSriK','15798VuPmwu','API\x20Error:\x20','1382608rQRdRx','TAX_UPDATED','tax.created','hasPermission'];a23_0x4ac6=function(){return _0x2cf0c5;};return a23_0x4ac6();}
@@ -1,3 +1,2 @@
1
- import { PrismaClient } from "@prisma/client";
2
1
  import { OWLClient } from "../../owl/OWLClient.js";
3
- export default function bindUserEvents(owl: OWLClient, prisma: PrismaClient): void;
2
+ export default function bindUserEvents(owl: OWLClient): void;
@@ -1 +1 @@
1
- (function(_0x565c57,_0x13e10b){const _0x210e3e=a13_0x4c19,_0x126dc7=_0x565c57();while(!![]){try{const _0xcb2d23=-parseInt(_0x210e3e(0x1c2))/0x1+parseInt(_0x210e3e(0x1c0))/0x2+-parseInt(_0x210e3e(0x1c1))/0x3+parseInt(_0x210e3e(0x1c9))/0x4*(-parseInt(_0x210e3e(0x1c4))/0x5)+parseInt(_0x210e3e(0x1d3))/0x6+parseInt(_0x210e3e(0x1bb))/0x7+parseInt(_0x210e3e(0x1c5))/0x8;if(_0xcb2d23===_0x13e10b)break;else _0x126dc7['push'](_0x126dc7['shift']());}catch(_0x4a503b){_0x126dc7['push'](_0x126dc7['shift']());}}}(a13_0x53e7,0xba5dd));export default function bindUserEvents(_0x4e3984,_0x2975b7){const _0x4c66eb=a13_0x4c19;_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1bc),async _0x9c29ff=>{const _0x1fb184=_0x4c66eb,_0x2c4f30=await _0x2975b7['user'][_0x1fb184(0x1ca)]({'where':{'email':_0x9c29ff[_0x1fb184(0x1bd)]}});if(!_0x2c4f30)throw new Error(_0x1fb184(0x1c8));else{if(_0x2c4f30[_0x1fb184(0x1d0)]!==_0x9c29ff['password'])throw new Error(_0x1fb184(0x1ce));}return _0x2c4f30;}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1cd),async({user:_0x595353})=>{const _0x342d31=_0x4c66eb;if(!_0x4e3984[_0x342d31(0x1b1)]()['hasPermission']('ADMIN')&&!_0x4e3984['getCurrentUser']()[_0x342d31(0x1af)]('USER_ALL')&&!_0x4e3984[_0x342d31(0x1b1)]()['hasPermission'](_0x342d31(0x1c3)))throw new Error(_0x342d31(0x1b2));const _0x33fc10=await _0x2975b7[_0x342d31(0x1be)]['create']({'data':{'email':_0x595353[_0x342d31(0x1bd)]??null,'password':_0x595353[_0x342d31(0x1d0)]??null,'authorizations':Array['from'](_0x595353[_0x342d31(0x1cb)]??[])}});return _0x33fc10['id'];}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1ba),async({id:_0x541187})=>{const _0x4882fa=_0x4c66eb;if(!_0x4e3984['getCurrentUser']()['hasPermission'](_0x4882fa(0x1d1))&&!_0x4e3984[_0x4882fa(0x1b1)]()[_0x4882fa(0x1af)](_0x4882fa(0x1b8))&&!_0x4e3984['getCurrentUser']()[_0x4882fa(0x1af)]('USER_READ'))throw new Error(_0x4882fa(0x1b7));const _0x322fc1=await _0x2975b7[_0x4882fa(0x1be)][_0x4882fa(0x1ca)]({'where':{'id':_0x541187}});return _0x322fc1;}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)](_0x4c66eb(0x1c6),async()=>{const _0x4f3a40=_0x4c66eb;if(!_0x4e3984[_0x4f3a40(0x1b1)]()['hasPermission']('ADMIN')&&!_0x4e3984[_0x4f3a40(0x1b1)]()[_0x4f3a40(0x1af)](_0x4f3a40(0x1b8))&&!_0x4e3984[_0x4f3a40(0x1b1)]()['hasPermission'](_0x4f3a40(0x1d2)))throw new Error(_0x4f3a40(0x1b5));const _0x2e053d=await _0x2975b7[_0x4f3a40(0x1be)][_0x4f3a40(0x1b9)]();return _0x2e053d;}),_0x4e3984[_0x4c66eb(0x1b4)][_0x4c66eb(0x1b3)]('user.read.some',async _0x1b8a9c=>{const _0x17bb1c=_0x4c66eb;if(!_0x4e3984['getCurrentUser']()[_0x17bb1c(0x1af)](_0x17bb1c(0x1d1))&&!_0x4e3984['getCurrentUser']()[_0x17bb1c(0x1af)]('USER_ALL')&&!_0x4e3984['getCurrentUser']()['hasPermission'](_0x17bb1c(0x1d2)))throw new Error('100002:\x20Action\x20not\x20allowed.');const _0x3cde31=await _0x2975b7[_0x17bb1c(0x1be)][_0x17bb1c(0x1b9)]({'where':_0x1b8a9c});return _0x3cde31;}),_0x4e3984[_0x4c66eb(0x1b4)]['onRequest']('user.updated',async _0xac5fef=>{const _0x375146=_0x4c66eb;if(!_0x4e3984['getCurrentUser']()[_0x375146(0x1af)]('ADMIN')&&!_0x4e3984[_0x375146(0x1b1)]()['hasPermission'](_0x375146(0x1b8))&&!_0x4e3984['getCurrentUser']()[_0x375146(0x1af)](_0x375146(0x1cc)))throw new Error('100003:\x20Action\x20not\x20allowed.');const {where:_0x44dcc5,..._0x1afa57}=_0xac5fef;return await _0x2975b7[_0x375146(0x1be)][_0x375146(0x1b0)]({'where':_0x44dcc5,'data':_0x1afa57});}),_0x4e3984['events']['on'](_0x4c66eb(0x1b6),async({id:_0x12f43e})=>{const _0x7bd386=_0x4c66eb;if(!_0x4e3984[_0x7bd386(0x1b1)]()[_0x7bd386(0x1af)](_0x7bd386(0x1d1))&&!_0x4e3984[_0x7bd386(0x1b1)]()[_0x7bd386(0x1af)](_0x7bd386(0x1b8))&&!_0x4e3984[_0x7bd386(0x1b1)]()[_0x7bd386(0x1af)](_0x7bd386(0x1c7)))throw new Error(_0x7bd386(0x1bf));await _0x2975b7[_0x7bd386(0x1be)][_0x7bd386(0x1cf)]({'where':{'id':_0x12f43e}});});}function a13_0x4c19(_0x5f472f,_0x603b38){_0x5f472f=_0x5f472f-0x1af;const _0x53e752=a13_0x53e7();let _0x4c193f=_0x53e752[_0x5f472f];return _0x4c193f;}function a13_0x53e7(){const _0x244a5a=['USER_ALL','findMany','user.read','4014997RzOmRM','user.login','email','user','100004:\x20Action\x20not\x20allowed.','1873270NfgTqI','2161827EZocnz','612607HjPGdW','USER_CREATED','286615mbwjEl','13144600HLeDHV','user.read.all','USER_DELETED','User\x20not\x20found.','88TaNEPt','findUnique','authorizations','USER_UPDATED','user.created','Invalid\x20password.','delete','password','ADMIN','USER_READ','1226388KRJApu','hasPermission','update','getCurrentUser','100001:\x20Action\x20not\x20allowed.','onRequest','events','100002:\x20Action\x20not\x20allowed.','user.deleted','100002:Action\x20not\x20allowed.'];a13_0x53e7=function(){return _0x244a5a;};return a13_0x53e7();}
1
+ function a24_0x28ec(){const _0x16f45d=['21BwYbmV','POST','PUT','API\x20Error:\x20','json','user.read.some','2301756VKmLsk','259767PpfNkj','735898RjbTMS','email','password','USER_DELETED','from','user.deleted','onRequest','application/json','stringify','user.read.all','getCurrentUser','1763496qqbQNz','5uRvtTg','user.read','user.login','http://localhost:5001/users','USER_CREATED','100002:\x20Action\x20not\x20allowed.','USER_ALL','1227896MWEJsx','22474467rJjljO','hasPermission','/search','ADMIN','events','100001:\x20Action\x20not\x20allowed.','status','user.updated','user.created','statusText','1942552gEDDYM','100003:\x20Action\x20not\x20allowed.','USER_READ'];a24_0x28ec=function(){return _0x16f45d;};return a24_0x28ec();}const a24_0x34f393=a24_0x5244;function a24_0x5244(_0x53c2d0,_0xe28f27){_0x53c2d0=_0x53c2d0-0xed;const _0x28ec7d=a24_0x28ec();let _0x52449d=_0x28ec7d[_0x53c2d0];return _0x52449d;}(function(_0x26b7e6,_0x20eb0f){const _0x240bc8=a24_0x5244,_0xd1cb0c=_0x26b7e6();while(!![]){try{const _0x1fef69=-parseInt(_0x240bc8(0xfe))/0x1+parseInt(_0x240bc8(0xff))/0x2+-parseInt(_0x240bc8(0xfd))/0x3+-parseInt(_0x240bc8(0x112))/0x4*(parseInt(_0x240bc8(0x10b))/0x5)+-parseInt(_0x240bc8(0x10a))/0x6+-parseInt(_0x240bc8(0xf7))/0x7*(parseInt(_0x240bc8(0xf4))/0x8)+parseInt(_0x240bc8(0x113))/0x9;if(_0x1fef69===_0x20eb0f)break;else _0xd1cb0c['push'](_0xd1cb0c['shift']());}catch(_0x1ff219){_0xd1cb0c['push'](_0xd1cb0c['shift']());}}}(a24_0x28ec,0x7c34a));const API_BASE=a24_0x34f393(0x10e);export default function bindUserEvents(_0x21124f){const _0x58970e=a24_0x34f393;_0x21124f[_0x58970e(0xee)][_0x58970e(0x105)](_0x58970e(0x10d),async _0x295560=>{const _0x43d6c9=_0x58970e,_0x4c05c2=await fetch(API_BASE+'/login',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x43d6c9(0x107)](_0x295560)});if(!_0x4c05c2['ok'])throw new Error(_0x43d6c9(0xfa)+_0x4c05c2[_0x43d6c9(0xf3)]);return await _0x4c05c2[_0x43d6c9(0xfb)]();}),_0x21124f[_0x58970e(0xee)][_0x58970e(0x105)](_0x58970e(0xf2),async({user:_0x2cf084})=>{const _0x41adcd=_0x58970e;if(!_0x21124f[_0x41adcd(0x109)]()[_0x41adcd(0x114)]('ADMIN')&&!_0x21124f[_0x41adcd(0x109)]()['hasPermission'](_0x41adcd(0x111))&&!_0x21124f[_0x41adcd(0x109)]()[_0x41adcd(0x114)](_0x41adcd(0x10f)))throw new Error(_0x41adcd(0xef));const _0x346223=await fetch(''+API_BASE,{'method':_0x41adcd(0xf8),'headers':{'Content-Type':_0x41adcd(0x106)},'body':JSON[_0x41adcd(0x107)]({'email':_0x2cf084[_0x41adcd(0x100)]??null,'password':_0x2cf084[_0x41adcd(0x101)]??null,'authorizations':Array[_0x41adcd(0x103)](_0x2cf084['authorizations']??[])})});if(!_0x346223['ok'])throw new Error(_0x41adcd(0xfa)+_0x346223[_0x41adcd(0xf3)]);const _0x1150ef=await _0x346223['json']();return _0x1150ef['id'];}),_0x21124f[_0x58970e(0xee)][_0x58970e(0x105)](_0x58970e(0x10c),async({id:_0x53bf96})=>{const _0x2b6c45=_0x58970e;if(!_0x21124f['getCurrentUser']()[_0x2b6c45(0x114)]('ADMIN')&&!_0x21124f['getCurrentUser']()['hasPermission'](_0x2b6c45(0x111))&&!_0x21124f[_0x2b6c45(0x109)]()[_0x2b6c45(0x114)]('USER_READ'))throw new Error(_0x2b6c45(0x110));const _0x4f5877=await fetch(API_BASE+'/'+_0x53bf96);if(!_0x4f5877['ok'])throw new Error(_0x2b6c45(0xfa)+_0x4f5877['statusText']);return await _0x4f5877['json']();}),_0x21124f[_0x58970e(0xee)][_0x58970e(0x105)](_0x58970e(0x108),async()=>{const _0x1b309e=_0x58970e;if(!_0x21124f[_0x1b309e(0x109)]()[_0x1b309e(0x114)](_0x1b309e(0xed))&&!_0x21124f[_0x1b309e(0x109)]()[_0x1b309e(0x114)](_0x1b309e(0x111))&&!_0x21124f[_0x1b309e(0x109)]()[_0x1b309e(0x114)](_0x1b309e(0xf6)))throw new Error(_0x1b309e(0x110));const _0x20f785=await fetch(''+API_BASE);if(!_0x20f785['ok'])throw new Error(_0x1b309e(0xfa)+_0x20f785[_0x1b309e(0xf3)]);return await _0x20f785[_0x1b309e(0xfb)]();}),_0x21124f[_0x58970e(0xee)]['onRequest'](_0x58970e(0xfc),async _0x5ef7c6=>{const _0x775114=_0x58970e;if(!_0x21124f[_0x775114(0x109)]()[_0x775114(0x114)](_0x775114(0xed))&&!_0x21124f['getCurrentUser']()[_0x775114(0x114)](_0x775114(0x111))&&!_0x21124f['getCurrentUser']()[_0x775114(0x114)](_0x775114(0xf6)))throw new Error(_0x775114(0x110));const _0x3c8327=await fetch(API_BASE+_0x775114(0x115),{'method':_0x775114(0xf8),'headers':{'Content-Type':_0x775114(0x106)},'body':JSON[_0x775114(0x107)](_0x5ef7c6)});if(!_0x3c8327['ok'])throw new Error(_0x775114(0xfa)+_0x3c8327[_0x775114(0xf3)]);return await _0x3c8327['json']();}),_0x21124f[_0x58970e(0xee)][_0x58970e(0x105)](_0x58970e(0xf1),async _0x5bc33c=>{const _0xe9df39=_0x58970e;if(!_0x21124f['getCurrentUser']()[_0xe9df39(0x114)](_0xe9df39(0xed))&&!_0x21124f[_0xe9df39(0x109)]()['hasPermission'](_0xe9df39(0x111))&&!_0x21124f[_0xe9df39(0x109)]()[_0xe9df39(0x114)]('USER_UPDATED'))throw new Error(_0xe9df39(0xf5));const {where:_0xf2735,..._0x1a841c}=_0x5bc33c,_0x36fc44=await fetch(API_BASE+'/'+_0xf2735['id'],{'method':_0xe9df39(0xf9),'headers':{'Content-Type':_0xe9df39(0x106)},'body':JSON[_0xe9df39(0x107)](_0x1a841c)});if(!_0x36fc44['ok'])throw new Error(_0xe9df39(0xfa)+_0x36fc44['statusText']);return await _0x36fc44[_0xe9df39(0xfb)]();}),_0x21124f['events']['on'](_0x58970e(0x104),async({id:_0x1e1fb9})=>{const _0x3994a7=_0x58970e;if(!_0x21124f['getCurrentUser']()[_0x3994a7(0x114)](_0x3994a7(0xed))&&!_0x21124f[_0x3994a7(0x109)]()[_0x3994a7(0x114)]('USER_ALL')&&!_0x21124f['getCurrentUser']()['hasPermission'](_0x3994a7(0x102)))throw new Error('100004:\x20Action\x20not\x20allowed.');const _0x1be8cf=await fetch(API_BASE+'/'+_0x1e1fb9,{'method':'DELETE'});if(!_0x1be8cf['ok']&&_0x1be8cf[_0x3994a7(0xf0)]!==0xcc)throw new Error('API\x20Error:\x20'+_0x1be8cf['statusText']);});}
@@ -1 +1 @@
1
- function a17_0x1d44(){var _0x175598=['20NCgtLc','97735ZaqtBE','312780EXbCqy','assign','152VMpMmw','312027CDbcUw','4559667xrqNej','369200NmJvRa','3018BQxJzW','170NvRJcu','5805cXrdkB','1930OrCxbu'];a17_0x1d44=function(){return _0x175598;};return a17_0x1d44();}(function(_0x8c0859,_0x41e3bc){var _0x9691b6=a17_0x4a5c,_0x2fbd3a=_0x8c0859();while(!![]){try{var _0xde5c82=-parseInt(_0x9691b6(0x104))/0x1+parseInt(_0x9691b6(0xfd))/0x2+-parseInt(_0x9691b6(0xfb))/0x3*(parseInt(_0x9691b6(0x102))/0x4)+-parseInt(_0x9691b6(0xff))/0x5*(-parseInt(_0x9691b6(0xfe))/0x6)+-parseInt(_0x9691b6(0xfc))/0x7+parseInt(_0x9691b6(0xfa))/0x8*(parseInt(_0x9691b6(0x100))/0x9)+parseInt(_0x9691b6(0x101))/0xa*(parseInt(_0x9691b6(0x103))/0xb);if(_0xde5c82===_0x41e3bc)break;else _0x2fbd3a['push'](_0x2fbd3a['shift']());}catch(_0x47bfed){_0x2fbd3a['push'](_0x2fbd3a['shift']());}}}(a17_0x1d44,0x6c88c));import{Entity}from'../core/Entity.js';function a17_0x4a5c(_0x33b55c,_0x252ea9){_0x33b55c=_0x33b55c-0xf9;var _0x1d44b4=a17_0x1d44();var _0x4a5c78=_0x1d44b4[_0x33b55c];return _0x4a5c78;}export class Client extends Entity{constructor(_0x247f3e,_0x455ae4){var _0x293d73=a17_0x4a5c;super(_0x247f3e),Object[_0x293d73(0xf9)](this,_0x455ae4);}}
1
+ (function(_0x44755f,_0x4a15ac){var _0x305e86=a28_0x4533,_0x5c6fdb=_0x44755f();while(!![]){try{var _0x42821c=-parseInt(_0x305e86(0x11e))/0x1+-parseInt(_0x305e86(0x11b))/0x2*(parseInt(_0x305e86(0x11a))/0x3)+parseInt(_0x305e86(0x11f))/0x4+parseInt(_0x305e86(0x117))/0x5*(parseInt(_0x305e86(0x116))/0x6)+parseInt(_0x305e86(0x120))/0x7*(parseInt(_0x305e86(0x11d))/0x8)+parseInt(_0x305e86(0x11c))/0x9*(-parseInt(_0x305e86(0x119))/0xa)+-parseInt(_0x305e86(0x115))/0xb*(-parseInt(_0x305e86(0x118))/0xc);if(_0x42821c===_0x4a15ac)break;else _0x5c6fdb['push'](_0x5c6fdb['shift']());}catch(_0x4849ec){_0x5c6fdb['push'](_0x5c6fdb['shift']());}}}(a28_0x5ba2,0x830e4));function a28_0x4533(_0x53e5d6,_0x5845dd){_0x53e5d6=_0x53e5d6-0x115;var _0x5ba2c1=a28_0x5ba2();var _0x45332e=_0x5ba2c1[_0x53e5d6];return _0x45332e;}import{Entity}from'../core/Entity.js';export class Client extends Entity{constructor(_0x3030c2,_0x1658e2){super(_0x3030c2),Object['assign'](this,_0x1658e2);}}function a28_0x5ba2(){var _0x5099a4=['12wKFunt','1625810fKBhJZ','3gxeUYu','1782758NjxzSL','9aCcelr','8zzqpVl','169765uWqRnF','921584tVzveu','1027124WDasAp','12834811tUSsoF','64980jCgxBJ','100hbKFZe'];a28_0x5ba2=function(){return _0x5099a4;};return a28_0x5ba2();}
@@ -1 +1 @@
1
- (function(_0x4f8654,_0x515e47){var _0x1ca542=a18_0x40b3,_0x23a5f9=_0x4f8654();while(!![]){try{var _0x5f2622=-parseInt(_0x1ca542(0x181))/0x1*(parseInt(_0x1ca542(0x185))/0x2)+parseInt(_0x1ca542(0x188))/0x3+parseInt(_0x1ca542(0x18a))/0x4*(parseInt(_0x1ca542(0x189))/0x5)+-parseInt(_0x1ca542(0x183))/0x6+parseInt(_0x1ca542(0x182))/0x7*(parseInt(_0x1ca542(0x187))/0x8)+parseInt(_0x1ca542(0x17f))/0x9*(parseInt(_0x1ca542(0x180))/0xa)+parseInt(_0x1ca542(0x17e))/0xb*(-parseInt(_0x1ca542(0x186))/0xc);if(_0x5f2622===_0x515e47)break;else _0x23a5f9['push'](_0x23a5f9['shift']());}catch(_0x4afeb5){_0x23a5f9['push'](_0x23a5f9['shift']());}}}(a18_0x1385,0x4f194));function a18_0x40b3(_0x111f4a,_0x3eba06){_0x111f4a=_0x111f4a-0x17e;var _0x1385d8=a18_0x1385();var _0x40b3fe=_0x1385d8[_0x111f4a];return _0x40b3fe;}import{Entity}from'../core/Entity.js';export class Item extends Entity{constructor(_0xbe322d,_0x1b57fa){var _0x12ad50=a18_0x40b3;super(_0xbe322d),Object[_0x12ad50(0x184)](this,_0x1b57fa);}}function a18_0x1385(){var _0x16bd13=['32208BCVEpT','9cREfSU','4598540lhNqrW','29CfciPr','21XvlBbd','3440856baDcJH','assign','534FTZpsq','2532cLeNdR','1301560BNvzPU','827547qLTcqU','365eaLKIP','16396xAQpZe'];a18_0x1385=function(){return _0x16bd13;};return a18_0x1385();}
1
+ function a29_0x38e7(_0x51c60e,_0x5e1e58){_0x51c60e=_0x51c60e-0x1ed;var _0x754986=a29_0x7549();var _0x38e74b=_0x754986[_0x51c60e];return _0x38e74b;}(function(_0x172f79,_0x1d1924){var _0x28439c=a29_0x38e7,_0x246663=_0x172f79();while(!![]){try{var _0xe854c0=parseInt(_0x28439c(0x1f5))/0x1*(-parseInt(_0x28439c(0x1f9))/0x2)+-parseInt(_0x28439c(0x1f4))/0x3*(parseInt(_0x28439c(0x1fb))/0x4)+-parseInt(_0x28439c(0x1f8))/0x5*(-parseInt(_0x28439c(0x1f7))/0x6)+parseInt(_0x28439c(0x1f2))/0x7*(parseInt(_0x28439c(0x1ed))/0x8)+parseInt(_0x28439c(0x1ef))/0x9*(-parseInt(_0x28439c(0x1f6))/0xa)+-parseInt(_0x28439c(0x1fa))/0xb*(-parseInt(_0x28439c(0x1f1))/0xc)+-parseInt(_0x28439c(0x1f3))/0xd*(-parseInt(_0x28439c(0x1ee))/0xe);if(_0xe854c0===_0x1d1924)break;else _0x246663['push'](_0x246663['shift']());}catch(_0x13bc13){_0x246663['push'](_0x246663['shift']());}}}(a29_0x7549,0x1a3f7));import{Entity}from'../core/Entity.js';function a29_0x7549(){var _0x3bfa6c=['104LKZuUI','2282SHaHoO','1557Qxixqt','assign','917952uDzoiM','32641eUlKkS','11947nVUITK','51zirLbf','1ibhkHp','11990CfPloL','6sxfYzp','598115elBSEB','112474MuOFpB','11mqoZTi','8320PkpORB'];a29_0x7549=function(){return _0x3bfa6c;};return a29_0x7549();}export class Item extends Entity{constructor(_0x1ea217,_0x3eeb1c){var _0x544955=a29_0x38e7;super(_0x1ea217),Object[_0x544955(0x1f0)](this,_0x3eeb1c);}}
@@ -1 +1 @@
1
- (function(_0x4a48c5,_0x508d2b){var _0x52b825=a19_0x40de,_0x459d56=_0x4a48c5();while(!![]){try{var _0x7dc2bd=parseInt(_0x52b825(0x1ea))/0x1*(-parseInt(_0x52b825(0x1e1))/0x2)+-parseInt(_0x52b825(0x1eb))/0x3*(parseInt(_0x52b825(0x1e7))/0x4)+parseInt(_0x52b825(0x1e9))/0x5*(-parseInt(_0x52b825(0x1e4))/0x6)+-parseInt(_0x52b825(0x1e0))/0x7+-parseInt(_0x52b825(0x1e2))/0x8*(-parseInt(_0x52b825(0x1e5))/0x9)+parseInt(_0x52b825(0x1e8))/0xa*(parseInt(_0x52b825(0x1e6))/0xb)+parseInt(_0x52b825(0x1e3))/0xc;if(_0x7dc2bd===_0x508d2b)break;else _0x459d56['push'](_0x459d56['shift']());}catch(_0x2adc96){_0x459d56['push'](_0x459d56['shift']());}}}(a19_0x3c54,0xbcece));import{Entity}from'../core/Entity.js';function a19_0x40de(_0x5e52dc,_0x493340){_0x5e52dc=_0x5e52dc-0x1e0;var _0x3c5421=a19_0x3c54();var _0x40de50=_0x3c5421[_0x5e52dc];return _0x40de50;}export class Order extends Entity{constructor(_0x17ddbe,_0x496810){super(_0x17ddbe),Object['assign'](this,_0x496810);}}function a19_0x3c54(){var _0x347982=['156hLiIfT','2823453PqRuOr','1626834UEjZus','4QPRIVQ','30IPwuUl','177405CrhTFA','789CNlYyU','1025067fGQIVZ','47810pzrLjb','3238GsuVyd','16DvewkG','27013656yHbTDh'];a19_0x3c54=function(){return _0x347982;};return a19_0x3c54();}
1
+ function a30_0x2e83(){var _0x10c2a8=['2108154oiNiEi','280315vxjezN','5542730taOIxN','assign','3XBctGq','482841EoptnN','747642axTEkm','2287768cvpfLc','7dVmkKN','3150964uezeBn'];a30_0x2e83=function(){return _0x10c2a8;};return a30_0x2e83();}(function(_0x460e61,_0x195028){var _0xca05bf=a30_0x2046,_0xc55361=_0x460e61();while(!![]){try{var _0x902151=parseInt(_0xca05bf(0x159))/0x1+parseInt(_0xca05bf(0x158))/0x2*(parseInt(_0xca05bf(0x15c))/0x3)+parseInt(_0xca05bf(0x157))/0x4+-parseInt(_0xca05bf(0x15a))/0x5+parseInt(_0xca05bf(0x154))/0x6*(parseInt(_0xca05bf(0x156))/0x7)+-parseInt(_0xca05bf(0x155))/0x8+-parseInt(_0xca05bf(0x15d))/0x9;if(_0x902151===_0x195028)break;else _0xc55361['push'](_0xc55361['shift']());}catch(_0x59d126){_0xc55361['push'](_0xc55361['shift']());}}}(a30_0x2e83,0xc2f6e));import{Entity}from'../core/Entity.js';function a30_0x2046(_0x13baa3,_0x1cc0ce){_0x13baa3=_0x13baa3-0x154;var _0x2e83b2=a30_0x2e83();var _0x20465e=_0x2e83b2[_0x13baa3];return _0x20465e;}export class Order extends Entity{constructor(_0x7b6e94,_0x22d910){var _0x27e1f8=a30_0x2046;super(_0x7b6e94),Object[_0x27e1f8(0x15b)](this,_0x22d910);}}
@@ -1 +1 @@
1
- function a20_0xb823(){var _0x303c24=['24diWufV','66WmmgDY','2115099tOvPSs','20YyhBLC','6559155nLaBFR','131116fnQbAB','14392150IUcwpi','467653vmqlMA','2810592satIdJ','82632LnXQVn'];a20_0xb823=function(){return _0x303c24;};return a20_0xb823();}(function(_0x46710f,_0x3b911c){var _0x132e1d=a20_0xc14f,_0x5891d1=_0x46710f();while(!![]){try{var _0x2a37a5=parseInt(_0x132e1d(0xa1))/0x1+-parseInt(_0x132e1d(0xa5))/0x2*(parseInt(_0x132e1d(0xa3))/0x3)+-parseInt(_0x132e1d(0xa9))/0x4*(-parseInt(_0x132e1d(0xa7))/0x5)+-parseInt(_0x132e1d(0xa2))/0x6+parseInt(_0x132e1d(0xa6))/0x7*(-parseInt(_0x132e1d(0xa4))/0x8)+parseInt(_0x132e1d(0xa8))/0x9+parseInt(_0x132e1d(0xa0))/0xa;if(_0x2a37a5===_0x3b911c)break;else _0x5891d1['push'](_0x5891d1['shift']());}catch(_0x2d6890){_0x5891d1['push'](_0x5891d1['shift']());}}}(a20_0xb823,0x75e6c));import{Entity}from'../core/Entity.js';function a20_0xc14f(_0x5cb35d,_0x24c51f){_0x5cb35d=_0x5cb35d-0xa0;var _0xb82371=a20_0xb823();var _0xc14fc3=_0xb82371[_0x5cb35d];return _0xc14fc3;}export class Preparation extends Entity{constructor(_0x139398,_0x2cd34c){super(_0x139398),Object['assign'](this,_0x2cd34c);}}
1
+ (function(_0x57d352,_0x3afddb){var _0xec84f0=a31_0x20b8,_0x2e44a3=_0x57d352();while(!![]){try{var _0x62e49f=-parseInt(_0xec84f0(0x1d1))/0x1*(-parseInt(_0xec84f0(0x1d2))/0x2)+parseInt(_0xec84f0(0x1ca))/0x3+-parseInt(_0xec84f0(0x1ce))/0x4+parseInt(_0xec84f0(0x1cb))/0x5+-parseInt(_0xec84f0(0x1cd))/0x6*(parseInt(_0xec84f0(0x1d3))/0x7)+parseInt(_0xec84f0(0x1c8))/0x8*(parseInt(_0xec84f0(0x1cc))/0x9)+-parseInt(_0xec84f0(0x1c9))/0xa*(parseInt(_0xec84f0(0x1cf))/0xb);if(_0x62e49f===_0x3afddb)break;else _0x2e44a3['push'](_0x2e44a3['shift']());}catch(_0x5b3cc5){_0x2e44a3['push'](_0x2e44a3['shift']());}}}(a31_0x52ce,0x557d6));import{Entity}from'../core/Entity.js';function a31_0x20b8(_0x25ec33,_0x2e6589){_0x25ec33=_0x25ec33-0x1c8;var _0x52cee3=a31_0x52ce();var _0x20b8a6=_0x52cee3[_0x25ec33];return _0x20b8a6;}export class Preparation extends Entity{constructor(_0x3d3268,_0x5a0a18){var _0xead1cd=a31_0x20b8;super(_0x3d3268),Object[_0xead1cd(0x1d0)](this,_0x5a0a18);}}function a31_0x52ce(){var _0x4a2794=['2ZfgxCg','215411xzrtjY','24qqhzXX','10iEymOG','443190zpGGHK','2780450BRDDeS','1474353oBsAtO','12YZhFBm','2783708SChZtr','2625953fhsPES','assign','151091hCHgCZ'];a31_0x52ce=function(){return _0x4a2794;};return a31_0x52ce();}
@@ -1 +1 @@
1
- function a21_0x13d8(){var _0x51adae=['3667008IfgtpM','3364557XXavNr','738840jROPPo','705030fOTAEG','821218NcSciO','assign','10hJvDTT','440641FPxdTI','1343166qJtlWj'];a21_0x13d8=function(){return _0x51adae;};return a21_0x13d8();}function a21_0x3d8f(_0x94f5de,_0x5a28de){_0x94f5de=_0x94f5de-0x10b;var _0x13d805=a21_0x13d8();var _0x3d8f91=_0x13d805[_0x94f5de];return _0x3d8f91;}(function(_0xf818cc,_0xe8ff93){var _0x224e09=a21_0x3d8f,_0x119a60=_0xf818cc();while(!![]){try{var _0x4dfd48=-parseInt(_0x224e09(0x113))/0x1+parseInt(_0x224e09(0x110))/0x2+-parseInt(_0x224e09(0x10f))/0x3+-parseInt(_0x224e09(0x10e))/0x4*(-parseInt(_0x224e09(0x112))/0x5)+parseInt(_0x224e09(0x10b))/0x6+-parseInt(_0x224e09(0x10d))/0x7+parseInt(_0x224e09(0x10c))/0x8;if(_0x4dfd48===_0xe8ff93)break;else _0x119a60['push'](_0x119a60['shift']());}catch(_0x5c21c5){_0x119a60['push'](_0x119a60['shift']());}}}(a21_0x13d8,0x4ab2c));import{Entity}from'../core/Entity.js';export class Purchase extends Entity{constructor(_0x792c6b,_0x4e9cf2){var _0x3c8b3c=a21_0x3d8f;super(_0x792c6b),Object[_0x3c8b3c(0x111)](this,_0x4e9cf2);}}
1
+ (function(_0x58721d,_0x928942){var _0x580d63=a32_0x1d1a,_0x17a91c=_0x58721d();while(!![]){try{var _0x24b689=-parseInt(_0x580d63(0x1ab))/0x1+parseInt(_0x580d63(0x1aa))/0x2+-parseInt(_0x580d63(0x1a9))/0x3+-parseInt(_0x580d63(0x1a8))/0x4+-parseInt(_0x580d63(0x1a7))/0x5*(parseInt(_0x580d63(0x1af))/0x6)+-parseInt(_0x580d63(0x1ae))/0x7+-parseInt(_0x580d63(0x1ad))/0x8*(-parseInt(_0x580d63(0x1ac))/0x9);if(_0x24b689===_0x928942)break;else _0x17a91c['push'](_0x17a91c['shift']());}catch(_0x4b03b6){_0x17a91c['push'](_0x17a91c['shift']());}}}(a32_0x5128,0x473c2));import{Entity}from'../core/Entity.js';export class Purchase extends Entity{constructor(_0x2b214b,_0x4d9535){super(_0x2b214b),Object['assign'](this,_0x4d9535);}}function a32_0x1d1a(_0x3c918e,_0x415924){_0x3c918e=_0x3c918e-0x1a7;var _0x51286c=a32_0x5128();var _0x1d1aa5=_0x51286c[_0x3c918e];return _0x1d1aa5;}function a32_0x5128(){var _0x34327d=['32fNwbay','1944712xRMwQw','558NYfogH','14115BZiwWv','1150832rXWKPJ','558324blCCnq','312990SehEPl','197494CTRxAE','3030633hFdlmT'];a32_0x5128=function(){return _0x34327d;};return a32_0x5128();}
@@ -1 +1 @@
1
- (function(_0x29245a,_0x11897e){var _0xbe2c03=a22_0x88d3,_0x3437f5=_0x29245a();while(!![]){try{var _0x30bb41=-parseInt(_0xbe2c03(0x13d))/0x1*(-parseInt(_0xbe2c03(0x13b))/0x2)+-parseInt(_0xbe2c03(0x13a))/0x3+parseInt(_0xbe2c03(0x13c))/0x4*(-parseInt(_0xbe2c03(0x136))/0x5)+parseInt(_0xbe2c03(0x139))/0x6+-parseInt(_0xbe2c03(0x135))/0x7+-parseInt(_0xbe2c03(0x134))/0x8+parseInt(_0xbe2c03(0x138))/0x9;if(_0x30bb41===_0x11897e)break;else _0x3437f5['push'](_0x3437f5['shift']());}catch(_0x3b51af){_0x3437f5['push'](_0x3437f5['shift']());}}}(a22_0x2a82,0xab628));import{Entity}from'../core/Entity.js';function a22_0x88d3(_0x42e4a0,_0x17056f){_0x42e4a0=_0x42e4a0-0x134;var _0x2a8278=a22_0x2a82();var _0x88d3ac=_0x2a8278[_0x42e4a0];return _0x88d3ac;}export class Reception extends Entity{constructor(_0xa5a92,_0x4b3a1d){var _0x95a03a=a22_0x88d3;super(_0xa5a92),Object[_0x95a03a(0x137)](this,_0x4b3a1d);}}function a22_0x2a82(){var _0x4ddfa8=['5850663wVsWly','16255BuNzZb','assign','30942387cKUSNq','1289808UWKTNH','2343330UmAnyp','608TbZFXB','1288oSICyA','2377GvvCSK','8079088bbmfbF'];a22_0x2a82=function(){return _0x4ddfa8;};return a22_0x2a82();}
1
+ (function(_0x60fa52,_0x308a62){var _0x33b147=a33_0x4b3d,_0x548d0b=_0x60fa52();while(!![]){try{var _0x64e127=parseInt(_0x33b147(0x99))/0x1+parseInt(_0x33b147(0x96))/0x2+-parseInt(_0x33b147(0x98))/0x3+parseInt(_0x33b147(0x9c))/0x4*(-parseInt(_0x33b147(0x95))/0x5)+-parseInt(_0x33b147(0x9b))/0x6*(parseInt(_0x33b147(0x9a))/0x7)+-parseInt(_0x33b147(0x97))/0x8+parseInt(_0x33b147(0x94))/0x9;if(_0x64e127===_0x308a62)break;else _0x548d0b['push'](_0x548d0b['shift']());}catch(_0xb15b0e){_0x548d0b['push'](_0x548d0b['shift']());}}}(a33_0x3a58,0x6354d));function a33_0x3a58(){var _0x82e65d=['7TIjcRu','4619094tZvpcc','4osKvqi','12783969qIlEVx','3346955hPMshf','1247080PxSVKV','764104aUlAfj','2162388NlOPhD','618429cmqfqs'];a33_0x3a58=function(){return _0x82e65d;};return a33_0x3a58();}import{Entity}from'../core/Entity.js';function a33_0x4b3d(_0xf5b2f8,_0x327612){_0xf5b2f8=_0xf5b2f8-0x94;var _0x3a5883=a33_0x3a58();var _0x4b3d00=_0x3a5883[_0xf5b2f8];return _0x4b3d00;}export class Reception extends Entity{constructor(_0x5e2c4c,_0x28e94e){super(_0x5e2c4c),Object['assign'](this,_0x28e94e);}}
@@ -1 +1 @@
1
- function a23_0xc9f8(_0x5849e6,_0x6e4d52){_0x5849e6=_0x5849e6-0x18a;var _0x4733d2=a23_0x4733();var _0xc9f821=_0x4733d2[_0x5849e6];return _0xc9f821;}(function(_0x18e1f8,_0x44f020){var _0x104b20=a23_0xc9f8,_0x35549a=_0x18e1f8();while(!![]){try{var _0x3eaf7a=parseInt(_0x104b20(0x191))/0x1+parseInt(_0x104b20(0x18c))/0x2*(-parseInt(_0x104b20(0x18a))/0x3)+-parseInt(_0x104b20(0x190))/0x4*(parseInt(_0x104b20(0x18f))/0x5)+parseInt(_0x104b20(0x192))/0x6*(parseInt(_0x104b20(0x18b))/0x7)+-parseInt(_0x104b20(0x18e))/0x8+parseInt(_0x104b20(0x18d))/0x9*(parseInt(_0x104b20(0x194))/0xa)+-parseInt(_0x104b20(0x193))/0xb;if(_0x3eaf7a===_0x44f020)break;else _0x35549a['push'](_0x35549a['shift']());}catch(_0x4bb197){_0x35549a['push'](_0x35549a['shift']());}}}(a23_0x4733,0xb09ad));import{Entity}from'../core/Entity.js';export class Stock extends Entity{constructor(_0x3f15da,_0x18cdbf){super(_0x3f15da),Object['assign'](this,_0x18cdbf);}}function a23_0x4733(){var _0x44cd87=['2216373oHxecM','1069803cXZhaa','2SOjDho','1054881zgyUTt','3037984xDZkrU','179425sLRjNA','4dVRreS','1132271GRnMVp','6rGpIEb','6373323iqeOjQ','100wZEoCb'];a23_0x4733=function(){return _0x44cd87;};return a23_0x4733();}
1
+ (function(_0x6efa2,_0x52475d){var _0x60f518=a34_0x2a80,_0x5ad2a4=_0x6efa2();while(!![]){try{var _0x5e708a=parseInt(_0x60f518(0xd8))/0x1+parseInt(_0x60f518(0xdf))/0x2*(parseInt(_0x60f518(0xdb))/0x3)+parseInt(_0x60f518(0xdd))/0x4*(parseInt(_0x60f518(0xd4))/0x5)+parseInt(_0x60f518(0xd5))/0x6+-parseInt(_0x60f518(0xd7))/0x7*(parseInt(_0x60f518(0xda))/0x8)+-parseInt(_0x60f518(0xd9))/0x9*(-parseInt(_0x60f518(0xd6))/0xa)+-parseInt(_0x60f518(0xdc))/0xb;if(_0x5e708a===_0x52475d)break;else _0x5ad2a4['push'](_0x5ad2a4['shift']());}catch(_0xaf0b7b){_0x5ad2a4['push'](_0x5ad2a4['shift']());}}}(a34_0x4d77,0xc1c8c));function a34_0x2a80(_0x3fa124,_0x4bbc79){_0x3fa124=_0x3fa124-0xd4;var _0x4d77a4=a34_0x4d77();var _0x2a80a0=_0x4d77a4[_0x3fa124];return _0x2a80a0;}import{Entity}from'../core/Entity.js';function a34_0x4d77(){var _0x34171e=['2184295KGzoxC','5156568nLYpkP','10AUMRDe','3059ROXiRK','710552OQlxyd','867807iVDwxy','21848THyTQC','18HtCYdq','5087401VyKIgQ','4rLXtRv','assign','115472FQpWpf'];a34_0x4d77=function(){return _0x34171e;};return a34_0x4d77();}export class Stock extends Entity{constructor(_0x7d0011,_0x501fcc){var _0x1e9773=a34_0x2a80;super(_0x7d0011),Object[_0x1e9773(0xde)](this,_0x501fcc);}}
@@ -1 +1 @@
1
- function a24_0x280d(_0x2f1ef5,_0x448e34){_0x2f1ef5=_0x2f1ef5-0x6e;var _0x334964=a24_0x3349();var _0x280d1f=_0x334964[_0x2f1ef5];return _0x280d1f;}(function(_0x1c73f5,_0x4136de){var _0x3a5989=a24_0x280d,_0x575f46=_0x1c73f5();while(!![]){try{var _0x1a9c96=-parseInt(_0x3a5989(0x6f))/0x1*(-parseInt(_0x3a5989(0x6e))/0x2)+parseInt(_0x3a5989(0x74))/0x3*(-parseInt(_0x3a5989(0x77))/0x4)+parseInt(_0x3a5989(0x71))/0x5+parseInt(_0x3a5989(0x70))/0x6+parseInt(_0x3a5989(0x75))/0x7+-parseInt(_0x3a5989(0x72))/0x8*(parseInt(_0x3a5989(0x76))/0x9)+parseInt(_0x3a5989(0x78))/0xa*(parseInt(_0x3a5989(0x73))/0xb);if(_0x1a9c96===_0x4136de)break;else _0x575f46['push'](_0x575f46['shift']());}catch(_0x4bedd0){_0x575f46['push'](_0x575f46['shift']());}}}(a24_0x3349,0xafd9a));import{Entity}from'../core/Entity.js';function a24_0x3349(){var _0x288318=['10CyUERd','assign','42424diUgyI','35NWYmAV','622962AhNWDv','1205775CWCjcb','3362456HBDXvD','12693274hrzwQr','52617GsDKTz','520562abgphN','9YeSSod','268fEgJKL'];a24_0x3349=function(){return _0x288318;};return a24_0x3349();}export class Supplier extends Entity{constructor(_0xaeb396,_0x224ed0){var _0x397bba=a24_0x280d;super(_0xaeb396),Object[_0x397bba(0x79)](this,_0x224ed0);}}
1
+ (function(_0x3f8498,_0x41161d){var _0x284012=a35_0x3f6b,_0x553963=_0x3f8498();while(!![]){try{var _0x5262de=parseInt(_0x284012(0x167))/0x1+-parseInt(_0x284012(0x169))/0x2*(-parseInt(_0x284012(0x16a))/0x3)+parseInt(_0x284012(0x166))/0x4+-parseInt(_0x284012(0x164))/0x5+-parseInt(_0x284012(0x163))/0x6*(-parseInt(_0x284012(0x165))/0x7)+-parseInt(_0x284012(0x16c))/0x8*(parseInt(_0x284012(0x168))/0x9)+parseInt(_0x284012(0x162))/0xa*(-parseInt(_0x284012(0x16b))/0xb);if(_0x5262de===_0x41161d)break;else _0x553963['push'](_0x553963['shift']());}catch(_0x49c22a){_0x553963['push'](_0x553963['shift']());}}}(a35_0x4ad0,0x4a3d8));import{Entity}from'../core/Entity.js';function a35_0x3f6b(_0x4b6ac0,_0x53de98){_0x4b6ac0=_0x4b6ac0-0x162;var _0x4ad026=a35_0x4ad0();var _0x3f6bb6=_0x4ad026[_0x4b6ac0];return _0x3f6bb6;}export class Supplier extends Entity{constructor(_0x5ad4b3,_0x1349e5){var _0x9a609b=a35_0x3f6b;super(_0x5ad4b3),Object[_0x9a609b(0x16d)](this,_0x1349e5);}}function a35_0x4ad0(){var _0x5cbe22=['4138605lBGlQA','4tFRtlf','490593GwjTMe','232122epDvzp','8hQvBdM','assign','30gKgXwm','263478WQWHmD','1485765mMYszn','7kvcZcl','1591684XjBorY','355496FMjMAO'];a35_0x4ad0=function(){return _0x5cbe22;};return a35_0x4ad0();}
@@ -1 +1 @@
1
- (function(_0x7d092c,_0x5038cd){var _0x4102d0=a25_0x33d7,_0x3e1ebe=_0x7d092c();while(!![]){try{var _0x5c5493=parseInt(_0x4102d0(0x88))/0x1*(-parseInt(_0x4102d0(0x8f))/0x2)+parseInt(_0x4102d0(0x92))/0x3*(-parseInt(_0x4102d0(0x8c))/0x4)+parseInt(_0x4102d0(0x89))/0x5+parseInt(_0x4102d0(0x8b))/0x6+-parseInt(_0x4102d0(0x91))/0x7*(parseInt(_0x4102d0(0x93))/0x8)+parseInt(_0x4102d0(0x8d))/0x9*(parseInt(_0x4102d0(0x8e))/0xa)+parseInt(_0x4102d0(0x8a))/0xb;if(_0x5c5493===_0x5038cd)break;else _0x3e1ebe['push'](_0x3e1ebe['shift']());}catch(_0x5b8cd3){_0x3e1ebe['push'](_0x3e1ebe['shift']());}}}(a25_0x51be,0x87e3a));function a25_0x33d7(_0x201c09,_0x3a19af){_0x201c09=_0x201c09-0x88;var _0x51be50=a25_0x51be();var _0x33d7fe=_0x51be50[_0x201c09];return _0x33d7fe;}import{Entity}from'../core/Entity.js';function a25_0x51be(){var _0x2778cd=['49UGmDtz','1224960gnobMM','11694353FzBkgz','24042DQGzSc','137580Qwluta','2456829OemgiF','30YySdWV','39918uogyga','assign','7ITraik','45TOUFpX','644376IztySu'];a25_0x51be=function(){return _0x2778cd;};return a25_0x51be();}export class Tax extends Entity{constructor(_0x16d5f2,_0x56f886){var _0xdfb709=a25_0x33d7;super(_0x16d5f2),Object[_0xdfb709(0x90)](this,_0x56f886);}}
1
+ function a36_0x114e(){var _0x3e1dd7=['8293496MEmdld','4409140ISmUlW','assign','82017sekTjM','539135YWmVDw','437232qYtEBa','1iJoUef','7VnvGuX','4963374weZYDT','1056147MhzPjd','1570CxPXXS'];a36_0x114e=function(){return _0x3e1dd7;};return a36_0x114e();}(function(_0x2a8681,_0xb2b770){var _0x135131=a36_0x3d23,_0x33e52a=_0x2a8681();while(!![]){try{var _0x36824e=parseInt(_0x135131(0xa3))/0x1*(parseInt(_0x135131(0xa2))/0x2)+parseInt(_0x135131(0xa6))/0x3+parseInt(_0x135131(0x9e))/0x4+parseInt(_0x135131(0xa1))/0x5+-parseInt(_0x135131(0xa5))/0x6*(parseInt(_0x135131(0xa4))/0x7)+parseInt(_0x135131(0xa8))/0x8+parseInt(_0x135131(0xa0))/0x9*(-parseInt(_0x135131(0xa7))/0xa);if(_0x36824e===_0xb2b770)break;else _0x33e52a['push'](_0x33e52a['shift']());}catch(_0x206ae7){_0x33e52a['push'](_0x33e52a['shift']());}}}(a36_0x114e,0x88986));import{Entity}from'../core/Entity.js';function a36_0x3d23(_0x4d3472,_0x4a5f19){_0x4d3472=_0x4d3472-0x9e;var _0x114ef7=a36_0x114e();var _0x3d230e=_0x114ef7[_0x4d3472];return _0x3d230e;}export class Tax extends Entity{constructor(_0x254fb6,_0x1e00f0){var _0x33ae66=a36_0x3d23;super(_0x254fb6),Object[_0x33ae66(0x9f)](this,_0x1e00f0);}}
@@ -1 +1 @@
1
- var a26_0x4f69de=a26_0x513b;(function(_0x920ccc,_0x5c590e){var _0x4d39aa=a26_0x513b,_0x54eaae=_0x920ccc();while(!![]){try{var _0x159436=parseInt(_0x4d39aa(0x108))/0x1*(-parseInt(_0x4d39aa(0x111))/0x2)+-parseInt(_0x4d39aa(0x10a))/0x3*(-parseInt(_0x4d39aa(0x10d))/0x4)+parseInt(_0x4d39aa(0x106))/0x5+parseInt(_0x4d39aa(0x109))/0x6+parseInt(_0x4d39aa(0x103))/0x7*(parseInt(_0x4d39aa(0x10b))/0x8)+-parseInt(_0x4d39aa(0x10f))/0x9+-parseInt(_0x4d39aa(0x107))/0xa*(-parseInt(_0x4d39aa(0x105))/0xb);if(_0x159436===_0x5c590e)break;else _0x54eaae['push'](_0x54eaae['shift']());}catch(_0x4828a3){_0x54eaae['push'](_0x54eaae['shift']());}}}(a26_0x4674,0xaa8b3));import{Entity}from'../core/Entity.js';export class User extends Entity{constructor(_0x656b7e,_0x1eb0ad){var _0x13bf43=a26_0x513b;super(_0x656b7e),_0x1eb0ad[_0x13bf43(0x10e)]=_0x1eb0ad[_0x13bf43(0x10e)]?new Set(_0x1eb0ad[_0x13bf43(0x10e)]):new Set(),Object['assign'](this,_0x1eb0ad);}['hasPermission'](_0x1c116d){var _0x43244c=a26_0x513b;if(this[_0x43244c(0x10e)][_0x43244c(0x110)](_0x43244c(0x10c)))return!![];return this[_0x43244c(0x10e)][_0x43244c(0x110)](_0x1c116d);}['addPermission'](_0x316075){this['authorizations']['add'](_0x316075);}[a26_0x4f69de(0x112)](_0x44dd07){var _0x4e097d=a26_0x4f69de;this['authorizations'][_0x4e097d(0x104)](_0x44dd07);}}function a26_0x513b(_0x444d3d,_0x1da93d){_0x444d3d=_0x444d3d-0x103;var _0x467460=a26_0x4674();var _0x513b9e=_0x467460[_0x444d3d];return _0x513b9e;}function a26_0x4674(){var _0x102b01=['1317490kJyeci','479KkEHHC','4828476wwojma','9zOaYiu','152Ifswra','ADMIN','752932XqURNL','authorizations','9793422LdNeZO','has','2518drkagD','removePermission','250943DafNKP','delete','11uBxyvF','1037205HuVtqj'];a26_0x4674=function(){return _0x102b01;};return a26_0x4674();}
1
+ function a37_0x3cea(_0x104414,_0x36f10d){_0x104414=_0x104414-0x1dc;var _0x3fe1c5=a37_0x3fe1();var _0x3cea26=_0x3fe1c5[_0x104414];return _0x3cea26;}var a37_0x4c2ff7=a37_0x3cea;(function(_0x48a96f,_0x49e50b){var _0x10e9b1=a37_0x3cea,_0x3b445d=_0x48a96f();while(!![]){try{var _0x351650=-parseInt(_0x10e9b1(0x1e5))/0x1+parseInt(_0x10e9b1(0x1e6))/0x2+parseInt(_0x10e9b1(0x1e7))/0x3+-parseInt(_0x10e9b1(0x1e2))/0x4+parseInt(_0x10e9b1(0x1de))/0x5+parseInt(_0x10e9b1(0x1e1))/0x6*(parseInt(_0x10e9b1(0x1eb))/0x7)+parseInt(_0x10e9b1(0x1dd))/0x8*(-parseInt(_0x10e9b1(0x1e8))/0x9);if(_0x351650===_0x49e50b)break;else _0x3b445d['push'](_0x3b445d['shift']());}catch(_0x11352c){_0x3b445d['push'](_0x3b445d['shift']());}}}(a37_0x3fe1,0x84667));function a37_0x3fe1(){var _0x377025=['assign','6aPufeF','2315104SzjAPq','ADMIN','authorizations','952403FvVhUS','1514860hmeKrS','3029877gUJgFg','10187172FdoxHY','addPermission','removePermission','5384848rxxzLH','hasPermission','8MJPmiV','3343725cFvDsI','has'];a37_0x3fe1=function(){return _0x377025;};return a37_0x3fe1();}import{Entity}from'../core/Entity.js';export class User extends Entity{constructor(_0x455351,_0x3f7059){var _0x2d98a8=a37_0x3cea;super(_0x455351),_0x3f7059['authorizations']=_0x3f7059['authorizations']?new Set(_0x3f7059[_0x2d98a8(0x1e4)]):new Set(),Object[_0x2d98a8(0x1e0)](this,_0x3f7059);}[a37_0x4c2ff7(0x1dc)](_0x5e93d5){var _0x16efd6=a37_0x4c2ff7;if(this[_0x16efd6(0x1e4)]['has'](_0x16efd6(0x1e3)))return!![];return this[_0x16efd6(0x1e4)][_0x16efd6(0x1df)](_0x5e93d5);}[a37_0x4c2ff7(0x1e9)](_0x37682d){this['authorizations']['add'](_0x37682d);}[a37_0x4c2ff7(0x1ea)](_0x899984){this['authorizations']['delete'](_0x899984);}}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5ce2d0,_0x56763d){var _0x4504b2=a27_0x3ad5,_0x396b4a=_0x5ce2d0();while(!![]){try{var _0x116464=parseInt(_0x4504b2(0x1b5))/0x1*(parseInt(_0x4504b2(0x1ae))/0x2)+-parseInt(_0x4504b2(0x1b3))/0x3+-parseInt(_0x4504b2(0x1ad))/0x4*(-parseInt(_0x4504b2(0x1b7))/0x5)+-parseInt(_0x4504b2(0x1b1))/0x6*(-parseInt(_0x4504b2(0x1b0))/0x7)+-parseInt(_0x4504b2(0x1b4))/0x8+-parseInt(_0x4504b2(0x1b2))/0x9*(-parseInt(_0x4504b2(0x1b6))/0xa)+-parseInt(_0x4504b2(0x1af))/0xb;if(_0x116464===_0x56763d)break;else _0x396b4a['push'](_0x396b4a['shift']());}catch(_0x17b742){_0x396b4a['push'](_0x396b4a['shift']());}}}(a27_0x1372,0x398f8));export{OWLClient}from'./owl/OWLClient.js';function a27_0x3ad5(_0x523139,_0xec635e){_0x523139=_0x523139-0x1ad;var _0x13720b=a27_0x1372();var _0x3ad5b6=_0x13720b[_0x523139];return _0x3ad5b6;}export*from'./core/Module.js';export*from'./entities/User.js';export*from'./entities/Client.js';export*from'./entities/Supplier.js';export*from'./entities/Item.js';export*from'./entities/Order.js';function a27_0x1372(){var _0x5564d2=['6icOXfW','1156188QgrtEC','7bkwFTt','2565492HslBjq','9YWeynL','543747KlwwCN','3761752UmQQxw','105254klhOOv','149410QQpGCF','145AIxMRY','32284taVwqG'];a27_0x1372=function(){return _0x5564d2;};return a27_0x1372();}export*from'./entities/Preparation.js';export*from'./entities/Purchase.js';export*from'./entities/Reception.js';export*from'./entities/Stock.js';export*from'./entities/Tax.js';
1
+ (function(_0x3c7bba,_0x35d730){var _0x3738ba=a38_0x3ba3,_0x251981=_0x3c7bba();while(!![]){try{var _0x37e55d=-parseInt(_0x3738ba(0x1a1))/0x1*(-parseInt(_0x3738ba(0x1a4))/0x2)+parseInt(_0x3738ba(0x19f))/0x3+-parseInt(_0x3738ba(0x1a0))/0x4+-parseInt(_0x3738ba(0x19e))/0x5*(-parseInt(_0x3738ba(0x19d))/0x6)+parseInt(_0x3738ba(0x1a3))/0x7+-parseInt(_0x3738ba(0x1a2))/0x8+parseInt(_0x3738ba(0x19c))/0x9;if(_0x37e55d===_0x35d730)break;else _0x251981['push'](_0x251981['shift']());}catch(_0x30eb73){_0x251981['push'](_0x251981['shift']());}}}(a38_0x4c91,0x68752));function a38_0x4c91(){var _0x3df247=['347826XgmOdB','3145748KBkHhS','85254pIevqq','5543904oLuoKy','3799712VkaHlt','18dIAoWG','201375lVXSzD','24582CTsjwY','560mUFXtS'];a38_0x4c91=function(){return _0x3df247;};return a38_0x4c91();}export{OWLClient}from'./owl/OWLClient.js';export*from'./core/Module.js';function a38_0x3ba3(_0x7cc2b9,_0x3e2b22){_0x7cc2b9=_0x7cc2b9-0x19c;var _0x4c91e2=a38_0x4c91();var _0x3ba3fc=_0x4c91e2[_0x7cc2b9];return _0x3ba3fc;}export*from'./entities/User.js';export*from'./entities/Client.js';export*from'./entities/Supplier.js';export*from'./entities/Item.js';export*from'./entities/Order.js';export*from'./entities/Preparation.js';export*from'./entities/Purchase.js';export*from'./entities/Reception.js';export*from'./entities/Stock.js';export*from'./entities/Tax.js';
@@ -1 +1 @@
1
- const a28_0x4ec52a=a28_0x140b;function a28_0x329a(){const _0x5f2e6f=['client.cached.some','set','client.error','length','request','client.deleted','fetchAll','client.cached.all','2954064KDgkAe','client.read','903eBCZgl','1151600wcIyZG','events','client.cached','17757675UPqQsE','cache','3204022oDZbit','55VAifYe','has','client.read.some','1635561msccRB','fetch','then','values','tokenIsValide','000001:\x20Invalid\x20Token.','322572ZnxMKX','get','2256hMVjjO','delete','some','owl','emit','client.read.all','modify'];a28_0x329a=function(){return _0x5f2e6f;};return a28_0x329a();}function a28_0x140b(_0x339aab,_0x1ee45b){_0x339aab=_0x339aab-0x18c;const _0x329a97=a28_0x329a();let _0x140bb4=_0x329a97[_0x339aab];return _0x140bb4;}(function(_0x2b1cc3,_0x30aeef){const _0x497400=a28_0x140b,_0x371c1f=_0x2b1cc3();while(!![]){try{const _0x38200d=parseInt(_0x497400(0x197))/0x1+parseInt(_0x497400(0x19c))/0x2+parseInt(_0x497400(0x1a0))/0x3+-parseInt(_0x497400(0x1a6))/0x4*(parseInt(_0x497400(0x19d))/0x5)+parseInt(_0x497400(0x194))/0x6+parseInt(_0x497400(0x196))/0x7*(-parseInt(_0x497400(0x1a8))/0x8)+-parseInt(_0x497400(0x19a))/0x9;if(_0x38200d===_0x30aeef)break;else _0x371c1f['push'](_0x371c1f['shift']());}catch(_0x182bb7){_0x371c1f['push'](_0x371c1f['shift']());}}}(a28_0x329a,0xda698));import{Manager}from'../core/Manager.js';import{Client}from'../entities/Client.js';export class ClientManager extends Manager{async[a28_0x4ec52a(0x1a1)](_0x4f7be7){const _0x2da007=a28_0x4ec52a;try{if(!this[_0x2da007(0x1ab)]['tokenIsValide']())throw new Error(_0x2da007(0x1a5));if(this[_0x2da007(0x19b)][_0x2da007(0x19e)](_0x4f7be7))return this['cache'][_0x2da007(0x1a7)](_0x4f7be7);const _0x3fbb74=await this[_0x2da007(0x1ab)][_0x2da007(0x198)][_0x2da007(0x190)](_0x2da007(0x195),{'id':_0x4f7be7}),_0x4d09ed=new Client(this[_0x2da007(0x1ab)],_0x3fbb74);return this[_0x2da007(0x19b)]['set'](_0x4f7be7,_0x4d09ed),this[_0x2da007(0x1ab)]['events'][_0x2da007(0x1ac)](_0x2da007(0x199),_0x4d09ed),_0x4d09ed;}catch(_0x236f63){this[_0x2da007(0x1ab)][_0x2da007(0x198)][_0x2da007(0x1ac)](_0x2da007(0x18e),{'error':_0x236f63});throw _0x236f63;}}async[a28_0x4ec52a(0x192)](){const _0x3d03fd=a28_0x4ec52a;try{if(!this['owl'][_0x3d03fd(0x1a4)]())throw new Error(_0x3d03fd(0x1a5));const _0x496d0e=await this[_0x3d03fd(0x1ab)][_0x3d03fd(0x198)][_0x3d03fd(0x190)](_0x3d03fd(0x1ad),{});for(let _0xfe1c1=0x0;_0xfe1c1<_0x496d0e[_0x3d03fd(0x18f)];_0xfe1c1++){const _0x735208=new Client(this[_0x3d03fd(0x1ab)],_0x496d0e[_0xfe1c1]);this[_0x3d03fd(0x19b)][_0x3d03fd(0x18d)](_0x735208['id'],_0x735208);}return this[_0x3d03fd(0x1ab)][_0x3d03fd(0x198)][_0x3d03fd(0x1ac)](_0x3d03fd(0x193),this['cache'][_0x3d03fd(0x1a3)]()),this[_0x3d03fd(0x19b)][_0x3d03fd(0x1a3)]();}catch(_0x2f8396){this[_0x3d03fd(0x1ab)]['events'][_0x3d03fd(0x1ac)]('client.error',{'error':_0x2f8396});throw _0x2f8396;}}async[a28_0x4ec52a(0x1aa)](_0x1f38ae){const _0x2787f8=a28_0x4ec52a;try{if(!this[_0x2787f8(0x1ab)][_0x2787f8(0x1a4)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x25b86e=await this[_0x2787f8(0x1ab)][_0x2787f8(0x198)][_0x2787f8(0x190)](_0x2787f8(0x19f),_0x1f38ae);for(let _0x42f27b=0x0;_0x42f27b<_0x25b86e[_0x2787f8(0x18f)];_0x42f27b++){const _0x438d6a=new Client(this['owl'],_0x25b86e[_0x42f27b]);this[_0x2787f8(0x19b)][_0x2787f8(0x18d)](_0x438d6a['id'],_0x438d6a);}return this[_0x2787f8(0x1ab)]['events'][_0x2787f8(0x1ac)](_0x2787f8(0x18c),_0x25b86e),_0x25b86e;}catch(_0x6eb5a9){this['owl'][_0x2787f8(0x198)]['emit']('client.error',{'error':_0x6eb5a9});throw _0x6eb5a9;}}async['new'](_0x48553e){const _0x38390f=a28_0x4ec52a;try{if(!this[_0x38390f(0x1ab)][_0x38390f(0x1a4)]())throw new Error(_0x38390f(0x1a5));const _0x3106cd=await this[_0x38390f(0x1ab)][_0x38390f(0x198)]['request']('client.created',{'client':_0x48553e});_0x48553e['id']=_0x3106cd;const _0x43a5b8=new Client(this[_0x38390f(0x1ab)],_0x48553e);return this[_0x38390f(0x19b)]['set'](_0x43a5b8['id'],_0x43a5b8),_0x43a5b8;}catch(_0x3a04fa){this[_0x38390f(0x1ab)][_0x38390f(0x198)][_0x38390f(0x1ac)](_0x38390f(0x18e),{'error':_0x3a04fa});throw _0x3a04fa;}}async[a28_0x4ec52a(0x1ae)](_0x155ffa,_0x40a456){const _0x3f67de=a28_0x4ec52a;try{if(!this[_0x3f67de(0x1ab)][_0x3f67de(0x1a4)]())throw new Error(_0x3f67de(0x1a5));await this[_0x3f67de(0x1ab)][_0x3f67de(0x198)]['request']('client.updated',_0x40a456)[_0x3f67de(0x1a2)](_0x1c3f2d=>{const _0x2084e1=_0x3f67de;this[_0x2084e1(0x19b)][_0x2084e1(0x18d)](_0x155ffa,_0x1c3f2d);});}catch(_0x20f257){this[_0x3f67de(0x1ab)][_0x3f67de(0x198)]['emit'](_0x3f67de(0x18e),{'error':_0x20f257});throw _0x20f257;}}async[a28_0x4ec52a(0x1a9)](_0xa9ff39){const _0x17b96d=a28_0x4ec52a;try{if(!this[_0x17b96d(0x1ab)][_0x17b96d(0x1a4)]())throw new Error(_0x17b96d(0x1a5));await this[_0x17b96d(0x1ab)][_0x17b96d(0x198)][_0x17b96d(0x1ac)](_0x17b96d(0x191),{'id':_0xa9ff39}),this[_0x17b96d(0x19b)]['delete'](_0xa9ff39);}catch(_0x11472e){this[_0x17b96d(0x1ab)][_0x17b96d(0x198)][_0x17b96d(0x1ac)](_0x17b96d(0x18e),{'error':_0x11472e});throw _0x11472e;}}}
1
+ function a39_0x37cb(){const _0x26a333=['values','34004YCGzcz','length','client.updated','6gMpVRs','client.read.all','139806wCqZqw','15ggnLDH','client.error','1462629mgFoLG','owl','client.cached.some','000001:\x20Invalid\x20Token.','request','has','client.cached','55GJhKtC','emit','set','client.read','get','client.read.some','88BIuZuo','events','fetchAll','647810JOioYh','client.cached.all','735860SIgpvm','then','new','3qxJgmF','17023068IWOZzj','fetch','delete','client.created','some','cache','215734RxzPiG','tokenIsValide'];a39_0x37cb=function(){return _0x26a333;};return a39_0x37cb();}const a39_0x3434cf=a39_0x4927;function a39_0x4927(_0x562539,_0x5a46ad){_0x562539=_0x562539-0x1e6;const _0x37cbd4=a39_0x37cb();let _0x49272f=_0x37cbd4[_0x562539];return _0x49272f;}(function(_0x2e3c29,_0x1e7fea){const _0x540830=a39_0x4927,_0x5406dd=_0x2e3c29();while(!![]){try{const _0x24e1a9=-parseInt(_0x540830(0x20c))/0x1*(parseInt(_0x540830(0x1ec))/0x2)+-parseInt(_0x540830(0x1f5))/0x3*(parseInt(_0x540830(0x1ef))/0x4)+-parseInt(_0x540830(0x209))/0x5*(parseInt(_0x540830(0x1f2))/0x6)+-parseInt(_0x540830(0x1f7))/0x7+parseInt(_0x540830(0x204))/0x8*(-parseInt(_0x540830(0x1f4))/0x9)+-parseInt(_0x540830(0x207))/0xa*(parseInt(_0x540830(0x1fe))/0xb)+parseInt(_0x540830(0x1e6))/0xc;if(_0x24e1a9===_0x1e7fea)break;else _0x5406dd['push'](_0x5406dd['shift']());}catch(_0x1b2c56){_0x5406dd['push'](_0x5406dd['shift']());}}}(a39_0x37cb,0x31371));import{Manager}from'../core/Manager.js';import{Client}from'../entities/Client.js';export class ClientManager extends Manager{async[a39_0x3434cf(0x1e7)](_0x2b44f3){const _0x5a3fd8=a39_0x3434cf;try{if(!this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x1ed)]())throw new Error(_0x5a3fd8(0x1fa));if(this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x1fc)](_0x2b44f3))return this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x202)](_0x2b44f3);const _0x3cff38=await this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x205)][_0x5a3fd8(0x1fb)](_0x5a3fd8(0x201),{'id':_0x2b44f3}),_0x41fd7d=new Client(this[_0x5a3fd8(0x1f8)],_0x3cff38);return this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x200)](_0x2b44f3,_0x41fd7d),this['owl']['events'][_0x5a3fd8(0x1ff)](_0x5a3fd8(0x1fd),_0x41fd7d),_0x41fd7d;}catch(_0x5011a2){this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x205)][_0x5a3fd8(0x1ff)](_0x5a3fd8(0x1f6),{'error':_0x5011a2});throw _0x5011a2;}}async[a39_0x3434cf(0x206)](){const _0xbec429=a39_0x3434cf;try{if(!this[_0xbec429(0x1f8)][_0xbec429(0x1ed)]())throw new Error(_0xbec429(0x1fa));const _0x3e30c8=await this[_0xbec429(0x1f8)][_0xbec429(0x205)][_0xbec429(0x1fb)](_0xbec429(0x1f3),{});for(let _0x3e00e7=0x0;_0x3e00e7<_0x3e30c8[_0xbec429(0x1f0)];_0x3e00e7++){const _0x376222=new Client(this[_0xbec429(0x1f8)],_0x3e30c8[_0x3e00e7]);this[_0xbec429(0x1eb)][_0xbec429(0x200)](_0x376222['id'],_0x376222);}return this[_0xbec429(0x1f8)][_0xbec429(0x205)][_0xbec429(0x1ff)](_0xbec429(0x208),this['cache'][_0xbec429(0x1ee)]()),this[_0xbec429(0x1eb)][_0xbec429(0x1ee)]();}catch(_0x4a50ab){this[_0xbec429(0x1f8)]['events'][_0xbec429(0x1ff)](_0xbec429(0x1f6),{'error':_0x4a50ab});throw _0x4a50ab;}}async[a39_0x3434cf(0x1ea)](_0x413fd5){const _0x22027c=a39_0x3434cf;try{if(!this[_0x22027c(0x1f8)][_0x22027c(0x1ed)]())throw new Error('000001:\x20Invalid\x20Token.');const _0xcc7cf2=await this[_0x22027c(0x1f8)]['events'][_0x22027c(0x1fb)](_0x22027c(0x203),_0x413fd5);for(let _0x2531f1=0x0;_0x2531f1<_0xcc7cf2[_0x22027c(0x1f0)];_0x2531f1++){const _0x40b63c=new Client(this[_0x22027c(0x1f8)],_0xcc7cf2[_0x2531f1]);this['cache'][_0x22027c(0x200)](_0x40b63c['id'],_0x40b63c);}return this[_0x22027c(0x1f8)][_0x22027c(0x205)][_0x22027c(0x1ff)](_0x22027c(0x1f9),_0xcc7cf2),_0xcc7cf2;}catch(_0x31b0f6){this[_0x22027c(0x1f8)][_0x22027c(0x205)][_0x22027c(0x1ff)](_0x22027c(0x1f6),{'error':_0x31b0f6});throw _0x31b0f6;}}async[a39_0x3434cf(0x20b)](_0x47bdec){const _0xf1ad42=a39_0x3434cf;try{if(!this[_0xf1ad42(0x1f8)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x192dfe=await this['owl'][_0xf1ad42(0x205)][_0xf1ad42(0x1fb)](_0xf1ad42(0x1e9),{'client':_0x47bdec});_0x47bdec['id']=_0x192dfe;const _0x274d51=new Client(this['owl'],_0x47bdec);return this[_0xf1ad42(0x1eb)][_0xf1ad42(0x200)](_0x274d51['id'],_0x274d51),_0x274d51;}catch(_0x404764){this[_0xf1ad42(0x1f8)][_0xf1ad42(0x205)][_0xf1ad42(0x1ff)](_0xf1ad42(0x1f6),{'error':_0x404764});throw _0x404764;}}async['modify'](_0x52298e,_0x2f93f0){const _0x50f896=a39_0x3434cf;try{if(!this[_0x50f896(0x1f8)][_0x50f896(0x1ed)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x50f896(0x1f8)][_0x50f896(0x205)][_0x50f896(0x1fb)](_0x50f896(0x1f1),_0x2f93f0)[_0x50f896(0x20a)](_0x19ca00=>{const _0x1f4274=_0x50f896;this[_0x1f4274(0x1eb)]['set'](_0x52298e,_0x19ca00);});}catch(_0x3c53be){this[_0x50f896(0x1f8)][_0x50f896(0x205)][_0x50f896(0x1ff)](_0x50f896(0x1f6),{'error':_0x3c53be});throw _0x3c53be;}}async[a39_0x3434cf(0x1e8)](_0x2319e4){const _0x292820=a39_0x3434cf;try{if(!this[_0x292820(0x1f8)][_0x292820(0x1ed)]())throw new Error(_0x292820(0x1fa));await this[_0x292820(0x1f8)][_0x292820(0x205)]['emit']('client.deleted',{'id':_0x2319e4}),this['cache'][_0x292820(0x1e8)](_0x2319e4);}catch(_0x4c3b9e){this[_0x292820(0x1f8)][_0x292820(0x205)][_0x292820(0x1ff)]('client.error',{'error':_0x4c3b9e});throw _0x4c3b9e;}}}
@@ -1 +1 @@
1
- const a29_0x42e0a1=a29_0x2e97;function a29_0x2e97(_0x43f617,_0x3488c3){_0x43f617=_0x43f617-0x12e;const _0x1d553e=a29_0x1d55();let _0x2e9742=_0x1d553e[_0x43f617];return _0x2e9742;}(function(_0x26c602,_0x3879d8){const _0x54b57a=a29_0x2e97,_0x468d7c=_0x26c602();while(!![]){try{const _0xa3b094=-parseInt(_0x54b57a(0x134))/0x1+-parseInt(_0x54b57a(0x145))/0x2+-parseInt(_0x54b57a(0x12e))/0x3*(parseInt(_0x54b57a(0x132))/0x4)+-parseInt(_0x54b57a(0x151))/0x5*(parseInt(_0x54b57a(0x137))/0x6)+-parseInt(_0x54b57a(0x143))/0x7*(-parseInt(_0x54b57a(0x14a))/0x8)+parseInt(_0x54b57a(0x13f))/0x9+parseInt(_0x54b57a(0x144))/0xa*(parseInt(_0x54b57a(0x12f))/0xb);if(_0xa3b094===_0x3879d8)break;else _0x468d7c['push'](_0x468d7c['shift']());}catch(_0x58710b){_0x468d7c['push'](_0x468d7c['shift']());}}}(a29_0x1d55,0xb08d4));import{Manager}from'../core/Manager.js';function a29_0x1d55(){const _0xb961c2=['emit','then','item.read.all','fetchAll','item.updated','cache','1428786vctpPt','item.deleted','item.cached','tokenIsValide','7HFJVct','10qyfNAb','2019096bCnQuQ','new','length','get','values','649216aqnNFJ','delete','item.read','set','events','fetch','owl','70UulYft','7041ogbMNk','46995245BmVBET','request','000001:\x20Invalid\x20Token.','1112vlHsaU','item.error','896347RPMGmI','modify','item.read.some','527436nnLrbd','item.cached.some'];a29_0x1d55=function(){return _0xb961c2;};return a29_0x1d55();}import{Item}from'../entities/Item.js';export class ItemManager extends Manager{async[a29_0x42e0a1(0x14f)](_0x11b4f4){const _0x1f212a=a29_0x42e0a1;try{if(!this[_0x1f212a(0x150)][_0x1f212a(0x142)]())throw new Error(_0x1f212a(0x131));if(this[_0x1f212a(0x13e)]['has'](_0x11b4f4))return this[_0x1f212a(0x13e)][_0x1f212a(0x148)](_0x11b4f4);const _0x40957b=await this[_0x1f212a(0x150)][_0x1f212a(0x14e)][_0x1f212a(0x130)](_0x1f212a(0x14c),{'id':_0x11b4f4}),_0x31132b=new Item(this[_0x1f212a(0x150)],_0x40957b);return this[_0x1f212a(0x13e)][_0x1f212a(0x14d)](_0x11b4f4,_0x31132b),this['owl']['events'][_0x1f212a(0x139)](_0x1f212a(0x141),_0x31132b),_0x31132b;}catch(_0x2113cd){this[_0x1f212a(0x150)][_0x1f212a(0x14e)]['emit'](_0x1f212a(0x133),{'error':_0x2113cd});throw _0x2113cd;}}async[a29_0x42e0a1(0x13c)](){const _0x1503d0=a29_0x42e0a1;try{if(!this[_0x1503d0(0x150)][_0x1503d0(0x142)]())throw new Error(_0x1503d0(0x131));const _0x263fec=await this[_0x1503d0(0x150)]['events']['request'](_0x1503d0(0x13b),{});for(let _0x56de95=0x0;_0x56de95<_0x263fec[_0x1503d0(0x147)];_0x56de95++){const _0x576445=new Item(this[_0x1503d0(0x150)],_0x263fec[_0x56de95]);this['cache']['set'](_0x576445['id'],_0x576445);}return this[_0x1503d0(0x150)][_0x1503d0(0x14e)][_0x1503d0(0x139)]('item.cached.all',this[_0x1503d0(0x13e)][_0x1503d0(0x149)]()),this[_0x1503d0(0x13e)][_0x1503d0(0x149)]();}catch(_0x465b55){this[_0x1503d0(0x150)][_0x1503d0(0x14e)][_0x1503d0(0x139)](_0x1503d0(0x133),{'error':_0x465b55});throw _0x465b55;}}async['some'](_0x3821e6){const _0xfb06fb=a29_0x42e0a1;try{if(!this[_0xfb06fb(0x150)][_0xfb06fb(0x142)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x224b89=await this['owl'][_0xfb06fb(0x14e)][_0xfb06fb(0x130)](_0xfb06fb(0x136),_0x3821e6);for(let _0x54867f=0x0;_0x54867f<_0x224b89['length'];_0x54867f++){const _0x4301e8=new Item(this[_0xfb06fb(0x150)],_0x224b89[_0x54867f]);this['cache'][_0xfb06fb(0x14d)](_0x4301e8['id'],_0x4301e8);}return this['owl'][_0xfb06fb(0x14e)][_0xfb06fb(0x139)](_0xfb06fb(0x138),_0x224b89),_0x224b89;}catch(_0x2b7b69){this[_0xfb06fb(0x150)][_0xfb06fb(0x14e)][_0xfb06fb(0x139)](_0xfb06fb(0x133),{'error':_0x2b7b69});throw _0x2b7b69;}}async[a29_0x42e0a1(0x146)](_0x505921){const _0x3e4fad=a29_0x42e0a1;try{if(!this[_0x3e4fad(0x150)][_0x3e4fad(0x142)]())throw new Error(_0x3e4fad(0x131));const _0x38be06=await this[_0x3e4fad(0x150)]['events'][_0x3e4fad(0x130)]('item.created',{'item':_0x505921});_0x505921['id']=_0x38be06;const _0x1cb217=new Item(this[_0x3e4fad(0x150)],_0x505921);return this['cache'][_0x3e4fad(0x14d)](_0x1cb217['id'],_0x1cb217),_0x1cb217;}catch(_0x4ab213){this[_0x3e4fad(0x150)][_0x3e4fad(0x14e)]['emit']('item.error',{'error':_0x4ab213});throw _0x4ab213;}}async[a29_0x42e0a1(0x135)](_0x474a2b,_0x5de243){const _0x49ba1f=a29_0x42e0a1;try{if(!this['owl'][_0x49ba1f(0x142)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x49ba1f(0x150)][_0x49ba1f(0x14e)]['request'](_0x49ba1f(0x13d),_0x5de243)[_0x49ba1f(0x13a)](_0x2e893f=>{const _0x49f362=_0x49ba1f;this[_0x49f362(0x13e)][_0x49f362(0x14d)](_0x474a2b,_0x2e893f);});}catch(_0x3cfdc3){this['owl'][_0x49ba1f(0x14e)][_0x49ba1f(0x139)](_0x49ba1f(0x133),{'error':_0x3cfdc3});throw _0x3cfdc3;}}async['delete'](_0x199bad){const _0x1c7e1c=a29_0x42e0a1;try{if(!this[_0x1c7e1c(0x150)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events']['emit'](_0x1c7e1c(0x140),{'id':_0x199bad}),this[_0x1c7e1c(0x13e)][_0x1c7e1c(0x14b)](_0x199bad);}catch(_0x376f17){this[_0x1c7e1c(0x150)]['events'][_0x1c7e1c(0x139)](_0x1c7e1c(0x133),{'error':_0x376f17});throw _0x376f17;}}}
1
+ const a40_0x3aa694=a40_0x11a1;function a40_0x4e4b(){const _0x496449=['317409hFcRPa','length','item.deleted','fetchAll','27914427mKlWoD','new','2337035dwClRb','get','item.read','item.cached','events','delete','values','2990428WjcwMk','request','cache','item.read.all','48302uacljm','then','set','modify','8bvHvqk','item.error','emit','owl','item.cached.all','000001:\x20Invalid\x20Token.','6202854YQShsn','6505765IEfqOM','129ATpWeX','item.updated','has','tokenIsValide','item.read.some','some'];a40_0x4e4b=function(){return _0x496449;};return a40_0x4e4b();}function a40_0x11a1(_0x4b4ac6,_0x119b87){_0x4b4ac6=_0x4b4ac6-0xa9;const _0x4e4b3f=a40_0x4e4b();let _0x11a1b5=_0x4e4b3f[_0x4b4ac6];return _0x11a1b5;}(function(_0x527bec,_0x26f357){const _0x4e9f43=a40_0x11a1,_0x4b7eaa=_0x527bec();while(!![]){try{const _0x289646=-parseInt(_0x4e9f43(0xbe))/0x1+-parseInt(_0x4e9f43(0xac))/0x2*(-parseInt(_0x4e9f43(0xb8))/0x3)+-parseInt(_0x4e9f43(0xcb))/0x4+-parseInt(_0x4e9f43(0xc4))/0x5+-parseInt(_0x4e9f43(0xb6))/0x6+-parseInt(_0x4e9f43(0xb7))/0x7+parseInt(_0x4e9f43(0xb0))/0x8*(parseInt(_0x4e9f43(0xc2))/0x9);if(_0x289646===_0x26f357)break;else _0x4b7eaa['push'](_0x4b7eaa['shift']());}catch(_0x398b2f){_0x4b7eaa['push'](_0x4b7eaa['shift']());}}}(a40_0x4e4b,0x9d575));import{Manager}from'../core/Manager.js';import{Item}from'../entities/Item.js';export class ItemManager extends Manager{async['fetch'](_0x46f66b){const _0x2ea0f8=a40_0x11a1;try{if(!this[_0x2ea0f8(0xb3)]['tokenIsValide']())throw new Error(_0x2ea0f8(0xb5));if(this[_0x2ea0f8(0xaa)][_0x2ea0f8(0xba)](_0x46f66b))return this[_0x2ea0f8(0xaa)][_0x2ea0f8(0xc5)](_0x46f66b);const _0x5d947c=await this[_0x2ea0f8(0xb3)][_0x2ea0f8(0xc8)][_0x2ea0f8(0xa9)](_0x2ea0f8(0xc6),{'id':_0x46f66b}),_0x5e90dc=new Item(this['owl'],_0x5d947c);return this['cache'][_0x2ea0f8(0xae)](_0x46f66b,_0x5e90dc),this[_0x2ea0f8(0xb3)][_0x2ea0f8(0xc8)][_0x2ea0f8(0xb2)](_0x2ea0f8(0xc7),_0x5e90dc),_0x5e90dc;}catch(_0xbecd8d){this['owl'][_0x2ea0f8(0xc8)][_0x2ea0f8(0xb2)](_0x2ea0f8(0xb1),{'error':_0xbecd8d});throw _0xbecd8d;}}async[a40_0x3aa694(0xc1)](){const _0x235f8a=a40_0x3aa694;try{if(!this[_0x235f8a(0xb3)]['tokenIsValide']())throw new Error(_0x235f8a(0xb5));const _0x20aa42=await this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xa9)](_0x235f8a(0xab),{});for(let _0x4548d1=0x0;_0x4548d1<_0x20aa42[_0x235f8a(0xbf)];_0x4548d1++){const _0x565829=new Item(this['owl'],_0x20aa42[_0x4548d1]);this[_0x235f8a(0xaa)][_0x235f8a(0xae)](_0x565829['id'],_0x565829);}return this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xb2)](_0x235f8a(0xb4),this['cache'][_0x235f8a(0xca)]()),this[_0x235f8a(0xaa)][_0x235f8a(0xca)]();}catch(_0x439e68){this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xb2)]('item.error',{'error':_0x439e68});throw _0x439e68;}}async[a40_0x3aa694(0xbd)](_0x5bc122){const _0x2bf665=a40_0x3aa694;try{if(!this[_0x2bf665(0xb3)][_0x2bf665(0xbb)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4b100e=await this[_0x2bf665(0xb3)][_0x2bf665(0xc8)][_0x2bf665(0xa9)](_0x2bf665(0xbc),_0x5bc122);for(let _0x4c0d9c=0x0;_0x4c0d9c<_0x4b100e[_0x2bf665(0xbf)];_0x4c0d9c++){const _0x1830e9=new Item(this['owl'],_0x4b100e[_0x4c0d9c]);this['cache']['set'](_0x1830e9['id'],_0x1830e9);}return this[_0x2bf665(0xb3)]['events']['emit']('item.cached.some',_0x4b100e),_0x4b100e;}catch(_0x43d279){this[_0x2bf665(0xb3)]['events'][_0x2bf665(0xb2)](_0x2bf665(0xb1),{'error':_0x43d279});throw _0x43d279;}}async[a40_0x3aa694(0xc3)](_0x1a9d56){const _0x14030d=a40_0x3aa694;try{if(!this[_0x14030d(0xb3)][_0x14030d(0xbb)]())throw new Error(_0x14030d(0xb5));const _0x182a13=await this[_0x14030d(0xb3)][_0x14030d(0xc8)][_0x14030d(0xa9)]('item.created',{'item':_0x1a9d56});_0x1a9d56['id']=_0x182a13;const _0x26f565=new Item(this['owl'],_0x1a9d56);return this[_0x14030d(0xaa)]['set'](_0x26f565['id'],_0x26f565),_0x26f565;}catch(_0xfd7641){this[_0x14030d(0xb3)][_0x14030d(0xc8)][_0x14030d(0xb2)](_0x14030d(0xb1),{'error':_0xfd7641});throw _0xfd7641;}}async[a40_0x3aa694(0xaf)](_0x12bea0,_0x13c04d){const _0x58cbee=a40_0x3aa694;try{if(!this[_0x58cbee(0xb3)][_0x58cbee(0xbb)]())throw new Error(_0x58cbee(0xb5));await this[_0x58cbee(0xb3)][_0x58cbee(0xc8)][_0x58cbee(0xa9)](_0x58cbee(0xb9),_0x13c04d)[_0x58cbee(0xad)](_0xff6482=>{const _0x3e4bf4=_0x58cbee;this[_0x3e4bf4(0xaa)][_0x3e4bf4(0xae)](_0x12bea0,_0xff6482);});}catch(_0x4e4a86){this[_0x58cbee(0xb3)]['events']['emit'](_0x58cbee(0xb1),{'error':_0x4e4a86});throw _0x4e4a86;}}async[a40_0x3aa694(0xc9)](_0xec543){const _0x1627bf=a40_0x3aa694;try{if(!this[_0x1627bf(0xb3)][_0x1627bf(0xbb)]())throw new Error(_0x1627bf(0xb5));await this[_0x1627bf(0xb3)][_0x1627bf(0xc8)][_0x1627bf(0xb2)](_0x1627bf(0xc0),{'id':_0xec543}),this['cache'][_0x1627bf(0xc9)](_0xec543);}catch(_0x1f03de){this[_0x1627bf(0xb3)][_0x1627bf(0xc8)]['emit'](_0x1627bf(0xb1),{'error':_0x1f03de});throw _0x1f03de;}}}
@@ -1 +1 @@
1
- const a30_0x1ce473=a30_0x4e1f;(function(_0x4e3f4e,_0x10e34b){const _0x2664cd=a30_0x4e1f,_0x279c35=_0x4e3f4e();while(!![]){try{const _0x3d51fa=-parseInt(_0x2664cd(0x1ae))/0x1+-parseInt(_0x2664cd(0x1b0))/0x2*(-parseInt(_0x2664cd(0x1be))/0x3)+parseInt(_0x2664cd(0x1c7))/0x4+parseInt(_0x2664cd(0x1b9))/0x5+parseInt(_0x2664cd(0x1b4))/0x6*(parseInt(_0x2664cd(0x1bd))/0x7)+parseInt(_0x2664cd(0x1a8))/0x8*(parseInt(_0x2664cd(0x1c6))/0x9)+-parseInt(_0x2664cd(0x1c4))/0xa*(parseInt(_0x2664cd(0x1b8))/0xb);if(_0x3d51fa===_0x10e34b)break;else _0x279c35['push'](_0x279c35['shift']());}catch(_0x91b734){_0x279c35['push'](_0x279c35['shift']());}}}(a30_0x414d,0xd396f));import{Manager}from'../core/Manager.js';function a30_0x4e1f(_0x5ccd3c,_0x5dafc5){_0x5ccd3c=_0x5ccd3c-0x1a7;const _0x414d6d=a30_0x414d();let _0x4e1fcd=_0x414d6d[_0x5ccd3c];return _0x4e1fcd;}import{Order}from'../entities/Order.js';function a30_0x414d(){const _0x196105=['order.read.all','order.read','21646559TUCPkJ','5333800BrgIOS','has','values','000001:\x20Invalid\x20Token.','7840kfMjOR','527658fEvhXf','order.updated','order.deleted','order.cached.all','modify','tokenIsValide','20UYDhBz','order.created','873wexJTH','6539332rdkoBQ','events','delete','then','order.cached.some','request','order.cached','order.error','256SVPeZZ','order.read.some','length','some','owl','fetchAll','822496tXutxL','get','16TjWFcX','cache','set','emit','8106YdcHjx','fetch'];a30_0x414d=function(){return _0x196105;};return a30_0x414d();}export class OrderManager extends Manager{async[a30_0x1ce473(0x1b5)](_0x29942d){const _0x502383=a30_0x1ce473;try{if(!this[_0x502383(0x1ac)][_0x502383(0x1c3)]())throw new Error('000001:\x20Invalid\x20Token.');if(this['cache'][_0x502383(0x1ba)](_0x29942d))return this[_0x502383(0x1b1)][_0x502383(0x1af)](_0x29942d);const _0xff4c3d=await this['owl'][_0x502383(0x1c8)][_0x502383(0x1cc)](_0x502383(0x1b7),{'id':_0x29942d}),_0x3fde01=new Order(this[_0x502383(0x1ac)],_0xff4c3d);return this[_0x502383(0x1b1)][_0x502383(0x1b2)](_0x29942d,_0x3fde01),this['owl']['events'][_0x502383(0x1b3)](_0x502383(0x1cd),_0x3fde01),_0x3fde01;}catch(_0x12a024){this['owl'][_0x502383(0x1c8)]['emit'](_0x502383(0x1a7),{'error':_0x12a024});throw _0x12a024;}}async[a30_0x1ce473(0x1ad)](){const _0x55b64d=a30_0x1ce473;try{if(!this[_0x55b64d(0x1ac)][_0x55b64d(0x1c3)]())throw new Error(_0x55b64d(0x1bc));const _0x14a095=await this[_0x55b64d(0x1ac)][_0x55b64d(0x1c8)]['request'](_0x55b64d(0x1b6),{});for(let _0x4062c3=0x0;_0x4062c3<_0x14a095[_0x55b64d(0x1aa)];_0x4062c3++){const _0x3442aa=new Order(this[_0x55b64d(0x1ac)],_0x14a095[_0x4062c3]);this[_0x55b64d(0x1b1)][_0x55b64d(0x1b2)](_0x3442aa['id'],_0x3442aa);}return this[_0x55b64d(0x1ac)][_0x55b64d(0x1c8)]['emit'](_0x55b64d(0x1c1),this[_0x55b64d(0x1b1)]['values']()),this['cache'][_0x55b64d(0x1bb)]();}catch(_0x3685d4){this[_0x55b64d(0x1ac)][_0x55b64d(0x1c8)]['emit']('order.error',{'error':_0x3685d4});throw _0x3685d4;}}async[a30_0x1ce473(0x1ab)](_0x307e07){const _0x185158=a30_0x1ce473;try{if(!this[_0x185158(0x1ac)][_0x185158(0x1c3)]())throw new Error(_0x185158(0x1bc));const _0x19cd30=await this['owl'][_0x185158(0x1c8)][_0x185158(0x1cc)](_0x185158(0x1a9),_0x307e07);for(let _0x7ea32a=0x0;_0x7ea32a<_0x19cd30[_0x185158(0x1aa)];_0x7ea32a++){const _0x545cb1=new Order(this[_0x185158(0x1ac)],_0x19cd30[_0x7ea32a]);this[_0x185158(0x1b1)][_0x185158(0x1b2)](_0x545cb1['id'],_0x545cb1);}return this[_0x185158(0x1ac)][_0x185158(0x1c8)][_0x185158(0x1b3)](_0x185158(0x1cb),_0x19cd30),_0x19cd30;}catch(_0xf6b1e){this['owl'][_0x185158(0x1c8)][_0x185158(0x1b3)](_0x185158(0x1a7),{'error':_0xf6b1e});throw _0xf6b1e;}}async['new'](_0x92194d){const _0x5c6b76=a30_0x1ce473;try{if(!this[_0x5c6b76(0x1ac)][_0x5c6b76(0x1c3)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x1b1e29=await this[_0x5c6b76(0x1ac)]['events']['request'](_0x5c6b76(0x1c5),{'order':_0x92194d});_0x92194d['id']=_0x1b1e29;const _0x50e2b9=new Order(this[_0x5c6b76(0x1ac)],_0x92194d);return this[_0x5c6b76(0x1b1)][_0x5c6b76(0x1b2)](_0x50e2b9['id'],_0x50e2b9),_0x50e2b9;}catch(_0x76e0c2){this[_0x5c6b76(0x1ac)][_0x5c6b76(0x1c8)][_0x5c6b76(0x1b3)]('order.error',{'error':_0x76e0c2});throw _0x76e0c2;}}async[a30_0x1ce473(0x1c2)](_0x4f02a4,_0x190869){const _0x49c640=a30_0x1ce473;try{if(!this[_0x49c640(0x1ac)]['tokenIsValide']())throw new Error(_0x49c640(0x1bc));await this[_0x49c640(0x1ac)][_0x49c640(0x1c8)]['request'](_0x49c640(0x1bf),_0x190869)[_0x49c640(0x1ca)](_0x3ea531=>{const _0xc3cf54=_0x49c640;this[_0xc3cf54(0x1b1)][_0xc3cf54(0x1b2)](_0x4f02a4,_0x3ea531);});}catch(_0x6dcf40){this[_0x49c640(0x1ac)][_0x49c640(0x1c8)][_0x49c640(0x1b3)](_0x49c640(0x1a7),{'error':_0x6dcf40});throw _0x6dcf40;}}async[a30_0x1ce473(0x1c9)](_0x1af863){const _0x4a1849=a30_0x1ce473;try{if(!this[_0x4a1849(0x1ac)][_0x4a1849(0x1c3)]())throw new Error(_0x4a1849(0x1bc));await this['owl'][_0x4a1849(0x1c8)]['emit'](_0x4a1849(0x1c0),{'id':_0x1af863}),this[_0x4a1849(0x1b1)][_0x4a1849(0x1c9)](_0x1af863);}catch(_0x2f433a){this[_0x4a1849(0x1ac)][_0x4a1849(0x1c8)][_0x4a1849(0x1b3)]('order.error',{'error':_0x2f433a});throw _0x2f433a;}}}
1
+ function a41_0x139d(_0x7dc955,_0x5c76d0){_0x7dc955=_0x7dc955-0x1be;const _0x28da24=a41_0x28da();let _0x139def=_0x28da24[_0x7dc955];return _0x139def;}const a41_0x2cfe11=a41_0x139d;(function(_0x55f21b,_0x38dc12){const _0x50131e=a41_0x139d,_0xf9a011=_0x55f21b();while(!![]){try{const _0x304f68=parseInt(_0x50131e(0x1c5))/0x1+-parseInt(_0x50131e(0x1d3))/0x2*(-parseInt(_0x50131e(0x1c1))/0x3)+parseInt(_0x50131e(0x1c4))/0x4*(parseInt(_0x50131e(0x1c3))/0x5)+-parseInt(_0x50131e(0x1cf))/0x6+-parseInt(_0x50131e(0x1d2))/0x7*(-parseInt(_0x50131e(0x1d8))/0x8)+-parseInt(_0x50131e(0x1d6))/0x9+parseInt(_0x50131e(0x1c7))/0xa;if(_0x304f68===_0x38dc12)break;else _0xf9a011['push'](_0xf9a011['shift']());}catch(_0x11f42e){_0xf9a011['push'](_0xf9a011['shift']());}}}(a41_0x28da,0x9d179));import{Manager}from'../core/Manager.js';function a41_0x28da(){const _0x217b4d=['fetch','fetchAll','set','some','cache','order.updated','order.read.all','order.read','order.read.some','has','231HQCKuq','get','5TNCxuW','998312hhXtXr','691491GaSnnG','length','3308580XKmGaF','delete','order.cached','owl','emit','000001:\x20Invalid\x20Token.','request','order.error','2218068SUIFcL','events','tokenIsValide','46522VdSZgq','7658YoFNqI','order.created','values','5580837MYqsuC','then','80QNxNEY','order.cached.all'];a41_0x28da=function(){return _0x217b4d;};return a41_0x28da();}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async[a41_0x2cfe11(0x1da)](_0x2297c2){const _0x49df88=a41_0x2cfe11;try{if(!this[_0x49df88(0x1ca)][_0x49df88(0x1d1)]())throw new Error(_0x49df88(0x1cc));if(this['cache'][_0x49df88(0x1c0)](_0x2297c2))return this[_0x49df88(0x1de)][_0x49df88(0x1c2)](_0x2297c2);const _0x376ef9=await this[_0x49df88(0x1ca)][_0x49df88(0x1d0)]['request'](_0x49df88(0x1be),{'id':_0x2297c2}),_0x4a4c2c=new Order(this['owl'],_0x376ef9);return this['cache']['set'](_0x2297c2,_0x4a4c2c),this[_0x49df88(0x1ca)]['events'][_0x49df88(0x1cb)](_0x49df88(0x1c9),_0x4a4c2c),_0x4a4c2c;}catch(_0xab1fd){this[_0x49df88(0x1ca)][_0x49df88(0x1d0)]['emit'](_0x49df88(0x1ce),{'error':_0xab1fd});throw _0xab1fd;}}async[a41_0x2cfe11(0x1db)](){const _0x5eeb08=a41_0x2cfe11;try{if(!this[_0x5eeb08(0x1ca)][_0x5eeb08(0x1d1)]())throw new Error(_0x5eeb08(0x1cc));const _0x1ba5f0=await this[_0x5eeb08(0x1ca)]['events'][_0x5eeb08(0x1cd)](_0x5eeb08(0x1e0),{});for(let _0x245860=0x0;_0x245860<_0x1ba5f0[_0x5eeb08(0x1c6)];_0x245860++){const _0x44a749=new Order(this['owl'],_0x1ba5f0[_0x245860]);this[_0x5eeb08(0x1de)][_0x5eeb08(0x1dc)](_0x44a749['id'],_0x44a749);}return this['owl']['events']['emit'](_0x5eeb08(0x1d9),this[_0x5eeb08(0x1de)][_0x5eeb08(0x1d5)]()),this[_0x5eeb08(0x1de)][_0x5eeb08(0x1d5)]();}catch(_0x5c1d18){this['owl'][_0x5eeb08(0x1d0)]['emit'](_0x5eeb08(0x1ce),{'error':_0x5c1d18});throw _0x5c1d18;}}async[a41_0x2cfe11(0x1dd)](_0x4d98fa){const _0x2d4b18=a41_0x2cfe11;try{if(!this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d1)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x3ed761=await this['owl'][_0x2d4b18(0x1d0)][_0x2d4b18(0x1cd)](_0x2d4b18(0x1bf),_0x4d98fa);for(let _0x21775a=0x0;_0x21775a<_0x3ed761[_0x2d4b18(0x1c6)];_0x21775a++){const _0x10e6e8=new Order(this[_0x2d4b18(0x1ca)],_0x3ed761[_0x21775a]);this[_0x2d4b18(0x1de)][_0x2d4b18(0x1dc)](_0x10e6e8['id'],_0x10e6e8);}return this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d0)]['emit']('order.cached.some',_0x3ed761),_0x3ed761;}catch(_0x3d409e){this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d0)]['emit'](_0x2d4b18(0x1ce),{'error':_0x3d409e});throw _0x3d409e;}}async['new'](_0x2fdc9c){const _0x5b52ca=a41_0x2cfe11;try{if(!this[_0x5b52ca(0x1ca)]['tokenIsValide']())throw new Error(_0x5b52ca(0x1cc));const _0x357a1a=await this[_0x5b52ca(0x1ca)]['events'][_0x5b52ca(0x1cd)](_0x5b52ca(0x1d4),{'order':_0x2fdc9c});_0x2fdc9c['id']=_0x357a1a;const _0x49fca1=new Order(this[_0x5b52ca(0x1ca)],_0x2fdc9c);return this[_0x5b52ca(0x1de)]['set'](_0x49fca1['id'],_0x49fca1),_0x49fca1;}catch(_0x3f3e92){this[_0x5b52ca(0x1ca)][_0x5b52ca(0x1d0)][_0x5b52ca(0x1cb)](_0x5b52ca(0x1ce),{'error':_0x3f3e92});throw _0x3f3e92;}}async['modify'](_0x12725d,_0x5f5aa9){const _0x36d853=a41_0x2cfe11;try{if(!this[_0x36d853(0x1ca)][_0x36d853(0x1d1)]())throw new Error('000001:\x20Invalid\x20Token.');await this['owl'][_0x36d853(0x1d0)]['request'](_0x36d853(0x1df),_0x5f5aa9)[_0x36d853(0x1d7)](_0x5f55f9=>{const _0x20f766=_0x36d853;this[_0x20f766(0x1de)][_0x20f766(0x1dc)](_0x12725d,_0x5f55f9);});}catch(_0x42a323){this['owl'][_0x36d853(0x1d0)][_0x36d853(0x1cb)](_0x36d853(0x1ce),{'error':_0x42a323});throw _0x42a323;}}async[a41_0x2cfe11(0x1c8)](_0x1784df){const _0x5a609d=a41_0x2cfe11;try{if(!this[_0x5a609d(0x1ca)][_0x5a609d(0x1d1)]())throw new Error(_0x5a609d(0x1cc));await this[_0x5a609d(0x1ca)]['events'][_0x5a609d(0x1cb)]('order.deleted',{'id':_0x1784df}),this[_0x5a609d(0x1de)][_0x5a609d(0x1c8)](_0x1784df);}catch(_0x1da904){this['owl'][_0x5a609d(0x1d0)][_0x5a609d(0x1cb)](_0x5a609d(0x1ce),{'error':_0x1da904});throw _0x1da904;}}}
@@ -1 +1 @@
1
- const a31_0x439174=a31_0x5f50;(function(_0x48b5db,_0x37c88b){const _0x20fe65=a31_0x5f50,_0x319671=_0x48b5db();while(!![]){try{const _0x4bc4d3=-parseInt(_0x20fe65(0xe9))/0x1+-parseInt(_0x20fe65(0xdf))/0x2+-parseInt(_0x20fe65(0xdd))/0x3+parseInt(_0x20fe65(0xeb))/0x4*(parseInt(_0x20fe65(0xf1))/0x5)+-parseInt(_0x20fe65(0xee))/0x6+-parseInt(_0x20fe65(0xe7))/0x7+-parseInt(_0x20fe65(0xe6))/0x8*(-parseInt(_0x20fe65(0xd6))/0x9);if(_0x4bc4d3===_0x37c88b)break;else _0x319671['push'](_0x319671['shift']());}catch(_0x20badb){_0x319671['push'](_0x319671['shift']());}}}(a31_0x408e,0x1efd5));import{Manager}from'../core/Manager.js';import{Preparation}from'../entities/Preparation.js';function a31_0x408e(){const _0x312d62=['cache','preparation.error','preparation.cached','000001:\x20Invalid\x20Token.','preparation.read.all','delete','57808agTSEt','460292eHHsMC','fetch','116095yLaCGn','preparation.read','136ZuqFEO','preparation.created','preparation.updated','1375902CLmjmt','fetchAll','tokenIsValide','19060wsOQul','request','emit','owl','preparation.cached.all','711geAXlK','preparation.deleted','modify','get','set','events','values','152694FghvOb','has','222926vYWLbi'];a31_0x408e=function(){return _0x312d62;};return a31_0x408e();}function a31_0x5f50(_0x59b530,_0x268b7f){_0x59b530=_0x59b530-0xd2;const _0x408e02=a31_0x408e();let _0x5f5012=_0x408e02[_0x59b530];return _0x5f5012;}export class PreparationManager extends Manager{async[a31_0x439174(0xe8)](_0x38d031){const _0x13b056=a31_0x439174;try{if(!this[_0x13b056(0xd4)][_0x13b056(0xf0)]())throw new Error(_0x13b056(0xe3));if(this[_0x13b056(0xe0)][_0x13b056(0xde)](_0x38d031))return this['cache'][_0x13b056(0xd9)](_0x38d031);const _0x22a314=await this[_0x13b056(0xd4)][_0x13b056(0xdb)][_0x13b056(0xd2)](_0x13b056(0xea),{'id':_0x38d031}),_0x34fab2=new Preparation(this[_0x13b056(0xd4)],_0x22a314);return this['cache']['set'](_0x38d031,_0x34fab2),this[_0x13b056(0xd4)][_0x13b056(0xdb)][_0x13b056(0xd3)](_0x13b056(0xe2),_0x34fab2),_0x34fab2;}catch(_0x3f372a){this[_0x13b056(0xd4)][_0x13b056(0xdb)][_0x13b056(0xd3)](_0x13b056(0xe1),{'error':_0x3f372a});throw _0x3f372a;}}async[a31_0x439174(0xef)](){const _0x5454fc=a31_0x439174;try{if(!this[_0x5454fc(0xd4)]['tokenIsValide']())throw new Error(_0x5454fc(0xe3));const _0x165c96=await this['owl'][_0x5454fc(0xdb)][_0x5454fc(0xd2)](_0x5454fc(0xe4),{});for(let _0x409681=0x0;_0x409681<_0x165c96['length'];_0x409681++){const _0x54224c=new Preparation(this[_0x5454fc(0xd4)],_0x165c96[_0x409681]);this['cache'][_0x5454fc(0xda)](_0x54224c['id'],_0x54224c);}return this[_0x5454fc(0xd4)][_0x5454fc(0xdb)][_0x5454fc(0xd3)](_0x5454fc(0xd5),this[_0x5454fc(0xe0)][_0x5454fc(0xdc)]()),this[_0x5454fc(0xe0)]['values']();}catch(_0x1a4b7e){this[_0x5454fc(0xd4)][_0x5454fc(0xdb)][_0x5454fc(0xd3)](_0x5454fc(0xe1),{'error':_0x1a4b7e});throw _0x1a4b7e;}}async['some'](_0x55303f){const _0x55853d=a31_0x439174;try{if(!this[_0x55853d(0xd4)][_0x55853d(0xf0)]())throw new Error(_0x55853d(0xe3));const _0x3bbab7=await this[_0x55853d(0xd4)]['events'][_0x55853d(0xd2)]('preparation.read.some',_0x55303f);for(let _0x592ad6=0x0;_0x592ad6<_0x3bbab7['length'];_0x592ad6++){const _0x2bb385=new Preparation(this[_0x55853d(0xd4)],_0x3bbab7[_0x592ad6]);this['cache'][_0x55853d(0xda)](_0x2bb385['id'],_0x2bb385);}return this['owl']['events'][_0x55853d(0xd3)]('preparation.cached.some',_0x3bbab7),_0x3bbab7;}catch(_0x295b37){this[_0x55853d(0xd4)][_0x55853d(0xdb)]['emit']('preparation.error',{'error':_0x295b37});throw _0x295b37;}}async['new'](_0x192f59){const _0x17123a=a31_0x439174;try{if(!this[_0x17123a(0xd4)][_0x17123a(0xf0)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x2695c6=await this[_0x17123a(0xd4)][_0x17123a(0xdb)]['request'](_0x17123a(0xec),{'preparation':_0x192f59});_0x192f59['id']=_0x2695c6;const _0x20a4d5=new Preparation(this[_0x17123a(0xd4)],_0x192f59);return this['cache']['set'](_0x20a4d5['id'],_0x20a4d5),_0x20a4d5;}catch(_0x49d7ef){this['owl'][_0x17123a(0xdb)]['emit'](_0x17123a(0xe1),{'error':_0x49d7ef});throw _0x49d7ef;}}async[a31_0x439174(0xd8)](_0x476b74,_0x599b61){const _0x1ce4b2=a31_0x439174;try{if(!this[_0x1ce4b2(0xd4)][_0x1ce4b2(0xf0)]())throw new Error(_0x1ce4b2(0xe3));await this[_0x1ce4b2(0xd4)][_0x1ce4b2(0xdb)][_0x1ce4b2(0xd2)](_0x1ce4b2(0xed),_0x599b61)['then'](_0x2da7a3=>{const _0x8ec0e7=_0x1ce4b2;this[_0x8ec0e7(0xe0)][_0x8ec0e7(0xda)](_0x476b74,_0x2da7a3);});}catch(_0x20134d){this[_0x1ce4b2(0xd4)][_0x1ce4b2(0xdb)][_0x1ce4b2(0xd3)](_0x1ce4b2(0xe1),{'error':_0x20134d});throw _0x20134d;}}async['delete'](_0x209154){const _0x57b80f=a31_0x439174;try{if(!this[_0x57b80f(0xd4)]['tokenIsValide']())throw new Error(_0x57b80f(0xe3));await this[_0x57b80f(0xd4)][_0x57b80f(0xdb)]['emit'](_0x57b80f(0xd7),{'id':_0x209154}),this['cache'][_0x57b80f(0xe5)](_0x209154);}catch(_0x4af664){this['owl'][_0x57b80f(0xdb)]['emit'](_0x57b80f(0xe1),{'error':_0x4af664});throw _0x4af664;}}}
1
+ function a42_0x2c3b(_0x4de0cd,_0x725009){_0x4de0cd=_0x4de0cd-0x95;const _0x27266a=a42_0x2726();let _0x2c3b6a=_0x27266a[_0x4de0cd];return _0x2c3b6a;}const a42_0x143734=a42_0x2c3b;(function(_0x56a787,_0x1c1882){const _0x2b2f1c=a42_0x2c3b,_0x45e67b=_0x56a787();while(!![]){try{const _0x2d3e01=-parseInt(_0x2b2f1c(0xaf))/0x1*(-parseInt(_0x2b2f1c(0x99))/0x2)+-parseInt(_0x2b2f1c(0xb3))/0x3+parseInt(_0x2b2f1c(0x95))/0x4*(-parseInt(_0x2b2f1c(0xab))/0x5)+parseInt(_0x2b2f1c(0xa1))/0x6+-parseInt(_0x2b2f1c(0xa3))/0x7+parseInt(_0x2b2f1c(0xaa))/0x8*(-parseInt(_0x2b2f1c(0x9d))/0x9)+parseInt(_0x2b2f1c(0x97))/0xa;if(_0x2d3e01===_0x1c1882)break;else _0x45e67b['push'](_0x45e67b['shift']());}catch(_0x3ec4eb){_0x45e67b['push'](_0x45e67b['shift']());}}}(a42_0x2726,0x4bc69));import{Manager}from'../core/Manager.js';function a42_0x2726(){const _0x46948d=['151687FAjOJn','some','get','preparation.updated','3414kqmRkf','preparation.read','cache','34172jaXbOB','preparation.read.some','8892870bpMsZW','length','2KrJRgd','values','preparation.cached.all','request','117VHOSpv','owl','events','fetch','2520744vfHFod','modify','3633980fSIxmV','emit','preparation.cached.some','preparation.error','tokenIsValide','set','preparation.created','366936aUJOqM','20CBHTTR','new','000001:\x20Invalid\x20Token.','preparation.deleted'];a42_0x2726=function(){return _0x46948d;};return a42_0x2726();}import{Preparation}from'../entities/Preparation.js';export class PreparationManager extends Manager{async[a42_0x143734(0xa0)](_0x840e86){const _0x46f770=a42_0x143734;try{if(!this['owl'][_0x46f770(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x46f770(0xb5)]['has'](_0x840e86))return this[_0x46f770(0xb5)][_0x46f770(0xb1)](_0x840e86);const _0x4b02d3=await this[_0x46f770(0x9e)][_0x46f770(0x9f)][_0x46f770(0x9c)](_0x46f770(0xb4),{'id':_0x840e86}),_0x135687=new Preparation(this[_0x46f770(0x9e)],_0x4b02d3);return this['cache']['set'](_0x840e86,_0x135687),this[_0x46f770(0x9e)]['events'][_0x46f770(0xa4)]('preparation.cached',_0x135687),_0x135687;}catch(_0x45cd8a){this['owl'][_0x46f770(0x9f)]['emit']('preparation.error',{'error':_0x45cd8a});throw _0x45cd8a;}}async['fetchAll'](){const _0xcf09da=a42_0x143734;try{if(!this[_0xcf09da(0x9e)][_0xcf09da(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4d650e=await this[_0xcf09da(0x9e)][_0xcf09da(0x9f)][_0xcf09da(0x9c)]('preparation.read.all',{});for(let _0x34985f=0x0;_0x34985f<_0x4d650e[_0xcf09da(0x98)];_0x34985f++){const _0x328fd7=new Preparation(this[_0xcf09da(0x9e)],_0x4d650e[_0x34985f]);this[_0xcf09da(0xb5)][_0xcf09da(0xa8)](_0x328fd7['id'],_0x328fd7);}return this['owl']['events'][_0xcf09da(0xa4)](_0xcf09da(0x9b),this[_0xcf09da(0xb5)][_0xcf09da(0x9a)]()),this['cache'][_0xcf09da(0x9a)]();}catch(_0x27f17b){this['owl'][_0xcf09da(0x9f)][_0xcf09da(0xa4)](_0xcf09da(0xa6),{'error':_0x27f17b});throw _0x27f17b;}}async[a42_0x143734(0xb0)](_0x3e0162){const _0xaa0c88=a42_0x143734;try{if(!this[_0xaa0c88(0x9e)][_0xaa0c88(0xa7)]())throw new Error(_0xaa0c88(0xad));const _0xf2c00a=await this[_0xaa0c88(0x9e)][_0xaa0c88(0x9f)][_0xaa0c88(0x9c)](_0xaa0c88(0x96),_0x3e0162);for(let _0x1891ba=0x0;_0x1891ba<_0xf2c00a['length'];_0x1891ba++){const _0x4b83af=new Preparation(this[_0xaa0c88(0x9e)],_0xf2c00a[_0x1891ba]);this[_0xaa0c88(0xb5)]['set'](_0x4b83af['id'],_0x4b83af);}return this[_0xaa0c88(0x9e)][_0xaa0c88(0x9f)][_0xaa0c88(0xa4)](_0xaa0c88(0xa5),_0xf2c00a),_0xf2c00a;}catch(_0x519400){this['owl'][_0xaa0c88(0x9f)][_0xaa0c88(0xa4)]('preparation.error',{'error':_0x519400});throw _0x519400;}}async[a42_0x143734(0xac)](_0x3910f9){const _0x1b188c=a42_0x143734;try{if(!this[_0x1b188c(0x9e)][_0x1b188c(0xa7)]())throw new Error(_0x1b188c(0xad));const _0x1b2ec4=await this[_0x1b188c(0x9e)][_0x1b188c(0x9f)][_0x1b188c(0x9c)](_0x1b188c(0xa9),{'preparation':_0x3910f9});_0x3910f9['id']=_0x1b2ec4;const _0x564760=new Preparation(this[_0x1b188c(0x9e)],_0x3910f9);return this['cache'][_0x1b188c(0xa8)](_0x564760['id'],_0x564760),_0x564760;}catch(_0x473c2e){this['owl']['events'][_0x1b188c(0xa4)](_0x1b188c(0xa6),{'error':_0x473c2e});throw _0x473c2e;}}async[a42_0x143734(0xa2)](_0x42aa4c,_0x34cd87){const _0x35e03f=a42_0x143734;try{if(!this[_0x35e03f(0x9e)][_0x35e03f(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events'][_0x35e03f(0x9c)](_0x35e03f(0xb2),_0x34cd87)['then'](_0xa13750=>{const _0x1df71c=_0x35e03f;this['cache'][_0x1df71c(0xa8)](_0x42aa4c,_0xa13750);});}catch(_0x1639a8){this[_0x35e03f(0x9e)][_0x35e03f(0x9f)]['emit']('preparation.error',{'error':_0x1639a8});throw _0x1639a8;}}async['delete'](_0x555ce6){const _0x4de43d=a42_0x143734;try{if(!this[_0x4de43d(0x9e)][_0x4de43d(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4de43d(0x9e)][_0x4de43d(0x9f)][_0x4de43d(0xa4)](_0x4de43d(0xae),{'id':_0x555ce6}),this[_0x4de43d(0xb5)]['delete'](_0x555ce6);}catch(_0x18c226){this[_0x4de43d(0x9e)][_0x4de43d(0x9f)][_0x4de43d(0xa4)]('preparation.error',{'error':_0x18c226});throw _0x18c226;}}}