owl-progiciel 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/api/routes/client.routes.js +1 -1
  2. package/dist/api/routes/item.routes.js +1 -1
  3. package/dist/api/routes/order.routes.js +1 -1
  4. package/dist/api/routes/preparation.routes.js +1 -1
  5. package/dist/api/routes/purchase.routes.js +1 -1
  6. package/dist/api/routes/reception.routes.js +1 -1
  7. package/dist/api/routes/stock.routes.js +1 -1
  8. package/dist/api/routes/supplier.routes.js +1 -1
  9. package/dist/api/routes/tax.routes.js +1 -1
  10. package/dist/api/routes/user.routes.js +1 -1
  11. package/dist/api/server.js +1 -1
  12. package/dist/core/Entity.js +1 -1
  13. package/dist/core/EventBus.js +1 -1
  14. package/dist/core/EventsDatabase.js +1 -1
  15. package/dist/core/Manager.js +1 -1
  16. package/dist/core/events/ClientEvents.js +1 -1
  17. package/dist/core/events/ItemEvents.js +1 -1
  18. package/dist/core/events/OrderEvents.js +1 -1
  19. package/dist/core/events/PreparationEvents.js +1 -1
  20. package/dist/core/events/PurchaseEvents.js +1 -1
  21. package/dist/core/events/ReceptionEvents.js +1 -1
  22. package/dist/core/events/StockEvents.js +1 -1
  23. package/dist/core/events/SupplierEvents.js +1 -1
  24. package/dist/core/events/TaxEvents.js +1 -1
  25. package/dist/core/events/UserEvents.js +1 -1
  26. package/dist/entities/Client.js +1 -1
  27. package/dist/entities/Item.js +1 -1
  28. package/dist/entities/Order.js +1 -1
  29. package/dist/entities/Preparation.js +1 -1
  30. package/dist/entities/Purchase.js +1 -1
  31. package/dist/entities/Reception.js +1 -1
  32. package/dist/entities/Stock.js +1 -1
  33. package/dist/entities/Supplier.js +1 -1
  34. package/dist/entities/Tax.js +1 -1
  35. package/dist/entities/User.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/managers/ClientManager.js +1 -1
  38. package/dist/managers/ItemManager.js +1 -1
  39. package/dist/managers/OrderManager.js +1 -1
  40. package/dist/managers/PreparationManager.js +1 -1
  41. package/dist/managers/PurchaseManager.js +1 -1
  42. package/dist/managers/ReceptionManager.js +1 -1
  43. package/dist/managers/StockManager.js +1 -1
  44. package/dist/managers/SupplierManager.js +1 -1
  45. package/dist/managers/TaxManager.js +1 -1
  46. package/dist/managers/UserManager.js +1 -1
  47. package/dist/owl/OWLClient.js +1 -1
  48. package/package.json +4 -2
  49. package/prisma/schema.prisma +6 -6
@@ -1 +1 @@
1
- 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
+ const a17_0x31b98c=a17_0x10ac;(function(_0x1c8195,_0xf9ceea){const _0x50bdef=a17_0x10ac,_0x1b87b0=_0x1c8195();while(!![]){try{const _0x5bd128=parseInt(_0x50bdef(0xe0))/0x1*(-parseInt(_0x50bdef(0xf4))/0x2)+-parseInt(_0x50bdef(0xf7))/0x3+parseInt(_0x50bdef(0xd5))/0x4*(-parseInt(_0x50bdef(0xe7))/0x5)+-parseInt(_0x50bdef(0xec))/0x6+-parseInt(_0x50bdef(0xe2))/0x7+-parseInt(_0x50bdef(0xde))/0x8+parseInt(_0x50bdef(0xe3))/0x9*(parseInt(_0x50bdef(0xd7))/0xa);if(_0x5bd128===_0xf9ceea)break;else _0x1b87b0['push'](_0x1b87b0['shift']());}catch(_0x118452){_0x1b87b0['push'](_0x1b87b0['shift']());}}}(a17_0x58c3,0xdb070));function a17_0x58c3(){const _0x3de3ff=['json','order','events','hasPermission','6797920XIMRgP','order.read','71DFWteF','ORDER_ALL','3909619kKPKqN','2558097UAPZHR','stringify','order.deleted','statusText','10ZNFnpu','ORDER_READ','http://localhost:5001/orders','POST','DELETE','4805124WhgtfK','ORDER_UPDATED','210002:\x20Action\x20not\x20allowed.','order.updated','210003:\x20Action\x20not\x20allowed.','order.read.some','application/json','status','8114zaIpdz','onRequest','ADMIN','3672057uAenFj','/search','210001:\x20Action\x20not\x20allowed.','1564228MmRCFu','API\x20Error:\x20','190bflnpO','ORDER_CREATED','getCurrentUser'];a17_0x58c3=function(){return _0x3de3ff;};return a17_0x58c3();}const API_BASE=a17_0x31b98c(0xe9);function a17_0x10ac(_0x455f96,_0x54f0d0){_0x455f96=_0x455f96-0xd3;const _0x58c367=a17_0x58c3();let _0x10ac24=_0x58c367[_0x455f96];return _0x10ac24;}export default function bindOrderEvents(_0x53ba05){const _0x46b71f=a17_0x31b98c;_0x53ba05[_0x46b71f(0xdc)][_0x46b71f(0xf5)]('order.created',async _0x3e3aea=>{const _0x450fe1=_0x46b71f;if(!_0x53ba05['getCurrentUser']()['hasPermission']('ADMIN')&&!_0x53ba05[_0x450fe1(0xd9)]()['hasPermission']('ORDER_ALL')&&!_0x53ba05[_0x450fe1(0xd9)]()[_0x450fe1(0xdd)](_0x450fe1(0xd8)))throw new Error(_0x450fe1(0xd4));const _0x4b2f85=await fetch(''+API_BASE,{'method':_0x450fe1(0xea),'headers':{'Content-Type':_0x450fe1(0xf2)},'body':JSON['stringify'](_0x3e3aea[_0x450fe1(0xdb)])});if(!_0x4b2f85['ok'])throw new Error(_0x450fe1(0xd6)+_0x4b2f85['statusText']);const _0x1090ef=await _0x4b2f85[_0x450fe1(0xda)]();return _0x1090ef['id'];}),_0x53ba05[_0x46b71f(0xdc)][_0x46b71f(0xf5)](_0x46b71f(0xdf),async({id:_0x39ebc2})=>{const _0x38ec12=_0x46b71f;if(!_0x53ba05[_0x38ec12(0xd9)]()[_0x38ec12(0xdd)](_0x38ec12(0xf6))&&!_0x53ba05[_0x38ec12(0xd9)]()['hasPermission'](_0x38ec12(0xe1))&&!_0x53ba05[_0x38ec12(0xd9)]()[_0x38ec12(0xdd)](_0x38ec12(0xe8)))throw new Error('210002:\x20Action\x20not\x20allowed.');const _0x41144e=await fetch(API_BASE+'/'+_0x39ebc2);if(!_0x41144e['ok'])throw new Error(_0x38ec12(0xd6)+_0x41144e[_0x38ec12(0xe6)]);return await _0x41144e[_0x38ec12(0xda)]();}),_0x53ba05[_0x46b71f(0xdc)][_0x46b71f(0xf5)]('order.read.all',async()=>{const _0x572fad=_0x46b71f;if(!_0x53ba05[_0x572fad(0xd9)]()[_0x572fad(0xdd)](_0x572fad(0xf6))&&!_0x53ba05[_0x572fad(0xd9)]()['hasPermission'](_0x572fad(0xe1))&&!_0x53ba05[_0x572fad(0xd9)]()[_0x572fad(0xdd)](_0x572fad(0xe8)))throw new Error('210002:\x20Action\x20not\x20allowed.');const _0x3d1b51=await fetch(''+API_BASE);if(!_0x3d1b51['ok'])throw new Error(_0x572fad(0xd6)+_0x3d1b51[_0x572fad(0xe6)]);return await _0x3d1b51['json']();}),_0x53ba05['events']['onRequest'](_0x46b71f(0xf1),async _0x44b392=>{const _0x37ce63=_0x46b71f;if(!_0x53ba05[_0x37ce63(0xd9)]()['hasPermission']('ADMIN')&&!_0x53ba05['getCurrentUser']()[_0x37ce63(0xdd)](_0x37ce63(0xe1))&&!_0x53ba05['getCurrentUser']()[_0x37ce63(0xdd)](_0x37ce63(0xe8)))throw new Error(_0x37ce63(0xee));const _0x10a2eb=await fetch(API_BASE+_0x37ce63(0xd3),{'method':_0x37ce63(0xea),'headers':{'Content-Type':_0x37ce63(0xf2)},'body':JSON[_0x37ce63(0xe4)](_0x44b392)});if(!_0x10a2eb['ok'])throw new Error(_0x37ce63(0xd6)+_0x10a2eb['statusText']);return await _0x10a2eb['json']();}),_0x53ba05[_0x46b71f(0xdc)][_0x46b71f(0xf5)](_0x46b71f(0xef),async _0x512100=>{const _0x23cf8e=_0x46b71f;if(!_0x53ba05[_0x23cf8e(0xd9)]()[_0x23cf8e(0xdd)](_0x23cf8e(0xf6))&&!_0x53ba05[_0x23cf8e(0xd9)]()[_0x23cf8e(0xdd)]('ORDER_ALL')&&!_0x53ba05[_0x23cf8e(0xd9)]()[_0x23cf8e(0xdd)](_0x23cf8e(0xed)))throw new Error(_0x23cf8e(0xf0));const {where:_0x12b116,..._0xd525fb}=_0x512100,_0xf10b12=await fetch(API_BASE+'/'+_0x12b116['id'],{'method':'PUT','headers':{'Content-Type':_0x23cf8e(0xf2)},'body':JSON[_0x23cf8e(0xe4)](_0xd525fb)});if(!_0xf10b12['ok'])throw new Error(_0x23cf8e(0xd6)+_0xf10b12[_0x23cf8e(0xe6)]);return await _0xf10b12['json']();}),_0x53ba05[_0x46b71f(0xdc)]['on'](_0x46b71f(0xe5),async({id:_0x4d4672})=>{const _0x2207b6=_0x46b71f;if(!_0x53ba05['getCurrentUser']()['hasPermission'](_0x2207b6(0xf6))&&!_0x53ba05['getCurrentUser']()['hasPermission'](_0x2207b6(0xe1))&&!_0x53ba05[_0x2207b6(0xd9)]()[_0x2207b6(0xdd)]('ORDER_DELETED'))throw new Error('210004:\x20Action\x20not\x20allowed.');const _0x1c4024=await fetch(API_BASE+'/'+_0x4d4672,{'method':_0x2207b6(0xeb)});if(!_0x1c4024['ok']&&_0x1c4024[_0x2207b6(0xf3)]!==0xcc)throw new Error(_0x2207b6(0xd6)+_0x1c4024['statusText']);});}
@@ -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
+ const a18_0x5120d5=a18_0x3cbe;(function(_0x4f9501,_0x3e907c){const _0x40362d=a18_0x3cbe,_0x543f22=_0x4f9501();while(!![]){try{const _0x25a732=parseInt(_0x40362d(0x121))/0x1+-parseInt(_0x40362d(0x129))/0x2+-parseInt(_0x40362d(0x133))/0x3+-parseInt(_0x40362d(0x137))/0x4*(-parseInt(_0x40362d(0x132))/0x5)+parseInt(_0x40362d(0x124))/0x6+parseInt(_0x40362d(0x134))/0x7*(parseInt(_0x40362d(0x13e))/0x8)+parseInt(_0x40362d(0x122))/0x9*(-parseInt(_0x40362d(0x12a))/0xa);if(_0x25a732===_0x3e907c)break;else _0x543f22['push'](_0x543f22['shift']());}catch(_0x8ff715){_0x543f22['push'](_0x543f22['shift']());}}}(a18_0x76bb,0xda5a4));const API_BASE=a18_0x5120d5(0x143);function a18_0x3cbe(_0x1ef0e1,_0x2dfbf2){_0x1ef0e1=_0x1ef0e1-0x121;const _0x76bb95=a18_0x76bb();let _0x3cbe33=_0x76bb95[_0x1ef0e1];return _0x3cbe33;}function a18_0x76bb(){const _0x4e148b=['8AqjVyG','statusText','application/json','220003:\x20Action\x20not\x20allowed.','PREPARATION_CREATED','http://localhost:5001/preparations','getCurrentUser','1201288vDbFFQ','27ODiqNE','preparation.read','9880464HNbGAJ','DELETE','PREPARATION_ALL','preparation.read.all','onRequest','841562XbTTLq','6824130eXhUjw','PUT','stringify','API\x20Error:\x20','PREPARATION_DELETED','POST','220002:\x20Action\x20not\x20allowed.','preparation.created','26960uvzDhl','757395pySuqr','2650207krcvvH','json','ADMIN','288mBLlDl','preparation.read.some','events','status','PREPARATION_READ','hasPermission','PREPARATION_UPDATED'];a18_0x76bb=function(){return _0x4e148b;};return a18_0x76bb();}export default function bindPreparationEvents(_0xfc2f1e){const _0x4d30cd=a18_0x5120d5;_0xfc2f1e['events']['onRequest'](_0x4d30cd(0x131),async _0x352531=>{const _0x293bb6=_0x4d30cd;if(!_0xfc2f1e[_0x293bb6(0x144)]()['hasPermission'](_0x293bb6(0x136))&&!_0xfc2f1e[_0x293bb6(0x144)]()[_0x293bb6(0x13c)](_0x293bb6(0x126))&&!_0xfc2f1e[_0x293bb6(0x144)]()[_0x293bb6(0x13c)](_0x293bb6(0x142)))throw new Error('220001:\x20Action\x20not\x20allowed.');const _0xb580b9=await fetch(''+API_BASE,{'method':_0x293bb6(0x12f),'headers':{'Content-Type':_0x293bb6(0x140)},'body':JSON[_0x293bb6(0x12c)](_0x352531['preparation'])});if(!_0xb580b9['ok'])throw new Error(_0x293bb6(0x12d)+_0xb580b9['statusText']);const _0x1c6954=await _0xb580b9[_0x293bb6(0x135)]();return _0x1c6954['id'];}),_0xfc2f1e[_0x4d30cd(0x139)][_0x4d30cd(0x128)](_0x4d30cd(0x123),async({id:_0x3bb9a4})=>{const _0x56c773=_0x4d30cd;if(!_0xfc2f1e[_0x56c773(0x144)]()[_0x56c773(0x13c)](_0x56c773(0x136))&&!_0xfc2f1e['getCurrentUser']()['hasPermission'](_0x56c773(0x126))&&!_0xfc2f1e['getCurrentUser']()['hasPermission'](_0x56c773(0x13b)))throw new Error(_0x56c773(0x130));const _0x134ad2=await fetch(API_BASE+'/'+_0x3bb9a4);if(!_0x134ad2['ok'])throw new Error(_0x56c773(0x12d)+_0x134ad2[_0x56c773(0x13f)]);return await _0x134ad2[_0x56c773(0x135)]();}),_0xfc2f1e['events']['onRequest'](_0x4d30cd(0x127),async()=>{const _0x4c4ffb=_0x4d30cd;if(!_0xfc2f1e[_0x4c4ffb(0x144)]()[_0x4c4ffb(0x13c)]('ADMIN')&&!_0xfc2f1e[_0x4c4ffb(0x144)]()['hasPermission'](_0x4c4ffb(0x126))&&!_0xfc2f1e['getCurrentUser']()[_0x4c4ffb(0x13c)](_0x4c4ffb(0x13b)))throw new Error('220002:\x20Action\x20not\x20allowed.');const _0x515bae=await fetch(''+API_BASE);if(!_0x515bae['ok'])throw new Error('API\x20Error:\x20'+_0x515bae[_0x4c4ffb(0x13f)]);return await _0x515bae[_0x4c4ffb(0x135)]();}),_0xfc2f1e[_0x4d30cd(0x139)][_0x4d30cd(0x128)](_0x4d30cd(0x138),async _0x40984a=>{const _0x21fe93=_0x4d30cd;if(!_0xfc2f1e[_0x21fe93(0x144)]()['hasPermission'](_0x21fe93(0x136))&&!_0xfc2f1e[_0x21fe93(0x144)]()[_0x21fe93(0x13c)](_0x21fe93(0x126))&&!_0xfc2f1e[_0x21fe93(0x144)]()['hasPermission'](_0x21fe93(0x13b)))throw new Error(_0x21fe93(0x130));const _0x2194fe=await fetch(API_BASE+'/search',{'method':_0x21fe93(0x12f),'headers':{'Content-Type':'application/json'},'body':JSON[_0x21fe93(0x12c)](_0x40984a)});if(!_0x2194fe['ok'])throw new Error(_0x21fe93(0x12d)+_0x2194fe[_0x21fe93(0x13f)]);return await _0x2194fe[_0x21fe93(0x135)]();}),_0xfc2f1e['events']['onRequest']('preparation.updated',async _0x267ae3=>{const _0x343699=_0x4d30cd;if(!_0xfc2f1e[_0x343699(0x144)]()[_0x343699(0x13c)]('ADMIN')&&!_0xfc2f1e[_0x343699(0x144)]()['hasPermission'](_0x343699(0x126))&&!_0xfc2f1e[_0x343699(0x144)]()[_0x343699(0x13c)](_0x343699(0x13d)))throw new Error(_0x343699(0x141));const {where:_0x42e664,..._0x321dcb}=_0x267ae3,_0x4c1a3c=await fetch(API_BASE+'/'+_0x42e664['id'],{'method':_0x343699(0x12b),'headers':{'Content-Type':'application/json'},'body':JSON[_0x343699(0x12c)](_0x321dcb)});if(!_0x4c1a3c['ok'])throw new Error(_0x343699(0x12d)+_0x4c1a3c[_0x343699(0x13f)]);return await _0x4c1a3c[_0x343699(0x135)]();}),_0xfc2f1e['events']['on']('preparation.deleted',async({id:_0xcb8543})=>{const _0x22434d=_0x4d30cd;if(!_0xfc2f1e[_0x22434d(0x144)]()[_0x22434d(0x13c)](_0x22434d(0x136))&&!_0xfc2f1e[_0x22434d(0x144)]()[_0x22434d(0x13c)]('PREPARATION_ALL')&&!_0xfc2f1e[_0x22434d(0x144)]()[_0x22434d(0x13c)](_0x22434d(0x12e)))throw new Error('220004:\x20Action\x20not\x20allowed.');const _0x30fe78=await fetch(API_BASE+'/'+_0xcb8543,{'method':_0x22434d(0x125)});if(!_0x30fe78['ok']&&_0x30fe78[_0x22434d(0x13a)]!==0xcc)throw new Error(_0x22434d(0x12d)+_0x30fe78[_0x22434d(0x13f)]);});}
@@ -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
+ const a19_0x39e09e=a19_0x42fd;(function(_0x2ccffe,_0x10c32f){const _0x466d8b=a19_0x42fd,_0x2ea122=_0x2ccffe();while(!![]){try{const _0x2b25d4=parseInt(_0x466d8b(0x167))/0x1+-parseInt(_0x466d8b(0x172))/0x2*(parseInt(_0x466d8b(0x17a))/0x3)+parseInt(_0x466d8b(0x174))/0x4+-parseInt(_0x466d8b(0x166))/0x5+parseInt(_0x466d8b(0x17c))/0x6+-parseInt(_0x466d8b(0x169))/0x7*(parseInt(_0x466d8b(0x16a))/0x8)+parseInt(_0x466d8b(0x17f))/0x9*(parseInt(_0x466d8b(0x163))/0xa);if(_0x2b25d4===_0x10c32f)break;else _0x2ea122['push'](_0x2ea122['shift']());}catch(_0x45b567){_0x2ea122['push'](_0x2ea122['shift']());}}}(a19_0x3a80,0x9fe37));const API_BASE=a19_0x39e09e(0x16b);export default function bindPurchaseEvents(_0x1fb792){const _0x185a6c=a19_0x39e09e;_0x1fb792[_0x185a6c(0x171)]['onRequest'](_0x185a6c(0x175),async _0x59e0c6=>{const _0x1f0d2f=_0x185a6c;if(!_0x1fb792[_0x1f0d2f(0x180)]()[_0x1f0d2f(0x173)](_0x1f0d2f(0x176))&&!_0x1fb792['getCurrentUser']()[_0x1f0d2f(0x173)]('PURCHASE_ALL')&&!_0x1fb792['getCurrentUser']()[_0x1f0d2f(0x173)]('PURCHASE_CREATED'))throw new Error('310001:\x20Action\x20not\x20allowed.');const _0x4c801f=await fetch(''+API_BASE,{'method':_0x1f0d2f(0x177),'headers':{'Content-Type':'application/json'},'body':JSON[_0x1f0d2f(0x164)](_0x59e0c6[_0x1f0d2f(0x181)])});if(!_0x4c801f['ok'])throw new Error(_0x1f0d2f(0x17e)+_0x4c801f[_0x1f0d2f(0x165)]);const _0x372302=await _0x4c801f[_0x1f0d2f(0x16f)]();return _0x372302['id'];}),_0x1fb792[_0x185a6c(0x171)]['onRequest']('purchase.read',async({id:_0x4d33f4})=>{const _0x4cb426=_0x185a6c;if(!_0x1fb792[_0x4cb426(0x180)]()[_0x4cb426(0x173)](_0x4cb426(0x176))&&!_0x1fb792[_0x4cb426(0x180)]()[_0x4cb426(0x173)](_0x4cb426(0x179))&&!_0x1fb792['getCurrentUser']()[_0x4cb426(0x173)](_0x4cb426(0x182)))throw new Error(_0x4cb426(0x178));const _0x4dbddb=await fetch(API_BASE+'/'+_0x4d33f4);if(!_0x4dbddb['ok'])throw new Error(_0x4cb426(0x17e)+_0x4dbddb[_0x4cb426(0x165)]);return await _0x4dbddb[_0x4cb426(0x16f)]();}),_0x1fb792[_0x185a6c(0x171)][_0x185a6c(0x168)]('purchase.read.all',async()=>{const _0x41591e=_0x185a6c;if(!_0x1fb792[_0x41591e(0x180)]()['hasPermission'](_0x41591e(0x176))&&!_0x1fb792['getCurrentUser']()[_0x41591e(0x173)](_0x41591e(0x179))&&!_0x1fb792[_0x41591e(0x180)]()[_0x41591e(0x173)](_0x41591e(0x182)))throw new Error(_0x41591e(0x178));const _0xff1252=await fetch(''+API_BASE);if(!_0xff1252['ok'])throw new Error(_0x41591e(0x17e)+_0xff1252['statusText']);return await _0xff1252['json']();}),_0x1fb792[_0x185a6c(0x171)][_0x185a6c(0x168)](_0x185a6c(0x16c),async _0x5cbe6c=>{const _0x463168=_0x185a6c;if(!_0x1fb792[_0x463168(0x180)]()['hasPermission'](_0x463168(0x176))&&!_0x1fb792[_0x463168(0x180)]()[_0x463168(0x173)]('PURCHASE_ALL')&&!_0x1fb792[_0x463168(0x180)]()['hasPermission'](_0x463168(0x182)))throw new Error(_0x463168(0x178));const _0x284e08=await fetch(API_BASE+'/search',{'method':_0x463168(0x177),'headers':{'Content-Type':'application/json'},'body':JSON[_0x463168(0x164)](_0x5cbe6c)});if(!_0x284e08['ok'])throw new Error(_0x463168(0x17e)+_0x284e08[_0x463168(0x165)]);return await _0x284e08['json']();}),_0x1fb792[_0x185a6c(0x171)][_0x185a6c(0x168)](_0x185a6c(0x161),async _0x1e8586=>{const _0x4bc4b2=_0x185a6c;if(!_0x1fb792[_0x4bc4b2(0x180)]()[_0x4bc4b2(0x173)](_0x4bc4b2(0x176))&&!_0x1fb792[_0x4bc4b2(0x180)]()[_0x4bc4b2(0x173)]('PURCHASE_ALL')&&!_0x1fb792[_0x4bc4b2(0x180)]()['hasPermission'](_0x4bc4b2(0x17d)))throw new Error('310003:\x20Action\x20not\x20allowed.');const {where:_0x1734cc,..._0x1d39cf}=_0x1e8586,_0x190106=await fetch(API_BASE+'/'+_0x1734cc['id'],{'method':'PUT','headers':{'Content-Type':_0x4bc4b2(0x16d)},'body':JSON[_0x4bc4b2(0x164)](_0x1d39cf)});if(!_0x190106['ok'])throw new Error(_0x4bc4b2(0x17e)+_0x190106['statusText']);return await _0x190106[_0x4bc4b2(0x16f)]();}),_0x1fb792[_0x185a6c(0x171)]['on']('purchase.deleted',async({id:_0xbefdb6})=>{const _0x2079d6=_0x185a6c;if(!_0x1fb792[_0x2079d6(0x180)]()['hasPermission'](_0x2079d6(0x176))&&!_0x1fb792[_0x2079d6(0x180)]()[_0x2079d6(0x173)](_0x2079d6(0x179))&&!_0x1fb792[_0x2079d6(0x180)]()[_0x2079d6(0x173)](_0x2079d6(0x17b)))throw new Error(_0x2079d6(0x170));const _0x56d603=await fetch(API_BASE+'/'+_0xbefdb6,{'method':_0x2079d6(0x16e)});if(!_0x56d603['ok']&&_0x56d603[_0x2079d6(0x162)]!==0xcc)throw new Error(_0x2079d6(0x17e)+_0x56d603[_0x2079d6(0x165)]);});}function a19_0x42fd(_0x4fa9a6,_0x24ab27){_0x4fa9a6=_0x4fa9a6-0x161;const _0x3a804b=a19_0x3a80();let _0x42fd3d=_0x3a804b[_0x4fa9a6];return _0x42fd3d;}function a19_0x3a80(){const _0x1ad5aa=['application/json','DELETE','json','310004:\x20Action\x20not\x20allowed.','events','2Rqzrmn','hasPermission','397988DNrlet','purchase.created','ADMIN','POST','310002:\x20Action\x20not\x20allowed.','PURCHASE_ALL','2886243icngCK','PURCHASE_DELETED','2898576hhYFlB','PURCHASE_UPDATED','API\x20Error:\x20','5772420LTGhLV','getCurrentUser','purchase','PURCHASE_READ','purchase.updated','status','20mKNsYB','stringify','statusText','3508005lHzJjB','1014436ekXGEq','onRequest','8253gzRQCE','3808XSBsHM','http://localhost:5001/purchases','purchase.read.some'];a19_0x3a80=function(){return _0x1ad5aa;};return a19_0x3a80();}
@@ -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_0x2e702d=a20_0x23d3;(function(_0xe3443d,_0x5f3307){const _0x1a943d=a20_0x23d3,_0x399795=_0xe3443d();while(!![]){try{const _0x5ac8c7=-parseInt(_0x1a943d(0x18b))/0x1+parseInt(_0x1a943d(0x187))/0x2*(parseInt(_0x1a943d(0x193))/0x3)+-parseInt(_0x1a943d(0x194))/0x4*(-parseInt(_0x1a943d(0x181))/0x5)+parseInt(_0x1a943d(0x185))/0x6*(parseInt(_0x1a943d(0x175))/0x7)+-parseInt(_0x1a943d(0x18e))/0x8*(parseInt(_0x1a943d(0x192))/0x9)+parseInt(_0x1a943d(0x197))/0xa+parseInt(_0x1a943d(0x17b))/0xb;if(_0x5ac8c7===_0x5f3307)break;else _0x399795['push'](_0x399795['shift']());}catch(_0x4fbfb2){_0x399795['push'](_0x399795['shift']());}}}(a20_0x3be2,0x7adf5));const API_BASE=a20_0x2e702d(0x18d);export default function bindReceptionEvents(_0x381651){const _0x379fba=a20_0x2e702d;_0x381651[_0x379fba(0x18f)][_0x379fba(0x182)]('reception.created',async _0x24eaee=>{const _0x7529b4=_0x379fba;if(!_0x381651[_0x7529b4(0x188)]()[_0x7529b4(0x189)](_0x7529b4(0x174))&&!_0x381651[_0x7529b4(0x188)]()['hasPermission'](_0x7529b4(0x177))&&!_0x381651[_0x7529b4(0x188)]()['hasPermission'](_0x7529b4(0x17a)))throw new Error('320001:\x20Action\x20not\x20allowed.');const _0x5206d5=await fetch(''+API_BASE,{'method':_0x7529b4(0x179),'headers':{'Content-Type':'application/json'},'body':JSON[_0x7529b4(0x190)](_0x24eaee[_0x7529b4(0x180)])});if(!_0x5206d5['ok'])throw new Error(_0x7529b4(0x178)+_0x5206d5[_0x7529b4(0x171)]);const _0x261cc8=await _0x5206d5[_0x7529b4(0x191)]();return _0x261cc8['id'];}),_0x381651[_0x379fba(0x18f)]['onRequest'](_0x379fba(0x173),async({id:_0x223e5a})=>{const _0x51bc3f=_0x379fba;if(!_0x381651[_0x51bc3f(0x188)]()[_0x51bc3f(0x189)]('ADMIN')&&!_0x381651[_0x51bc3f(0x188)]()['hasPermission']('RECEPTION_ALL')&&!_0x381651[_0x51bc3f(0x188)]()[_0x51bc3f(0x189)](_0x51bc3f(0x195)))throw new Error('320002:\x20Action\x20not\x20allowed.');const _0x4dde19=await fetch(API_BASE+'/'+_0x223e5a);if(!_0x4dde19['ok'])throw new Error('API\x20Error:\x20'+_0x4dde19['statusText']);return await _0x4dde19[_0x51bc3f(0x191)]();}),_0x381651[_0x379fba(0x18f)][_0x379fba(0x182)](_0x379fba(0x172),async()=>{const _0x4d365a=_0x379fba;if(!_0x381651['getCurrentUser']()[_0x4d365a(0x189)]('ADMIN')&&!_0x381651['getCurrentUser']()[_0x4d365a(0x189)]('RECEPTION_ALL')&&!_0x381651[_0x4d365a(0x188)]()[_0x4d365a(0x189)]('RECEPTION_READ'))throw new Error(_0x4d365a(0x17d));const _0x2055c6=await fetch(''+API_BASE);if(!_0x2055c6['ok'])throw new Error(_0x4d365a(0x178)+_0x2055c6[_0x4d365a(0x171)]);return await _0x2055c6['json']();}),_0x381651['events'][_0x379fba(0x182)](_0x379fba(0x186),async _0x1da67a=>{const _0x43e0bb=_0x379fba;if(!_0x381651['getCurrentUser']()[_0x43e0bb(0x189)](_0x43e0bb(0x174))&&!_0x381651[_0x43e0bb(0x188)]()['hasPermission'](_0x43e0bb(0x177))&&!_0x381651[_0x43e0bb(0x188)]()[_0x43e0bb(0x189)]('RECEPTION_READ'))throw new Error(_0x43e0bb(0x17d));const _0x326221=await fetch(API_BASE+_0x43e0bb(0x184),{'method':_0x43e0bb(0x179),'headers':{'Content-Type':_0x43e0bb(0x17f)},'body':JSON['stringify'](_0x1da67a)});if(!_0x326221['ok'])throw new Error('API\x20Error:\x20'+_0x326221[_0x43e0bb(0x171)]);return await _0x326221[_0x43e0bb(0x191)]();}),_0x381651['events'][_0x379fba(0x182)](_0x379fba(0x18a),async _0x56f39d=>{const _0x269e55=_0x379fba;if(!_0x381651[_0x269e55(0x188)]()[_0x269e55(0x189)](_0x269e55(0x174))&&!_0x381651[_0x269e55(0x188)]()[_0x269e55(0x189)]('RECEPTION_ALL')&&!_0x381651[_0x269e55(0x188)]()[_0x269e55(0x189)](_0x269e55(0x183)))throw new Error(_0x269e55(0x18c));const {where:_0x21eb74,..._0x2a6471}=_0x56f39d,_0x403b0b=await fetch(API_BASE+'/'+_0x21eb74['id'],{'method':_0x269e55(0x17c),'headers':{'Content-Type':_0x269e55(0x17f)},'body':JSON[_0x269e55(0x190)](_0x2a6471)});if(!_0x403b0b['ok'])throw new Error(_0x269e55(0x178)+_0x403b0b[_0x269e55(0x171)]);return await _0x403b0b[_0x269e55(0x191)]();}),_0x381651[_0x379fba(0x18f)]['on'](_0x379fba(0x17e),async({id:_0x26bce3})=>{const _0x4b8a22=_0x379fba;if(!_0x381651[_0x4b8a22(0x188)]()[_0x4b8a22(0x189)](_0x4b8a22(0x174))&&!_0x381651['getCurrentUser']()[_0x4b8a22(0x189)](_0x4b8a22(0x177))&&!_0x381651['getCurrentUser']()[_0x4b8a22(0x189)]('RECEPTION_DELETED'))throw new Error(_0x4b8a22(0x196));const _0x380063=await fetch(API_BASE+'/'+_0x26bce3,{'method':_0x4b8a22(0x176)});if(!_0x380063['ok']&&_0x380063['status']!==0xcc)throw new Error(_0x4b8a22(0x178)+_0x380063[_0x4b8a22(0x171)]);});}function a20_0x23d3(_0x77ea14,_0x2d9e97){_0x77ea14=_0x77ea14-0x171;const _0x3be299=a20_0x3be2();let _0x23d3ae=_0x3be299[_0x77ea14];return _0x23d3ae;}function a20_0x3be2(){const _0x3c3be2=['reception.updated','496384BkLVDh','320003:\x20Action\x20not\x20allowed.','http://localhost:5001/receptions','31624JRCkBI','events','stringify','json','1143znFBkG','69QWIwmE','20Nhctub','RECEPTION_READ','320004:\x20Action\x20not\x20allowed.','6456060XvBfPf','statusText','reception.read.all','reception.read','ADMIN','3738IWBfIs','DELETE','RECEPTION_ALL','API\x20Error:\x20','POST','RECEPTION_CREATED','2758690LnxlEM','PUT','320002:\x20Action\x20not\x20allowed.','reception.deleted','application/json','reception','210785gPpcHd','onRequest','RECEPTION_UPDATED','/search','138hdXmaS','reception.read.some','33238JtUGmp','getCurrentUser','hasPermission'];a20_0x3be2=function(){return _0x3c3be2;};return a20_0x3be2();}
@@ -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
+ function a21_0xdf41(){const _0x1ebf57=['21665rQDTuo','STOCK_ALL','stock.updated','30816trlUJh','stock','DELETE','STOCK_CREATED','1125mPxoef','ADMIN','1536140ATHKwE','status','POST','31444gzllme','application/json','stock.read.all','16865360NhHboa','410004:\x20Action\x20not\x20allowed.','STOCK_READ','events','stock.deleted','stringify','194154IEOJMb','1290LgKsMD','http://localhost:5001/stocks','onRequest','/search','PUT','hasPermission','getCurrentUser','stock.created','410002:\x20Action\x20not\x20allowed.','statusText','STOCK_UPDATED','stock.read','json','STOCK_DELETED','21461CFFzPL','9dUSpzR','stock.read.some','7482664zScllg','API\x20Error:\x20','27MfSTfB'];a21_0xdf41=function(){return _0x1ebf57;};return a21_0xdf41();}function a21_0x3a7b(_0x37a580,_0x5462c0){_0x37a580=_0x37a580-0x92;const _0xdf4157=a21_0xdf41();let _0x3a7b83=_0xdf4157[_0x37a580];return _0x3a7b83;}const a21_0x58e665=a21_0x3a7b;(function(_0xcec2d0,_0x3f9d66){const _0x58eb10=a21_0x3a7b,_0x8f5edb=_0xcec2d0();while(!![]){try{const _0x2557a7=-parseInt(_0x58eb10(0xa6))/0x1+-parseInt(_0x58eb10(0xb2))/0x2*(parseInt(_0x58eb10(0x9c))/0x3)+parseInt(_0x58eb10(0xa9))/0x4*(-parseInt(_0x58eb10(0xa4))/0x5)+-parseInt(_0x58eb10(0xb3))/0x6*(parseInt(_0x58eb10(0x9d))/0x7)+parseInt(_0x58eb10(0x9a))/0x8*(-parseInt(_0x58eb10(0x98))/0x9)+parseInt(_0x58eb10(0xac))/0xa+-parseInt(_0x58eb10(0x97))/0xb*(-parseInt(_0x58eb10(0xa0))/0xc);if(_0x2557a7===_0x3f9d66)break;else _0x8f5edb['push'](_0x8f5edb['shift']());}catch(_0x1f11a1){_0x8f5edb['push'](_0x8f5edb['shift']());}}}(a21_0xdf41,0xdff8c));const API_BASE=a21_0x58e665(0xb4);export default function bindStockEvents(_0x5aa2e5){const _0xd5f96f=a21_0x58e665;_0x5aa2e5['events']['onRequest'](_0xd5f96f(0xba),async _0x5ba674=>{const _0x227a06=_0xd5f96f;if(!_0x5aa2e5['getCurrentUser']()[_0x227a06(0xb8)](_0x227a06(0xa5))&&!_0x5aa2e5[_0x227a06(0xb9)]()[_0x227a06(0xb8)](_0x227a06(0x9e))&&!_0x5aa2e5[_0x227a06(0xb9)]()['hasPermission'](_0x227a06(0xa3)))throw new Error('410001:\x20Action\x20not\x20allowed.');const _0x5c8d1d=await fetch(''+API_BASE,{'method':_0x227a06(0xa8),'headers':{'Content-Type':_0x227a06(0xaa)},'body':JSON[_0x227a06(0xb1)](_0x5ba674[_0x227a06(0xa1)])});if(!_0x5c8d1d['ok'])throw new Error(_0x227a06(0x9b)+_0x5c8d1d[_0x227a06(0x92)]);const _0xdfec3=await _0x5c8d1d[_0x227a06(0x95)]();return _0xdfec3['id'];}),_0x5aa2e5[_0xd5f96f(0xaf)][_0xd5f96f(0xb5)](_0xd5f96f(0x94),async({id:_0x49f6ab})=>{const _0x4a97f7=_0xd5f96f;if(!_0x5aa2e5[_0x4a97f7(0xb9)]()[_0x4a97f7(0xb8)](_0x4a97f7(0xa5))&&!_0x5aa2e5['getCurrentUser']()[_0x4a97f7(0xb8)](_0x4a97f7(0x9e))&&!_0x5aa2e5['getCurrentUser']()[_0x4a97f7(0xb8)](_0x4a97f7(0xae)))throw new Error(_0x4a97f7(0xbb));const _0x329a66=await fetch(API_BASE+'/'+_0x49f6ab);if(!_0x329a66['ok'])throw new Error(_0x4a97f7(0x9b)+_0x329a66[_0x4a97f7(0x92)]);return await _0x329a66['json']();}),_0x5aa2e5['events'][_0xd5f96f(0xb5)](_0xd5f96f(0xab),async()=>{const _0x414b7d=_0xd5f96f;if(!_0x5aa2e5[_0x414b7d(0xb9)]()[_0x414b7d(0xb8)](_0x414b7d(0xa5))&&!_0x5aa2e5[_0x414b7d(0xb9)]()[_0x414b7d(0xb8)]('STOCK_ALL')&&!_0x5aa2e5[_0x414b7d(0xb9)]()[_0x414b7d(0xb8)](_0x414b7d(0xae)))throw new Error(_0x414b7d(0xbb));const _0x5b5bd2=await fetch(''+API_BASE);if(!_0x5b5bd2['ok'])throw new Error(_0x414b7d(0x9b)+_0x5b5bd2[_0x414b7d(0x92)]);return await _0x5b5bd2[_0x414b7d(0x95)]();}),_0x5aa2e5[_0xd5f96f(0xaf)]['onRequest'](_0xd5f96f(0x99),async _0x4982d7=>{const _0x3eaede=_0xd5f96f;if(!_0x5aa2e5[_0x3eaede(0xb9)]()[_0x3eaede(0xb8)](_0x3eaede(0xa5))&&!_0x5aa2e5[_0x3eaede(0xb9)]()[_0x3eaede(0xb8)](_0x3eaede(0x9e))&&!_0x5aa2e5[_0x3eaede(0xb9)]()[_0x3eaede(0xb8)]('STOCK_READ'))throw new Error(_0x3eaede(0xbb));const _0x3036fe=await fetch(API_BASE+_0x3eaede(0xb6),{'method':_0x3eaede(0xa8),'headers':{'Content-Type':_0x3eaede(0xaa)},'body':JSON[_0x3eaede(0xb1)](_0x4982d7)});if(!_0x3036fe['ok'])throw new Error(_0x3eaede(0x9b)+_0x3036fe[_0x3eaede(0x92)]);return await _0x3036fe[_0x3eaede(0x95)]();}),_0x5aa2e5[_0xd5f96f(0xaf)][_0xd5f96f(0xb5)](_0xd5f96f(0x9f),async _0x2b1fa9=>{const _0xd56e6a=_0xd5f96f;if(!_0x5aa2e5[_0xd56e6a(0xb9)]()[_0xd56e6a(0xb8)](_0xd56e6a(0xa5))&&!_0x5aa2e5[_0xd56e6a(0xb9)]()[_0xd56e6a(0xb8)](_0xd56e6a(0x9e))&&!_0x5aa2e5[_0xd56e6a(0xb9)]()[_0xd56e6a(0xb8)](_0xd56e6a(0x93)))throw new Error('410003:\x20Action\x20not\x20allowed.');const {where:_0x52dee8,..._0x39ead2}=_0x2b1fa9,_0x196f42=await fetch(API_BASE+'/'+_0x52dee8['id'],{'method':_0xd56e6a(0xb7),'headers':{'Content-Type':_0xd56e6a(0xaa)},'body':JSON[_0xd56e6a(0xb1)](_0x39ead2)});if(!_0x196f42['ok'])throw new Error(_0xd56e6a(0x9b)+_0x196f42['statusText']);return await _0x196f42[_0xd56e6a(0x95)]();}),_0x5aa2e5[_0xd5f96f(0xaf)]['on'](_0xd5f96f(0xb0),async({id:_0xa5c493})=>{const _0x486a60=_0xd5f96f;if(!_0x5aa2e5[_0x486a60(0xb9)]()['hasPermission'](_0x486a60(0xa5))&&!_0x5aa2e5[_0x486a60(0xb9)]()[_0x486a60(0xb8)](_0x486a60(0x9e))&&!_0x5aa2e5[_0x486a60(0xb9)]()[_0x486a60(0xb8)](_0x486a60(0x96)))throw new Error(_0x486a60(0xad));const _0x51d523=await fetch(API_BASE+'/'+_0xa5c493,{'method':_0x486a60(0xa2)});if(!_0x51d523['ok']&&_0x51d523[_0x486a60(0xa7)]!==0xcc)throw new Error(_0x486a60(0x9b)+_0x51d523[_0x486a60(0x92)]);});}
@@ -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
+ function a22_0x2979(_0x505a86,_0x131048){_0x505a86=_0x505a86-0xfe;const _0x4ab4f9=a22_0x4ab4();let _0x297982=_0x4ab4f9[_0x505a86];return _0x297982;}function a22_0x4ab4(){const _0x4cf5bd=['PUT','5439490EmwsAN','300001:\x20Action\x20not\x20allowed.','supplier.updated','onRequest','supplier','ADMIN','SUPPLIER_ALL','getCurrentUser','application/json','http://localhost:5001/suppliers','7363332qiNpkS','supplier.created','284SYjbdB','stringify','49SmyNiq','API\x20Error:\x20','SUPPLIER_READ','2276336wwKoVp','6405210DSEmOf','supplier.read.all','json','300002:\x20Action\x20not\x20allowed.','POST','hasPermission','300004:\x20Action\x20not\x20allowed.','68466xnNyCG','SUPPLIER_DELETED','300003:\x20Action\x20not\x20allowed.','950536QGBVLg','status','supplier.deleted','events','128730nlItBd','statusText','/search','supplier.read.some','SUPPLIER_CREATED'];a22_0x4ab4=function(){return _0x4cf5bd;};return a22_0x4ab4();}const a22_0x3b43cf=a22_0x2979;(function(_0x15eda9,_0x14b73b){const _0x3e4ae3=a22_0x2979,_0x98ff76=_0x15eda9();while(!![]){try{const _0x16ece5=-parseInt(_0x3e4ae3(0x109))/0x1+parseInt(_0x3e4ae3(0x120))/0x2+parseInt(_0x3e4ae3(0x102))/0x3*(parseInt(_0x3e4ae3(0x11b))/0x4)+-parseInt(_0x3e4ae3(0x10f))/0x5+parseInt(_0x3e4ae3(0x121))/0x6+parseInt(_0x3e4ae3(0x11d))/0x7*(-parseInt(_0x3e4ae3(0x105))/0x8)+-parseInt(_0x3e4ae3(0x119))/0x9;if(_0x16ece5===_0x14b73b)break;else _0x98ff76['push'](_0x98ff76['shift']());}catch(_0x370875){_0x98ff76['push'](_0x98ff76['shift']());}}}(a22_0x4ab4,0xea452));const API_BASE=a22_0x3b43cf(0x118);export default function bindSupplierEvents(_0x30c01d){const _0x508c72=a22_0x3b43cf;_0x30c01d[_0x508c72(0x108)][_0x508c72(0x112)](_0x508c72(0x11a),async _0x5eb191=>{const _0x14e89f=_0x508c72;if(!_0x30c01d[_0x14e89f(0x116)]()[_0x14e89f(0x100)](_0x14e89f(0x114))&&!_0x30c01d['getCurrentUser']()['hasPermission'](_0x14e89f(0x115))&&!_0x30c01d[_0x14e89f(0x116)]()['hasPermission'](_0x14e89f(0x10d)))throw new Error(_0x14e89f(0x110));const _0x2175d2=await fetch(''+API_BASE,{'method':_0x14e89f(0xff),'headers':{'Content-Type':_0x14e89f(0x117)},'body':JSON[_0x14e89f(0x11c)](_0x5eb191[_0x14e89f(0x113)])});if(!_0x2175d2['ok'])throw new Error(_0x14e89f(0x11e)+_0x2175d2['statusText']);const _0x35d11d=await _0x2175d2[_0x14e89f(0x123)]();return _0x35d11d['id'];}),_0x30c01d['events'][_0x508c72(0x112)]('supplier.read',async({id:_0x1cfdb6})=>{const _0x46e392=_0x508c72;if(!_0x30c01d[_0x46e392(0x116)]()['hasPermission']('ADMIN')&&!_0x30c01d[_0x46e392(0x116)]()[_0x46e392(0x100)](_0x46e392(0x115))&&!_0x30c01d[_0x46e392(0x116)]()[_0x46e392(0x100)](_0x46e392(0x11f)))throw new Error(_0x46e392(0xfe));const _0x34ef59=await fetch(API_BASE+'/'+_0x1cfdb6);if(!_0x34ef59['ok'])throw new Error('API\x20Error:\x20'+_0x34ef59['statusText']);return await _0x34ef59[_0x46e392(0x123)]();}),_0x30c01d['events']['onRequest'](_0x508c72(0x122),async()=>{const _0x57f2ee=_0x508c72;if(!_0x30c01d[_0x57f2ee(0x116)]()[_0x57f2ee(0x100)](_0x57f2ee(0x114))&&!_0x30c01d[_0x57f2ee(0x116)]()[_0x57f2ee(0x100)](_0x57f2ee(0x115))&&!_0x30c01d['getCurrentUser']()[_0x57f2ee(0x100)](_0x57f2ee(0x11f)))throw new Error(_0x57f2ee(0xfe));const _0x2fa6fd=await fetch(''+API_BASE);if(!_0x2fa6fd['ok'])throw new Error(_0x57f2ee(0x11e)+_0x2fa6fd[_0x57f2ee(0x10a)]);return await _0x2fa6fd[_0x57f2ee(0x123)]();}),_0x30c01d[_0x508c72(0x108)][_0x508c72(0x112)](_0x508c72(0x10c),async _0x3d4c33=>{const _0x45b4e8=_0x508c72;if(!_0x30c01d[_0x45b4e8(0x116)]()['hasPermission'](_0x45b4e8(0x114))&&!_0x30c01d[_0x45b4e8(0x116)]()[_0x45b4e8(0x100)](_0x45b4e8(0x115))&&!_0x30c01d['getCurrentUser']()[_0x45b4e8(0x100)](_0x45b4e8(0x11f)))throw new Error(_0x45b4e8(0xfe));const _0x3d8963=await fetch(API_BASE+_0x45b4e8(0x10b),{'method':_0x45b4e8(0xff),'headers':{'Content-Type':_0x45b4e8(0x117)},'body':JSON[_0x45b4e8(0x11c)](_0x3d4c33)});if(!_0x3d8963['ok'])throw new Error(_0x45b4e8(0x11e)+_0x3d8963[_0x45b4e8(0x10a)]);return await _0x3d8963[_0x45b4e8(0x123)]();}),_0x30c01d['events'][_0x508c72(0x112)](_0x508c72(0x111),async _0x1b5a30=>{const _0x3a45a0=_0x508c72;if(!_0x30c01d[_0x3a45a0(0x116)]()[_0x3a45a0(0x100)](_0x3a45a0(0x114))&&!_0x30c01d['getCurrentUser']()['hasPermission'](_0x3a45a0(0x115))&&!_0x30c01d[_0x3a45a0(0x116)]()[_0x3a45a0(0x100)]('SUPPLIER_UPDATED'))throw new Error(_0x3a45a0(0x104));const {where:_0x3e7c8a,..._0x3ab099}=_0x1b5a30,_0x35a8ad=await fetch(API_BASE+'/'+_0x3e7c8a['id'],{'method':_0x3a45a0(0x10e),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x3ab099)});if(!_0x35a8ad['ok'])throw new Error(_0x3a45a0(0x11e)+_0x35a8ad[_0x3a45a0(0x10a)]);return await _0x35a8ad[_0x3a45a0(0x123)]();}),_0x30c01d[_0x508c72(0x108)]['on'](_0x508c72(0x107),async({id:_0x427707})=>{const _0x4e6ab4=_0x508c72;if(!_0x30c01d['getCurrentUser']()[_0x4e6ab4(0x100)](_0x4e6ab4(0x114))&&!_0x30c01d[_0x4e6ab4(0x116)]()[_0x4e6ab4(0x100)](_0x4e6ab4(0x115))&&!_0x30c01d['getCurrentUser']()[_0x4e6ab4(0x100)](_0x4e6ab4(0x103)))throw new Error(_0x4e6ab4(0x101));const _0x35df0b=await fetch(API_BASE+'/'+_0x427707,{'method':'DELETE'});if(!_0x35df0b['ok']&&_0x35df0b[_0x4e6ab4(0x106)]!==0xcc)throw new Error(_0x4e6ab4(0x11e)+_0x35df0b['statusText']);});}
@@ -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
+ const a23_0x569b94=a23_0x53b4;function a23_0x41e7(){const _0x1bdf8d=['4OEVwyh','2727510MTWGQe','tax','4720040Qpucil','8CyggTN','TAX_ALL','119tDSQqD','tax.read.some','stringify','tax.read.all','500003:\x20Action\x20not\x20allowed.','500001:\x20Action\x20not\x20allowed.','POST','application/json','json','1115847fqYgpp','ADMIN','500004:\x20Action\x20not\x20allowed.','TAX_READ','status','TAX_DELETED','500002:\x20Action\x20not\x20allowed.','DELETE','259272fRgrQU','onRequest','hasPermission','TAX_UPDATED','statusText','255390XOxRFq','http://localhost:5001/taxes','tax.updated','260002CmDUoR','events','getCurrentUser','TAX_CREATED','API\x20Error:\x20','1459022TaWaCp'];a23_0x41e7=function(){return _0x1bdf8d;};return a23_0x41e7();}function a23_0x53b4(_0x23a5ef,_0x2ea9b1){_0x23a5ef=_0x23a5ef-0xcd;const _0x41e734=a23_0x41e7();let _0x53b4e0=_0x41e734[_0x23a5ef];return _0x53b4e0;}(function(_0x1257af,_0x35628e){const _0x11a83d=a23_0x53b4,_0x267a7c=_0x1257af();while(!![]){try{const _0x3d1086=-parseInt(_0x11a83d(0xef))/0x1+-parseInt(_0x11a83d(0xcf))/0x2+parseInt(_0x11a83d(0xdf))/0x3*(-parseInt(_0x11a83d(0xd0))/0x4)+parseInt(_0x11a83d(0xd1))/0x5+parseInt(_0x11a83d(0xec))/0x6*(parseInt(_0x11a83d(0xd6))/0x7)+-parseInt(_0x11a83d(0xd4))/0x8*(-parseInt(_0x11a83d(0xe7))/0x9)+parseInt(_0x11a83d(0xd3))/0xa;if(_0x3d1086===_0x35628e)break;else _0x267a7c['push'](_0x267a7c['shift']());}catch(_0x3c8b95){_0x267a7c['push'](_0x267a7c['shift']());}}}(a23_0x41e7,0x63b89));const API_BASE=a23_0x569b94(0xed);export default function bindTaxEvents(_0x69b95b){const _0x163bb4=a23_0x569b94;_0x69b95b[_0x163bb4(0xf0)][_0x163bb4(0xe8)]('tax.created',async _0x135c38=>{const _0x96287e=_0x163bb4;if(!_0x69b95b[_0x96287e(0xf1)]()['hasPermission']('ADMIN')&&!_0x69b95b[_0x96287e(0xf1)]()[_0x96287e(0xe9)](_0x96287e(0xd5))&&!_0x69b95b[_0x96287e(0xf1)]()[_0x96287e(0xe9)](_0x96287e(0xcd)))throw new Error(_0x96287e(0xdb));const _0x1f1d16=await fetch(''+API_BASE,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x96287e(0xd8)](_0x135c38[_0x96287e(0xd2)])});if(!_0x1f1d16['ok'])throw new Error(_0x96287e(0xce)+_0x1f1d16[_0x96287e(0xeb)]);const _0x4d90b2=await _0x1f1d16[_0x96287e(0xde)]();return _0x4d90b2['id'];}),_0x69b95b[_0x163bb4(0xf0)][_0x163bb4(0xe8)]('tax.read',async({id:_0x566e47})=>{const _0x42284d=_0x163bb4;if(!_0x69b95b[_0x42284d(0xf1)]()[_0x42284d(0xe9)]('ADMIN')&&!_0x69b95b['getCurrentUser']()[_0x42284d(0xe9)](_0x42284d(0xd5))&&!_0x69b95b[_0x42284d(0xf1)]()[_0x42284d(0xe9)](_0x42284d(0xe2)))throw new Error(_0x42284d(0xe5));const _0x40f327=await fetch(API_BASE+'/'+_0x566e47);if(!_0x40f327['ok'])throw new Error('API\x20Error:\x20'+_0x40f327[_0x42284d(0xeb)]);return await _0x40f327[_0x42284d(0xde)]();}),_0x69b95b[_0x163bb4(0xf0)][_0x163bb4(0xe8)](_0x163bb4(0xd9),async()=>{const _0x5af674=_0x163bb4;if(!_0x69b95b[_0x5af674(0xf1)]()[_0x5af674(0xe9)](_0x5af674(0xe0))&&!_0x69b95b['getCurrentUser']()[_0x5af674(0xe9)](_0x5af674(0xd5))&&!_0x69b95b[_0x5af674(0xf1)]()[_0x5af674(0xe9)](_0x5af674(0xe2)))throw new Error(_0x5af674(0xe5));const _0x51bfa6=await fetch(''+API_BASE);if(!_0x51bfa6['ok'])throw new Error(_0x5af674(0xce)+_0x51bfa6[_0x5af674(0xeb)]);return await _0x51bfa6[_0x5af674(0xde)]();}),_0x69b95b[_0x163bb4(0xf0)][_0x163bb4(0xe8)](_0x163bb4(0xd7),async _0x3884a3=>{const _0xabefa4=_0x163bb4;if(!_0x69b95b[_0xabefa4(0xf1)]()[_0xabefa4(0xe9)]('ADMIN')&&!_0x69b95b[_0xabefa4(0xf1)]()[_0xabefa4(0xe9)]('TAX_ALL')&&!_0x69b95b[_0xabefa4(0xf1)]()[_0xabefa4(0xe9)]('TAX_READ'))throw new Error(_0xabefa4(0xe5));const _0xe52c39=await fetch(API_BASE+'/search',{'method':_0xabefa4(0xdc),'headers':{'Content-Type':'application/json'},'body':JSON[_0xabefa4(0xd8)](_0x3884a3)});if(!_0xe52c39['ok'])throw new Error(_0xabefa4(0xce)+_0xe52c39[_0xabefa4(0xeb)]);return await _0xe52c39['json']();}),_0x69b95b['events']['onRequest'](_0x163bb4(0xee),async _0x590f2e=>{const _0x5b251b=_0x163bb4;if(!_0x69b95b[_0x5b251b(0xf1)]()['hasPermission']('ADMIN')&&!_0x69b95b[_0x5b251b(0xf1)]()[_0x5b251b(0xe9)]('TAX_ALL')&&!_0x69b95b[_0x5b251b(0xf1)]()[_0x5b251b(0xe9)](_0x5b251b(0xea)))throw new Error(_0x5b251b(0xda));const {where:_0xa4dde3,..._0x1a575c}=_0x590f2e,_0x121ca4=await fetch(API_BASE+'/'+_0xa4dde3['id'],{'method':'PUT','headers':{'Content-Type':_0x5b251b(0xdd)},'body':JSON[_0x5b251b(0xd8)](_0x1a575c)});if(!_0x121ca4['ok'])throw new Error('API\x20Error:\x20'+_0x121ca4[_0x5b251b(0xeb)]);return await _0x121ca4[_0x5b251b(0xde)]();}),_0x69b95b[_0x163bb4(0xf0)]['on']('tax.deleted',async({id:_0x1aa0ef})=>{const _0x4d6465=_0x163bb4;if(!_0x69b95b[_0x4d6465(0xf1)]()[_0x4d6465(0xe9)]('ADMIN')&&!_0x69b95b[_0x4d6465(0xf1)]()['hasPermission']('TAX_ALL')&&!_0x69b95b['getCurrentUser']()[_0x4d6465(0xe9)](_0x4d6465(0xe4)))throw new Error(_0x4d6465(0xe1));const _0xa4c6d0=await fetch(API_BASE+'/'+_0x1aa0ef,{'method':_0x4d6465(0xe6)});if(!_0xa4c6d0['ok']&&_0xa4c6d0[_0x4d6465(0xe3)]!==0xcc)throw new Error(_0x4d6465(0xce)+_0xa4c6d0[_0x4d6465(0xeb)]);});}
@@ -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(_0x1bb687,_0x56b535){const _0x506515=a24_0x1f97,_0x4592ff=_0x1bb687();while(!![]){try{const _0x672972=parseInt(_0x506515(0x197))/0x1+parseInt(_0x506515(0x1b1))/0x2*(parseInt(_0x506515(0x1b9))/0x3)+-parseInt(_0x506515(0x198))/0x4*(parseInt(_0x506515(0x1ad))/0x5)+parseInt(_0x506515(0x1a6))/0x6+-parseInt(_0x506515(0x1b4))/0x7+parseInt(_0x506515(0x19c))/0x8*(-parseInt(_0x506515(0x1bf))/0x9)+parseInt(_0x506515(0x1a8))/0xa;if(_0x672972===_0x56b535)break;else _0x4592ff['push'](_0x4592ff['shift']());}catch(_0x4c032e){_0x4592ff['push'](_0x4592ff['shift']());}}}(a24_0x49fd,0x445d9));const API_BASE='http://localhost:5001/users';export default function bindUserEvents(_0xd6457e){const _0x497fbb=a24_0x1f97;_0xd6457e[_0x497fbb(0x1bc)][_0x497fbb(0x1b5)](_0x497fbb(0x1a7),async _0x9e169d=>{const _0xf1aa25=_0x497fbb,_0xaffe35=await fetch(API_BASE+_0xf1aa25(0x1a9),{'method':'POST','headers':{'Content-Type':_0xf1aa25(0x1ac)},'body':JSON['stringify'](_0x9e169d)});if(!_0xaffe35['ok'])throw new Error('API\x20Error:\x20'+_0xaffe35['statusText']);return await _0xaffe35[_0xf1aa25(0x1ae)]();}),_0xd6457e[_0x497fbb(0x1bc)][_0x497fbb(0x1b5)](_0x497fbb(0x1a4),async({user:_0x470c27})=>{const _0x8cb9f7=_0x497fbb;if(!_0xd6457e[_0x8cb9f7(0x1b0)]()[_0x8cb9f7(0x1ab)](_0x8cb9f7(0x1a3))&&!_0xd6457e['getCurrentUser']()['hasPermission'](_0x8cb9f7(0x1bb))&&!_0xd6457e[_0x8cb9f7(0x1b0)]()[_0x8cb9f7(0x1ab)](_0x8cb9f7(0x196)))throw new Error(_0x8cb9f7(0x1b7));const _0x2a76b8=await fetch(''+API_BASE,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x8cb9f7(0x19d)]({'email':_0x470c27[_0x8cb9f7(0x1b8)]??null,'password':_0x470c27[_0x8cb9f7(0x1a5)]??null,'authorizations':Array['from'](_0x470c27[_0x8cb9f7(0x199)]??[])})});if(!_0x2a76b8['ok'])throw new Error(_0x8cb9f7(0x1be)+_0x2a76b8[_0x8cb9f7(0x1b3)]);const _0x17e496=await _0x2a76b8[_0x8cb9f7(0x1ae)]();return _0x17e496['id'];}),_0xd6457e[_0x497fbb(0x1bc)][_0x497fbb(0x1b5)](_0x497fbb(0x1af),async({id:_0x41e5f1})=>{const _0x58b3f5=_0x497fbb;if(!_0xd6457e[_0x58b3f5(0x1b0)]()[_0x58b3f5(0x1ab)](_0x58b3f5(0x1a3))&&!_0xd6457e[_0x58b3f5(0x1b0)]()['hasPermission']('USER_ALL')&&!_0xd6457e[_0x58b3f5(0x1b0)]()[_0x58b3f5(0x1ab)]('USER_READ'))throw new Error(_0x58b3f5(0x1a2));const _0x364ca4=await fetch(API_BASE+'/'+_0x41e5f1);if(!_0x364ca4['ok'])throw new Error(_0x58b3f5(0x1be)+_0x364ca4[_0x58b3f5(0x1b3)]);return await _0x364ca4[_0x58b3f5(0x1ae)]();}),_0xd6457e[_0x497fbb(0x1bc)]['onRequest'](_0x497fbb(0x19e),async()=>{const _0x303dc2=_0x497fbb;if(!_0xd6457e['getCurrentUser']()[_0x303dc2(0x1ab)](_0x303dc2(0x1a3))&&!_0xd6457e[_0x303dc2(0x1b0)]()[_0x303dc2(0x1ab)](_0x303dc2(0x1bb))&&!_0xd6457e[_0x303dc2(0x1b0)]()[_0x303dc2(0x1ab)](_0x303dc2(0x1bd)))throw new Error(_0x303dc2(0x1a2));const _0x5604a4=await fetch(''+API_BASE);if(!_0x5604a4['ok'])throw new Error(_0x303dc2(0x1be)+_0x5604a4[_0x303dc2(0x1b3)]);return await _0x5604a4[_0x303dc2(0x1ae)]();}),_0xd6457e['events'][_0x497fbb(0x1b5)](_0x497fbb(0x1a1),async _0x4d2e18=>{const _0x5ee0a4=_0x497fbb;if(!_0xd6457e[_0x5ee0a4(0x1b0)]()[_0x5ee0a4(0x1ab)](_0x5ee0a4(0x1a3))&&!_0xd6457e['getCurrentUser']()['hasPermission']('USER_ALL')&&!_0xd6457e[_0x5ee0a4(0x1b0)]()[_0x5ee0a4(0x1ab)](_0x5ee0a4(0x1bd)))throw new Error(_0x5ee0a4(0x1a2));const _0x10575a=await fetch(API_BASE+'/search',{'method':_0x5ee0a4(0x19f),'headers':{'Content-Type':_0x5ee0a4(0x1ac)},'body':JSON[_0x5ee0a4(0x19d)](_0x4d2e18)});if(!_0x10575a['ok'])throw new Error(_0x5ee0a4(0x1be)+_0x10575a[_0x5ee0a4(0x1b3)]);return await _0x10575a['json']();}),_0xd6457e[_0x497fbb(0x1bc)]['onRequest']('user.updated',async _0x2db0b0=>{const _0x3b9c05=_0x497fbb;if(!_0xd6457e['getCurrentUser']()['hasPermission'](_0x3b9c05(0x1a3))&&!_0xd6457e[_0x3b9c05(0x1b0)]()[_0x3b9c05(0x1ab)](_0x3b9c05(0x1bb))&&!_0xd6457e[_0x3b9c05(0x1b0)]()['hasPermission'](_0x3b9c05(0x1b2)))throw new Error('100003:\x20Action\x20not\x20allowed.');const {where:_0x1e7d8c,..._0x2b4869}=_0x2db0b0,_0x199b8f=await fetch(API_BASE+'/'+_0x1e7d8c['id'],{'method':_0x3b9c05(0x1b6),'headers':{'Content-Type':_0x3b9c05(0x1ac)},'body':JSON['stringify'](_0x2b4869)});if(!_0x199b8f['ok'])throw new Error(_0x3b9c05(0x1be)+_0x199b8f[_0x3b9c05(0x1b3)]);return await _0x199b8f[_0x3b9c05(0x1ae)]();}),_0xd6457e[_0x497fbb(0x1bc)]['on'](_0x497fbb(0x1ba),async({id:_0x1d32dd})=>{const _0x299aea=_0x497fbb;if(!_0xd6457e[_0x299aea(0x1b0)]()['hasPermission'](_0x299aea(0x1a3))&&!_0xd6457e['getCurrentUser']()[_0x299aea(0x1ab)](_0x299aea(0x1bb))&&!_0xd6457e[_0x299aea(0x1b0)]()[_0x299aea(0x1ab)](_0x299aea(0x19a)))throw new Error(_0x299aea(0x19b));const _0x327530=await fetch(API_BASE+'/'+_0x1d32dd,{'method':_0x299aea(0x1aa)});if(!_0x327530['ok']&&_0x327530[_0x299aea(0x1a0)]!==0xcc)throw new Error(_0x299aea(0x1be)+_0x327530[_0x299aea(0x1b3)]);});}function a24_0x1f97(_0x2207fc,_0x454e72){_0x2207fc=_0x2207fc-0x196;const _0x49fd73=a24_0x49fd();let _0x1f97eb=_0x49fd73[_0x2207fc];return _0x1f97eb;}function a24_0x49fd(){const _0x5c79df=['email','516651PQBZIL','user.deleted','USER_ALL','events','USER_READ','API\x20Error:\x20','25038cStADr','USER_CREATED','167933QZUYZr','2146880ljWCeR','authorizations','USER_DELETED','100004:\x20Action\x20not\x20allowed.','824QeBKRk','stringify','user.read.all','POST','status','user.read.some','100002:\x20Action\x20not\x20allowed.','ADMIN','user.created','password','2351814fjUhLI','user.login','4999510RwDeRH','/login','DELETE','hasPermission','application/json','5CrEgYa','json','user.read','getCurrentUser','6iMIZAO','USER_UPDATED','statusText','3312491fDQQyk','onRequest','PUT','100001:\x20Action\x20not\x20allowed.'];a24_0x49fd=function(){return _0x5c79df;};return a24_0x49fd();}
@@ -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 a28_0x347e(){var _0x36a5e4=['1139248dPRtlL','1385ychAPb','170416HixFBw','260393lqKbbT','71272TJjgxP','assign','117iFMxzd','48VwgRPz','32tZMpda','18024nutkgX','5068739EDUlOX','9HBYGOA','560810XfaoSz','99tKwRuL'];a28_0x347e=function(){return _0x36a5e4;};return a28_0x347e();}(function(_0x25d891,_0x1f00ae){var _0x24bef1=a28_0x5df1,_0x44d122=_0x25d891();while(!![]){try{var _0x549179=parseInt(_0x24bef1(0xaf))/0x1*(parseInt(_0x24bef1(0xb4))/0x2)+parseInt(_0x24bef1(0xb8))/0x3*(-parseInt(_0x24bef1(0xb6))/0x4)+-parseInt(_0x24bef1(0xb3))/0x5*(parseInt(_0x24bef1(0xad))/0x6)+-parseInt(_0x24bef1(0xb5))/0x7*(-parseInt(_0x24bef1(0xac))/0x8)+parseInt(_0x24bef1(0xb1))/0x9*(-parseInt(_0x24bef1(0xb0))/0xa)+parseInt(_0x24bef1(0xb2))/0xb+parseInt(_0x24bef1(0xab))/0xc*(parseInt(_0x24bef1(0xae))/0xd);if(_0x549179===_0x1f00ae)break;else _0x44d122['push'](_0x44d122['shift']());}catch(_0x1579b8){_0x44d122['push'](_0x44d122['shift']());}}}(a28_0x347e,0x6a303));import{Entity}from'../core/Entity.js';function a28_0x5df1(_0x124d5d,_0x1a8aa1){_0x124d5d=_0x124d5d-0xab;var _0x347e10=a28_0x347e();var _0x5df197=_0x347e10[_0x124d5d];return _0x5df197;}export class Client extends Entity{constructor(_0x8ce260,_0x18d9b3){var _0x546101=a28_0x5df1;super(_0x8ce260),Object[_0x546101(0xb7)](this,_0x18d9b3);}}
@@ -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(_0x57f452,_0x53a677){var _0x349898=a29_0x10eb,_0x5a00dd=_0x57f452();while(!![]){try{var _0x235b7d=-parseInt(_0x349898(0xb5))/0x1*(-parseInt(_0x349898(0xb0))/0x2)+-parseInt(_0x349898(0xb3))/0x3+parseInt(_0x349898(0xb7))/0x4+-parseInt(_0x349898(0xb4))/0x5*(parseInt(_0x349898(0xb6))/0x6)+-parseInt(_0x349898(0xb2))/0x7+parseInt(_0x349898(0xb1))/0x8*(parseInt(_0x349898(0xb9))/0x9)+parseInt(_0x349898(0xbb))/0xa*(-parseInt(_0x349898(0xb8))/0xb);if(_0x235b7d===_0x53a677)break;else _0x5a00dd['push'](_0x5a00dd['shift']());}catch(_0x27f2b4){_0x5a00dd['push'](_0x5a00dd['shift']());}}}(a29_0x3668,0xd71bf));function a29_0x10eb(_0x507af5,_0x3f5b9c){_0x507af5=_0x507af5-0xb0;var _0x36682e=a29_0x3668();var _0x10ebeb=_0x36682e[_0x507af5];return _0x10ebeb;}function a29_0x3668(){var _0x26531c=['assign','8237780IgLxoc','3087626mrgjto','16xXxaWf','2219224aukqKJ','1599429gWmIiM','1753530mOcbVr','1OsPJqT','6pnNebn','2317660rqYQEy','11khFoCF','3521331xPEMcv'];a29_0x3668=function(){return _0x26531c;};return a29_0x3668();}import{Entity}from'../core/Entity.js';export class Item extends Entity{constructor(_0x53ed2c,_0x1d645d){var _0x3fc41a=a29_0x10eb;super(_0x53ed2c),Object[_0x3fc41a(0xba)](this,_0x1d645d);}}
@@ -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(_0xa13eaf,_0x3bece3){var _0x11fb29=a30_0x2650,_0x206fee=_0xa13eaf();while(!![]){try{var _0xf0fb5a=-parseInt(_0x11fb29(0x11e))/0x1*(parseInt(_0x11fb29(0x118))/0x2)+parseInt(_0x11fb29(0x117))/0x3*(-parseInt(_0x11fb29(0x11d))/0x4)+parseInt(_0x11fb29(0x119))/0x5+parseInt(_0x11fb29(0x11c))/0x6+parseInt(_0x11fb29(0x11b))/0x7+-parseInt(_0x11fb29(0x116))/0x8+parseInt(_0x11fb29(0x115))/0x9*(parseInt(_0x11fb29(0x11a))/0xa);if(_0xf0fb5a===_0x3bece3)break;else _0x206fee['push'](_0x206fee['shift']());}catch(_0x48af00){_0x206fee['push'](_0x206fee['shift']());}}}(a30_0x3fed,0x52a65));function a30_0x3fed(){var _0x2b34a3=['113632kjbsPE','650620lqmyIU','4924420CwfrVC','266672zkLBXK','3733692FXJumU','2389964GedDtG','8GZreog','assign','18YgzZlu','3078672chDeqs','3yxsHDp'];a30_0x3fed=function(){return _0x2b34a3;};return a30_0x3fed();}function a30_0x2650(_0x4ae703,_0x375994){_0x4ae703=_0x4ae703-0x115;var _0x3fedba=a30_0x3fed();var _0x2650af=_0x3fedba[_0x4ae703];return _0x2650af;}import{Entity}from'../core/Entity.js';export class Order extends Entity{constructor(_0x3f2ba8,_0x18420a){var _0x3e532b=a30_0x2650;super(_0x3f2ba8),Object[_0x3e532b(0x11f)](this,_0x18420a);}}
@@ -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(_0x53905a,_0x2a1dac){var _0x14355d=a31_0x401a,_0x726d97=_0x53905a();while(!![]){try{var _0x253911=parseInt(_0x14355d(0x10b))/0x1*(parseInt(_0x14355d(0x107))/0x2)+-parseInt(_0x14355d(0x109))/0x3*(-parseInt(_0x14355d(0x10a))/0x4)+-parseInt(_0x14355d(0x108))/0x5+-parseInt(_0x14355d(0x105))/0x6+-parseInt(_0x14355d(0x104))/0x7*(parseInt(_0x14355d(0x102))/0x8)+-parseInt(_0x14355d(0x101))/0x9+parseInt(_0x14355d(0x106))/0xa;if(_0x253911===_0x2a1dac)break;else _0x726d97['push'](_0x726d97['shift']());}catch(_0x52ac33){_0x726d97['push'](_0x726d97['shift']());}}}(a31_0x768c,0xc96e4));import{Entity}from'../core/Entity.js';function a31_0x401a(_0x538239,_0x150024){_0x538239=_0x538239-0x101;var _0x768ca6=a31_0x768c();var _0x401a51=_0x768ca6[_0x538239];return _0x401a51;}export class Preparation extends Entity{constructor(_0x4565eb,_0x5aaf0c){var _0x904a80=a31_0x401a;super(_0x4565eb),Object[_0x904a80(0x103)](this,_0x5aaf0c);}}function a31_0x768c(){var _0x2af299=['5ALMmvZ','540rSORqg','100744HmOjPF','assign','217cTTfSx','1717446LiHhbd','10899050RtDXHR','532666dFJQKx','5552965VtsPzO','3RiyOMu','763068JBsNSu'];a31_0x768c=function(){return _0x2af299;};return a31_0x768c();}
@@ -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(_0x28df5b,_0x5722d6){var _0x64e87f=a32_0xc554,_0x485428=_0x28df5b();while(!![]){try{var _0x52b563=parseInt(_0x64e87f(0x102))/0x1+-parseInt(_0x64e87f(0x104))/0x2+-parseInt(_0x64e87f(0x106))/0x3*(parseInt(_0x64e87f(0x103))/0x4)+parseInt(_0x64e87f(0x108))/0x5*(parseInt(_0x64e87f(0x107))/0x6)+parseInt(_0x64e87f(0x101))/0x7+parseInt(_0x64e87f(0x109))/0x8+-parseInt(_0x64e87f(0x105))/0x9;if(_0x52b563===_0x5722d6)break;else _0x485428['push'](_0x485428['shift']());}catch(_0x56c575){_0x485428['push'](_0x485428['shift']());}}}(a32_0x2f78,0x9d0f3));import{Entity}from'../core/Entity.js';function a32_0x2f78(){var _0x45f526=['33MEuVXs','48pcMsJq','739405LSAUpt','5169152coiqKJ','assign','3431127IqpuXb','711407mgpgqi','46572aIsWAL','160920MQzgJK','19610208mMQqoX'];a32_0x2f78=function(){return _0x45f526;};return a32_0x2f78();}function a32_0xc554(_0x205c2e,_0xca6b03){_0x205c2e=_0x205c2e-0x100;var _0x2f78c0=a32_0x2f78();var _0xc554c7=_0x2f78c0[_0x205c2e];return _0xc554c7;}export class Purchase extends Entity{constructor(_0x58ae84,_0x20fa4c){var _0x32f77c=a32_0xc554;super(_0x58ae84),Object[_0x32f77c(0x100)](this,_0x20fa4c);}}
@@ -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(_0x194d4a,_0x39fd8c){var _0x33f0a7=a33_0x2b3e,_0x46429e=_0x194d4a();while(!![]){try{var _0x1745ce=-parseInt(_0x33f0a7(0x1d3))/0x1+-parseInt(_0x33f0a7(0x1d2))/0x2+parseInt(_0x33f0a7(0x1cf))/0x3*(parseInt(_0x33f0a7(0x1d8))/0x4)+parseInt(_0x33f0a7(0x1d9))/0x5*(parseInt(_0x33f0a7(0x1d0))/0x6)+-parseInt(_0x33f0a7(0x1d5))/0x7*(parseInt(_0x33f0a7(0x1d7))/0x8)+parseInt(_0x33f0a7(0x1d6))/0x9*(-parseInt(_0x33f0a7(0x1d1))/0xa)+parseInt(_0x33f0a7(0x1d4))/0xb;if(_0x1745ce===_0x39fd8c)break;else _0x46429e['push'](_0x46429e['shift']());}catch(_0x5a698a){_0x46429e['push'](_0x46429e['shift']());}}}(a33_0x363b,0x45814));import{Entity}from'../core/Entity.js';export class Reception extends Entity{constructor(_0x57ad85,_0x268b37){var _0x5290b6=a33_0x2b3e;super(_0x57ad85),Object[_0x5290b6(0x1da)](this,_0x268b37);}}function a33_0x2b3e(_0x368cb4,_0x34ac3b){_0x368cb4=_0x368cb4-0x1cf;var _0x363b67=a33_0x363b();var _0x2b3efd=_0x363b67[_0x368cb4];return _0x2b3efd;}function a33_0x363b(){var _0x6bb557=['3093954UyWRGy','12550Fjmnqu','1046732zYwmaG','556417QDaLhR','12382711MapAPh','119imXGWA','2619XeKgHB','51896OrwBVm','794396wiWAzq','5KdMGLs','assign','3uAuaPI'];a33_0x363b=function(){return _0x6bb557;};return a33_0x363b();}
@@ -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(_0x2accb9,_0x388392){var _0x173476=a34_0x1682,_0x191a70=_0x2accb9();while(!![]){try{var _0x259299=parseInt(_0x173476(0x13e))/0x1+-parseInt(_0x173476(0x13f))/0x2*(parseInt(_0x173476(0x13c))/0x3)+parseInt(_0x173476(0x13d))/0x4+-parseInt(_0x173476(0x142))/0x5+parseInt(_0x173476(0x13b))/0x6*(-parseInt(_0x173476(0x141))/0x7)+parseInt(_0x173476(0x144))/0x8*(-parseInt(_0x173476(0x143))/0x9)+parseInt(_0x173476(0x140))/0xa;if(_0x259299===_0x388392)break;else _0x191a70['push'](_0x191a70['shift']());}catch(_0x472332){_0x191a70['push'](_0x191a70['shift']());}}}(a34_0x5ea7,0xcdde1));import{Entity}from'../core/Entity.js';function a34_0x1682(_0x44d0c2,_0x186e47){_0x44d0c2=_0x44d0c2-0x13b;var _0x5ea75d=a34_0x5ea7();var _0x168248=_0x5ea75d[_0x44d0c2];return _0x168248;}function a34_0x5ea7(){var _0xe1339e=['28qjyeGl','2744335gFpMZY','7305939wtwbsc','8GAqcDO','1575258fYaHQw','129BouLVU','274304WxEzFw','1301079juXrgf','52412HfsaJi','30112460oMYXxp'];a34_0x5ea7=function(){return _0xe1339e;};return a34_0x5ea7();}export class Stock extends Entity{constructor(_0x218aeb,_0x4e9d72){super(_0x218aeb),Object['assign'](this,_0x4e9d72);}}
@@ -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(_0x2adc9d,_0xc181a8){var _0x309825=a35_0x2e07,_0x43fcfe=_0x2adc9d();while(!![]){try{var _0x52916b=-parseInt(_0x309825(0x17c))/0x1+parseInt(_0x309825(0x17b))/0x2*(parseInt(_0x309825(0x17e))/0x3)+-parseInt(_0x309825(0x184))/0x4*(parseInt(_0x309825(0x17f))/0x5)+-parseInt(_0x309825(0x183))/0x6+parseInt(_0x309825(0x17d))/0x7+parseInt(_0x309825(0x17a))/0x8+-parseInt(_0x309825(0x180))/0x9*(parseInt(_0x309825(0x181))/0xa);if(_0x52916b===_0xc181a8)break;else _0x43fcfe['push'](_0x43fcfe['shift']());}catch(_0x165ae5){_0x43fcfe['push'](_0x43fcfe['shift']());}}}(a35_0x3517,0xb3c0c));function a35_0x3517(){var _0xbbb78c=['52uknXgY','5887824CgEsqV','374000ZOiobb','172631pyARwB','4572848JXHfzo','15kmfsHZ','281795UVlFyB','5804046vleusi','10kekseS','assign','226692wjxJGh'];a35_0x3517=function(){return _0xbbb78c;};return a35_0x3517();}import{Entity}from'../core/Entity.js';function a35_0x2e07(_0x4c537d,_0xf16c26){_0x4c537d=_0x4c537d-0x17a;var _0x35173a=a35_0x3517();var _0x2e07aa=_0x35173a[_0x4c537d];return _0x2e07aa;}export class Supplier extends Entity{constructor(_0x5e2886,_0x47b9e1){var _0x19d4d3=a35_0x2e07;super(_0x5e2886),Object[_0x19d4d3(0x182)](this,_0x47b9e1);}}
@@ -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(_0x40523a,_0x36070b){var _0x28dfec=a36_0x3fe4,_0x183e2d=_0x40523a();while(!![]){try{var _0x253f2e=-parseInt(_0x28dfec(0x1cb))/0x1+-parseInt(_0x28dfec(0x1c5))/0x2*(-parseInt(_0x28dfec(0x1c8))/0x3)+parseInt(_0x28dfec(0x1c1))/0x4*(parseInt(_0x28dfec(0x1c6))/0x5)+parseInt(_0x28dfec(0x1ca))/0x6+-parseInt(_0x28dfec(0x1c4))/0x7*(-parseInt(_0x28dfec(0x1cc))/0x8)+parseInt(_0x28dfec(0x1c7))/0x9+-parseInt(_0x28dfec(0x1c3))/0xa*(parseInt(_0x28dfec(0x1c2))/0xb);if(_0x253f2e===_0x36070b)break;else _0x183e2d['push'](_0x183e2d['shift']());}catch(_0x1225ff){_0x183e2d['push'](_0x183e2d['shift']());}}}(a36_0x41d2,0x7fc22));import{Entity}from'../core/Entity.js';function a36_0x3fe4(_0x4195e6,_0x1af1f0){_0x4195e6=_0x4195e6-0x1c1;var _0x41d283=a36_0x41d2();var _0x3fe47f=_0x41d283[_0x4195e6];return _0x3fe47f;}export class Tax extends Entity{constructor(_0xe77f7d,_0x526ba2){var _0x36ea47=a36_0x3fe4;super(_0xe77f7d),Object[_0x36ea47(0x1c9)](this,_0x526ba2);}}function a36_0x41d2(){var _0x324532=['1796644AYytRH','29887tMepRb','5570RfErTR','139531gVZCEk','15358pictux','5wgkKbi','1383210QDHTwx','174JMJgvk','assign','3185286vuwobb','120504vLHNES','232NwGTdi'];a36_0x41d2=function(){return _0x324532;};return a36_0x41d2();}
@@ -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_0x4c0e(_0xa9074e,_0x551ec1){_0xa9074e=_0xa9074e-0xac;var _0x3e8395=a37_0x3e83();var _0x4c0e35=_0x3e8395[_0xa9074e];return _0x4c0e35;}var a37_0x367e09=a37_0x4c0e;(function(_0x45802a,_0x1c6943){var _0x468c7b=a37_0x4c0e,_0x1dcc8b=_0x45802a();while(!![]){try{var _0x2a4600=parseInt(_0x468c7b(0xb1))/0x1*(-parseInt(_0x468c7b(0xb2))/0x2)+-parseInt(_0x468c7b(0xb9))/0x3*(parseInt(_0x468c7b(0xb0))/0x4)+parseInt(_0x468c7b(0xb4))/0x5*(-parseInt(_0x468c7b(0xb8))/0x6)+-parseInt(_0x468c7b(0xb6))/0x7+-parseInt(_0x468c7b(0xbc))/0x8*(-parseInt(_0x468c7b(0xb7))/0x9)+-parseInt(_0x468c7b(0xaf))/0xa*(parseInt(_0x468c7b(0xbb))/0xb)+-parseInt(_0x468c7b(0xb3))/0xc*(-parseInt(_0x468c7b(0xbd))/0xd);if(_0x2a4600===_0x1c6943)break;else _0x1dcc8b['push'](_0x1dcc8b['shift']());}catch(_0x5ba1f2){_0x1dcc8b['push'](_0x1dcc8b['shift']());}}}(a37_0x3e83,0xe87ff));function a37_0x3e83(){var _0x341ae1=['8088552DufXba','7460185JHWwuE','assign','11905551WDFnuR','9WsuKOv','6vRKmIg','6NcUffA','has','4103fHuKgH','4617848QADEiu','91FKAysq','addPermission','add','removePermission','authorizations','5930EJfdQW','167836CSXAPr','15949WhMrAL','106XNfoSr'];a37_0x3e83=function(){return _0x341ae1;};return a37_0x3e83();}import{Entity}from'../core/Entity.js';export class User extends Entity{constructor(_0x2b6c32,_0x3d0006){var _0x3d96c9=a37_0x4c0e;super(_0x2b6c32),_0x3d0006[_0x3d96c9(0xae)]=_0x3d0006[_0x3d96c9(0xae)]?new Set(_0x3d0006[_0x3d96c9(0xae)]):new Set(),Object[_0x3d96c9(0xb5)](this,_0x3d0006);}['hasPermission'](_0x49252b){var _0x4689e7=a37_0x4c0e;if(this[_0x4689e7(0xae)]['has']('ADMIN'))return!![];return this['authorizations'][_0x4689e7(0xba)](_0x49252b);}[a37_0x367e09(0xbe)](_0x4b8ab9){var _0x57b514=a37_0x367e09;this[_0x57b514(0xae)][_0x57b514(0xac)](_0x4b8ab9);}[a37_0x367e09(0xad)](_0x762b07){this['authorizations']['delete'](_0x762b07);}}
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(_0x38a43c,_0x4d89a5){var _0x19a8b2=a38_0x47ee,_0x2ce5e3=_0x38a43c();while(!![]){try{var _0x5860ae=parseInt(_0x19a8b2(0x116))/0x1*(-parseInt(_0x19a8b2(0x119))/0x2)+parseInt(_0x19a8b2(0x115))/0x3+-parseInt(_0x19a8b2(0x11c))/0x4*(parseInt(_0x19a8b2(0x11b))/0x5)+-parseInt(_0x19a8b2(0x11a))/0x6*(-parseInt(_0x19a8b2(0x113))/0x7)+-parseInt(_0x19a8b2(0x117))/0x8*(-parseInt(_0x19a8b2(0x114))/0x9)+parseInt(_0x19a8b2(0x11d))/0xa+-parseInt(_0x19a8b2(0x118))/0xb;if(_0x5860ae===_0x4d89a5)break;else _0x2ce5e3['push'](_0x2ce5e3['shift']());}catch(_0x285bda){_0x2ce5e3['push'](_0x2ce5e3['shift']());}}}(a38_0x266f,0x68664));export{OWLClient}from'./owl/OWLClient.js';export*from'./core/Module.js';function a38_0x47ee(_0x1150b8,_0x153d21){_0x1150b8=_0x1150b8-0x113;var _0x266ff0=a38_0x266f();var _0x47ee5b=_0x266ff0[_0x1150b8];return _0x47ee5b;}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';function a38_0x266f(){var _0x26f3fd=['583845XToqgt','12YEpIxy','2199940tFoiuv','1333409jZEzAW','175257XjjHgp','1841067asouGn','2UeaHZb','96JRrbQG','2464539sGeENa','255870RKYili','6GfVMXw'];a38_0x266f=function(){return _0x26f3fd;};return a38_0x266f();}