owl-progiciel 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/api/routes/client.routes.js +1 -1
  2. package/dist/api/routes/item.routes.js +1 -1
  3. package/dist/api/routes/order.routes.js +1 -1
  4. package/dist/api/routes/preparation.routes.js +1 -1
  5. package/dist/api/routes/purchase.routes.js +1 -1
  6. package/dist/api/routes/reception.routes.js +1 -1
  7. package/dist/api/routes/stock.routes.js +1 -1
  8. package/dist/api/routes/supplier.routes.js +1 -1
  9. package/dist/api/routes/tax.routes.js +1 -1
  10. package/dist/api/routes/user.routes.js +1 -1
  11. package/dist/api/server.js +1 -1
  12. package/dist/core/Entity.js +1 -1
  13. package/dist/core/EventBus.js +1 -1
  14. package/dist/core/EventsDatabase.js +1 -1
  15. package/dist/core/Manager.js +1 -1
  16. package/dist/core/events/ClientEvents.js +1 -1
  17. package/dist/core/events/ItemEvents.js +1 -1
  18. package/dist/core/events/OrderEvents.js +1 -1
  19. package/dist/core/events/PreparationEvents.js +1 -1
  20. package/dist/core/events/PurchaseEvents.js +1 -1
  21. package/dist/core/events/ReceptionEvents.js +1 -1
  22. package/dist/core/events/StockEvents.js +1 -1
  23. package/dist/core/events/SupplierEvents.js +1 -1
  24. package/dist/core/events/TaxEvents.js +1 -1
  25. package/dist/core/events/UserEvents.js +1 -1
  26. package/dist/entities/Client.js +1 -1
  27. package/dist/entities/Item.js +1 -1
  28. package/dist/entities/Order.js +1 -1
  29. package/dist/entities/Preparation.js +1 -1
  30. package/dist/entities/Purchase.js +1 -1
  31. package/dist/entities/Reception.js +1 -1
  32. package/dist/entities/Stock.js +1 -1
  33. package/dist/entities/Supplier.js +1 -1
  34. package/dist/entities/Tax.js +1 -1
  35. package/dist/entities/User.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/managers/ClientManager.js +1 -1
  38. package/dist/managers/ItemManager.js +1 -1
  39. package/dist/managers/OrderManager.js +1 -1
  40. package/dist/managers/PreparationManager.js +1 -1
  41. package/dist/managers/PurchaseManager.js +1 -1
  42. package/dist/managers/ReceptionManager.js +1 -1
  43. package/dist/managers/StockManager.js +1 -1
  44. package/dist/managers/SupplierManager.js +1 -1
  45. package/dist/managers/TaxManager.js +1 -1
  46. package/dist/managers/UserManager.js +1 -1
  47. package/dist/owl/OWLClient.js +1 -1
  48. package/package.json +4 -2
@@ -1 +1 @@
1
- function a17_0x31a2(){const _0x122eb8=['2exRPut','ORDER_CREATED','182orqxtZ','events','12492HEiPXE','ORDER_READ','order.deleted','application/json','onRequest','API\x20Error:\x20','5761096QtyQYO','stringify','22533104fubGJn','70GWNiSP','2256837LUVpwh','ADMIN','1343835GGxsIJ','order.updated','/search','http://localhost:5001/orders','POST','hasPermission','DELETE','946803HcOXxw','getCurrentUser','order.read.all','1675AyLHgv','210001:\x20Action\x20not\x20allowed.','statusText','210002:\x20Action\x20not\x20allowed.','json','ORDER_ALL','210003:\x20Action\x20not\x20allowed.','status','45288cblsca'];a17_0x31a2=function(){return _0x122eb8;};return a17_0x31a2();}const a17_0x10c255=a17_0xbdc3;(function(_0x39d548,_0x1bb1ac){const _0x3c7a8f=a17_0xbdc3,_0x3d002f=_0x39d548();while(!![]){try{const _0x5e1b01=-parseInt(_0x3c7a8f(0xd4))/0x1+parseInt(_0x3c7a8f(0xbd))/0x2*(-parseInt(_0x3c7a8f(0xcb))/0x3)+-parseInt(_0x3c7a8f(0xc7))/0x4+parseInt(_0x3c7a8f(0xd7))/0x5*(parseInt(_0x3c7a8f(0xc1))/0x6)+parseInt(_0x3c7a8f(0xbf))/0x7*(parseInt(_0x3c7a8f(0xbc))/0x8)+-parseInt(_0x3c7a8f(0xcd))/0x9*(-parseInt(_0x3c7a8f(0xca))/0xa)+parseInt(_0x3c7a8f(0xc9))/0xb;if(_0x5e1b01===_0x1bb1ac)break;else _0x3d002f['push'](_0x3d002f['shift']());}catch(_0x448a21){_0x3d002f['push'](_0x3d002f['shift']());}}}(a17_0x31a2,0xc30f9));const API_BASE=a17_0x10c255(0xd0);function a17_0xbdc3(_0x5846ee,_0x4d93bb){_0x5846ee=_0x5846ee-0xb9;const _0x31a2d3=a17_0x31a2();let _0xbdc3cd=_0x31a2d3[_0x5846ee];return _0xbdc3cd;}export default function bindOrderEvents(_0x33e5e7){const _0x5877c1=a17_0x10c255;_0x33e5e7[_0x5877c1(0xc0)]['onRequest']('order.created',async _0x364337=>{const _0x10eab9=_0x5877c1;if(!_0x33e5e7['getCurrentUser']()[_0x10eab9(0xd2)](_0x10eab9(0xcc))&&!_0x33e5e7[_0x10eab9(0xd5)]()[_0x10eab9(0xd2)]('ORDER_ALL')&&!_0x33e5e7[_0x10eab9(0xd5)]()[_0x10eab9(0xd2)](_0x10eab9(0xbe)))throw new Error(_0x10eab9(0xd8));const _0x596e58=await fetch(''+API_BASE,{'method':_0x10eab9(0xd1),'headers':{'Content-Type':'application/json'},'body':JSON[_0x10eab9(0xc8)](_0x364337['order'])});if(!_0x596e58['ok'])throw new Error(_0x10eab9(0xc6)+_0x596e58[_0x10eab9(0xd9)]);const _0x41de34=await _0x596e58[_0x10eab9(0xdb)]();return _0x41de34['id'];}),_0x33e5e7[_0x5877c1(0xc0)][_0x5877c1(0xc5)]('order.read',async({id:_0x13af9b})=>{const _0x53ddfc=_0x5877c1;if(!_0x33e5e7[_0x53ddfc(0xd5)]()['hasPermission']('ADMIN')&&!_0x33e5e7[_0x53ddfc(0xd5)]()[_0x53ddfc(0xd2)](_0x53ddfc(0xb9))&&!_0x33e5e7[_0x53ddfc(0xd5)]()[_0x53ddfc(0xd2)]('ORDER_READ'))throw new Error(_0x53ddfc(0xda));const _0x2b9464=await fetch(API_BASE+'/'+_0x13af9b);if(!_0x2b9464['ok'])throw new Error('API\x20Error:\x20'+_0x2b9464[_0x53ddfc(0xd9)]);return await _0x2b9464[_0x53ddfc(0xdb)]();}),_0x33e5e7[_0x5877c1(0xc0)][_0x5877c1(0xc5)](_0x5877c1(0xd6),async()=>{const _0x29fa52=_0x5877c1;if(!_0x33e5e7[_0x29fa52(0xd5)]()['hasPermission'](_0x29fa52(0xcc))&&!_0x33e5e7[_0x29fa52(0xd5)]()[_0x29fa52(0xd2)](_0x29fa52(0xb9))&&!_0x33e5e7[_0x29fa52(0xd5)]()[_0x29fa52(0xd2)](_0x29fa52(0xc2)))throw new Error('210002:\x20Action\x20not\x20allowed.');const _0x224369=await fetch(''+API_BASE);if(!_0x224369['ok'])throw new Error(_0x29fa52(0xc6)+_0x224369[_0x29fa52(0xd9)]);return await _0x224369[_0x29fa52(0xdb)]();}),_0x33e5e7[_0x5877c1(0xc0)][_0x5877c1(0xc5)]('order.read.some',async _0x517d07=>{const _0x327e9d=_0x5877c1;if(!_0x33e5e7[_0x327e9d(0xd5)]()['hasPermission']('ADMIN')&&!_0x33e5e7[_0x327e9d(0xd5)]()['hasPermission'](_0x327e9d(0xb9))&&!_0x33e5e7[_0x327e9d(0xd5)]()['hasPermission'](_0x327e9d(0xc2)))throw new Error(_0x327e9d(0xda));const _0x4d92fa=await fetch(API_BASE+_0x327e9d(0xcf),{'method':_0x327e9d(0xd1),'headers':{'Content-Type':'application/json'},'body':JSON[_0x327e9d(0xc8)](_0x517d07)});if(!_0x4d92fa['ok'])throw new Error(_0x327e9d(0xc6)+_0x4d92fa[_0x327e9d(0xd9)]);return await _0x4d92fa[_0x327e9d(0xdb)]();}),_0x33e5e7[_0x5877c1(0xc0)][_0x5877c1(0xc5)](_0x5877c1(0xce),async _0x14331e=>{const _0x52aa2b=_0x5877c1;if(!_0x33e5e7[_0x52aa2b(0xd5)]()['hasPermission'](_0x52aa2b(0xcc))&&!_0x33e5e7[_0x52aa2b(0xd5)]()['hasPermission'](_0x52aa2b(0xb9))&&!_0x33e5e7[_0x52aa2b(0xd5)]()['hasPermission']('ORDER_UPDATED'))throw new Error(_0x52aa2b(0xba));const {where:_0x34882e,..._0x32cbe9}=_0x14331e,_0x10b6a2=await fetch(API_BASE+'/'+_0x34882e['id'],{'method':'PUT','headers':{'Content-Type':_0x52aa2b(0xc4)},'body':JSON[_0x52aa2b(0xc8)](_0x32cbe9)});if(!_0x10b6a2['ok'])throw new Error(_0x52aa2b(0xc6)+_0x10b6a2[_0x52aa2b(0xd9)]);return await _0x10b6a2[_0x52aa2b(0xdb)]();}),_0x33e5e7['events']['on'](_0x5877c1(0xc3),async({id:_0x50c3a5})=>{const _0xff42d5=_0x5877c1;if(!_0x33e5e7[_0xff42d5(0xd5)]()['hasPermission'](_0xff42d5(0xcc))&&!_0x33e5e7[_0xff42d5(0xd5)]()[_0xff42d5(0xd2)](_0xff42d5(0xb9))&&!_0x33e5e7[_0xff42d5(0xd5)]()[_0xff42d5(0xd2)]('ORDER_DELETED'))throw new Error('210004:\x20Action\x20not\x20allowed.');const _0x12c6a8=await fetch(API_BASE+'/'+_0x50c3a5,{'method':_0xff42d5(0xd3)});if(!_0x12c6a8['ok']&&_0x12c6a8[_0xff42d5(0xbb)]!==0xcc)throw new Error(_0xff42d5(0xc6)+_0x12c6a8[_0xff42d5(0xd9)]);});}
1
+ (function(_0x1f2411,_0x591857){const _0x3e8c1c=a17_0x496e,_0x5cf2e4=_0x1f2411();while(!![]){try{const _0x3bed98=parseInt(_0x3e8c1c(0xf0))/0x1*(parseInt(_0x3e8c1c(0xe9))/0x2)+parseInt(_0x3e8c1c(0xe4))/0x3*(-parseInt(_0x3e8c1c(0xfe))/0x4)+-parseInt(_0x3e8c1c(0xe6))/0x5+-parseInt(_0x3e8c1c(0xe0))/0x6+parseInt(_0x3e8c1c(0xe1))/0x7+-parseInt(_0x3e8c1c(0xf6))/0x8*(parseInt(_0x3e8c1c(0xe8))/0x9)+-parseInt(_0x3e8c1c(0xef))/0xa*(-parseInt(_0x3e8c1c(0xf3))/0xb);if(_0x3bed98===_0x591857)break;else _0x5cf2e4['push'](_0x5cf2e4['shift']());}catch(_0x2f42be){_0x5cf2e4['push'](_0x5cf2e4['shift']());}}}(a17_0x2c20,0xb1694));const API_BASE='http://localhost:5001/orders';function a17_0x2c20(){const _0x5cf143=['5379jhhjUN','getCurrentUser','ORDER_UPDATED','5056064WiWjpZ','json','events','ORDER_DELETED','210003:\x20Action\x20not\x20allowed.','status','ORDER_ALL','stringify','2637196tZjbLW','ORDER_CREATED','210001:\x20Action\x20not\x20allowed.','order.read.some','ORDER_READ','PUT','1418604OsDuYD','2906239XRXWfO','hasPermission','210002:\x20Action\x20not\x20allowed.','6tbXVYY','statusText','4072220OiFQrt','POST','18yETzIF','376RLuell','application/json','API\x20Error:\x20','onRequest','ADMIN','/search','56350zXvndd','6327EjgHOl','order.read.all','order.created'];a17_0x2c20=function(){return _0x5cf143;};return a17_0x2c20();}function a17_0x496e(_0x3582d2,_0x272d32){_0x3582d2=_0x3582d2-0xdd;const _0x2c208a=a17_0x2c20();let _0x496e17=_0x2c208a[_0x3582d2];return _0x496e17;}export default function bindOrderEvents(_0x575d77){const _0x567987=a17_0x496e;_0x575d77['events'][_0x567987(0xec)](_0x567987(0xf2),async _0x57f585=>{const _0x210d87=_0x567987;if(!_0x575d77['getCurrentUser']()[_0x210d87(0xe2)](_0x210d87(0xed))&&!_0x575d77[_0x210d87(0xf4)]()[_0x210d87(0xe2)](_0x210d87(0xfc))&&!_0x575d77[_0x210d87(0xf4)]()[_0x210d87(0xe2)](_0x210d87(0xff)))throw new Error(_0x210d87(0x100));const _0x2f7c28=await fetch(''+API_BASE,{'method':_0x210d87(0xe7),'headers':{'Content-Type':_0x210d87(0xea)},'body':JSON['stringify'](_0x57f585['order'])});if(!_0x2f7c28['ok'])throw new Error(_0x210d87(0xeb)+_0x2f7c28[_0x210d87(0xe5)]);const _0x3ccc10=await _0x2f7c28[_0x210d87(0xf7)]();return _0x3ccc10['id'];}),_0x575d77[_0x567987(0xf8)][_0x567987(0xec)]('order.read',async({id:_0x3349a7})=>{const _0xe255d4=_0x567987;if(!_0x575d77[_0xe255d4(0xf4)]()[_0xe255d4(0xe2)](_0xe255d4(0xed))&&!_0x575d77[_0xe255d4(0xf4)]()[_0xe255d4(0xe2)](_0xe255d4(0xfc))&&!_0x575d77['getCurrentUser']()['hasPermission'](_0xe255d4(0xde)))throw new Error(_0xe255d4(0xe3));const _0x445ac9=await fetch(API_BASE+'/'+_0x3349a7);if(!_0x445ac9['ok'])throw new Error(_0xe255d4(0xeb)+_0x445ac9[_0xe255d4(0xe5)]);return await _0x445ac9['json']();}),_0x575d77[_0x567987(0xf8)][_0x567987(0xec)](_0x567987(0xf1),async()=>{const _0x57d1f4=_0x567987;if(!_0x575d77[_0x57d1f4(0xf4)]()[_0x57d1f4(0xe2)](_0x57d1f4(0xed))&&!_0x575d77[_0x57d1f4(0xf4)]()['hasPermission'](_0x57d1f4(0xfc))&&!_0x575d77[_0x57d1f4(0xf4)]()[_0x57d1f4(0xe2)](_0x57d1f4(0xde)))throw new Error(_0x57d1f4(0xe3));const _0x15f5b2=await fetch(''+API_BASE);if(!_0x15f5b2['ok'])throw new Error(_0x57d1f4(0xeb)+_0x15f5b2[_0x57d1f4(0xe5)]);return await _0x15f5b2['json']();}),_0x575d77[_0x567987(0xf8)]['onRequest'](_0x567987(0xdd),async _0x64b699=>{const _0x3e21d4=_0x567987;if(!_0x575d77['getCurrentUser']()['hasPermission'](_0x3e21d4(0xed))&&!_0x575d77['getCurrentUser']()[_0x3e21d4(0xe2)]('ORDER_ALL')&&!_0x575d77['getCurrentUser']()[_0x3e21d4(0xe2)](_0x3e21d4(0xde)))throw new Error(_0x3e21d4(0xe3));const _0x35b2d4=await fetch(API_BASE+_0x3e21d4(0xee),{'method':_0x3e21d4(0xe7),'headers':{'Content-Type':_0x3e21d4(0xea)},'body':JSON[_0x3e21d4(0xfd)](_0x64b699)});if(!_0x35b2d4['ok'])throw new Error(_0x3e21d4(0xeb)+_0x35b2d4[_0x3e21d4(0xe5)]);return await _0x35b2d4[_0x3e21d4(0xf7)]();}),_0x575d77[_0x567987(0xf8)][_0x567987(0xec)]('order.updated',async _0x2b4472=>{const _0x1f8f68=_0x567987;if(!_0x575d77['getCurrentUser']()[_0x1f8f68(0xe2)]('ADMIN')&&!_0x575d77[_0x1f8f68(0xf4)]()['hasPermission'](_0x1f8f68(0xfc))&&!_0x575d77[_0x1f8f68(0xf4)]()[_0x1f8f68(0xe2)](_0x1f8f68(0xf5)))throw new Error(_0x1f8f68(0xfa));const {where:_0x5b124e,..._0x4f96a8}=_0x2b4472,_0x33720b=await fetch(API_BASE+'/'+_0x5b124e['id'],{'method':_0x1f8f68(0xdf),'headers':{'Content-Type':_0x1f8f68(0xea)},'body':JSON[_0x1f8f68(0xfd)](_0x4f96a8)});if(!_0x33720b['ok'])throw new Error(_0x1f8f68(0xeb)+_0x33720b[_0x1f8f68(0xe5)]);return await _0x33720b[_0x1f8f68(0xf7)]();}),_0x575d77[_0x567987(0xf8)]['on']('order.deleted',async({id:_0x31420c})=>{const _0x46ced9=_0x567987;if(!_0x575d77[_0x46ced9(0xf4)]()['hasPermission']('ADMIN')&&!_0x575d77[_0x46ced9(0xf4)]()[_0x46ced9(0xe2)](_0x46ced9(0xfc))&&!_0x575d77[_0x46ced9(0xf4)]()[_0x46ced9(0xe2)](_0x46ced9(0xf9)))throw new Error('210004:\x20Action\x20not\x20allowed.');const _0x25114f=await fetch(API_BASE+'/'+_0x31420c,{'method':'DELETE'});if(!_0x25114f['ok']&&_0x25114f[_0x46ced9(0xfb)]!==0xcc)throw new Error(_0x46ced9(0xeb)+_0x25114f[_0x46ced9(0xe5)]);});}
@@ -1 +1 @@
1
- function a18_0xe022(){const _0x37b148=['PREPARATION_ALL','events','hasPermission','preparation.read.some','32068VOMtkc','9810000cbPTzK','721312oBzzvo','POST','preparation.created','status','ADMIN','43072kiwpnN','API\x20Error:\x20','220004:\x20Action\x20not\x20allowed.','PREPARATION_CREATED','preparation','json','PREPARATION_DELETED','http://localhost:5001/preparations','getCurrentUser','485OfYIsb','stringify','130szGYbl','application/json','220002:\x20Action\x20not\x20allowed.','219411MMaiIE','994122NgiIPQ','preparation.read.all','220003:\x20Action\x20not\x20allowed.','preparation.updated','16zFPBZZ','8749216gwvQhc','PREPARATION_READ','statusText','onRequest','PREPARATION_UPDATED'];a18_0xe022=function(){return _0x37b148;};return a18_0xe022();}const a18_0x2075cb=a18_0x51a7;(function(_0x3da149,_0x85b9ae){const _0x585cab=a18_0x51a7,_0x5d9bb2=_0x3da149();while(!![]){try{const _0x4a5671=-parseInt(_0x585cab(0x189))/0x1+parseInt(_0x585cab(0x178))/0x2*(parseInt(_0x585cab(0x173))/0x3)+-parseInt(_0x585cab(0x182))/0x4*(parseInt(_0x585cab(0x16e))/0x5)+-parseInt(_0x585cab(0x183))/0x6+parseInt(_0x585cab(0x179))/0x7+parseInt(_0x585cab(0x184))/0x8+parseInt(_0x585cab(0x174))/0x9*(parseInt(_0x585cab(0x170))/0xa);if(_0x4a5671===_0x85b9ae)break;else _0x5d9bb2['push'](_0x5d9bb2['shift']());}catch(_0x14e993){_0x5d9bb2['push'](_0x5d9bb2['shift']());}}}(a18_0xe022,0xdd0a5));function a18_0x51a7(_0x27e95e,_0x368f60){_0x27e95e=_0x27e95e-0x16e;const _0xe022a0=a18_0xe022();let _0x51a793=_0xe022a0[_0x27e95e];return _0x51a793;}const API_BASE=a18_0x2075cb(0x190);export default function bindPreparationEvents(_0x4eab50){const _0x460145=a18_0x2075cb;_0x4eab50[_0x460145(0x17f)]['onRequest'](_0x460145(0x186),async _0x39c393=>{const _0x428ea8=_0x460145;if(!_0x4eab50[_0x428ea8(0x191)]()[_0x428ea8(0x180)](_0x428ea8(0x188))&&!_0x4eab50['getCurrentUser']()[_0x428ea8(0x180)]('PREPARATION_ALL')&&!_0x4eab50['getCurrentUser']()[_0x428ea8(0x180)](_0x428ea8(0x18c)))throw new Error('220001:\x20Action\x20not\x20allowed.');const _0x47f224=await fetch(''+API_BASE,{'method':_0x428ea8(0x185),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x39c393[_0x428ea8(0x18d)])});if(!_0x47f224['ok'])throw new Error(_0x428ea8(0x18a)+_0x47f224['statusText']);const _0x18cdac=await _0x47f224[_0x428ea8(0x18e)]();return _0x18cdac['id'];}),_0x4eab50[_0x460145(0x17f)][_0x460145(0x17c)]('preparation.read',async({id:_0x4628ae})=>{const _0x1605e6=_0x460145;if(!_0x4eab50[_0x1605e6(0x191)]()[_0x1605e6(0x180)](_0x1605e6(0x188))&&!_0x4eab50[_0x1605e6(0x191)]()['hasPermission'](_0x1605e6(0x17e))&&!_0x4eab50[_0x1605e6(0x191)]()[_0x1605e6(0x180)]('PREPARATION_READ'))throw new Error('220002:\x20Action\x20not\x20allowed.');const _0x845dad=await fetch(API_BASE+'/'+_0x4628ae);if(!_0x845dad['ok'])throw new Error(_0x1605e6(0x18a)+_0x845dad[_0x1605e6(0x17b)]);return await _0x845dad[_0x1605e6(0x18e)]();}),_0x4eab50[_0x460145(0x17f)][_0x460145(0x17c)](_0x460145(0x175),async()=>{const _0x3e88d0=_0x460145;if(!_0x4eab50[_0x3e88d0(0x191)]()['hasPermission'](_0x3e88d0(0x188))&&!_0x4eab50[_0x3e88d0(0x191)]()[_0x3e88d0(0x180)](_0x3e88d0(0x17e))&&!_0x4eab50[_0x3e88d0(0x191)]()[_0x3e88d0(0x180)](_0x3e88d0(0x17a)))throw new Error(_0x3e88d0(0x172));const _0x2f4ffd=await fetch(''+API_BASE);if(!_0x2f4ffd['ok'])throw new Error('API\x20Error:\x20'+_0x2f4ffd[_0x3e88d0(0x17b)]);return await _0x2f4ffd[_0x3e88d0(0x18e)]();}),_0x4eab50['events'][_0x460145(0x17c)](_0x460145(0x181),async _0x971d03=>{const _0x567d75=_0x460145;if(!_0x4eab50[_0x567d75(0x191)]()[_0x567d75(0x180)](_0x567d75(0x188))&&!_0x4eab50[_0x567d75(0x191)]()[_0x567d75(0x180)](_0x567d75(0x17e))&&!_0x4eab50[_0x567d75(0x191)]()[_0x567d75(0x180)](_0x567d75(0x17a)))throw new Error(_0x567d75(0x172));const _0x1a218d=await fetch(API_BASE+'/search',{'method':'POST','headers':{'Content-Type':_0x567d75(0x171)},'body':JSON[_0x567d75(0x16f)](_0x971d03)});if(!_0x1a218d['ok'])throw new Error(_0x567d75(0x18a)+_0x1a218d[_0x567d75(0x17b)]);return await _0x1a218d[_0x567d75(0x18e)]();}),_0x4eab50[_0x460145(0x17f)][_0x460145(0x17c)](_0x460145(0x177),async _0x338d1e=>{const _0x1bb451=_0x460145;if(!_0x4eab50['getCurrentUser']()['hasPermission']('ADMIN')&&!_0x4eab50[_0x1bb451(0x191)]()[_0x1bb451(0x180)](_0x1bb451(0x17e))&&!_0x4eab50[_0x1bb451(0x191)]()[_0x1bb451(0x180)](_0x1bb451(0x17d)))throw new Error(_0x1bb451(0x176));const {where:_0x4b75cd,..._0x2568aa}=_0x338d1e,_0xfcec46=await fetch(API_BASE+'/'+_0x4b75cd['id'],{'method':'PUT','headers':{'Content-Type':_0x1bb451(0x171)},'body':JSON[_0x1bb451(0x16f)](_0x2568aa)});if(!_0xfcec46['ok'])throw new Error(_0x1bb451(0x18a)+_0xfcec46[_0x1bb451(0x17b)]);return await _0xfcec46[_0x1bb451(0x18e)]();}),_0x4eab50[_0x460145(0x17f)]['on']('preparation.deleted',async({id:_0x493f9c})=>{const _0x5a64cc=_0x460145;if(!_0x4eab50[_0x5a64cc(0x191)]()[_0x5a64cc(0x180)](_0x5a64cc(0x188))&&!_0x4eab50['getCurrentUser']()[_0x5a64cc(0x180)]('PREPARATION_ALL')&&!_0x4eab50[_0x5a64cc(0x191)]()[_0x5a64cc(0x180)](_0x5a64cc(0x18f)))throw new Error(_0x5a64cc(0x18b));const _0xdbf251=await fetch(API_BASE+'/'+_0x493f9c,{'method':'DELETE'});if(!_0xdbf251['ok']&&_0xdbf251[_0x5a64cc(0x187)]!==0xcc)throw new Error(_0x5a64cc(0x18a)+_0xdbf251[_0x5a64cc(0x17b)]);});}
1
+ function a18_0x866a(){const _0x120be2=['preparation.read.all','PREPARATION_ALL','http://localhost:5001/preparations','16hpcDMA','PUT','statusText','ADMIN','onRequest','908kfMuuV','status','PREPARATION_DELETED','POST','220003:\x20Action\x20not\x20allowed.','35219200ZpliAn','stringify','6LkHEAJ','hasPermission','events','PREPARATION_CREATED','preparation.created','706705rlVbLz','1438209fpNNlO','1399160zMGQwh','preparation.deleted','json','3274200anWoDo','PREPARATION_READ','getCurrentUser','220004:\x20Action\x20not\x20allowed.','9005255llPQbm','API\x20Error:\x20','preparation.updated','application/json','preparation','220002:\x20Action\x20not\x20allowed.','5142RCkipE'];a18_0x866a=function(){return _0x120be2;};return a18_0x866a();}const a18_0x4159a6=a18_0x3b83;(function(_0xeab67c,_0x709b30){const _0x2c0cd3=a18_0x3b83,_0x5aa4d4=_0xeab67c();while(!![]){try{const _0x1affaf=parseInt(_0x2c0cd3(0xdf))/0x1+-parseInt(_0x2c0cd3(0xc0))/0x2+parseInt(_0x2c0cd3(0xca))/0x3*(parseInt(_0x2c0cd3(0xd3))/0x4)+parseInt(_0x2c0cd3(0xc4))/0x5*(-parseInt(_0x2c0cd3(0xda))/0x6)+-parseInt(_0x2c0cd3(0xe1))/0x7*(parseInt(_0x2c0cd3(0xce))/0x8)+parseInt(_0x2c0cd3(0xe0))/0x9+parseInt(_0x2c0cd3(0xd8))/0xa;if(_0x1affaf===_0x709b30)break;else _0x5aa4d4['push'](_0x5aa4d4['shift']());}catch(_0x3a43d5){_0x5aa4d4['push'](_0x5aa4d4['shift']());}}}(a18_0x866a,0xe5649));function a18_0x3b83(_0x4c403f,_0x29701b){_0x4c403f=_0x4c403f-0xc0;const _0x866a9=a18_0x866a();let _0x3b839b=_0x866a9[_0x4c403f];return _0x3b839b;}const API_BASE=a18_0x4159a6(0xcd);export default function bindPreparationEvents(_0x48f84a){const _0x20b882=a18_0x4159a6;_0x48f84a['events'][_0x20b882(0xd2)](_0x20b882(0xde),async _0x25b527=>{const _0x2e812b=_0x20b882;if(!_0x48f84a['getCurrentUser']()[_0x2e812b(0xdb)](_0x2e812b(0xd1))&&!_0x48f84a[_0x2e812b(0xc2)]()[_0x2e812b(0xdb)]('PREPARATION_ALL')&&!_0x48f84a[_0x2e812b(0xc2)]()[_0x2e812b(0xdb)](_0x2e812b(0xdd)))throw new Error('220001:\x20Action\x20not\x20allowed.');const _0x524b78=await fetch(''+API_BASE,{'method':_0x2e812b(0xd6),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x25b527[_0x2e812b(0xc8)])});if(!_0x524b78['ok'])throw new Error('API\x20Error:\x20'+_0x524b78['statusText']);const _0x39b755=await _0x524b78[_0x2e812b(0xe3)]();return _0x39b755['id'];}),_0x48f84a[_0x20b882(0xdc)][_0x20b882(0xd2)]('preparation.read',async({id:_0x4c16be})=>{const _0x17cfec=_0x20b882;if(!_0x48f84a['getCurrentUser']()[_0x17cfec(0xdb)](_0x17cfec(0xd1))&&!_0x48f84a[_0x17cfec(0xc2)]()[_0x17cfec(0xdb)](_0x17cfec(0xcc))&&!_0x48f84a[_0x17cfec(0xc2)]()[_0x17cfec(0xdb)](_0x17cfec(0xc1)))throw new Error(_0x17cfec(0xc9));const _0x1dc14e=await fetch(API_BASE+'/'+_0x4c16be);if(!_0x1dc14e['ok'])throw new Error(_0x17cfec(0xc5)+_0x1dc14e[_0x17cfec(0xd0)]);return await _0x1dc14e[_0x17cfec(0xe3)]();}),_0x48f84a[_0x20b882(0xdc)][_0x20b882(0xd2)](_0x20b882(0xcb),async()=>{const _0x5a6808=_0x20b882;if(!_0x48f84a[_0x5a6808(0xc2)]()['hasPermission'](_0x5a6808(0xd1))&&!_0x48f84a['getCurrentUser']()[_0x5a6808(0xdb)](_0x5a6808(0xcc))&&!_0x48f84a[_0x5a6808(0xc2)]()[_0x5a6808(0xdb)]('PREPARATION_READ'))throw new Error(_0x5a6808(0xc9));const _0x214626=await fetch(''+API_BASE);if(!_0x214626['ok'])throw new Error(_0x5a6808(0xc5)+_0x214626[_0x5a6808(0xd0)]);return await _0x214626[_0x5a6808(0xe3)]();}),_0x48f84a[_0x20b882(0xdc)][_0x20b882(0xd2)]('preparation.read.some',async _0x245ebe=>{const _0x3914ea=_0x20b882;if(!_0x48f84a[_0x3914ea(0xc2)]()[_0x3914ea(0xdb)]('ADMIN')&&!_0x48f84a[_0x3914ea(0xc2)]()[_0x3914ea(0xdb)](_0x3914ea(0xcc))&&!_0x48f84a[_0x3914ea(0xc2)]()[_0x3914ea(0xdb)](_0x3914ea(0xc1)))throw new Error(_0x3914ea(0xc9));const _0x43cb0f=await fetch(API_BASE+'/search',{'method':_0x3914ea(0xd6),'headers':{'Content-Type':'application/json'},'body':JSON[_0x3914ea(0xd9)](_0x245ebe)});if(!_0x43cb0f['ok'])throw new Error('API\x20Error:\x20'+_0x43cb0f[_0x3914ea(0xd0)]);return await _0x43cb0f['json']();}),_0x48f84a[_0x20b882(0xdc)]['onRequest'](_0x20b882(0xc6),async _0xfd0382=>{const _0x35d95d=_0x20b882;if(!_0x48f84a[_0x35d95d(0xc2)]()[_0x35d95d(0xdb)](_0x35d95d(0xd1))&&!_0x48f84a['getCurrentUser']()[_0x35d95d(0xdb)](_0x35d95d(0xcc))&&!_0x48f84a[_0x35d95d(0xc2)]()[_0x35d95d(0xdb)]('PREPARATION_UPDATED'))throw new Error(_0x35d95d(0xd7));const {where:_0x494eef,..._0xa308c9}=_0xfd0382,_0x323faa=await fetch(API_BASE+'/'+_0x494eef['id'],{'method':_0x35d95d(0xcf),'headers':{'Content-Type':_0x35d95d(0xc7)},'body':JSON[_0x35d95d(0xd9)](_0xa308c9)});if(!_0x323faa['ok'])throw new Error('API\x20Error:\x20'+_0x323faa[_0x35d95d(0xd0)]);return await _0x323faa[_0x35d95d(0xe3)]();}),_0x48f84a[_0x20b882(0xdc)]['on'](_0x20b882(0xe2),async({id:_0x1c6ae9})=>{const _0x565a93=_0x20b882;if(!_0x48f84a[_0x565a93(0xc2)]()[_0x565a93(0xdb)]('ADMIN')&&!_0x48f84a[_0x565a93(0xc2)]()[_0x565a93(0xdb)](_0x565a93(0xcc))&&!_0x48f84a['getCurrentUser']()[_0x565a93(0xdb)](_0x565a93(0xd5)))throw new Error(_0x565a93(0xc3));const _0x31abdb=await fetch(API_BASE+'/'+_0x1c6ae9,{'method':'DELETE'});if(!_0x31abdb['ok']&&_0x31abdb[_0x565a93(0xd4)]!==0xcc)throw new Error('API\x20Error:\x20'+_0x31abdb[_0x565a93(0xd0)]);});}
@@ -1 +1 @@
1
- function a19_0x3039(){const _0x588f92=['35325JvRZLo','events','2385894XFUdYi','1469060idriqV','hasPermission','purchase.read.all','purchase.read.some','6150IFHcSZ','json','/search','purchase.read','DELETE','application/json','509bkJiQO','310001:\x20Action\x20not\x20allowed.','PURCHASE_UPDATED','310003:\x20Action\x20not\x20allowed.','126kXWyBh','310004:\x20Action\x20not\x20allowed.','status','PURCHASE_READ','ADMIN','310002:\x20Action\x20not\x20allowed.','4224520dyusrN','124952nqLspZ','PURCHASE_ALL','getCurrentUser','purchase.deleted','onRequest','624789CNvbPj','purchase','POST','API\x20Error:\x20','stringify','purchase.updated','statusText','PURCHASE_CREATED','730SCwWlN'];a19_0x3039=function(){return _0x588f92;};return a19_0x3039();}function a19_0x575f(_0x162e8f,_0xa0f800){_0x162e8f=_0x162e8f-0x152;const _0x3039c8=a19_0x3039();let _0x575f79=_0x3039c8[_0x162e8f];return _0x575f79;}(function(_0x291d0c,_0x3a68fe){const _0x3a0062=a19_0x575f,_0x211644=_0x291d0c();while(!![]){try{const _0x42c012=-parseInt(_0x3a0062(0x16f))/0x1*(-parseInt(_0x3a0062(0x161))/0x2)+parseInt(_0x3a0062(0x159))/0x3+-parseInt(_0x3a0062(0x153))/0x4+-parseInt(_0x3a0062(0x165))/0x5+-parseInt(_0x3a0062(0x164))/0x6+parseInt(_0x3a0062(0x173))/0x7*(-parseInt(_0x3a0062(0x154))/0x8)+parseInt(_0x3a0062(0x162))/0x9*(parseInt(_0x3a0062(0x169))/0xa);if(_0x42c012===_0x3a68fe)break;else _0x211644['push'](_0x211644['shift']());}catch(_0x3db125){_0x211644['push'](_0x211644['shift']());}}}(a19_0x3039,0xbe3b6));const API_BASE='http://localhost:5001/purchases';export default function bindPurchaseEvents(_0x320118){const _0x1f824b=a19_0x575f;_0x320118[_0x1f824b(0x163)][_0x1f824b(0x158)]('purchase.created',async _0x1fc8ba=>{const _0x2e44e7=_0x1f824b;if(!_0x320118['getCurrentUser']()[_0x2e44e7(0x166)](_0x2e44e7(0x177))&&!_0x320118[_0x2e44e7(0x156)]()[_0x2e44e7(0x166)](_0x2e44e7(0x155))&&!_0x320118[_0x2e44e7(0x156)]()['hasPermission'](_0x2e44e7(0x160)))throw new Error(_0x2e44e7(0x170));const _0x1a5302=await fetch(''+API_BASE,{'method':_0x2e44e7(0x15b),'headers':{'Content-Type':_0x2e44e7(0x16e)},'body':JSON[_0x2e44e7(0x15d)](_0x1fc8ba[_0x2e44e7(0x15a)])});if(!_0x1a5302['ok'])throw new Error('API\x20Error:\x20'+_0x1a5302[_0x2e44e7(0x15f)]);const _0x55f08f=await _0x1a5302[_0x2e44e7(0x16a)]();return _0x55f08f['id'];}),_0x320118[_0x1f824b(0x163)]['onRequest'](_0x1f824b(0x16c),async({id:_0x1179a6})=>{const _0x3c81e2=_0x1f824b;if(!_0x320118[_0x3c81e2(0x156)]()['hasPermission'](_0x3c81e2(0x177))&&!_0x320118[_0x3c81e2(0x156)]()[_0x3c81e2(0x166)]('PURCHASE_ALL')&&!_0x320118['getCurrentUser']()[_0x3c81e2(0x166)](_0x3c81e2(0x176)))throw new Error(_0x3c81e2(0x152));const _0x456733=await fetch(API_BASE+'/'+_0x1179a6);if(!_0x456733['ok'])throw new Error('API\x20Error:\x20'+_0x456733[_0x3c81e2(0x15f)]);return await _0x456733['json']();}),_0x320118[_0x1f824b(0x163)][_0x1f824b(0x158)](_0x1f824b(0x167),async()=>{const _0x327f32=_0x1f824b;if(!_0x320118[_0x327f32(0x156)]()[_0x327f32(0x166)](_0x327f32(0x177))&&!_0x320118[_0x327f32(0x156)]()[_0x327f32(0x166)](_0x327f32(0x155))&&!_0x320118['getCurrentUser']()[_0x327f32(0x166)](_0x327f32(0x176)))throw new Error(_0x327f32(0x152));const _0x2242e5=await fetch(''+API_BASE);if(!_0x2242e5['ok'])throw new Error('API\x20Error:\x20'+_0x2242e5[_0x327f32(0x15f)]);return await _0x2242e5['json']();}),_0x320118[_0x1f824b(0x163)][_0x1f824b(0x158)](_0x1f824b(0x168),async _0x3d91eb=>{const _0x307d98=_0x1f824b;if(!_0x320118['getCurrentUser']()[_0x307d98(0x166)](_0x307d98(0x177))&&!_0x320118[_0x307d98(0x156)]()[_0x307d98(0x166)]('PURCHASE_ALL')&&!_0x320118[_0x307d98(0x156)]()['hasPermission'](_0x307d98(0x176)))throw new Error(_0x307d98(0x152));const _0x2d2557=await fetch(API_BASE+_0x307d98(0x16b),{'method':'POST','headers':{'Content-Type':_0x307d98(0x16e)},'body':JSON[_0x307d98(0x15d)](_0x3d91eb)});if(!_0x2d2557['ok'])throw new Error('API\x20Error:\x20'+_0x2d2557[_0x307d98(0x15f)]);return await _0x2d2557[_0x307d98(0x16a)]();}),_0x320118['events'][_0x1f824b(0x158)](_0x1f824b(0x15e),async _0x1e17a6=>{const _0x3cf2fb=_0x1f824b;if(!_0x320118[_0x3cf2fb(0x156)]()['hasPermission']('ADMIN')&&!_0x320118[_0x3cf2fb(0x156)]()[_0x3cf2fb(0x166)]('PURCHASE_ALL')&&!_0x320118[_0x3cf2fb(0x156)]()[_0x3cf2fb(0x166)](_0x3cf2fb(0x171)))throw new Error(_0x3cf2fb(0x172));const {where:_0x2448ca,..._0x4d94df}=_0x1e17a6,_0x4bbb45=await fetch(API_BASE+'/'+_0x2448ca['id'],{'method':'PUT','headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x4d94df)});if(!_0x4bbb45['ok'])throw new Error(_0x3cf2fb(0x15c)+_0x4bbb45[_0x3cf2fb(0x15f)]);return await _0x4bbb45[_0x3cf2fb(0x16a)]();}),_0x320118[_0x1f824b(0x163)]['on'](_0x1f824b(0x157),async({id:_0x1fa2d6})=>{const _0x1778ee=_0x1f824b;if(!_0x320118['getCurrentUser']()['hasPermission'](_0x1778ee(0x177))&&!_0x320118[_0x1778ee(0x156)]()[_0x1778ee(0x166)](_0x1778ee(0x155))&&!_0x320118[_0x1778ee(0x156)]()['hasPermission']('PURCHASE_DELETED'))throw new Error(_0x1778ee(0x174));const _0x418957=await fetch(API_BASE+'/'+_0x1fa2d6,{'method':_0x1778ee(0x16d)});if(!_0x418957['ok']&&_0x418957[_0x1778ee(0x175)]!==0xcc)throw new Error(_0x1778ee(0x15c)+_0x418957['statusText']);});}
1
+ function a19_0x1341(_0x4b481b,_0x45d0c4){_0x4b481b=_0x4b481b-0x7f;const _0x37d8a3=a19_0x37d8();let _0x1341eb=_0x37d8a3[_0x4b481b];return _0x1341eb;}const a19_0x14e8ea=a19_0x1341;(function(_0x1de303,_0x115eca){const _0x1f1e53=a19_0x1341,_0x118149=_0x1de303();while(!![]){try{const _0x4e3037=parseInt(_0x1f1e53(0x84))/0x1*(parseInt(_0x1f1e53(0xa2))/0x2)+parseInt(_0x1f1e53(0x8b))/0x3*(-parseInt(_0x1f1e53(0xa5))/0x4)+-parseInt(_0x1f1e53(0x82))/0x5+parseInt(_0x1f1e53(0xa1))/0x6*(parseInt(_0x1f1e53(0x86))/0x7)+-parseInt(_0x1f1e53(0x8a))/0x8*(parseInt(_0x1f1e53(0x8f))/0x9)+parseInt(_0x1f1e53(0x99))/0xa+-parseInt(_0x1f1e53(0x95))/0xb;if(_0x4e3037===_0x115eca)break;else _0x118149['push'](_0x118149['shift']());}catch(_0x2c42f3){_0x118149['push'](_0x118149['shift']());}}}(a19_0x37d8,0xa8e99));function a19_0x37d8(){const _0xa015b0=['DELETE','310002:\x20Action\x20not\x20allowed.','3292120UnoqJO','stringify','API\x20Error:\x20','PURCHASE_READ','purchase.deleted','statusText','PURCHASE_ALL','hasPermission','60UEPeBc','9820rDrouH','purchase.created','http://localhost:5001/purchases','4ACfkLg','events','PURCHASE_DELETED','POST','/search','3437345XjGsCv','310001:\x20Action\x20not\x20allowed.','270jqUYRx','purchase.read.some','868007QHains','json','purchase','310004:\x20Action\x20not\x20allowed.','8nlHmbQ','1668099yFSIIz','ADMIN','310003:\x20Action\x20not\x20allowed.','getCurrentUser','7559820MBnqxT','purchase.read','PURCHASE_CREATED','application/json','PURCHASE_UPDATED','onRequest','1315325cCoKOP','status'];a19_0x37d8=function(){return _0xa015b0;};return a19_0x37d8();}const API_BASE=a19_0x14e8ea(0xa4);export default function bindPurchaseEvents(_0x3f595d){const _0x451c28=a19_0x14e8ea;_0x3f595d[_0x451c28(0xa6)]['onRequest'](_0x451c28(0xa3),async _0x3332e4=>{const _0x43c48d=_0x451c28;if(!_0x3f595d[_0x43c48d(0x8e)]()['hasPermission'](_0x43c48d(0x8c))&&!_0x3f595d[_0x43c48d(0x8e)]()['hasPermission'](_0x43c48d(0x9f))&&!_0x3f595d[_0x43c48d(0x8e)]()[_0x43c48d(0xa0)](_0x43c48d(0x91)))throw new Error(_0x43c48d(0x83));const _0x25d6f1=await fetch(''+API_BASE,{'method':_0x43c48d(0x80),'headers':{'Content-Type':_0x43c48d(0x92)},'body':JSON[_0x43c48d(0x9a)](_0x3332e4[_0x43c48d(0x88)])});if(!_0x25d6f1['ok'])throw new Error(_0x43c48d(0x9b)+_0x25d6f1['statusText']);const _0x69ab3c=await _0x25d6f1[_0x43c48d(0x87)]();return _0x69ab3c['id'];}),_0x3f595d['events'][_0x451c28(0x94)](_0x451c28(0x90),async({id:_0x1ebdbd})=>{const _0x1f273e=_0x451c28;if(!_0x3f595d[_0x1f273e(0x8e)]()[_0x1f273e(0xa0)](_0x1f273e(0x8c))&&!_0x3f595d[_0x1f273e(0x8e)]()[_0x1f273e(0xa0)]('PURCHASE_ALL')&&!_0x3f595d[_0x1f273e(0x8e)]()[_0x1f273e(0xa0)](_0x1f273e(0x9c)))throw new Error(_0x1f273e(0x98));const _0x3b2d03=await fetch(API_BASE+'/'+_0x1ebdbd);if(!_0x3b2d03['ok'])throw new Error(_0x1f273e(0x9b)+_0x3b2d03[_0x1f273e(0x9e)]);return await _0x3b2d03[_0x1f273e(0x87)]();}),_0x3f595d[_0x451c28(0xa6)]['onRequest']('purchase.read.all',async()=>{const _0x4c374c=_0x451c28;if(!_0x3f595d[_0x4c374c(0x8e)]()[_0x4c374c(0xa0)](_0x4c374c(0x8c))&&!_0x3f595d[_0x4c374c(0x8e)]()[_0x4c374c(0xa0)](_0x4c374c(0x9f))&&!_0x3f595d['getCurrentUser']()[_0x4c374c(0xa0)](_0x4c374c(0x9c)))throw new Error(_0x4c374c(0x98));const _0x203c7c=await fetch(''+API_BASE);if(!_0x203c7c['ok'])throw new Error(_0x4c374c(0x9b)+_0x203c7c[_0x4c374c(0x9e)]);return await _0x203c7c[_0x4c374c(0x87)]();}),_0x3f595d['events'][_0x451c28(0x94)](_0x451c28(0x85),async _0xcf5df9=>{const _0x84250c=_0x451c28;if(!_0x3f595d[_0x84250c(0x8e)]()[_0x84250c(0xa0)](_0x84250c(0x8c))&&!_0x3f595d[_0x84250c(0x8e)]()[_0x84250c(0xa0)](_0x84250c(0x9f))&&!_0x3f595d[_0x84250c(0x8e)]()[_0x84250c(0xa0)](_0x84250c(0x9c)))throw new Error(_0x84250c(0x98));const _0x1985f4=await fetch(API_BASE+_0x84250c(0x81),{'method':_0x84250c(0x80),'headers':{'Content-Type':'application/json'},'body':JSON[_0x84250c(0x9a)](_0xcf5df9)});if(!_0x1985f4['ok'])throw new Error('API\x20Error:\x20'+_0x1985f4[_0x84250c(0x9e)]);return await _0x1985f4[_0x84250c(0x87)]();}),_0x3f595d['events'][_0x451c28(0x94)]('purchase.updated',async _0x35d181=>{const _0x38f43c=_0x451c28;if(!_0x3f595d['getCurrentUser']()['hasPermission'](_0x38f43c(0x8c))&&!_0x3f595d[_0x38f43c(0x8e)]()[_0x38f43c(0xa0)](_0x38f43c(0x9f))&&!_0x3f595d['getCurrentUser']()[_0x38f43c(0xa0)](_0x38f43c(0x93)))throw new Error(_0x38f43c(0x8d));const {where:_0x509a2c,..._0x4f3179}=_0x35d181,_0x2a019b=await fetch(API_BASE+'/'+_0x509a2c['id'],{'method':'PUT','headers':{'Content-Type':_0x38f43c(0x92)},'body':JSON[_0x38f43c(0x9a)](_0x4f3179)});if(!_0x2a019b['ok'])throw new Error(_0x38f43c(0x9b)+_0x2a019b[_0x38f43c(0x9e)]);return await _0x2a019b['json']();}),_0x3f595d[_0x451c28(0xa6)]['on'](_0x451c28(0x9d),async({id:_0x189503})=>{const _0x4c44bf=_0x451c28;if(!_0x3f595d[_0x4c44bf(0x8e)]()['hasPermission'](_0x4c44bf(0x8c))&&!_0x3f595d[_0x4c44bf(0x8e)]()[_0x4c44bf(0xa0)](_0x4c44bf(0x9f))&&!_0x3f595d['getCurrentUser']()['hasPermission'](_0x4c44bf(0x7f)))throw new Error(_0x4c44bf(0x89));const _0x4c6227=await fetch(API_BASE+'/'+_0x189503,{'method':_0x4c44bf(0x97)});if(!_0x4c6227['ok']&&_0x4c6227[_0x4c44bf(0x96)]!==0xcc)throw new Error(_0x4c44bf(0x9b)+_0x4c6227[_0x4c44bf(0x9e)]);});}
@@ -1 +1 @@
1
- function a20_0x22ac(_0x3c3879,_0x59805c){_0x3c3879=_0x3c3879-0x97;const _0x31a72d=a20_0x31a7();let _0x22ac8d=_0x31a72d[_0x3c3879];return _0x22ac8d;}function a20_0x31a7(){const _0x539e39=['ADMIN','stringify','320001:\x20Action\x20not\x20allowed.','reception','RECEPTION_READ','application/json','RECEPTION_UPDATED','POST','DELETE','RECEPTION_ALL','516VBSyQR','12514FCoSEU','statusText','API\x20Error:\x20','reception.created','173ogSEWn','onRequest','101535DJCoQc','63485WwBDNf','1274058QUwTmX','json','320004:\x20Action\x20not\x20allowed.','events','reception.updated','reception.read.some','6106950XrzqZw','RECEPTION_DELETED','PUT','320002:\x20Action\x20not\x20allowed.','hasPermission','320003:\x20Action\x20not\x20allowed.','2808084bCNhnT','6759JlDoxT','status','getCurrentUser','5336UrPmvs'];a20_0x31a7=function(){return _0x539e39;};return a20_0x31a7();}(function(_0x24b0f5,_0x2c7a7d){const _0x110bf8=a20_0x22ac,_0x2574fc=_0x24b0f5();while(!![]){try{const _0x19d7a8=parseInt(_0x110bf8(0xae))/0x1*(parseInt(_0x110bf8(0xaa))/0x2)+parseInt(_0x110bf8(0xb2))/0x3+-parseInt(_0x110bf8(0x9a))/0x4+-parseInt(_0x110bf8(0xb1))/0x5*(parseInt(_0x110bf8(0xa9))/0x6)+parseInt(_0x110bf8(0xb0))/0x7+-parseInt(_0x110bf8(0x9e))/0x8*(-parseInt(_0x110bf8(0x9b))/0x9)+parseInt(_0x110bf8(0xb8))/0xa;if(_0x19d7a8===_0x2c7a7d)break;else _0x2574fc['push'](_0x2574fc['shift']());}catch(_0x1c7571){_0x2574fc['push'](_0x2574fc['shift']());}}}(a20_0x31a7,0xcce85));const API_BASE='http://localhost:5001/receptions';export default function bindReceptionEvents(_0x126f2f){const _0x5f4aad=a20_0x22ac;_0x126f2f[_0x5f4aad(0xb5)][_0x5f4aad(0xaf)](_0x5f4aad(0xad),async _0x4b4853=>{const _0x512360=_0x5f4aad;if(!_0x126f2f['getCurrentUser']()[_0x512360(0x98)]('ADMIN')&&!_0x126f2f[_0x512360(0x9d)]()[_0x512360(0x98)]('RECEPTION_ALL')&&!_0x126f2f['getCurrentUser']()[_0x512360(0x98)]('RECEPTION_CREATED'))throw new Error(_0x512360(0xa1));const _0x50106b=await fetch(''+API_BASE,{'method':_0x512360(0xa6),'headers':{'Content-Type':_0x512360(0xa4)},'body':JSON[_0x512360(0xa0)](_0x4b4853[_0x512360(0xa2)])});if(!_0x50106b['ok'])throw new Error('API\x20Error:\x20'+_0x50106b[_0x512360(0xab)]);const _0x4be42a=await _0x50106b['json']();return _0x4be42a['id'];}),_0x126f2f['events'][_0x5f4aad(0xaf)]('reception.read',async({id:_0x131f90})=>{const _0x524b09=_0x5f4aad;if(!_0x126f2f['getCurrentUser']()[_0x524b09(0x98)](_0x524b09(0x9f))&&!_0x126f2f[_0x524b09(0x9d)]()[_0x524b09(0x98)](_0x524b09(0xa8))&&!_0x126f2f[_0x524b09(0x9d)]()['hasPermission'](_0x524b09(0xa3)))throw new Error(_0x524b09(0x97));const _0xa5be10=await fetch(API_BASE+'/'+_0x131f90);if(!_0xa5be10['ok'])throw new Error(_0x524b09(0xac)+_0xa5be10[_0x524b09(0xab)]);return await _0xa5be10['json']();}),_0x126f2f['events'][_0x5f4aad(0xaf)]('reception.read.all',async()=>{const _0x1eb995=_0x5f4aad;if(!_0x126f2f['getCurrentUser']()[_0x1eb995(0x98)](_0x1eb995(0x9f))&&!_0x126f2f[_0x1eb995(0x9d)]()['hasPermission'](_0x1eb995(0xa8))&&!_0x126f2f['getCurrentUser']()[_0x1eb995(0x98)](_0x1eb995(0xa3)))throw new Error(_0x1eb995(0x97));const _0x5eb54b=await fetch(''+API_BASE);if(!_0x5eb54b['ok'])throw new Error('API\x20Error:\x20'+_0x5eb54b[_0x1eb995(0xab)]);return await _0x5eb54b[_0x1eb995(0xb3)]();}),_0x126f2f['events'][_0x5f4aad(0xaf)](_0x5f4aad(0xb7),async _0x3b9dd5=>{const _0xc4d6c9=_0x5f4aad;if(!_0x126f2f['getCurrentUser']()[_0xc4d6c9(0x98)](_0xc4d6c9(0x9f))&&!_0x126f2f[_0xc4d6c9(0x9d)]()[_0xc4d6c9(0x98)](_0xc4d6c9(0xa8))&&!_0x126f2f[_0xc4d6c9(0x9d)]()[_0xc4d6c9(0x98)](_0xc4d6c9(0xa3)))throw new Error(_0xc4d6c9(0x97));const _0x159497=await fetch(API_BASE+'/search',{'method':_0xc4d6c9(0xa6),'headers':{'Content-Type':_0xc4d6c9(0xa4)},'body':JSON['stringify'](_0x3b9dd5)});if(!_0x159497['ok'])throw new Error('API\x20Error:\x20'+_0x159497[_0xc4d6c9(0xab)]);return await _0x159497[_0xc4d6c9(0xb3)]();}),_0x126f2f[_0x5f4aad(0xb5)][_0x5f4aad(0xaf)](_0x5f4aad(0xb6),async _0xeb7d25=>{const _0x507141=_0x5f4aad;if(!_0x126f2f['getCurrentUser']()[_0x507141(0x98)](_0x507141(0x9f))&&!_0x126f2f[_0x507141(0x9d)]()[_0x507141(0x98)](_0x507141(0xa8))&&!_0x126f2f[_0x507141(0x9d)]()['hasPermission'](_0x507141(0xa5)))throw new Error(_0x507141(0x99));const {where:_0xe58c2c,..._0x3fa428}=_0xeb7d25,_0x558701=await fetch(API_BASE+'/'+_0xe58c2c['id'],{'method':_0x507141(0xba),'headers':{'Content-Type':_0x507141(0xa4)},'body':JSON['stringify'](_0x3fa428)});if(!_0x558701['ok'])throw new Error(_0x507141(0xac)+_0x558701[_0x507141(0xab)]);return await _0x558701[_0x507141(0xb3)]();}),_0x126f2f[_0x5f4aad(0xb5)]['on']('reception.deleted',async({id:_0x581429})=>{const _0x5cb238=_0x5f4aad;if(!_0x126f2f[_0x5cb238(0x9d)]()[_0x5cb238(0x98)](_0x5cb238(0x9f))&&!_0x126f2f[_0x5cb238(0x9d)]()[_0x5cb238(0x98)](_0x5cb238(0xa8))&&!_0x126f2f[_0x5cb238(0x9d)]()[_0x5cb238(0x98)](_0x5cb238(0xb9)))throw new Error(_0x5cb238(0xb4));const _0x54596c=await fetch(API_BASE+'/'+_0x581429,{'method':_0x5cb238(0xa7)});if(!_0x54596c['ok']&&_0x54596c[_0x5cb238(0x9c)]!==0xcc)throw new Error(_0x5cb238(0xac)+_0x54596c[_0x5cb238(0xab)]);});}
1
+ const a20_0x34c8e1=a20_0x4cb9;(function(_0x159666,_0x13c946){const _0x4c015d=a20_0x4cb9,_0x433b8c=_0x159666();while(!![]){try{const _0x348f82=parseInt(_0x4c015d(0x16e))/0x1+-parseInt(_0x4c015d(0x158))/0x2+-parseInt(_0x4c015d(0x155))/0x3+-parseInt(_0x4c015d(0x15b))/0x4*(parseInt(_0x4c015d(0x165))/0x5)+parseInt(_0x4c015d(0x162))/0x6+parseInt(_0x4c015d(0x163))/0x7*(-parseInt(_0x4c015d(0x16a))/0x8)+-parseInt(_0x4c015d(0x16c))/0x9*(-parseInt(_0x4c015d(0x152))/0xa);if(_0x348f82===_0x13c946)break;else _0x433b8c['push'](_0x433b8c['shift']());}catch(_0x1216e8){_0x433b8c['push'](_0x433b8c['shift']());}}}(a20_0x131f,0xb60bb));function a20_0x4cb9(_0x588ae7,_0x1d040a){_0x588ae7=_0x588ae7-0x152;const _0x131fa9=a20_0x131f();let _0x4cb98d=_0x131fa9[_0x588ae7];return _0x4cb98d;}function a20_0x131f(){const _0x431f5b=['ADMIN','hasPermission','RECEPTION_UPDATED','DELETE','reception.created','status','statusText','10lbEzhw','RECEPTION_READ','320002:\x20Action\x20not\x20allowed.','3309678tMEUrl','RECEPTION_ALL','reception.read.some','2266014NVaPbq','reception.read.all','stringify','1513964jtzzuv','reception.deleted','PUT','320003:\x20Action\x20not\x20allowed.','events','API\x20Error:\x20','RECEPTION_CREATED','5732196VxmcDo','9059575xhMLyM','reception.updated','5SCgsej','POST','json','http://localhost:5001/receptions','320004:\x20Action\x20not\x20allowed.','8wVmTXV','application/json','28705968rleiJh','getCurrentUser','509690GxdOjx','onRequest','reception'];a20_0x131f=function(){return _0x431f5b;};return a20_0x131f();}const API_BASE=a20_0x34c8e1(0x168);export default function bindReceptionEvents(_0x3932be){const _0x369e4d=a20_0x34c8e1;_0x3932be['events'][_0x369e4d(0x16f)](_0x369e4d(0x175),async _0x1b5d48=>{const _0x3d37fc=_0x369e4d;if(!_0x3932be['getCurrentUser']()['hasPermission'](_0x3d37fc(0x171))&&!_0x3932be[_0x3d37fc(0x16d)]()['hasPermission'](_0x3d37fc(0x156))&&!_0x3932be['getCurrentUser']()['hasPermission'](_0x3d37fc(0x161)))throw new Error('320001:\x20Action\x20not\x20allowed.');const _0x16694a=await fetch(''+API_BASE,{'method':_0x3d37fc(0x166),'headers':{'Content-Type':_0x3d37fc(0x16b)},'body':JSON[_0x3d37fc(0x15a)](_0x1b5d48[_0x3d37fc(0x170)])});if(!_0x16694a['ok'])throw new Error(_0x3d37fc(0x160)+_0x16694a[_0x3d37fc(0x177)]);const _0x1191e2=await _0x16694a[_0x3d37fc(0x167)]();return _0x1191e2['id'];}),_0x3932be[_0x369e4d(0x15f)][_0x369e4d(0x16f)]('reception.read',async({id:_0x35769b})=>{const _0x2f865b=_0x369e4d;if(!_0x3932be[_0x2f865b(0x16d)]()[_0x2f865b(0x172)](_0x2f865b(0x171))&&!_0x3932be[_0x2f865b(0x16d)]()[_0x2f865b(0x172)]('RECEPTION_ALL')&&!_0x3932be[_0x2f865b(0x16d)]()[_0x2f865b(0x172)](_0x2f865b(0x153)))throw new Error(_0x2f865b(0x154));const _0x27d037=await fetch(API_BASE+'/'+_0x35769b);if(!_0x27d037['ok'])throw new Error(_0x2f865b(0x160)+_0x27d037[_0x2f865b(0x177)]);return await _0x27d037['json']();}),_0x3932be['events'][_0x369e4d(0x16f)](_0x369e4d(0x159),async()=>{const _0x2b9988=_0x369e4d;if(!_0x3932be[_0x2b9988(0x16d)]()['hasPermission'](_0x2b9988(0x171))&&!_0x3932be[_0x2b9988(0x16d)]()[_0x2b9988(0x172)](_0x2b9988(0x156))&&!_0x3932be['getCurrentUser']()[_0x2b9988(0x172)](_0x2b9988(0x153)))throw new Error(_0x2b9988(0x154));const _0x388058=await fetch(''+API_BASE);if(!_0x388058['ok'])throw new Error('API\x20Error:\x20'+_0x388058[_0x2b9988(0x177)]);return await _0x388058[_0x2b9988(0x167)]();}),_0x3932be[_0x369e4d(0x15f)]['onRequest'](_0x369e4d(0x157),async _0x55263f=>{const _0x305d04=_0x369e4d;if(!_0x3932be[_0x305d04(0x16d)]()['hasPermission']('ADMIN')&&!_0x3932be[_0x305d04(0x16d)]()[_0x305d04(0x172)](_0x305d04(0x156))&&!_0x3932be[_0x305d04(0x16d)]()[_0x305d04(0x172)](_0x305d04(0x153)))throw new Error(_0x305d04(0x154));const _0x4408e0=await fetch(API_BASE+'/search',{'method':_0x305d04(0x166),'headers':{'Content-Type':_0x305d04(0x16b)},'body':JSON[_0x305d04(0x15a)](_0x55263f)});if(!_0x4408e0['ok'])throw new Error('API\x20Error:\x20'+_0x4408e0['statusText']);return await _0x4408e0[_0x305d04(0x167)]();}),_0x3932be['events'][_0x369e4d(0x16f)](_0x369e4d(0x164),async _0x4b8af6=>{const _0x152de6=_0x369e4d;if(!_0x3932be[_0x152de6(0x16d)]()['hasPermission']('ADMIN')&&!_0x3932be['getCurrentUser']()[_0x152de6(0x172)](_0x152de6(0x156))&&!_0x3932be[_0x152de6(0x16d)]()[_0x152de6(0x172)](_0x152de6(0x173)))throw new Error(_0x152de6(0x15e));const {where:_0x1660ab,..._0x175afe}=_0x4b8af6,_0x1dd986=await fetch(API_BASE+'/'+_0x1660ab['id'],{'method':_0x152de6(0x15d),'headers':{'Content-Type':_0x152de6(0x16b)},'body':JSON[_0x152de6(0x15a)](_0x175afe)});if(!_0x1dd986['ok'])throw new Error(_0x152de6(0x160)+_0x1dd986[_0x152de6(0x177)]);return await _0x1dd986[_0x152de6(0x167)]();}),_0x3932be[_0x369e4d(0x15f)]['on'](_0x369e4d(0x15c),async({id:_0x3f0636})=>{const _0x2f6f42=_0x369e4d;if(!_0x3932be[_0x2f6f42(0x16d)]()[_0x2f6f42(0x172)](_0x2f6f42(0x171))&&!_0x3932be[_0x2f6f42(0x16d)]()[_0x2f6f42(0x172)](_0x2f6f42(0x156))&&!_0x3932be[_0x2f6f42(0x16d)]()[_0x2f6f42(0x172)]('RECEPTION_DELETED'))throw new Error(_0x2f6f42(0x169));const _0x3da132=await fetch(API_BASE+'/'+_0x3f0636,{'method':_0x2f6f42(0x174)});if(!_0x3da132['ok']&&_0x3da132[_0x2f6f42(0x176)]!==0xcc)throw new Error(_0x2f6f42(0x160)+_0x3da132['statusText']);});}
@@ -1 +1 @@
1
- function a21_0xfdd4(_0x4abb72,_0x1ecf99){_0x4abb72=_0x4abb72-0xb2;const _0x18eabc=a21_0x18ea();let _0xfdd438=_0x18eabc[_0x4abb72];return _0xfdd438;}function a21_0x18ea(){const _0x46b578=['425385XkGtKe','410003:\x20Action\x20not\x20allowed.','hasPermission','onRequest','stock.updated','stock','statusText','getCurrentUser','STOCK_DELETED','DELETE','505740XsbTZh','41342AsBEhg','status','API\x20Error:\x20','json','POST','PUT','STOCK_ALL','1236060tQjdIu','85908DiFyDQ','stock.read','stock.read.all','55nhcJIk','8578xSXNgX','16zAleyN','stock.deleted','712DLGMMO','stock.read.some','ADMIN','stringify','events','24453uJZWpc','STOCK_READ','78hKjubX','STOCK_UPDATED','23ZLpsET','410004:\x20Action\x20not\x20allowed.','STOCK_CREATED','application/json','410002:\x20Action\x20not\x20allowed.'];a21_0x18ea=function(){return _0x46b578;};return a21_0x18ea();}(function(_0x1909a5,_0x401169){const _0x494484=a21_0xfdd4,_0x5c6378=_0x1909a5();while(!![]){try{const _0x27a780=parseInt(_0x494484(0xd4))/0x1*(-parseInt(_0x494484(0xc8))/0x2)+-parseInt(_0x494484(0xc4))/0x3*(-parseInt(_0x494484(0xc9))/0x4)+-parseInt(_0x494484(0xd9))/0x5+-parseInt(_0x494484(0xd2))/0x6*(-parseInt(_0x494484(0xbc))/0x7)+-parseInt(_0x494484(0xcb))/0x8*(-parseInt(_0x494484(0xd0))/0x9)+parseInt(_0x494484(0xc3))/0xa+-parseInt(_0x494484(0xc7))/0xb*(parseInt(_0x494484(0xbb))/0xc);if(_0x27a780===_0x401169)break;else _0x5c6378['push'](_0x5c6378['shift']());}catch(_0x1542af){_0x5c6378['push'](_0x5c6378['shift']());}}}(a21_0x18ea,0x279f4));const API_BASE='http://localhost:5001/stocks';export default function bindStockEvents(_0x37f00a){const _0xe9b995=a21_0xfdd4;_0x37f00a[_0xe9b995(0xcf)][_0xe9b995(0xb4)]('stock.created',async _0x2aee07=>{const _0x14f62f=_0xe9b995;if(!_0x37f00a[_0x14f62f(0xb8)]()[_0x14f62f(0xb3)](_0x14f62f(0xcd))&&!_0x37f00a['getCurrentUser']()[_0x14f62f(0xb3)](_0x14f62f(0xc2))&&!_0x37f00a[_0x14f62f(0xb8)]()['hasPermission'](_0x14f62f(0xd6)))throw new Error('410001:\x20Action\x20not\x20allowed.');const _0x496f3c=await fetch(''+API_BASE,{'method':_0x14f62f(0xc0),'headers':{'Content-Type':_0x14f62f(0xd7)},'body':JSON[_0x14f62f(0xce)](_0x2aee07[_0x14f62f(0xb6)])});if(!_0x496f3c['ok'])throw new Error('API\x20Error:\x20'+_0x496f3c[_0x14f62f(0xb7)]);const _0x51847e=await _0x496f3c[_0x14f62f(0xbf)]();return _0x51847e['id'];}),_0x37f00a[_0xe9b995(0xcf)]['onRequest'](_0xe9b995(0xc5),async({id:_0x83586e})=>{const _0x308004=_0xe9b995;if(!_0x37f00a['getCurrentUser']()[_0x308004(0xb3)]('ADMIN')&&!_0x37f00a[_0x308004(0xb8)]()[_0x308004(0xb3)](_0x308004(0xc2))&&!_0x37f00a['getCurrentUser']()[_0x308004(0xb3)](_0x308004(0xd1)))throw new Error('410002:\x20Action\x20not\x20allowed.');const _0x4a9b56=await fetch(API_BASE+'/'+_0x83586e);if(!_0x4a9b56['ok'])throw new Error(_0x308004(0xbe)+_0x4a9b56[_0x308004(0xb7)]);return await _0x4a9b56['json']();}),_0x37f00a[_0xe9b995(0xcf)][_0xe9b995(0xb4)](_0xe9b995(0xc6),async()=>{const _0x3c7232=_0xe9b995;if(!_0x37f00a[_0x3c7232(0xb8)]()[_0x3c7232(0xb3)](_0x3c7232(0xcd))&&!_0x37f00a['getCurrentUser']()['hasPermission']('STOCK_ALL')&&!_0x37f00a[_0x3c7232(0xb8)]()['hasPermission'](_0x3c7232(0xd1)))throw new Error(_0x3c7232(0xd8));const _0x2481bc=await fetch(''+API_BASE);if(!_0x2481bc['ok'])throw new Error(_0x3c7232(0xbe)+_0x2481bc['statusText']);return await _0x2481bc[_0x3c7232(0xbf)]();}),_0x37f00a[_0xe9b995(0xcf)]['onRequest'](_0xe9b995(0xcc),async _0x24e8fb=>{const _0x55f6c8=_0xe9b995;if(!_0x37f00a[_0x55f6c8(0xb8)]()[_0x55f6c8(0xb3)](_0x55f6c8(0xcd))&&!_0x37f00a[_0x55f6c8(0xb8)]()[_0x55f6c8(0xb3)](_0x55f6c8(0xc2))&&!_0x37f00a[_0x55f6c8(0xb8)]()[_0x55f6c8(0xb3)]('STOCK_READ'))throw new Error(_0x55f6c8(0xd8));const _0x2a290c=await fetch(API_BASE+'/search',{'method':_0x55f6c8(0xc0),'headers':{'Content-Type':'application/json'},'body':JSON[_0x55f6c8(0xce)](_0x24e8fb)});if(!_0x2a290c['ok'])throw new Error(_0x55f6c8(0xbe)+_0x2a290c['statusText']);return await _0x2a290c['json']();}),_0x37f00a[_0xe9b995(0xcf)][_0xe9b995(0xb4)](_0xe9b995(0xb5),async _0x3ff445=>{const _0x35acb9=_0xe9b995;if(!_0x37f00a[_0x35acb9(0xb8)]()[_0x35acb9(0xb3)]('ADMIN')&&!_0x37f00a[_0x35acb9(0xb8)]()['hasPermission']('STOCK_ALL')&&!_0x37f00a[_0x35acb9(0xb8)]()[_0x35acb9(0xb3)](_0x35acb9(0xd3)))throw new Error(_0x35acb9(0xb2));const {where:_0x214902,..._0x40de54}=_0x3ff445,_0x52034e=await fetch(API_BASE+'/'+_0x214902['id'],{'method':_0x35acb9(0xc1),'headers':{'Content-Type':_0x35acb9(0xd7)},'body':JSON[_0x35acb9(0xce)](_0x40de54)});if(!_0x52034e['ok'])throw new Error('API\x20Error:\x20'+_0x52034e[_0x35acb9(0xb7)]);return await _0x52034e[_0x35acb9(0xbf)]();}),_0x37f00a[_0xe9b995(0xcf)]['on'](_0xe9b995(0xca),async({id:_0x33d91d})=>{const _0x42a852=_0xe9b995;if(!_0x37f00a[_0x42a852(0xb8)]()['hasPermission'](_0x42a852(0xcd))&&!_0x37f00a[_0x42a852(0xb8)]()[_0x42a852(0xb3)]('STOCK_ALL')&&!_0x37f00a[_0x42a852(0xb8)]()[_0x42a852(0xb3)](_0x42a852(0xb9)))throw new Error(_0x42a852(0xd5));const _0x533558=await fetch(API_BASE+'/'+_0x33d91d,{'method':_0x42a852(0xba)});if(!_0x533558['ok']&&_0x533558[_0x42a852(0xbd)]!==0xcc)throw new Error('API\x20Error:\x20'+_0x533558['statusText']);});}
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 +1 @@
1
- const a22_0x121442=a22_0x5759;(function(_0x422156,_0x22cde1){const _0x253e03=a22_0x5759,_0x5b416f=_0x422156();while(!![]){try{const _0x37c96e=parseInt(_0x253e03(0x17b))/0x1+-parseInt(_0x253e03(0x185))/0x2+parseInt(_0x253e03(0x192))/0x3+parseInt(_0x253e03(0x17c))/0x4*(-parseInt(_0x253e03(0x199))/0x5)+parseInt(_0x253e03(0x184))/0x6*(parseInt(_0x253e03(0x183))/0x7)+-parseInt(_0x253e03(0x186))/0x8*(parseInt(_0x253e03(0x19a))/0x9)+-parseInt(_0x253e03(0x18b))/0xa;if(_0x37c96e===_0x22cde1)break;else _0x5b416f['push'](_0x5b416f['shift']());}catch(_0x34bda4){_0x5b416f['push'](_0x5b416f['shift']());}}}(a22_0x1612,0x23b34));const API_BASE=a22_0x121442(0x176);function a22_0x5759(_0xdceeca,_0x14d1fc){_0xdceeca=_0xdceeca-0x175;const _0x1612c3=a22_0x1612();let _0x575974=_0x1612c3[_0xdceeca];return _0x575974;}export default function bindSupplierEvents(_0x1bf852){const _0x3c37d1=a22_0x121442;_0x1bf852[_0x3c37d1(0x19b)][_0x3c37d1(0x193)](_0x3c37d1(0x187),async _0x30489c=>{const _0x2bd231=_0x3c37d1;if(!_0x1bf852[_0x2bd231(0x179)]()['hasPermission'](_0x2bd231(0x17e))&&!_0x1bf852[_0x2bd231(0x179)]()['hasPermission'](_0x2bd231(0x17f))&&!_0x1bf852[_0x2bd231(0x179)]()['hasPermission'](_0x2bd231(0x18a)))throw new Error(_0x2bd231(0x18e));const _0x1c31a2=await fetch(''+API_BASE,{'method':_0x2bd231(0x195),'headers':{'Content-Type':_0x2bd231(0x18f)},'body':JSON[_0x2bd231(0x178)](_0x30489c[_0x2bd231(0x188)])});if(!_0x1c31a2['ok'])throw new Error(_0x2bd231(0x18d)+_0x1c31a2['statusText']);const _0x486efb=await _0x1c31a2[_0x2bd231(0x190)]();return _0x486efb['id'];}),_0x1bf852[_0x3c37d1(0x19b)][_0x3c37d1(0x193)](_0x3c37d1(0x177),async({id:_0x3f295e})=>{const _0x4b9b13=_0x3c37d1;if(!_0x1bf852[_0x4b9b13(0x179)]()[_0x4b9b13(0x18c)](_0x4b9b13(0x17e))&&!_0x1bf852[_0x4b9b13(0x179)]()[_0x4b9b13(0x18c)](_0x4b9b13(0x17f))&&!_0x1bf852[_0x4b9b13(0x179)]()[_0x4b9b13(0x18c)]('SUPPLIER_READ'))throw new Error(_0x4b9b13(0x181));const _0x17da0c=await fetch(API_BASE+'/'+_0x3f295e);if(!_0x17da0c['ok'])throw new Error('API\x20Error:\x20'+_0x17da0c[_0x4b9b13(0x189)]);return await _0x17da0c[_0x4b9b13(0x190)]();}),_0x1bf852[_0x3c37d1(0x19b)][_0x3c37d1(0x193)](_0x3c37d1(0x197),async()=>{const _0x20e770=_0x3c37d1;if(!_0x1bf852[_0x20e770(0x179)]()[_0x20e770(0x18c)]('ADMIN')&&!_0x1bf852[_0x20e770(0x179)]()[_0x20e770(0x18c)](_0x20e770(0x17f))&&!_0x1bf852[_0x20e770(0x179)]()[_0x20e770(0x18c)]('SUPPLIER_READ'))throw new Error(_0x20e770(0x181));const _0x18e804=await fetch(''+API_BASE);if(!_0x18e804['ok'])throw new Error(_0x20e770(0x18d)+_0x18e804[_0x20e770(0x189)]);return await _0x18e804[_0x20e770(0x190)]();}),_0x1bf852[_0x3c37d1(0x19b)][_0x3c37d1(0x193)](_0x3c37d1(0x19d),async _0x26e303=>{const _0xb82c77=_0x3c37d1;if(!_0x1bf852['getCurrentUser']()[_0xb82c77(0x18c)](_0xb82c77(0x17e))&&!_0x1bf852[_0xb82c77(0x179)]()[_0xb82c77(0x18c)](_0xb82c77(0x17f))&&!_0x1bf852[_0xb82c77(0x179)]()[_0xb82c77(0x18c)]('SUPPLIER_READ'))throw new Error('300002:\x20Action\x20not\x20allowed.');const _0x505244=await fetch(API_BASE+_0xb82c77(0x17d),{'method':_0xb82c77(0x195),'headers':{'Content-Type':_0xb82c77(0x18f)},'body':JSON[_0xb82c77(0x178)](_0x26e303)});if(!_0x505244['ok'])throw new Error('API\x20Error:\x20'+_0x505244[_0xb82c77(0x189)]);return await _0x505244[_0xb82c77(0x190)]();}),_0x1bf852['events']['onRequest'](_0x3c37d1(0x191),async _0x54f67d=>{const _0x7bc191=_0x3c37d1;if(!_0x1bf852[_0x7bc191(0x179)]()['hasPermission'](_0x7bc191(0x17e))&&!_0x1bf852[_0x7bc191(0x179)]()['hasPermission'](_0x7bc191(0x17f))&&!_0x1bf852['getCurrentUser']()[_0x7bc191(0x18c)](_0x7bc191(0x175)))throw new Error(_0x7bc191(0x198));const {where:_0x596bf2,..._0x27d68a}=_0x54f67d,_0x3396ca=await fetch(API_BASE+'/'+_0x596bf2['id'],{'method':_0x7bc191(0x19c),'headers':{'Content-Type':_0x7bc191(0x18f)},'body':JSON[_0x7bc191(0x178)](_0x27d68a)});if(!_0x3396ca['ok'])throw new Error(_0x7bc191(0x18d)+_0x3396ca[_0x7bc191(0x189)]);return await _0x3396ca['json']();}),_0x1bf852['events']['on'](_0x3c37d1(0x196),async({id:_0x9f45c1})=>{const _0x297305=_0x3c37d1;if(!_0x1bf852['getCurrentUser']()['hasPermission']('ADMIN')&&!_0x1bf852[_0x297305(0x179)]()[_0x297305(0x18c)](_0x297305(0x17f))&&!_0x1bf852[_0x297305(0x179)]()['hasPermission'](_0x297305(0x182)))throw new Error(_0x297305(0x194));const _0x52e13a=await fetch(API_BASE+'/'+_0x9f45c1,{'method':_0x297305(0x17a)});if(!_0x52e13a['ok']&&_0x52e13a[_0x297305(0x180)]!==0xcc)throw new Error(_0x297305(0x18d)+_0x52e13a['statusText']);});}function a22_0x1612(){const _0x188529=['8ddHKAm','/search','ADMIN','SUPPLIER_ALL','status','300002:\x20Action\x20not\x20allowed.','SUPPLIER_DELETED','665SSWqPX','9270htWLMt','287842MkVGjE','3960RFTWPJ','supplier.created','supplier','statusText','SUPPLIER_CREATED','1108840oEOoqB','hasPermission','API\x20Error:\x20','300001:\x20Action\x20not\x20allowed.','application/json','json','supplier.updated','540309LyHDtL','onRequest','300004:\x20Action\x20not\x20allowed.','POST','supplier.deleted','supplier.read.all','300003:\x20Action\x20not\x20allowed.','142385oEbumu','1224pOoszK','events','PUT','supplier.read.some','SUPPLIER_UPDATED','http://localhost:5001/suppliers','supplier.read','stringify','getCurrentUser','DELETE','198429DmVNBE'];a22_0x1612=function(){return _0x188529;};return a22_0x1612();}
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 +1 @@
1
- (function(_0x1755fb,_0x3744b6){const _0x528bd0=a23_0x156b,_0xd335b3=_0x1755fb();while(!![]){try{const _0x4961d6=-parseInt(_0x528bd0(0xce))/0x1+parseInt(_0x528bd0(0xb4))/0x2+-parseInt(_0x528bd0(0xcb))/0x3*(-parseInt(_0x528bd0(0xb7))/0x4)+-parseInt(_0x528bd0(0xc0))/0x5+parseInt(_0x528bd0(0xcd))/0x6+parseInt(_0x528bd0(0xcc))/0x7*(parseInt(_0x528bd0(0xae))/0x8)+parseInt(_0x528bd0(0xca))/0x9*(parseInt(_0x528bd0(0xc2))/0xa);if(_0x4961d6===_0x3744b6)break;else _0xd335b3['push'](_0xd335b3['shift']());}catch(_0xe2619f){_0xd335b3['push'](_0xd335b3['shift']());}}}(a23_0x40be,0xb1b73));function a23_0x156b(_0x294595,_0x2f9341){_0x294595=_0x294595-0xae;const _0x40beea=a23_0x40be();let _0x156bec=_0x40beea[_0x294595];return _0x156bec;}function a23_0x40be(){const _0x6ed813=['647096ouThyV','TAX_READ','onRequest','tax.deleted','TAX_CREATED','DELETE','847126PUeIHN','POST','ADMIN','52wBLVFN','status','TAX_ALL','tax.read.some','stringify','getCurrentUser','tax.read.all','PUT','hasPermission','5738510xJTEDo','tax','10vHiydD','application/json','TAX_UPDATED','500003:\x20Action\x20not\x20allowed.','API\x20Error:\x20','events','500002:\x20Action\x20not\x20allowed.','statusText','3008295nSbXsS','239466chwfAo','21QbrHEa','2559714jeFXZv','589159CSbcHh','json','tax.updated'];a23_0x40be=function(){return _0x6ed813;};return a23_0x40be();}const API_BASE='http://localhost:5001/taxes';export default function bindTaxEvents(_0x21d2f9){const _0x5e4a31=a23_0x156b;_0x21d2f9[_0x5e4a31(0xc7)]['onRequest']('tax.created',async _0x14d83d=>{const _0x4092c3=_0x5e4a31;if(!_0x21d2f9[_0x4092c3(0xbc)]()['hasPermission'](_0x4092c3(0xb6))&&!_0x21d2f9['getCurrentUser']()[_0x4092c3(0xbf)](_0x4092c3(0xb9))&&!_0x21d2f9[_0x4092c3(0xbc)]()[_0x4092c3(0xbf)](_0x4092c3(0xb2)))throw new Error('500001:\x20Action\x20not\x20allowed.');const _0x2b325e=await fetch(''+API_BASE,{'method':_0x4092c3(0xb5),'headers':{'Content-Type':'application/json'},'body':JSON[_0x4092c3(0xbb)](_0x14d83d[_0x4092c3(0xc1)])});if(!_0x2b325e['ok'])throw new Error(_0x4092c3(0xc6)+_0x2b325e['statusText']);const _0x47006f=await _0x2b325e[_0x4092c3(0xcf)]();return _0x47006f['id'];}),_0x21d2f9['events'][_0x5e4a31(0xb0)]('tax.read',async({id:_0x9a7416})=>{const _0x29bc2a=_0x5e4a31;if(!_0x21d2f9[_0x29bc2a(0xbc)]()[_0x29bc2a(0xbf)](_0x29bc2a(0xb6))&&!_0x21d2f9[_0x29bc2a(0xbc)]()[_0x29bc2a(0xbf)](_0x29bc2a(0xb9))&&!_0x21d2f9['getCurrentUser']()[_0x29bc2a(0xbf)](_0x29bc2a(0xaf)))throw new Error(_0x29bc2a(0xc8));const _0x4c3c24=await fetch(API_BASE+'/'+_0x9a7416);if(!_0x4c3c24['ok'])throw new Error(_0x29bc2a(0xc6)+_0x4c3c24['statusText']);return await _0x4c3c24[_0x29bc2a(0xcf)]();}),_0x21d2f9[_0x5e4a31(0xc7)]['onRequest'](_0x5e4a31(0xbd),async()=>{const _0x29e722=_0x5e4a31;if(!_0x21d2f9[_0x29e722(0xbc)]()['hasPermission'](_0x29e722(0xb6))&&!_0x21d2f9[_0x29e722(0xbc)]()['hasPermission'](_0x29e722(0xb9))&&!_0x21d2f9[_0x29e722(0xbc)]()[_0x29e722(0xbf)](_0x29e722(0xaf)))throw new Error(_0x29e722(0xc8));const _0x298fe3=await fetch(''+API_BASE);if(!_0x298fe3['ok'])throw new Error('API\x20Error:\x20'+_0x298fe3[_0x29e722(0xc9)]);return await _0x298fe3[_0x29e722(0xcf)]();}),_0x21d2f9[_0x5e4a31(0xc7)][_0x5e4a31(0xb0)](_0x5e4a31(0xba),async _0x3f9ca5=>{const _0x2dab76=_0x5e4a31;if(!_0x21d2f9[_0x2dab76(0xbc)]()[_0x2dab76(0xbf)](_0x2dab76(0xb6))&&!_0x21d2f9['getCurrentUser']()[_0x2dab76(0xbf)](_0x2dab76(0xb9))&&!_0x21d2f9[_0x2dab76(0xbc)]()[_0x2dab76(0xbf)](_0x2dab76(0xaf)))throw new Error(_0x2dab76(0xc8));const _0x5ca125=await fetch(API_BASE+'/search',{'method':_0x2dab76(0xb5),'headers':{'Content-Type':_0x2dab76(0xc3)},'body':JSON['stringify'](_0x3f9ca5)});if(!_0x5ca125['ok'])throw new Error(_0x2dab76(0xc6)+_0x5ca125['statusText']);return await _0x5ca125[_0x2dab76(0xcf)]();}),_0x21d2f9[_0x5e4a31(0xc7)][_0x5e4a31(0xb0)](_0x5e4a31(0xd0),async _0x21cea5=>{const _0x16b54f=_0x5e4a31;if(!_0x21d2f9[_0x16b54f(0xbc)]()['hasPermission']('ADMIN')&&!_0x21d2f9['getCurrentUser']()['hasPermission'](_0x16b54f(0xb9))&&!_0x21d2f9[_0x16b54f(0xbc)]()[_0x16b54f(0xbf)](_0x16b54f(0xc4)))throw new Error(_0x16b54f(0xc5));const {where:_0x52e31a,..._0x279242}=_0x21cea5,_0xd2bbd4=await fetch(API_BASE+'/'+_0x52e31a['id'],{'method':_0x16b54f(0xbe),'headers':{'Content-Type':_0x16b54f(0xc3)},'body':JSON['stringify'](_0x279242)});if(!_0xd2bbd4['ok'])throw new Error(_0x16b54f(0xc6)+_0xd2bbd4[_0x16b54f(0xc9)]);return await _0xd2bbd4[_0x16b54f(0xcf)]();}),_0x21d2f9[_0x5e4a31(0xc7)]['on'](_0x5e4a31(0xb1),async({id:_0x360dd4})=>{const _0x1355c8=_0x5e4a31;if(!_0x21d2f9[_0x1355c8(0xbc)]()[_0x1355c8(0xbf)](_0x1355c8(0xb6))&&!_0x21d2f9[_0x1355c8(0xbc)]()[_0x1355c8(0xbf)](_0x1355c8(0xb9))&&!_0x21d2f9[_0x1355c8(0xbc)]()[_0x1355c8(0xbf)]('TAX_DELETED'))throw new Error('500004:\x20Action\x20not\x20allowed.');const _0x1a36e6=await fetch(API_BASE+'/'+_0x360dd4,{'method':_0x1355c8(0xb3)});if(!_0x1a36e6['ok']&&_0x1a36e6[_0x1355c8(0xb8)]!==0xcc)throw new Error('API\x20Error:\x20'+_0x1a36e6[_0x1355c8(0xc9)]);});}
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 +1 @@
1
- const a24_0x5390ad=a24_0x58f8;(function(_0xd8c818,_0x3f490f){const _0xfc4eb9=a24_0x58f8,_0x4ac33b=_0xd8c818();while(!![]){try{const _0x1db543=-parseInt(_0xfc4eb9(0x127))/0x1*(-parseInt(_0xfc4eb9(0x126))/0x2)+parseInt(_0xfc4eb9(0x11b))/0x3*(-parseInt(_0xfc4eb9(0x13b))/0x4)+-parseInt(_0xfc4eb9(0x11e))/0x5*(-parseInt(_0xfc4eb9(0x133))/0x6)+parseInt(_0xfc4eb9(0x119))/0x7*(parseInt(_0xfc4eb9(0x121))/0x8)+-parseInt(_0xfc4eb9(0x130))/0x9+-parseInt(_0xfc4eb9(0x128))/0xa*(parseInt(_0xfc4eb9(0x139))/0xb)+-parseInt(_0xfc4eb9(0x138))/0xc;if(_0x1db543===_0x3f490f)break;else _0x4ac33b['push'](_0x4ac33b['shift']());}catch(_0x247a4e){_0x4ac33b['push'](_0x4ac33b['shift']());}}}(a24_0x3102,0xc0067));function a24_0x58f8(_0x35c112,_0x39a92a){_0x35c112=_0x35c112-0x114;const _0x3102a0=a24_0x3102();let _0x58f88a=_0x3102a0[_0x35c112];return _0x58f88a;}const API_BASE=a24_0x5390ad(0x12f);function a24_0x3102(){const _0x14aade=['json','1170oToYHJ','user.created','PUT','API\x20Error:\x20','onRequest','354036Afamxa','2798961mnCeXW','getCurrentUser','3903384PuixIC','events','user.login','stringify','user.read.some','100004:\x20Action\x20not\x20allowed.','USER_ALL','status','authorizations','DELETE','9423211koWsbm','/login','3hvbBSU','user.updated','ADMIN','23990fcuasN','user.read.all','user.deleted','8FEYGgt','hasPermission','application/json','statusText','100001:\x20Action\x20not\x20allowed.','5182SZVuSE','27xJQWIw','10qijoVg','USER_CREATED','USER_DELETED','USER_READ','from','100002:\x20Action\x20not\x20allowed.','POST','http://localhost:5001/users','2748645Ykhuhw','/search'];a24_0x3102=function(){return _0x14aade;};return a24_0x3102();}export default function bindUserEvents(_0x4accbf){const _0xcda6a=a24_0x5390ad;_0x4accbf[_0xcda6a(0x13c)]['onRequest'](_0xcda6a(0x13d),async _0x502d88=>{const _0x3903ef=_0xcda6a,_0x1eb70a=await fetch(API_BASE+_0x3903ef(0x11a),{'method':'POST','headers':{'Content-Type':_0x3903ef(0x123)},'body':JSON[_0x3903ef(0x13e)](_0x502d88)});if(!_0x1eb70a['ok'])throw new Error(_0x3903ef(0x136)+_0x1eb70a[_0x3903ef(0x124)]);return await _0x1eb70a[_0x3903ef(0x132)]();}),_0x4accbf['events'][_0xcda6a(0x137)](_0xcda6a(0x134),async({user:_0xfc40e4})=>{const _0x2bb674=_0xcda6a;if(!_0x4accbf[_0x2bb674(0x13a)]()[_0x2bb674(0x122)](_0x2bb674(0x11d))&&!_0x4accbf[_0x2bb674(0x13a)]()['hasPermission'](_0x2bb674(0x115))&&!_0x4accbf[_0x2bb674(0x13a)]()[_0x2bb674(0x122)](_0x2bb674(0x129)))throw new Error(_0x2bb674(0x125));const _0x58a1=await fetch(''+API_BASE,{'method':_0x2bb674(0x12e),'headers':{'Content-Type':_0x2bb674(0x123)},'body':JSON[_0x2bb674(0x13e)]({'email':_0xfc40e4['email']??null,'password':_0xfc40e4['password']??null,'authorizations':Array[_0x2bb674(0x12c)](_0xfc40e4[_0x2bb674(0x117)]??[])})});if(!_0x58a1['ok'])throw new Error('API\x20Error:\x20'+_0x58a1[_0x2bb674(0x124)]);const _0x2a8e78=await _0x58a1[_0x2bb674(0x132)]();return _0x2a8e78['id'];}),_0x4accbf['events'][_0xcda6a(0x137)]('user.read',async({id:_0x1e4a20})=>{const _0x2eca85=_0xcda6a;if(!_0x4accbf['getCurrentUser']()[_0x2eca85(0x122)](_0x2eca85(0x11d))&&!_0x4accbf['getCurrentUser']()[_0x2eca85(0x122)](_0x2eca85(0x115))&&!_0x4accbf[_0x2eca85(0x13a)]()[_0x2eca85(0x122)](_0x2eca85(0x12b)))throw new Error(_0x2eca85(0x12d));const _0x2f04a7=await fetch(API_BASE+'/'+_0x1e4a20);if(!_0x2f04a7['ok'])throw new Error(_0x2eca85(0x136)+_0x2f04a7[_0x2eca85(0x124)]);return await _0x2f04a7[_0x2eca85(0x132)]();}),_0x4accbf[_0xcda6a(0x13c)]['onRequest'](_0xcda6a(0x11f),async()=>{const _0x306293=_0xcda6a;if(!_0x4accbf['getCurrentUser']()['hasPermission'](_0x306293(0x11d))&&!_0x4accbf['getCurrentUser']()['hasPermission'](_0x306293(0x115))&&!_0x4accbf[_0x306293(0x13a)]()[_0x306293(0x122)](_0x306293(0x12b)))throw new Error('100002:\x20Action\x20not\x20allowed.');const _0x12bf3a=await fetch(''+API_BASE);if(!_0x12bf3a['ok'])throw new Error(_0x306293(0x136)+_0x12bf3a['statusText']);return await _0x12bf3a[_0x306293(0x132)]();}),_0x4accbf[_0xcda6a(0x13c)]['onRequest'](_0xcda6a(0x13f),async _0x83a6ed=>{const _0x14a747=_0xcda6a;if(!_0x4accbf[_0x14a747(0x13a)]()['hasPermission'](_0x14a747(0x11d))&&!_0x4accbf[_0x14a747(0x13a)]()[_0x14a747(0x122)](_0x14a747(0x115))&&!_0x4accbf[_0x14a747(0x13a)]()[_0x14a747(0x122)](_0x14a747(0x12b)))throw new Error(_0x14a747(0x12d));const _0x1e1c27=await fetch(API_BASE+_0x14a747(0x131),{'method':'POST','headers':{'Content-Type':_0x14a747(0x123)},'body':JSON[_0x14a747(0x13e)](_0x83a6ed)});if(!_0x1e1c27['ok'])throw new Error('API\x20Error:\x20'+_0x1e1c27[_0x14a747(0x124)]);return await _0x1e1c27[_0x14a747(0x132)]();}),_0x4accbf[_0xcda6a(0x13c)][_0xcda6a(0x137)](_0xcda6a(0x11c),async _0x160176=>{const _0x4ef1c1=_0xcda6a;if(!_0x4accbf[_0x4ef1c1(0x13a)]()[_0x4ef1c1(0x122)](_0x4ef1c1(0x11d))&&!_0x4accbf[_0x4ef1c1(0x13a)]()[_0x4ef1c1(0x122)](_0x4ef1c1(0x115))&&!_0x4accbf[_0x4ef1c1(0x13a)]()[_0x4ef1c1(0x122)]('USER_UPDATED'))throw new Error('100003:\x20Action\x20not\x20allowed.');const {where:_0x5c6971,..._0x2a6124}=_0x160176,_0x609ab2=await fetch(API_BASE+'/'+_0x5c6971['id'],{'method':_0x4ef1c1(0x135),'headers':{'Content-Type':'application/json'},'body':JSON[_0x4ef1c1(0x13e)](_0x2a6124)});if(!_0x609ab2['ok'])throw new Error(_0x4ef1c1(0x136)+_0x609ab2['statusText']);return await _0x609ab2[_0x4ef1c1(0x132)]();}),_0x4accbf[_0xcda6a(0x13c)]['on'](_0xcda6a(0x120),async({id:_0x3223b9})=>{const _0xb0d720=_0xcda6a;if(!_0x4accbf[_0xb0d720(0x13a)]()['hasPermission'](_0xb0d720(0x11d))&&!_0x4accbf['getCurrentUser']()[_0xb0d720(0x122)]('USER_ALL')&&!_0x4accbf[_0xb0d720(0x13a)]()[_0xb0d720(0x122)](_0xb0d720(0x12a)))throw new Error(_0xb0d720(0x114));const _0x551bed=await fetch(API_BASE+'/'+_0x3223b9,{'method':_0xb0d720(0x118)});if(!_0x551bed['ok']&&_0x551bed[_0xb0d720(0x116)]!==0xcc)throw new Error(_0xb0d720(0x136)+_0x551bed[_0xb0d720(0x124)]);});}
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(_0x3ae5db,_0x20b0a7){var _0x4271e8=a28_0x2db3,_0x59b695=_0x3ae5db();while(!![]){try{var _0x2e0967=-parseInt(_0x4271e8(0x1f0))/0x1+parseInt(_0x4271e8(0x1f1))/0x2*(parseInt(_0x4271e8(0x1f2))/0x3)+parseInt(_0x4271e8(0x1f4))/0x4*(-parseInt(_0x4271e8(0x1f3))/0x5)+-parseInt(_0x4271e8(0x1f6))/0x6+parseInt(_0x4271e8(0x1f7))/0x7+-parseInt(_0x4271e8(0x1f8))/0x8*(-parseInt(_0x4271e8(0x1f9))/0x9)+parseInt(_0x4271e8(0x1f5))/0xa;if(_0x2e0967===_0x20b0a7)break;else _0x59b695['push'](_0x59b695['shift']());}catch(_0x3e4f96){_0x59b695['push'](_0x59b695['shift']());}}}(a28_0x2a59,0x21203));import{Entity}from'../core/Entity.js';function a28_0x2db3(_0x4b651e,_0x40f238){_0x4b651e=_0x4b651e-0x1f0;var _0x2a59c3=a28_0x2a59();var _0x2db364=_0x2a59c3[_0x4b651e];return _0x2db364;}export class Client extends Entity{constructor(_0x230c5b,_0x3e7f54){super(_0x230c5b),Object['assign'](this,_0x3e7f54);}}function a28_0x2a59(){var _0x3f531f=['8IGPfjX','1579400sisENF','320838FSkSJA','607544rczQWc','2216cyVunY','2187qaikQn','163834YgbFYu','214ALszZr','6189KAGnjD','449485nLBfSF'];a28_0x2a59=function(){return _0x3f531f;};return a28_0x2a59();}
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 a29_0x3d9b(){var _0x20ec4e=['2501488gWHWIN','8935656pYvAci','4kPgQLK','assign','10muyLow','370njtjJX','7KgrXlG','7050858RHpzEb','1072092lXtzdb','2157yfdYtb','7418305oUjjCd','11691072HxEyMi'];a29_0x3d9b=function(){return _0x20ec4e;};return a29_0x3d9b();}(function(_0x2d42cb,_0x178377){var _0x2e90b1=a29_0x1724,_0x4f4d6d=_0x2d42cb();while(!![]){try{var _0x5304bf=parseInt(_0x2e90b1(0x185))/0x1*(parseInt(_0x2e90b1(0x18d))/0x2)+parseInt(_0x2e90b1(0x184))/0x3*(parseInt(_0x2e90b1(0x18a))/0x4)+parseInt(_0x2e90b1(0x186))/0x5+parseInt(_0x2e90b1(0x18f))/0x6*(parseInt(_0x2e90b1(0x18e))/0x7)+-parseInt(_0x2e90b1(0x189))/0x8+-parseInt(_0x2e90b1(0x187))/0x9+-parseInt(_0x2e90b1(0x18c))/0xa*(parseInt(_0x2e90b1(0x188))/0xb);if(_0x5304bf===_0x178377)break;else _0x4f4d6d['push'](_0x4f4d6d['shift']());}catch(_0x5169e3){_0x4f4d6d['push'](_0x4f4d6d['shift']());}}}(a29_0x3d9b,0xbc700));function a29_0x1724(_0x2b425c,_0x3eb62d){_0x2b425c=_0x2b425c-0x184;var _0x3d9bb6=a29_0x3d9b();var _0x1724e7=_0x3d9bb6[_0x2b425c];return _0x1724e7;}import{Entity}from'../core/Entity.js';export class Item extends Entity{constructor(_0x586540,_0x1bb9af){var _0x5071e8=a29_0x1724;super(_0x586540),Object[_0x5071e8(0x18b)](this,_0x1bb9af);}}
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(_0x153878,_0x91de14){var _0x1c1fd4=a30_0x4cc8,_0x29ac9a=_0x153878();while(!![]){try{var _0x2573e8=-parseInt(_0x1c1fd4(0x17c))/0x1*(parseInt(_0x1c1fd4(0x17e))/0x2)+parseInt(_0x1c1fd4(0x179))/0x3+parseInt(_0x1c1fd4(0x17f))/0x4+-parseInt(_0x1c1fd4(0x17b))/0x5+parseInt(_0x1c1fd4(0x17d))/0x6+-parseInt(_0x1c1fd4(0x17a))/0x7+-parseInt(_0x1c1fd4(0x178))/0x8*(-parseInt(_0x1c1fd4(0x180))/0x9);if(_0x2573e8===_0x91de14)break;else _0x29ac9a['push'](_0x29ac9a['shift']());}catch(_0x358170){_0x29ac9a['push'](_0x29ac9a['shift']());}}}(a30_0x4ae9,0x327b9));function a30_0x4cc8(_0x13b1b9,_0x309ef3){_0x13b1b9=_0x13b1b9-0x178;var _0x4ae932=a30_0x4ae9();var _0x4cc8c8=_0x4ae932[_0x13b1b9];return _0x4cc8c8;}import{Entity}from'../core/Entity.js';function a30_0x4ae9(){var _0x22786f=['974124GCvDSE','36IKkJlz','128008BTjFAJ','1099599QRjtnO','624575ezadoB','1730660firzmj','86HjaSpk','1273836zRKlcY','5680URHSjf'];a30_0x4ae9=function(){return _0x22786f;};return a30_0x4ae9();}export class Order extends Entity{constructor(_0x1c2a1d,_0x28f9ce){super(_0x1c2a1d),Object['assign'](this,_0x28f9ce);}}
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(_0x560972,_0x5768df){var _0x41641a=a31_0x2966,_0x5b516c=_0x560972();while(!![]){try{var _0x40a515=parseInt(_0x41641a(0x13f))/0x1+-parseInt(_0x41641a(0x139))/0x2+parseInt(_0x41641a(0x137))/0x3*(parseInt(_0x41641a(0x13d))/0x4)+-parseInt(_0x41641a(0x138))/0x5+-parseInt(_0x41641a(0x13e))/0x6+parseInt(_0x41641a(0x13a))/0x7*(-parseInt(_0x41641a(0x135))/0x8)+parseInt(_0x41641a(0x136))/0x9*(parseInt(_0x41641a(0x13b))/0xa);if(_0x40a515===_0x5768df)break;else _0x5b516c['push'](_0x5b516c['shift']());}catch(_0x2e48ed){_0x5b516c['push'](_0x5b516c['shift']());}}}(a31_0x4334,0xd50d3));function a31_0x2966(_0x1f62f5,_0x5eabbf){_0x1f62f5=_0x1f62f5-0x135;var _0x4334dc=a31_0x4334();var _0x29669b=_0x4334dc[_0x1f62f5];return _0x29669b;}import{Entity}from'../core/Entity.js';export class Preparation extends Entity{constructor(_0x1f5464,_0x19ab6c){var _0x3fed85=a31_0x2966;super(_0x1f5464),Object[_0x3fed85(0x13c)](this,_0x19ab6c);}}function a31_0x4334(){var _0x298d61=['10YBQfPE','assign','244AVPHBp','383028UjoYyA','1105117aELkuy','362328OwfiTH','26883288jkxFfm','13521GQYQsc','7875260PWxUAe','993594jiXMmi','210KNvoNF'];a31_0x4334=function(){return _0x298d61;};return a31_0x4334();}
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(_0x49ef34,_0x28a9ec){var _0x72aa75=a32_0x5e22,_0x2d7ab3=_0x49ef34();while(!![]){try{var _0x126928=-parseInt(_0x72aa75(0x1ac))/0x1*(-parseInt(_0x72aa75(0x1ab))/0x2)+parseInt(_0x72aa75(0x1ae))/0x3*(-parseInt(_0x72aa75(0x1b3))/0x4)+parseInt(_0x72aa75(0x1ad))/0x5*(parseInt(_0x72aa75(0x1b5))/0x6)+-parseInt(_0x72aa75(0x1b1))/0x7+parseInt(_0x72aa75(0x1b2))/0x8*(-parseInt(_0x72aa75(0x1b4))/0x9)+-parseInt(_0x72aa75(0x1af))/0xa+parseInt(_0x72aa75(0x1b0))/0xb;if(_0x126928===_0x28a9ec)break;else _0x2d7ab3['push'](_0x2d7ab3['shift']());}catch(_0x137b2d){_0x2d7ab3['push'](_0x2d7ab3['shift']());}}}(a32_0x5747,0xd2fac));function a32_0x5747(){var _0x2c3b3f=['376MNEChI','1096fnaXww','312939uBiokp','344028AhMsgq','27992soetKP','33NWYoLC','140qvOwqb','14901VHJjpe','5187390IxJSkT','34343265tHKlyK','5679387bOrgat'];a32_0x5747=function(){return _0x2c3b3f;};return a32_0x5747();}import{Entity}from'../core/Entity.js';function a32_0x5e22(_0x176cfe,_0x32478b){_0x176cfe=_0x176cfe-0x1ab;var _0x57476f=a32_0x5747();var _0x5e226e=_0x57476f[_0x176cfe];return _0x5e226e;}export class Purchase extends Entity{constructor(_0x70f83b,_0xa3f7dd){super(_0x70f83b),Object['assign'](this,_0xa3f7dd);}}
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 a33_0x6eb6(_0x1eefaf,_0x1f8709){_0x1eefaf=_0x1eefaf-0x132;var _0x47cdb5=a33_0x47cd();var _0x6eb612=_0x47cdb5[_0x1eefaf];return _0x6eb612;}(function(_0x20fa32,_0x42f696){var _0x55d2cf=a33_0x6eb6,_0x10f72a=_0x20fa32();while(!![]){try{var _0x116eb0=parseInt(_0x55d2cf(0x13d))/0x1*(parseInt(_0x55d2cf(0x136))/0x2)+parseInt(_0x55d2cf(0x13c))/0x3*(parseInt(_0x55d2cf(0x137))/0x4)+-parseInt(_0x55d2cf(0x134))/0x5+-parseInt(_0x55d2cf(0x133))/0x6*(parseInt(_0x55d2cf(0x138))/0x7)+-parseInt(_0x55d2cf(0x135))/0x8+-parseInt(_0x55d2cf(0x13a))/0x9*(parseInt(_0x55d2cf(0x132))/0xa)+parseInt(_0x55d2cf(0x13b))/0xb*(parseInt(_0x55d2cf(0x139))/0xc);if(_0x116eb0===_0x42f696)break;else _0x10f72a['push'](_0x10f72a['shift']());}catch(_0x2556d2){_0x10f72a['push'](_0x10f72a['shift']());}}}(a33_0x47cd,0xc931e));function a33_0x47cd(){var _0x59c4ac=['6466485NNhDal','6998344jHEQyp','1898608pqodKz','16ljiXUp','687512vtfTFz','438276oLAodb','9yPsCpp','803GmPZIS','339723YkEevu','1FazBMI','9780470hvDeko','6UCuvCk'];a33_0x47cd=function(){return _0x59c4ac;};return a33_0x47cd();}import{Entity}from'../core/Entity.js';export class Reception extends Entity{constructor(_0x323f5e,_0x16353f){super(_0x323f5e),Object['assign'](this,_0x16353f);}}
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(_0x2ae6a4,_0x448853){var _0x5e1c8f=a34_0x5219,_0x202152=_0x2ae6a4();while(!![]){try{var _0x22394a=-parseInt(_0x5e1c8f(0x1be))/0x1+-parseInt(_0x5e1c8f(0x1c3))/0x2+parseInt(_0x5e1c8f(0x1bd))/0x3+-parseInt(_0x5e1c8f(0x1bc))/0x4*(parseInt(_0x5e1c8f(0x1c0))/0x5)+parseInt(_0x5e1c8f(0x1c2))/0x6+-parseInt(_0x5e1c8f(0x1bb))/0x7*(-parseInt(_0x5e1c8f(0x1bf))/0x8)+-parseInt(_0x5e1c8f(0x1c1))/0x9;if(_0x22394a===_0x448853)break;else _0x202152['push'](_0x202152['shift']());}catch(_0x2a061d){_0x202152['push'](_0x202152['shift']());}}}(a34_0x2aaa,0xb7825));function a34_0x5219(_0x575a84,_0x3ac201){_0x575a84=_0x575a84-0x1bb;var _0x2aaa87=a34_0x2aaa();var _0x521994=_0x2aaa87[_0x575a84];return _0x521994;}import{Entity}from'../core/Entity.js';export class Stock extends Entity{constructor(_0x4cbe43,_0x300912){super(_0x4cbe43),Object['assign'](this,_0x300912);}}function a34_0x2aaa(){var _0x1cf151=['4437387drXEqf','517728fhZRPK','12784lkNvtP','2221790FwWftD','6429609AlmtcP','4929726FAslfg','978876YdvkbK','2702YRViAz','4fttTsP'];a34_0x2aaa=function(){return _0x1cf151;};return a34_0x2aaa();}
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 a35_0x3172(_0x3359bd,_0x21f8ea){_0x3359bd=_0x3359bd-0xf8;var _0x5d8d2d=a35_0x5d8d();var _0x3172b3=_0x5d8d2d[_0x3359bd];return _0x3172b3;}function a35_0x5d8d(){var _0x4591b3=['1YqJHyn','assign','19580769aKtUSY','3999680NlYTGI','1181006MNeOwy','3199385EkdzOd','63OamXsP','1290288nUxstg','479286RbklcX','1053213hMdOjf'];a35_0x5d8d=function(){return _0x4591b3;};return a35_0x5d8d();}(function(_0x2e41a8,_0x45f83b){var _0x40a733=a35_0x3172,_0x2a4284=_0x2e41a8();while(!![]){try{var _0x428fe2=-parseInt(_0x40a733(0xff))/0x1*(parseInt(_0x40a733(0xf9))/0x2)+parseInt(_0x40a733(0xfe))/0x3+parseInt(_0x40a733(0xfc))/0x4+-parseInt(_0x40a733(0xfa))/0x5+parseInt(_0x40a733(0xfd))/0x6*(-parseInt(_0x40a733(0xfb))/0x7)+-parseInt(_0x40a733(0xf8))/0x8+parseInt(_0x40a733(0x101))/0x9;if(_0x428fe2===_0x45f83b)break;else _0x2a4284['push'](_0x2a4284['shift']());}catch(_0x550aa9){_0x2a4284['push'](_0x2a4284['shift']());}}}(a35_0x5d8d,0x61a8f));import{Entity}from'../core/Entity.js';export class Supplier extends Entity{constructor(_0x509b43,_0x508e89){var _0x5be0f0=a35_0x3172;super(_0x509b43),Object[_0x5be0f0(0x100)](this,_0x508e89);}}
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 a36_0x1067(_0x41954a,_0x2a13c6){_0x41954a=_0x41954a-0x1a7;var _0x3b6aac=a36_0x3b6a();var _0x106780=_0x3b6aac[_0x41954a];return _0x106780;}(function(_0x1a4686,_0x10aa18){var _0x656dd=a36_0x1067,_0x35996c=_0x1a4686();while(!![]){try{var _0x4df052=parseInt(_0x656dd(0x1b0))/0x1+parseInt(_0x656dd(0x1ab))/0x2+parseInt(_0x656dd(0x1ae))/0x3+-parseInt(_0x656dd(0x1ad))/0x4+-parseInt(_0x656dd(0x1af))/0x5*(-parseInt(_0x656dd(0x1a9))/0x6)+parseInt(_0x656dd(0x1a7))/0x7+parseInt(_0x656dd(0x1aa))/0x8*(-parseInt(_0x656dd(0x1ac))/0x9);if(_0x4df052===_0x10aa18)break;else _0x35996c['push'](_0x35996c['shift']());}catch(_0x17aed2){_0x35996c['push'](_0x35996c['shift']());}}}(a36_0x3b6a,0xb5c78));import{Entity}from'../core/Entity.js';export class Tax extends Entity{constructor(_0x20eaa4,_0x46bfcd){var _0x2fd684=a36_0x1067;super(_0x20eaa4),Object[_0x2fd684(0x1a8)](this,_0x46bfcd);}}function a36_0x3b6a(){var _0x398851=['1819630LrVXvu','2436930ZEDfnS','1455516MSkLwE','2523063XqxJHP','9445ulFvmR','1363009aqzuCv','4665157JTGWEf','assign','2694kHnoKg','104HXzLdO'];a36_0x3b6a=function(){return _0x398851;};return a36_0x3b6a();}
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 a37_0xddee63=a37_0x4d7a;(function(_0x8ea4d7,_0x11a2f4){var _0x4d457b=a37_0x4d7a,_0x5ac1b6=_0x8ea4d7();while(!![]){try{var _0x3c223c=parseInt(_0x4d457b(0xb6))/0x1+-parseInt(_0x4d457b(0xb5))/0x2+-parseInt(_0x4d457b(0xb1))/0x3+parseInt(_0x4d457b(0xb0))/0x4+-parseInt(_0x4d457b(0xbb))/0x5+parseInt(_0x4d457b(0xb8))/0x6*(-parseInt(_0x4d457b(0xbc))/0x7)+parseInt(_0x4d457b(0xb2))/0x8*(parseInt(_0x4d457b(0xb4))/0x9);if(_0x3c223c===_0x11a2f4)break;else _0x5ac1b6['push'](_0x5ac1b6['shift']());}catch(_0x5f150e){_0x5ac1b6['push'](_0x5ac1b6['shift']());}}}(a37_0x5b2a,0xafd34));function a37_0x4d7a(_0x64cde4,_0x2e3f6f){_0x64cde4=_0x64cde4-0xad;var _0x5b2a40=a37_0x5b2a();var _0x4d7abc=_0x5b2a40[_0x64cde4];return _0x4d7abc;}function a37_0x5b2a(){var _0x9b30b8=['ADMIN','delete','removePermission','5276740QnWBNS','3377025kMCMrG','13037288cTBOJN','has','9CdilAw','842024ENEFMI','1069830CbodfG','assign','3258WjXMqT','authorizations','hasPermission','3071120DRRZFb','14665uUWVtq'];a37_0x5b2a=function(){return _0x9b30b8;};return a37_0x5b2a();}import{Entity}from'../core/Entity.js';export class User extends Entity{constructor(_0xf08f53,_0x3b4f4e){var _0x26e63e=a37_0x4d7a;super(_0xf08f53),_0x3b4f4e[_0x26e63e(0xb9)]=_0x3b4f4e[_0x26e63e(0xb9)]?new Set(_0x3b4f4e[_0x26e63e(0xb9)]):new Set(),Object[_0x26e63e(0xb7)](this,_0x3b4f4e);}[a37_0xddee63(0xba)](_0x5b0b93){var _0x364f9f=a37_0xddee63;if(this[_0x364f9f(0xb9)][_0x364f9f(0xb3)](_0x364f9f(0xad)))return!![];return this[_0x364f9f(0xb9)][_0x364f9f(0xb3)](_0x5b0b93);}['addPermission'](_0x2a798a){var _0x5b36bc=a37_0xddee63;this[_0x5b36bc(0xb9)]['add'](_0x2a798a);}[a37_0xddee63(0xaf)](_0x2e1fc2){var _0x1edba4=a37_0xddee63;this['authorizations'][_0x1edba4(0xae)](_0x2e1fc2);}}
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(_0x234e55,_0x26b567){var _0x1e92da=a38_0x57c2,_0x5e4437=_0x234e55();while(!![]){try{var _0x543dfb=parseInt(_0x1e92da(0x147))/0x1*(-parseInt(_0x1e92da(0x143))/0x2)+-parseInt(_0x1e92da(0x13d))/0x3*(parseInt(_0x1e92da(0x144))/0x4)+parseInt(_0x1e92da(0x145))/0x5+-parseInt(_0x1e92da(0x13f))/0x6*(parseInt(_0x1e92da(0x146))/0x7)+-parseInt(_0x1e92da(0x13e))/0x8*(-parseInt(_0x1e92da(0x140))/0x9)+-parseInt(_0x1e92da(0x13c))/0xa*(parseInt(_0x1e92da(0x142))/0xb)+parseInt(_0x1e92da(0x141))/0xc;if(_0x543dfb===_0x26b567)break;else _0x5e4437['push'](_0x5e4437['shift']());}catch(_0xb556d0){_0x5e4437['push'](_0x5e4437['shift']());}}}(a38_0x4ea4,0x5eef5));export{OWLClient}from'./owl/OWLClient.js';export*from'./core/Module.js';function a38_0x4ea4(){var _0x3ff31a=['1710nTYOjT','552EhROPH','13768KnubGQ','921972ezpKFR','63glXuBw','18919140vCqrQZ','4741yHaAIs','68500WJPZVA','16552xUTaGR','1856080DIqQTF','7XEsDmf','17lxBArI'];a38_0x4ea4=function(){return _0x3ff31a;};return a38_0x4ea4();}export*from'./entities/User.js';function a38_0x57c2(_0x33959f,_0x3b78a4){_0x33959f=_0x33959f-0x13c;var _0x4ea410=a38_0x4ea4();var _0x57c2fc=_0x4ea410[_0x33959f];return _0x57c2fc;}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
+ (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';