owl-progiciel 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/api/routes/client.routes.js +1 -1
  2. package/dist/api/routes/item.routes.js +1 -1
  3. package/dist/api/routes/order.routes.js +1 -1
  4. package/dist/api/routes/preparation.routes.js +1 -1
  5. package/dist/api/routes/purchase.routes.js +1 -1
  6. package/dist/api/routes/reception.routes.js +1 -1
  7. package/dist/api/routes/stock.routes.js +1 -1
  8. package/dist/api/routes/supplier.routes.js +1 -1
  9. package/dist/api/routes/tax.routes.js +1 -1
  10. package/dist/api/routes/user.routes.js +1 -1
  11. package/dist/api/server.js +1 -1
  12. package/dist/core/Entity.js +1 -1
  13. package/dist/core/EventBus.js +1 -1
  14. package/dist/core/EventsDatabase.js +1 -1
  15. package/dist/core/Manager.js +1 -1
  16. package/dist/core/events/ClientEvents.js +1 -1
  17. package/dist/core/events/ItemEvents.js +1 -1
  18. package/dist/core/events/OrderEvents.js +1 -1
  19. package/dist/core/events/PreparationEvents.js +1 -1
  20. package/dist/core/events/PurchaseEvents.js +1 -1
  21. package/dist/core/events/ReceptionEvents.js +1 -1
  22. package/dist/core/events/StockEvents.js +1 -1
  23. package/dist/core/events/SupplierEvents.js +1 -1
  24. package/dist/core/events/TaxEvents.js +1 -1
  25. package/dist/core/events/UserEvents.js +1 -1
  26. package/dist/entities/Client.js +1 -1
  27. package/dist/entities/Item.js +1 -1
  28. package/dist/entities/Order.js +1 -1
  29. package/dist/entities/Preparation.js +1 -1
  30. package/dist/entities/Purchase.js +1 -1
  31. package/dist/entities/Reception.js +1 -1
  32. package/dist/entities/Stock.js +1 -1
  33. package/dist/entities/Supplier.js +1 -1
  34. package/dist/entities/Tax.js +1 -1
  35. package/dist/entities/User.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/managers/ClientManager.js +1 -1
  38. package/dist/managers/ItemManager.js +1 -1
  39. package/dist/managers/OrderManager.js +1 -1
  40. package/dist/managers/PreparationManager.js +1 -1
  41. package/dist/managers/PurchaseManager.js +1 -1
  42. package/dist/managers/ReceptionManager.js +1 -1
  43. package/dist/managers/StockManager.js +1 -1
  44. package/dist/managers/SupplierManager.js +1 -1
  45. package/dist/managers/TaxManager.js +1 -1
  46. package/dist/managers/UserManager.js +1 -1
  47. package/dist/owl/OWLClient.js +1 -1
  48. package/package.json +4 -2
@@ -1 +1 @@
1
- const a0_0x33fb2f=a0_0x5ae4;(function(_0x301788,_0x32e9f9){const _0x5ef1fa=a0_0x5ae4,_0x87745=_0x301788();while(!![]){try{const _0x4dec55=-parseInt(_0x5ef1fa(0xa9))/0x1+-parseInt(_0x5ef1fa(0xb3))/0x2+parseInt(_0x5ef1fa(0xae))/0x3+-parseInt(_0x5ef1fa(0xb8))/0x4+parseInt(_0x5ef1fa(0xb1))/0x5*(-parseInt(_0x5ef1fa(0xbe))/0x6)+-parseInt(_0x5ef1fa(0xad))/0x7*(parseInt(_0x5ef1fa(0xb5))/0x8)+parseInt(_0x5ef1fa(0xb9))/0x9;if(_0x4dec55===_0x32e9f9)break;else _0x87745['push'](_0x87745['shift']());}catch(_0x3ab0ac){_0x87745['push'](_0x87745['shift']());}}}(a0_0x2c94,0x5e0c7));function a0_0x5ae4(_0x3e2b8f,_0x537d42){_0x3e2b8f=_0x3e2b8f-0xa8;const _0x2c946e=a0_0x2c94();let _0x5ae488=_0x2c946e[_0x3e2b8f];return _0x5ae488;}import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router['post']('/',async(_0x4b4d31,_0x3c3c3e)=>{const _0x6780f9=a0_0x5ae4;try{const {taxes:_0xd084a6,..._0x11f106}=_0x4b4d31[_0x6780f9(0xaa)],_0x29d2e4=await prisma[_0x6780f9(0xb4)][_0x6780f9(0xb6)]({'data':{..._0x11f106,'taxes':{'create':_0xd084a6?.['map'](_0x3fd756=>({'tax':{'create':{..._0x3fd756}}}))||[]}},'include':{'taxes':{'include':{'tax':!![]}}}});_0x3c3c3e['json']({'id':_0x29d2e4['id']});}catch(_0x3d0b2e){_0x3c3c3e[_0x6780f9(0xbc)](0x1f4)['json']({'error':_0x3d0b2e[_0x6780f9(0xab)]});}}),router[a0_0x33fb2f(0xbb)](a0_0x33fb2f(0xb7),async(_0x1f7fda,_0x316cf6)=>{const _0x1fe293=a0_0x33fb2f;try{const {id:_0x30001e}=_0x1f7fda[_0x1fe293(0xb2)],_0x293370=await prisma[_0x1fe293(0xb4)]['findUnique']({'where':{'id':Number(_0x30001e)},'include':{'taxes':{'include':{'tax':!![]}}}});_0x316cf6[_0x1fe293(0xb0)](_0x293370);}catch(_0x1de8cf){_0x316cf6['status'](0x1f4)[_0x1fe293(0xb0)]({'error':_0x1de8cf[_0x1fe293(0xab)]});}}),router[a0_0x33fb2f(0xbb)]('/',async(_0x178401,_0x886534)=>{const _0x29dd40=a0_0x33fb2f;try{const _0x589ede=await prisma[_0x29dd40(0xb4)][_0x29dd40(0xac)]({'include':{'taxes':{'include':{'tax':!![]}}}});_0x886534[_0x29dd40(0xb0)](_0x589ede);}catch(_0xbe14c0){_0x886534[_0x29dd40(0xbc)](0x1f4)['json']({'error':_0xbe14c0[_0x29dd40(0xab)]});}}),router[a0_0x33fb2f(0xaf)](a0_0x33fb2f(0xbd),async(_0x14dc9a,_0x3c8d7b)=>{const _0x8e1267=a0_0x33fb2f;try{const _0x4e5c45=_0x14dc9a['body'],_0x517155=await prisma[_0x8e1267(0xb4)][_0x8e1267(0xac)]({'where':_0x4e5c45,'include':{'taxes':{'include':{'tax':!![]}}}});_0x3c8d7b[_0x8e1267(0xb0)](_0x517155);}catch(_0x14a1da){_0x3c8d7b['status'](0x1f4)[_0x8e1267(0xb0)]({'error':_0x14a1da[_0x8e1267(0xab)]});}}),router['put']('/:id',async(_0x4dc9cf,_0x533f9b)=>{const _0x103733=a0_0x33fb2f;try{const {id:_0x58db71}=_0x4dc9cf[_0x103733(0xb2)],_0x3bf95e=_0x4dc9cf[_0x103733(0xaa)],_0x32c923=await prisma[_0x103733(0xb4)]['update']({'where':{'id':Number(_0x58db71)},'data':_0x3bf95e});_0x533f9b[_0x103733(0xb0)](_0x32c923);}catch(_0xa5fc1d){_0x533f9b[_0x103733(0xbc)](0x1f4)[_0x103733(0xb0)]({'error':_0xa5fc1d[_0x103733(0xab)]});}}),router[a0_0x33fb2f(0xba)](a0_0x33fb2f(0xb7),async(_0x4ab3b1,_0x3c5f17)=>{const _0x18f35c=a0_0x33fb2f;try{const {id:_0x4b0b80}=_0x4ab3b1[_0x18f35c(0xb2)];await prisma['client']['delete']({'where':{'id':Number(_0x4b0b80)}}),_0x3c5f17[_0x18f35c(0xbc)](0xcc)[_0x18f35c(0xa8)]();}catch(_0x2ca52d){_0x3c5f17['status'](0x1f4)[_0x18f35c(0xb0)]({'error':_0x2ca52d[_0x18f35c(0xab)]});}});export default router;function a0_0x2c94(){const _0x342e3a=['878721piRgEi','post','json','47015oqQEcQ','params','127336Jwqblk','client','2936NIHnot','create','/:id','1112828nDKrtd','9922167hFlmFu','delete','get','status','/search','306WAaiCX','send','127430JAQfJq','body','message','findMany','1169PqdUyL'];a0_0x2c94=function(){return _0x342e3a;};return a0_0x2c94();}
1
+ const a0_0x5c8747=a0_0x2ebc;(function(_0x27a720,_0x4b1628){const _0x1d7f64=a0_0x2ebc,_0x379d97=_0x27a720();while(!![]){try{const _0x42e08d=-parseInt(_0x1d7f64(0x177))/0x1*(parseInt(_0x1d7f64(0x182))/0x2)+parseInt(_0x1d7f64(0x171))/0x3*(parseInt(_0x1d7f64(0x173))/0x4)+-parseInt(_0x1d7f64(0x185))/0x5*(parseInt(_0x1d7f64(0x175))/0x6)+parseInt(_0x1d7f64(0x170))/0x7+-parseInt(_0x1d7f64(0x17e))/0x8+parseInt(_0x1d7f64(0x186))/0x9*(-parseInt(_0x1d7f64(0x18b))/0xa)+-parseInt(_0x1d7f64(0x17a))/0xb*(-parseInt(_0x1d7f64(0x18c))/0xc);if(_0x42e08d===_0x4b1628)break;else _0x379d97['push'](_0x379d97['shift']());}catch(_0x16929b){_0x379d97['push'](_0x379d97['shift']());}}}(a0_0x16f9,0x523b7));function a0_0x16f9(){const _0x3e5f4a=['findMany','client','2545208IsrJhe','status','/search','delete','8lVjncv','params','put','3027385EBgDpY','9UoUjil','/:id','send','json','map','5033730msduRW','12MaEimy','1660603vUltat','15CTypwN','post','424920ogNmCi','create','6SVdBSr','get','110033BHGNFY','message','update','15791347RWKdXu','body'];a0_0x16f9=function(){return _0x3e5f4a;};return a0_0x16f9();}import{Router}from'express';import{PrismaClient}from'@prisma/client';function a0_0x2ebc(_0x7ee55f,_0x940b4b){_0x7ee55f=_0x7ee55f-0x170;const _0x16f970=a0_0x16f9();let _0x2ebc2a=_0x16f970[_0x7ee55f];return _0x2ebc2a;}const prisma=new PrismaClient(),router=Router();router[a0_0x5c8747(0x172)]('/',async(_0x394669,_0x333eb5)=>{const _0x939e7e=a0_0x5c8747;try{const {taxes:_0x46e3af,..._0x30a4d3}=_0x394669[_0x939e7e(0x17b)],_0x59c49f=await prisma[_0x939e7e(0x17d)][_0x939e7e(0x174)]({'data':{..._0x30a4d3,'taxes':{'create':_0x46e3af?.[_0x939e7e(0x18a)](_0x1aee30=>({'tax':{'create':{..._0x1aee30}}}))||[]}},'include':{'taxes':{'include':{'tax':!![]}}}});_0x333eb5['json']({'id':_0x59c49f['id']});}catch(_0x1f7b86){_0x333eb5[_0x939e7e(0x17f)](0x1f4)[_0x939e7e(0x189)]({'error':_0x1f7b86[_0x939e7e(0x178)]});}}),router[a0_0x5c8747(0x176)]('/:id',async(_0x4126a2,_0x20f75a)=>{const _0x2f47a5=a0_0x5c8747;try{const {id:_0x3cd200}=_0x4126a2[_0x2f47a5(0x183)],_0x30cf93=await prisma[_0x2f47a5(0x17d)]['findUnique']({'where':{'id':Number(_0x3cd200)},'include':{'taxes':{'include':{'tax':!![]}}}});_0x20f75a[_0x2f47a5(0x189)](_0x30cf93);}catch(_0x7a2c02){_0x20f75a[_0x2f47a5(0x17f)](0x1f4)[_0x2f47a5(0x189)]({'error':_0x7a2c02['message']});}}),router[a0_0x5c8747(0x176)]('/',async(_0x273d7d,_0x494854)=>{const _0x4a79ef=a0_0x5c8747;try{const _0x148711=await prisma['client'][_0x4a79ef(0x17c)]({'include':{'taxes':{'include':{'tax':!![]}}}});_0x494854[_0x4a79ef(0x189)](_0x148711);}catch(_0x15d8b1){_0x494854[_0x4a79ef(0x17f)](0x1f4)['json']({'error':_0x15d8b1[_0x4a79ef(0x178)]});}}),router['post'](a0_0x5c8747(0x180),async(_0x22ea95,_0x3483ab)=>{const _0x251821=a0_0x5c8747;try{const _0x184a4e=_0x22ea95[_0x251821(0x17b)],_0x219b5d=await prisma['client'][_0x251821(0x17c)]({'where':_0x184a4e,'include':{'taxes':{'include':{'tax':!![]}}}});_0x3483ab[_0x251821(0x189)](_0x219b5d);}catch(_0xd2e793){_0x3483ab[_0x251821(0x17f)](0x1f4)[_0x251821(0x189)]({'error':_0xd2e793[_0x251821(0x178)]});}}),router[a0_0x5c8747(0x184)](a0_0x5c8747(0x187),async(_0x12b902,_0x3b93ee)=>{const _0x4826d7=a0_0x5c8747;try{const {id:_0x21c78a}=_0x12b902[_0x4826d7(0x183)],_0x22cc20=_0x12b902[_0x4826d7(0x17b)],_0x2851ca=await prisma[_0x4826d7(0x17d)][_0x4826d7(0x179)]({'where':{'id':Number(_0x21c78a)},'data':_0x22cc20});_0x3b93ee[_0x4826d7(0x189)](_0x2851ca);}catch(_0x55b71d){_0x3b93ee[_0x4826d7(0x17f)](0x1f4)[_0x4826d7(0x189)]({'error':_0x55b71d[_0x4826d7(0x178)]});}}),router[a0_0x5c8747(0x181)]('/:id',async(_0x38cc63,_0x3b35ab)=>{const _0x13bf35=a0_0x5c8747;try{const {id:_0x14fc43}=_0x38cc63['params'];await prisma[_0x13bf35(0x17d)]['delete']({'where':{'id':Number(_0x14fc43)}}),_0x3b35ab[_0x13bf35(0x17f)](0xcc)[_0x13bf35(0x188)]();}catch(_0x48a15a){_0x3b35ab[_0x13bf35(0x17f)](0x1f4)['json']({'error':_0x48a15a[_0x13bf35(0x178)]});}});export default router;
@@ -1 +1 @@
1
- const a1_0x3e57fb=a1_0x346d;(function(_0x28ea0a,_0x3845eb){const _0x30a1da=a1_0x346d,_0x523697=_0x28ea0a();while(!![]){try{const _0x40e8d0=-parseInt(_0x30a1da(0x1d8))/0x1+parseInt(_0x30a1da(0x1e1))/0x2*(parseInt(_0x30a1da(0x1db))/0x3)+-parseInt(_0x30a1da(0x1e5))/0x4+parseInt(_0x30a1da(0x1d9))/0x5*(-parseInt(_0x30a1da(0x1e6))/0x6)+parseInt(_0x30a1da(0x1de))/0x7+parseInt(_0x30a1da(0x1ec))/0x8+-parseInt(_0x30a1da(0x1e4))/0x9*(-parseInt(_0x30a1da(0x1e0))/0xa);if(_0x40e8d0===_0x3845eb)break;else _0x523697['push'](_0x523697['shift']());}catch(_0x3c27fc){_0x523697['push'](_0x523697['shift']());}}}(a1_0x45e0,0x6f340));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router[a1_0x3e57fb(0x1ef)]('/',async(_0x138232,_0x53add8)=>{const _0x4fdddd=a1_0x3e57fb;try{const {taxes:_0x4e6cc6,..._0x2cc8e5}=_0x138232[_0x4fdddd(0x1da)],_0x5adc9b=await prisma[_0x4fdddd(0x1dc)]['create']({'data':{..._0x2cc8e5,'taxes':{'create':_0x4e6cc6?.[_0x4fdddd(0x1e2)](_0x5f3b66=>({'tax':{'create':{..._0x5f3b66}}}))||[]}},'include':{'taxes':{'include':{'tax':!![]}}}});_0x53add8[_0x4fdddd(0x1e3)]({'id':_0x5adc9b['id']});}catch(_0x5b7bc0){_0x53add8[_0x4fdddd(0x1ed)](0x1f4)[_0x4fdddd(0x1e3)]({'error':_0x5b7bc0[_0x4fdddd(0x1ea)]});}}),router[a1_0x3e57fb(0x1dd)](a1_0x3e57fb(0x1e7),async(_0x4296e9,_0x1c5d6c)=>{const _0x369200=a1_0x3e57fb;try{const {id:_0x219cf8}=_0x4296e9[_0x369200(0x1ee)],_0x23891f=await prisma[_0x369200(0x1dc)][_0x369200(0x1df)]({'where':{'id':Number(_0x219cf8)},'include':{'taxes':{'include':{'tax':!![]}}}});_0x1c5d6c[_0x369200(0x1e3)](_0x23891f);}catch(_0x347126){_0x1c5d6c[_0x369200(0x1ed)](0x1f4)[_0x369200(0x1e3)]({'error':_0x347126[_0x369200(0x1ea)]});}}),router[a1_0x3e57fb(0x1dd)]('/',async(_0x2ed877,_0x51a249)=>{const _0x47ba47=a1_0x3e57fb;try{const _0x3a0782=await prisma[_0x47ba47(0x1dc)][_0x47ba47(0x1d7)]({'include':{'taxes':{'include':{'tax':!![]}}}});_0x51a249['json'](_0x3a0782);}catch(_0x2ff687){_0x51a249['status'](0x1f4)[_0x47ba47(0x1e3)]({'error':_0x2ff687['message']});}}),router[a1_0x3e57fb(0x1ef)](a1_0x3e57fb(0x1e9),async(_0x7649a5,_0x35672e)=>{const _0x18afa6=a1_0x3e57fb;try{const _0x33f15a=_0x7649a5['body'],_0x146803=await prisma['item'][_0x18afa6(0x1d7)]({'where':_0x33f15a,'include':{'taxes':{'include':{'tax':!![]}}}});_0x35672e[_0x18afa6(0x1e3)](_0x146803);}catch(_0x40f2e6){_0x35672e['status'](0x1f4)['json']({'error':_0x40f2e6[_0x18afa6(0x1ea)]});}}),router['put'](a1_0x3e57fb(0x1e7),async(_0x115f6f,_0x36d330)=>{const _0x1cbdd5=a1_0x3e57fb;try{const {id:_0x24f048}=_0x115f6f[_0x1cbdd5(0x1ee)],_0x10e5f1=_0x115f6f['body'],_0xbe00bc=await prisma[_0x1cbdd5(0x1dc)]['update']({'where':{'id':Number(_0x24f048)},'data':_0x10e5f1});_0x36d330[_0x1cbdd5(0x1e3)](_0xbe00bc);}catch(_0x56ac50){_0x36d330[_0x1cbdd5(0x1ed)](0x1f4)[_0x1cbdd5(0x1e3)]({'error':_0x56ac50[_0x1cbdd5(0x1ea)]});}}),router[a1_0x3e57fb(0x1eb)](a1_0x3e57fb(0x1e7),async(_0x243394,_0x4598fa)=>{const _0x422073=a1_0x3e57fb;try{const {id:_0x5b7944}=_0x243394['params'];await prisma['item'][_0x422073(0x1eb)]({'where':{'id':Number(_0x5b7944)}}),_0x4598fa[_0x422073(0x1ed)](0xcc)[_0x422073(0x1e8)]();}catch(_0x1976f0){_0x4598fa[_0x422073(0x1ed)](0x1f4)[_0x422073(0x1e3)]({'error':_0x1976f0['message']});}});function a1_0x45e0(){const _0x4519eb=['5KkffaD','body','45LDvCmb','item','get','3720626PAvLQR','findUnique','3030cDOWWf','64786ZVZYdY','map','json','26217sFLtdy','3531952gtxuXd','414426RCLiTT','/:id','send','/search','message','delete','1834192GxEZeZ','status','params','post','findMany','721779RnlGUW'];a1_0x45e0=function(){return _0x4519eb;};return a1_0x45e0();}function a1_0x346d(_0x1ba5bb,_0x1408e1){_0x1ba5bb=_0x1ba5bb-0x1d7;const _0x45e0d9=a1_0x45e0();let _0x346d97=_0x45e0d9[_0x1ba5bb];return _0x346d97;}export default router;
1
+ const a1_0x4d6269=a1_0x2a30;(function(_0x160e9a,_0x23703d){const _0xf97fe5=a1_0x2a30,_0x236222=_0x160e9a();while(!![]){try{const _0x3e175e=-parseInt(_0xf97fe5(0xbc))/0x1*(parseInt(_0xf97fe5(0xc9))/0x2)+parseInt(_0xf97fe5(0xb3))/0x3+-parseInt(_0xf97fe5(0xc7))/0x4+-parseInt(_0xf97fe5(0xbb))/0x5*(parseInt(_0xf97fe5(0xaf))/0x6)+parseInt(_0xf97fe5(0xad))/0x7*(parseInt(_0xf97fe5(0xb2))/0x8)+-parseInt(_0xf97fe5(0xc2))/0x9+parseInt(_0xf97fe5(0xc1))/0xa*(parseInt(_0xf97fe5(0xae))/0xb);if(_0x3e175e===_0x23703d)break;else _0x236222['push'](_0x236222['shift']());}catch(_0x2a5a9c){_0x236222['push'](_0x236222['shift']());}}}(a1_0x2dba,0x8ae76));import{Router}from'express';import{PrismaClient}from'@prisma/client';function a1_0x2dba(){const _0x15e86b=['post','status','findMany','message','663484YEpilz','/search','61382hfNGHN','506191TwIYFv','11rqjkzE','30pVKVAV','get','create','8QSMzpi','1783629uRvbiH','params','send','findUnique','update','delete','map','body','947165LIBNJF','9GoYOXV','put','json','item','/:id','16746590txpoKQ','3449790uaeBDh'];a1_0x2dba=function(){return _0x15e86b;};return a1_0x2dba();}const prisma=new PrismaClient(),router=Router();function a1_0x2a30(_0x181764,_0x54c748){_0x181764=_0x181764-0xad;const _0x2dba18=a1_0x2dba();let _0x2a3086=_0x2dba18[_0x181764];return _0x2a3086;}router[a1_0x4d6269(0xc3)]('/',async(_0x3cf2d1,_0x4de179)=>{const _0xa9a5ea=a1_0x4d6269;try{const {taxes:_0x29b469,..._0x13d215}=_0x3cf2d1[_0xa9a5ea(0xba)],_0x469466=await prisma[_0xa9a5ea(0xbf)][_0xa9a5ea(0xb1)]({'data':{..._0x13d215,'taxes':{'create':_0x29b469?.[_0xa9a5ea(0xb9)](_0x48ad50=>({'tax':{'create':{..._0x48ad50}}}))||[]}},'include':{'taxes':{'include':{'tax':!![]}}}});_0x4de179[_0xa9a5ea(0xbe)]({'id':_0x469466['id']});}catch(_0x425376){_0x4de179[_0xa9a5ea(0xc4)](0x1f4)[_0xa9a5ea(0xbe)]({'error':_0x425376[_0xa9a5ea(0xc6)]});}}),router[a1_0x4d6269(0xb0)]('/:id',async(_0xba465,_0x25f2e8)=>{const _0x5b4173=a1_0x4d6269;try{const {id:_0x35fff3}=_0xba465[_0x5b4173(0xb4)],_0x37c519=await prisma[_0x5b4173(0xbf)][_0x5b4173(0xb6)]({'where':{'id':Number(_0x35fff3)},'include':{'taxes':{'include':{'tax':!![]}}}});_0x25f2e8['json'](_0x37c519);}catch(_0x2748f9){_0x25f2e8[_0x5b4173(0xc4)](0x1f4)[_0x5b4173(0xbe)]({'error':_0x2748f9['message']});}}),router[a1_0x4d6269(0xb0)]('/',async(_0x516392,_0x3d71cb)=>{const _0x24251b=a1_0x4d6269;try{const _0x3b2494=await prisma[_0x24251b(0xbf)][_0x24251b(0xc5)]({'include':{'taxes':{'include':{'tax':!![]}}}});_0x3d71cb[_0x24251b(0xbe)](_0x3b2494);}catch(_0x2c0b18){_0x3d71cb[_0x24251b(0xc4)](0x1f4)[_0x24251b(0xbe)]({'error':_0x2c0b18['message']});}}),router['post'](a1_0x4d6269(0xc8),async(_0x20a2f0,_0x12d50e)=>{const _0x120cab=a1_0x4d6269;try{const _0x444ba1=_0x20a2f0['body'],_0x2522b2=await prisma[_0x120cab(0xbf)][_0x120cab(0xc5)]({'where':_0x444ba1,'include':{'taxes':{'include':{'tax':!![]}}}});_0x12d50e[_0x120cab(0xbe)](_0x2522b2);}catch(_0x18d573){_0x12d50e[_0x120cab(0xc4)](0x1f4)[_0x120cab(0xbe)]({'error':_0x18d573['message']});}}),router[a1_0x4d6269(0xbd)](a1_0x4d6269(0xc0),async(_0x5d7142,_0x26abb9)=>{const _0x5e87c3=a1_0x4d6269;try{const {id:_0x4b9e05}=_0x5d7142[_0x5e87c3(0xb4)],_0x5d3755=_0x5d7142['body'],_0x36bab7=await prisma['item'][_0x5e87c3(0xb7)]({'where':{'id':Number(_0x4b9e05)},'data':_0x5d3755});_0x26abb9[_0x5e87c3(0xbe)](_0x36bab7);}catch(_0xc962f0){_0x26abb9['status'](0x1f4)['json']({'error':_0xc962f0[_0x5e87c3(0xc6)]});}}),router[a1_0x4d6269(0xb8)]('/:id',async(_0x2133b3,_0x2debf3)=>{const _0x25b171=a1_0x4d6269;try{const {id:_0x279290}=_0x2133b3[_0x25b171(0xb4)];await prisma[_0x25b171(0xbf)][_0x25b171(0xb8)]({'where':{'id':Number(_0x279290)}}),_0x2debf3[_0x25b171(0xc4)](0xcc)[_0x25b171(0xb5)]();}catch(_0x486b7c){_0x2debf3[_0x25b171(0xc4)](0x1f4)[_0x25b171(0xbe)]({'error':_0x486b7c[_0x25b171(0xc6)]});}});export default router;
@@ -1 +1 @@
1
- const a2_0xb457e6=a2_0x1dad;(function(_0x1a0b57,_0x3a0702){const _0xc8ca69=a2_0x1dad,_0x1ee347=_0x1a0b57();while(!![]){try{const _0x2c7220=-parseInt(_0xc8ca69(0x124))/0x1+-parseInt(_0xc8ca69(0x12f))/0x2+parseInt(_0xc8ca69(0x11d))/0x3*(-parseInt(_0xc8ca69(0x127))/0x4)+-parseInt(_0xc8ca69(0x125))/0x5+-parseInt(_0xc8ca69(0x130))/0x6+-parseInt(_0xc8ca69(0x128))/0x7+parseInt(_0xc8ca69(0x129))/0x8;if(_0x2c7220===_0x3a0702)break;else _0x1ee347['push'](_0x1ee347['shift']());}catch(_0xe03017){_0x1ee347['push'](_0x1ee347['shift']());}}}(a2_0x4fb2,0x48a62));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a2_0x1dad(_0x5cc7ca,_0x2a11e7){_0x5cc7ca=_0x5cc7ca-0x11c;const _0x4fb2e2=a2_0x4fb2();let _0x1dadd9=_0x4fb2e2[_0x5cc7ca];return _0x1dadd9;}function a2_0x4fb2(){const _0x290d5e=['findMany','create','131640qBJmkv','2854290CQGOjE','/search','218068ywgHaL','1864009MVDxjP','18917976QVPFEh','post','send','params','get','put','499270CKjnZV','2802828DfbOLs','json','/:id','order','21ZzuOyu','delete','body','message','status'];a2_0x4fb2=function(){return _0x290d5e;};return a2_0x4fb2();}router[a2_0xb457e6(0x12a)]('/',async(_0x4dbc71,_0x22720b)=>{const _0x289c29=a2_0xb457e6;try{const _0x1c5691=await prisma[_0x289c29(0x11c)][_0x289c29(0x123)]({'data':_0x4dbc71[_0x289c29(0x11f)]});_0x22720b[_0x289c29(0x131)]({'id':_0x1c5691['id']});}catch(_0x4dc96e){_0x22720b[_0x289c29(0x121)](0x1f4)[_0x289c29(0x131)]({'error':_0x4dc96e[_0x289c29(0x120)]});}}),router[a2_0xb457e6(0x12d)](a2_0xb457e6(0x132),async(_0x3b60d4,_0x34e758)=>{const _0x4542f3=a2_0xb457e6;try{const {id:_0x5260e7}=_0x3b60d4[_0x4542f3(0x12c)],_0x4ea498=await prisma[_0x4542f3(0x11c)]['findUnique']({'where':{'id':Number(_0x5260e7)}});_0x34e758['json'](_0x4ea498);}catch(_0x474685){_0x34e758['status'](0x1f4)[_0x4542f3(0x131)]({'error':_0x474685[_0x4542f3(0x120)]});}}),router[a2_0xb457e6(0x12d)]('/',async(_0x54be0c,_0x549d3e)=>{const _0x1205cc=a2_0xb457e6;try{const _0x38a713=await prisma[_0x1205cc(0x11c)][_0x1205cc(0x122)]();_0x549d3e['json'](_0x38a713);}catch(_0x4dcffd){_0x549d3e['status'](0x1f4)['json']({'error':_0x4dcffd[_0x1205cc(0x120)]});}}),router[a2_0xb457e6(0x12a)](a2_0xb457e6(0x126),async(_0x38f3c4,_0x5632df)=>{const _0x3f5a25=a2_0xb457e6;try{const _0x3be3b9=_0x38f3c4[_0x3f5a25(0x11f)],_0x12e781=await prisma[_0x3f5a25(0x11c)][_0x3f5a25(0x122)]({'where':_0x3be3b9});_0x5632df[_0x3f5a25(0x131)](_0x12e781);}catch(_0x18e8c5){_0x5632df[_0x3f5a25(0x121)](0x1f4)[_0x3f5a25(0x131)]({'error':_0x18e8c5['message']});}}),router[a2_0xb457e6(0x12e)](a2_0xb457e6(0x132),async(_0x41b7a7,_0x3b01f5)=>{const _0x13162b=a2_0xb457e6;try{const {id:_0x370056}=_0x41b7a7[_0x13162b(0x12c)],_0x5de8b3=_0x41b7a7[_0x13162b(0x11f)],_0x40185e=await prisma[_0x13162b(0x11c)]['update']({'where':{'id':Number(_0x370056)},'data':_0x5de8b3});_0x3b01f5[_0x13162b(0x131)](_0x40185e);}catch(_0x258260){_0x3b01f5[_0x13162b(0x121)](0x1f4)[_0x13162b(0x131)]({'error':_0x258260[_0x13162b(0x120)]});}}),router['delete'](a2_0xb457e6(0x132),async(_0x4ac667,_0x552956)=>{const _0x1a6c30=a2_0xb457e6;try{const {id:_0x23a278}=_0x4ac667[_0x1a6c30(0x12c)];await prisma[_0x1a6c30(0x11c)][_0x1a6c30(0x11e)]({'where':{'id':Number(_0x23a278)}}),_0x552956[_0x1a6c30(0x121)](0xcc)[_0x1a6c30(0x12b)]();}catch(_0x4782c4){_0x552956[_0x1a6c30(0x121)](0x1f4)['json']({'error':_0x4782c4['message']});}});export default router;
1
+ function a2_0xf191(_0x48a003,_0x1a308c){_0x48a003=_0x48a003-0x16f;const _0x24d742=a2_0x24d7();let _0xf19152=_0x24d742[_0x48a003];return _0xf19152;}const a2_0x91fa55=a2_0xf191;(function(_0x18fd01,_0x4c063d){const _0x37b46b=a2_0xf191,_0x3113f5=_0x18fd01();while(!![]){try{const _0x835d22=-parseInt(_0x37b46b(0x177))/0x1+parseInt(_0x37b46b(0x179))/0x2+parseInt(_0x37b46b(0x188))/0x3*(-parseInt(_0x37b46b(0x170))/0x4)+parseInt(_0x37b46b(0x180))/0x5+-parseInt(_0x37b46b(0x175))/0x6*(-parseInt(_0x37b46b(0x176))/0x7)+parseInt(_0x37b46b(0x173))/0x8+parseInt(_0x37b46b(0x172))/0x9*(parseInt(_0x37b46b(0x187))/0xa);if(_0x835d22===_0x4c063d)break;else _0x3113f5['push'](_0x3113f5['shift']());}catch(_0x3d14ab){_0x3113f5['push'](_0x3113f5['shift']());}}}(a2_0x24d7,0x9cea4));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a2_0x24d7(){const _0xc9da9=['order','353670YgYycD','21GMRqSd','489125drpeSH','/search','518238gZBiwH','findMany','get','message','send','findUnique','status','1537075VIXBun','body','/:id','put','delete','update','json','10yuwnjQ','3uQIgPG','params','569548WOHKVo','post','465219CxWFIM','3833408CKDeSt'];a2_0x24d7=function(){return _0xc9da9;};return a2_0x24d7();}router[a2_0x91fa55(0x171)]('/',async(_0x575a1e,_0x291513)=>{const _0x201faa=a2_0x91fa55;try{const _0x265ac6=await prisma[_0x201faa(0x174)]['create']({'data':_0x575a1e[_0x201faa(0x181)]});_0x291513['json']({'id':_0x265ac6['id']});}catch(_0x340526){_0x291513[_0x201faa(0x17f)](0x1f4)[_0x201faa(0x186)]({'error':_0x340526['message']});}}),router[a2_0x91fa55(0x17b)]('/:id',async(_0x290c31,_0x459ace)=>{const _0x546d30=a2_0x91fa55;try{const {id:_0x22a6fc}=_0x290c31[_0x546d30(0x16f)],_0x3fbac6=await prisma[_0x546d30(0x174)][_0x546d30(0x17e)]({'where':{'id':Number(_0x22a6fc)}});_0x459ace[_0x546d30(0x186)](_0x3fbac6);}catch(_0x41f489){_0x459ace[_0x546d30(0x17f)](0x1f4)['json']({'error':_0x41f489[_0x546d30(0x17c)]});}}),router[a2_0x91fa55(0x17b)]('/',async(_0x78c669,_0x16e8b2)=>{const _0x427a20=a2_0x91fa55;try{const _0x13b100=await prisma[_0x427a20(0x174)][_0x427a20(0x17a)]();_0x16e8b2[_0x427a20(0x186)](_0x13b100);}catch(_0x160d1e){_0x16e8b2[_0x427a20(0x17f)](0x1f4)[_0x427a20(0x186)]({'error':_0x160d1e[_0x427a20(0x17c)]});}}),router['post'](a2_0x91fa55(0x178),async(_0x15acb8,_0x4dc6c8)=>{const _0x198388=a2_0x91fa55;try{const _0x404091=_0x15acb8[_0x198388(0x181)],_0x46bf62=await prisma['order'][_0x198388(0x17a)]({'where':_0x404091});_0x4dc6c8[_0x198388(0x186)](_0x46bf62);}catch(_0x4ab3e6){_0x4dc6c8[_0x198388(0x17f)](0x1f4)[_0x198388(0x186)]({'error':_0x4ab3e6[_0x198388(0x17c)]});}}),router[a2_0x91fa55(0x183)](a2_0x91fa55(0x182),async(_0x386d52,_0x19ab80)=>{const _0xa37bfa=a2_0x91fa55;try{const {id:_0x2dca69}=_0x386d52['params'],_0x2ecef4=_0x386d52[_0xa37bfa(0x181)],_0x277245=await prisma['order'][_0xa37bfa(0x185)]({'where':{'id':Number(_0x2dca69)},'data':_0x2ecef4});_0x19ab80['json'](_0x277245);}catch(_0x201017){_0x19ab80['status'](0x1f4)[_0xa37bfa(0x186)]({'error':_0x201017['message']});}}),router[a2_0x91fa55(0x184)](a2_0x91fa55(0x182),async(_0x991510,_0x9aa18e)=>{const _0x282661=a2_0x91fa55;try{const {id:_0x2e0202}=_0x991510[_0x282661(0x16f)];await prisma[_0x282661(0x174)]['delete']({'where':{'id':Number(_0x2e0202)}}),_0x9aa18e[_0x282661(0x17f)](0xcc)[_0x282661(0x17d)]();}catch(_0x1f3c89){_0x9aa18e[_0x282661(0x17f)](0x1f4)[_0x282661(0x186)]({'error':_0x1f3c89['message']});}});export default router;
@@ -1 +1 @@
1
- const a3_0x3d966b=a3_0x6227;(function(_0x971a83,_0x187c3b){const _0x2bc85e=a3_0x6227,_0x4fa9e0=_0x971a83();while(!![]){try{const _0x20c529=parseInt(_0x2bc85e(0x15c))/0x1+parseInt(_0x2bc85e(0x159))/0x2*(-parseInt(_0x2bc85e(0x16d))/0x3)+-parseInt(_0x2bc85e(0x165))/0x4+-parseInt(_0x2bc85e(0x16e))/0x5*(-parseInt(_0x2bc85e(0x170))/0x6)+parseInt(_0x2bc85e(0x15b))/0x7+-parseInt(_0x2bc85e(0x157))/0x8*(parseInt(_0x2bc85e(0x16b))/0x9)+-parseInt(_0x2bc85e(0x16a))/0xa*(-parseInt(_0x2bc85e(0x168))/0xb);if(_0x20c529===_0x187c3b)break;else _0x4fa9e0['push'](_0x4fa9e0['shift']());}catch(_0x3841de){_0x4fa9e0['push'](_0x4fa9e0['shift']());}}}(a3_0x2de2,0x4f36b));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router[a3_0x3d966b(0x16f)]('/',async(_0x597577,_0x543c03)=>{const _0x160b59=a3_0x3d966b;try{const _0x3cfc60=await prisma[_0x160b59(0x163)][_0x160b59(0x166)]({'data':_0x597577['body']});_0x543c03[_0x160b59(0x160)]({'id':_0x3cfc60['id']});}catch(_0x519460){_0x543c03[_0x160b59(0x158)](0x1f4)[_0x160b59(0x160)]({'error':_0x519460[_0x160b59(0x171)]});}}),router[a3_0x3d966b(0x167)](a3_0x3d966b(0x15f),async(_0x4cad28,_0x250a48)=>{const _0x4a7849=a3_0x3d966b;try{const {id:_0x4916af}=_0x4cad28['params'],_0x23719b=await prisma[_0x4a7849(0x163)][_0x4a7849(0x15e)]({'where':{'id':Number(_0x4916af)}});_0x250a48['json'](_0x23719b);}catch(_0x592ade){_0x250a48['status'](0x1f4)[_0x4a7849(0x160)]({'error':_0x592ade[_0x4a7849(0x171)]});}}),router[a3_0x3d966b(0x167)]('/',async(_0x230dc9,_0x5aadc5)=>{const _0x52faa5=a3_0x3d966b;try{const _0xdee15d=await prisma[_0x52faa5(0x163)][_0x52faa5(0x162)]();_0x5aadc5[_0x52faa5(0x160)](_0xdee15d);}catch(_0x3822e4){_0x5aadc5[_0x52faa5(0x158)](0x1f4)['json']({'error':_0x3822e4[_0x52faa5(0x171)]});}}),router[a3_0x3d966b(0x16f)](a3_0x3d966b(0x15d),async(_0x5de777,_0x42a2aa)=>{const _0x59262b=a3_0x3d966b;try{const _0x29500a=_0x5de777[_0x59262b(0x172)],_0x4db8b0=await prisma['preparation'][_0x59262b(0x162)]({'where':_0x29500a});_0x42a2aa[_0x59262b(0x160)](_0x4db8b0);}catch(_0x2fe330){_0x42a2aa[_0x59262b(0x158)](0x1f4)[_0x59262b(0x160)]({'error':_0x2fe330['message']});}}),router[a3_0x3d966b(0x169)](a3_0x3d966b(0x15f),async(_0x418cd8,_0x4b553e)=>{const _0x25979c=a3_0x3d966b;try{const {id:_0x309ed3}=_0x418cd8[_0x25979c(0x164)],_0x54d3b4=_0x418cd8[_0x25979c(0x172)],_0x59cf27=await prisma[_0x25979c(0x163)][_0x25979c(0x15a)]({'where':{'id':Number(_0x309ed3)},'data':_0x54d3b4});_0x4b553e[_0x25979c(0x160)](_0x59cf27);}catch(_0x131599){_0x4b553e[_0x25979c(0x158)](0x1f4)[_0x25979c(0x160)]({'error':_0x131599[_0x25979c(0x171)]});}}),router[a3_0x3d966b(0x161)]('/:id',async(_0x4156c3,_0x36637f)=>{const _0x291fdf=a3_0x3d966b;try{const {id:_0x1e7523}=_0x4156c3['params'];await prisma['preparation'][_0x291fdf(0x161)]({'where':{'id':Number(_0x1e7523)}}),_0x36637f[_0x291fdf(0x158)](0xcc)[_0x291fdf(0x16c)]();}catch(_0x123eca){_0x36637f[_0x291fdf(0x158)](0x1f4)[_0x291fdf(0x160)]({'error':_0x123eca['message']});}});function a3_0x2de2(){const _0x507bc5=['findMany','preparation','params','1521184FjIeqR','create','get','11CAYhOH','put','5008920QPRxnF','9SCqQgg','send','486InnfAh','75LWrLTY','post','229098TErViS','message','body','4879304CfvChL','status','6218HpIhYk','update','3280774TKLxqS','276007xQYjDb','/search','findUnique','/:id','json','delete'];a3_0x2de2=function(){return _0x507bc5;};return a3_0x2de2();}function a3_0x6227(_0x31d04f,_0x11a262){_0x31d04f=_0x31d04f-0x157;const _0x2de2c6=a3_0x2de2();let _0x62277a=_0x2de2c6[_0x31d04f];return _0x62277a;}export default router;
1
+ function a3_0x1951(){const _0x30f32d=['body','message','4240KEaWQv','12ACVdVA','5955756LzXRuj','get','1218dNDKQO','post','preparation','delete','create','findMany','4070745BugfDL','524680KMGlYC','send','json','267819Rgfcnc','put','params','/:id','status','7477578qkLpDZ','1672366qyQvFh'];a3_0x1951=function(){return _0x30f32d;};return a3_0x1951();}const a3_0x5de895=a3_0x1df6;(function(_0x4b1a29,_0xc48dc){const _0x48b0a9=a3_0x1df6,_0x374c64=_0x4b1a29();while(!![]){try{const _0x29060c=-parseInt(_0x48b0a9(0xaf))/0x1+parseInt(_0x48b0a9(0xb8))/0x2+-parseInt(_0x48b0a9(0xb2))/0x3*(parseInt(_0x48b0a9(0xbc))/0x4)+parseInt(_0x48b0a9(0xae))/0x5+-parseInt(_0x48b0a9(0xbd))/0x6+parseInt(_0x48b0a9(0xbf))/0x7*(-parseInt(_0x48b0a9(0xbb))/0x8)+parseInt(_0x48b0a9(0xb7))/0x9;if(_0x29060c===_0xc48dc)break;else _0x374c64['push'](_0x374c64['shift']());}catch(_0x26b16b){_0x374c64['push'](_0x374c64['shift']());}}}(a3_0x1951,0x936b5));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router[a3_0x5de895(0xc0)]('/',async(_0x26a0a8,_0xa72627)=>{const _0x3df735=a3_0x5de895;try{const _0x3dd8de=await prisma[_0x3df735(0xc1)][_0x3df735(0xc3)]({'data':_0x26a0a8['body']});_0xa72627[_0x3df735(0xb1)]({'id':_0x3dd8de['id']});}catch(_0x3154d5){_0xa72627[_0x3df735(0xb6)](0x1f4)[_0x3df735(0xb1)]({'error':_0x3154d5[_0x3df735(0xba)]});}}),router[a3_0x5de895(0xbe)](a3_0x5de895(0xb5),async(_0xb22bdc,_0x34baf1)=>{const _0x261770=a3_0x5de895;try{const {id:_0x4f5d36}=_0xb22bdc['params'],_0x514529=await prisma[_0x261770(0xc1)]['findUnique']({'where':{'id':Number(_0x4f5d36)}});_0x34baf1[_0x261770(0xb1)](_0x514529);}catch(_0x5733b2){_0x34baf1['status'](0x1f4)[_0x261770(0xb1)]({'error':_0x5733b2[_0x261770(0xba)]});}}),router['get']('/',async(_0x232331,_0x1ce611)=>{const _0x2d0377=a3_0x5de895;try{const _0x5bc87e=await prisma['preparation']['findMany']();_0x1ce611[_0x2d0377(0xb1)](_0x5bc87e);}catch(_0x1e8ccc){_0x1ce611[_0x2d0377(0xb6)](0x1f4)[_0x2d0377(0xb1)]({'error':_0x1e8ccc['message']});}}),router[a3_0x5de895(0xc0)]('/search',async(_0x594aae,_0x357e1d)=>{const _0x3d8d56=a3_0x5de895;try{const _0xed1cea=_0x594aae[_0x3d8d56(0xb9)],_0x1212bf=await prisma[_0x3d8d56(0xc1)][_0x3d8d56(0xc4)]({'where':_0xed1cea});_0x357e1d[_0x3d8d56(0xb1)](_0x1212bf);}catch(_0x7a564){_0x357e1d[_0x3d8d56(0xb6)](0x1f4)[_0x3d8d56(0xb1)]({'error':_0x7a564[_0x3d8d56(0xba)]});}}),router[a3_0x5de895(0xb3)](a3_0x5de895(0xb5),async(_0x2b7c94,_0xe37dd3)=>{const _0x37021b=a3_0x5de895;try{const {id:_0x129f40}=_0x2b7c94['params'],_0x19b273=_0x2b7c94[_0x37021b(0xb9)],_0x2414f8=await prisma[_0x37021b(0xc1)]['update']({'where':{'id':Number(_0x129f40)},'data':_0x19b273});_0xe37dd3['json'](_0x2414f8);}catch(_0x4dba22){_0xe37dd3[_0x37021b(0xb6)](0x1f4)[_0x37021b(0xb1)]({'error':_0x4dba22[_0x37021b(0xba)]});}}),router['delete'](a3_0x5de895(0xb5),async(_0x151c87,_0x2f6236)=>{const _0x13e5ac=a3_0x5de895;try{const {id:_0x5e6200}=_0x151c87[_0x13e5ac(0xb4)];await prisma['preparation'][_0x13e5ac(0xc2)]({'where':{'id':Number(_0x5e6200)}}),_0x2f6236[_0x13e5ac(0xb6)](0xcc)[_0x13e5ac(0xb0)]();}catch(_0x6d6ecb){_0x2f6236[_0x13e5ac(0xb6)](0x1f4)['json']({'error':_0x6d6ecb[_0x13e5ac(0xba)]});}});function a3_0x1df6(_0x319979,_0x4eec7e){_0x319979=_0x319979-0xae;const _0x1951ab=a3_0x1951();let _0x1df636=_0x1951ab[_0x319979];return _0x1df636;}export default router;
@@ -1 +1 @@
1
- const a4_0x5ed8e2=a4_0x28da;(function(_0x3d9793,_0x202e0c){const _0x4a6d1d=a4_0x28da,_0x18bbe7=_0x3d9793();while(!![]){try{const _0x1c5488=parseInt(_0x4a6d1d(0xff))/0x1*(parseInt(_0x4a6d1d(0xf8))/0x2)+-parseInt(_0x4a6d1d(0x10c))/0x3*(-parseInt(_0x4a6d1d(0x113))/0x4)+-parseInt(_0x4a6d1d(0x105))/0x5*(parseInt(_0x4a6d1d(0x103))/0x6)+-parseInt(_0x4a6d1d(0x107))/0x7+parseInt(_0x4a6d1d(0x101))/0x8*(-parseInt(_0x4a6d1d(0xfd))/0x9)+-parseInt(_0x4a6d1d(0xfa))/0xa+parseInt(_0x4a6d1d(0xfc))/0xb;if(_0x1c5488===_0x202e0c)break;else _0x18bbe7['push'](_0x18bbe7['shift']());}catch(_0x4d77d6){_0x18bbe7['push'](_0x18bbe7['shift']());}}}(a4_0x1cb8,0x3ca7f));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a4_0x1cb8(){const _0x50e3ed=['4561550yMcZUe','json','13828716jyPXIl','296334bgtrqT','update','883WYcqCT','create','88WwjJsv','purchase','271518AtggUT','/search','50cpSsCh','body','1610532hGiXbN','params','get','send','post','153189xWHQyq','message','map','status','/:id','put','delete','36WlRwCH','74OPeOPG','findUnique'];a4_0x1cb8=function(){return _0x50e3ed;};return a4_0x1cb8();}router[a4_0x5ed8e2(0x10b)]('/',async(_0x2e9d71,_0x3017b3)=>{const _0x2fbfc9=a4_0x5ed8e2;try{const {Items:_0x5a01d4,..._0x20150c}=_0x2e9d71[_0x2fbfc9(0x106)],_0x57fd18=await prisma[_0x2fbfc9(0x102)][_0x2fbfc9(0x100)]({'data':{..._0x20150c,'Items':{'create':_0x5a01d4?.[_0x2fbfc9(0x10e)](_0x45bb07=>({'item':{'create':{..._0x45bb07}}}))||[]}},'include':{'items':{'include':{'item':!![]}}}});_0x3017b3[_0x2fbfc9(0xfb)]({'id':_0x57fd18['id']});}catch(_0x47851a){_0x3017b3['status'](0x1f4)[_0x2fbfc9(0xfb)]({'error':_0x47851a[_0x2fbfc9(0x10d)]});}}),router[a4_0x5ed8e2(0x109)]('/:id',async(_0x3d265f,_0x180892)=>{const _0x2ac034=a4_0x5ed8e2;try{const {id:_0x5718e8}=_0x3d265f['params'],_0xbfc982=await prisma[_0x2ac034(0x102)][_0x2ac034(0xf9)]({'where':{'id':Number(_0x5718e8)},'include':{'items':{'include':{'item':!![]}}}});_0x180892[_0x2ac034(0xfb)](_0xbfc982);}catch(_0x3bfa19){_0x180892[_0x2ac034(0x10f)](0x1f4)[_0x2ac034(0xfb)]({'error':_0x3bfa19[_0x2ac034(0x10d)]});}}),router[a4_0x5ed8e2(0x109)]('/',async(_0x1b8b6e,_0x404fbc)=>{const _0x517528=a4_0x5ed8e2;try{const _0x41e9a0=await prisma[_0x517528(0x102)]['findMany']({'include':{'items':{'include':{'item':!![]}}}});_0x404fbc['json'](_0x41e9a0);}catch(_0x1d15b7){_0x404fbc[_0x517528(0x10f)](0x1f4)['json']({'error':_0x1d15b7[_0x517528(0x10d)]});}}),router[a4_0x5ed8e2(0x10b)](a4_0x5ed8e2(0x104),async(_0x428deb,_0x5a2285)=>{const _0x50cc46=a4_0x5ed8e2;try{const _0x41a2f1=_0x428deb[_0x50cc46(0x106)],_0x346fd3=await prisma['purchase']['findMany']({'where':_0x41a2f1,'include':{'items':{'include':{'item':!![]}}}});_0x5a2285[_0x50cc46(0xfb)](_0x346fd3);}catch(_0x7b8358){_0x5a2285['status'](0x1f4)['json']({'error':_0x7b8358[_0x50cc46(0x10d)]});}}),router[a4_0x5ed8e2(0x111)]('/:id',async(_0x1b40e5,_0x27925e)=>{const _0x3f35d8=a4_0x5ed8e2;try{const {id:_0xde430b}=_0x1b40e5[_0x3f35d8(0x108)],_0x1fe004=_0x1b40e5[_0x3f35d8(0x106)],_0x11b604=await prisma[_0x3f35d8(0x102)][_0x3f35d8(0xfe)]({'where':{'id':Number(_0xde430b)},'data':_0x1fe004,'include':{'items':{'include':{'item':!![]}}}});_0x27925e[_0x3f35d8(0xfb)](_0x11b604);}catch(_0x1c1e42){_0x27925e[_0x3f35d8(0x10f)](0x1f4)[_0x3f35d8(0xfb)]({'error':_0x1c1e42[_0x3f35d8(0x10d)]});}}),router[a4_0x5ed8e2(0x112)](a4_0x5ed8e2(0x110),async(_0x512a78,_0x37527f)=>{const _0x16448c=a4_0x5ed8e2;try{const {id:_0x5c7c70}=_0x512a78[_0x16448c(0x108)];await prisma[_0x16448c(0x102)][_0x16448c(0x112)]({'where':{'id':Number(_0x5c7c70)}}),_0x37527f['status'](0xcc)[_0x16448c(0x10a)]();}catch(_0x2c7eda){_0x37527f[_0x16448c(0x10f)](0x1f4)[_0x16448c(0xfb)]({'error':_0x2c7eda['message']});}});function a4_0x28da(_0x154fa9,_0x1ccbcf){_0x154fa9=_0x154fa9-0xf8;const _0x1cb83d=a4_0x1cb8();let _0x28dafb=_0x1cb83d[_0x154fa9];return _0x28dafb;}export default router;
1
+ const a4_0x23fee2=a4_0x3de7;function a4_0x1110(){const _0x226314=['update','map','/:id','52764GmGCal','4571wqYJqn','2761XahXah','19268sTJaHy','send','1263567maidVc','params','body','delete','purchase','status','9864VHnYLW','findUnique','5ZRgibD','findMany','2OzQUiq','message','get','json','780VwcrPV','3070oDIYsI','429257UyMpct','post','1842872TjmiDQ','create'];a4_0x1110=function(){return _0x226314;};return a4_0x1110();}(function(_0x571fe5,_0x413711){const _0x36989e=a4_0x3de7,_0x1ca623=_0x571fe5();while(!![]){try{const _0x7a82aa=-parseInt(_0x36989e(0x193))/0x1+-parseInt(_0x36989e(0x18d))/0x2*(parseInt(_0x36989e(0x19f))/0x3)+-parseInt(_0x36989e(0x19d))/0x4*(parseInt(_0x36989e(0x1a7))/0x5)+-parseInt(_0x36989e(0x191))/0x6*(-parseInt(_0x36989e(0x19b))/0x7)+parseInt(_0x36989e(0x195))/0x8+parseInt(_0x36989e(0x1a5))/0x9*(-parseInt(_0x36989e(0x192))/0xa)+-parseInt(_0x36989e(0x19c))/0xb*(-parseInt(_0x36989e(0x19a))/0xc);if(_0x7a82aa===_0x413711)break;else _0x1ca623['push'](_0x1ca623['shift']());}catch(_0x11d944){_0x1ca623['push'](_0x1ca623['shift']());}}}(a4_0x1110,0x37759));import{Router}from'express';import{PrismaClient}from'@prisma/client';function a4_0x3de7(_0x2a59fe,_0x5d5abb){_0x2a59fe=_0x2a59fe-0x18d;const _0x1110a6=a4_0x1110();let _0x3de757=_0x1110a6[_0x2a59fe];return _0x3de757;}const prisma=new PrismaClient(),router=Router();router[a4_0x23fee2(0x194)]('/',async(_0x4a376b,_0x1afe43)=>{const _0xf5be2b=a4_0x23fee2;try{const {Items:_0x2a014b,..._0x1720dd}=_0x4a376b[_0xf5be2b(0x1a1)],_0x15f2ca=await prisma[_0xf5be2b(0x1a3)][_0xf5be2b(0x196)]({'data':{..._0x1720dd,'Items':{'create':_0x2a014b?.[_0xf5be2b(0x198)](_0x56b72c=>({'item':{'create':{..._0x56b72c}}}))||[]}},'include':{'items':{'include':{'item':!![]}}}});_0x1afe43['json']({'id':_0x15f2ca['id']});}catch(_0x37b0e4){_0x1afe43[_0xf5be2b(0x1a4)](0x1f4)[_0xf5be2b(0x190)]({'error':_0x37b0e4[_0xf5be2b(0x18e)]});}}),router[a4_0x23fee2(0x18f)](a4_0x23fee2(0x199),async(_0x1a1318,_0x55ef12)=>{const _0x5186ef=a4_0x23fee2;try{const {id:_0x421554}=_0x1a1318[_0x5186ef(0x1a0)],_0x96f039=await prisma[_0x5186ef(0x1a3)][_0x5186ef(0x1a6)]({'where':{'id':Number(_0x421554)},'include':{'items':{'include':{'item':!![]}}}});_0x55ef12['json'](_0x96f039);}catch(_0xcac562){_0x55ef12[_0x5186ef(0x1a4)](0x1f4)[_0x5186ef(0x190)]({'error':_0xcac562[_0x5186ef(0x18e)]});}}),router['get']('/',async(_0x35f6fd,_0x5005a8)=>{const _0x45b7f4=a4_0x23fee2;try{const _0x9c4d74=await prisma['purchase'][_0x45b7f4(0x1a8)]({'include':{'items':{'include':{'item':!![]}}}});_0x5005a8['json'](_0x9c4d74);}catch(_0x56e986){_0x5005a8[_0x45b7f4(0x1a4)](0x1f4)[_0x45b7f4(0x190)]({'error':_0x56e986[_0x45b7f4(0x18e)]});}}),router['post']('/search',async(_0x50f55b,_0x46bbd6)=>{const _0x4c6823=a4_0x23fee2;try{const _0x5537ea=_0x50f55b[_0x4c6823(0x1a1)],_0x4003f0=await prisma['purchase'][_0x4c6823(0x1a8)]({'where':_0x5537ea,'include':{'items':{'include':{'item':!![]}}}});_0x46bbd6['json'](_0x4003f0);}catch(_0x4889c5){_0x46bbd6['status'](0x1f4)[_0x4c6823(0x190)]({'error':_0x4889c5[_0x4c6823(0x18e)]});}}),router['put'](a4_0x23fee2(0x199),async(_0x630b48,_0x357625)=>{const _0xe430cf=a4_0x23fee2;try{const {id:_0x290218}=_0x630b48[_0xe430cf(0x1a0)],_0x1eea5d=_0x630b48[_0xe430cf(0x1a1)],_0x2b95df=await prisma[_0xe430cf(0x1a3)][_0xe430cf(0x197)]({'where':{'id':Number(_0x290218)},'data':_0x1eea5d,'include':{'items':{'include':{'item':!![]}}}});_0x357625[_0xe430cf(0x190)](_0x2b95df);}catch(_0xd462dd){_0x357625[_0xe430cf(0x1a4)](0x1f4)[_0xe430cf(0x190)]({'error':_0xd462dd[_0xe430cf(0x18e)]});}}),router[a4_0x23fee2(0x1a2)]('/:id',async(_0x2a6a1a,_0x8bab4e)=>{const _0x221698=a4_0x23fee2;try{const {id:_0x4435fe}=_0x2a6a1a[_0x221698(0x1a0)];await prisma[_0x221698(0x1a3)][_0x221698(0x1a2)]({'where':{'id':Number(_0x4435fe)}}),_0x8bab4e[_0x221698(0x1a4)](0xcc)[_0x221698(0x19e)]();}catch(_0x5d903f){_0x8bab4e[_0x221698(0x1a4)](0x1f4)[_0x221698(0x190)]({'error':_0x5d903f[_0x221698(0x18e)]});}});export default router;
@@ -1 +1 @@
1
- function a5_0x69f3(_0x1c4f8a,_0x43fd19){_0x1c4f8a=_0x1c4f8a-0x96;const _0x306b34=a5_0x306b();let _0x69f36c=_0x306b34[_0x1c4f8a];return _0x69f36c;}const a5_0x226a8c=a5_0x69f3;(function(_0x5eba9f,_0x38b91b){const _0x2a5ff1=a5_0x69f3,_0x1fa3c1=_0x5eba9f();while(!![]){try{const _0x46e8e4=parseInt(_0x2a5ff1(0xa8))/0x1+parseInt(_0x2a5ff1(0xad))/0x2*(parseInt(_0x2a5ff1(0xaf))/0x3)+-parseInt(_0x2a5ff1(0xac))/0x4*(parseInt(_0x2a5ff1(0xa9))/0x5)+-parseInt(_0x2a5ff1(0xa2))/0x6+parseInt(_0x2a5ff1(0xb0))/0x7+parseInt(_0x2a5ff1(0x9e))/0x8+-parseInt(_0x2a5ff1(0x98))/0x9*(parseInt(_0x2a5ff1(0x9f))/0xa);if(_0x46e8e4===_0x38b91b)break;else _0x1fa3c1['push'](_0x1fa3c1['shift']());}catch(_0x3aef8a){_0x1fa3c1['push'](_0x1fa3c1['shift']());}}}(a5_0x306b,0x79fe5));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a5_0x306b(){const _0xf2aafd=['params','status','8974737ruhruZ','findUnique','body','json','findMany','send','2362024LQsQdY','10nhLGEw','post','get','130338ekiyZv','/search','reception','message','/:id','put','188097gdxjyP','635fmYcpW','map','create','10012skaHUp','2402Kbsywg','update','1383UIbNou','5596297Srtxnk'];a5_0x306b=function(){return _0xf2aafd;};return a5_0x306b();}router[a5_0x226a8c(0xa0)]('/',async(_0x4aa1f3,_0x15fa22)=>{const _0x498137=a5_0x226a8c;try{const {items:_0x26e743,purchase:_0x294eda,..._0x475536}=_0x4aa1f3['body'],_0x11fe99=await prisma[_0x498137(0xa4)][_0x498137(0xab)]({'data':{..._0x475536,..._0x294eda?{'Purchase':{'create':{..._0x294eda}}}:{},'Items':{'create':_0x26e743?.[_0x498137(0xaa)](_0x4a299a=>({'item':{'create':{..._0x4a299a}}}))||[]}},'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x15fa22[_0x498137(0x9b)]({'id':_0x11fe99['id']});}catch(_0x4f238f){_0x15fa22['status'](0x1f4)[_0x498137(0x9b)]({'error':_0x4f238f['message']});}}),router['get'](a5_0x226a8c(0xa6),async(_0x59e8f5,_0x788af)=>{const _0x1a2c50=a5_0x226a8c;try{const {id:_0x3865e4}=_0x59e8f5[_0x1a2c50(0x96)],_0xcc56b9=await prisma[_0x1a2c50(0xa4)][_0x1a2c50(0x99)]({'where':{'id':Number(_0x3865e4)},'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x788af[_0x1a2c50(0x9b)](_0xcc56b9);}catch(_0x478c56){_0x788af[_0x1a2c50(0x97)](0x1f4)['json']({'error':_0x478c56[_0x1a2c50(0xa5)]});}}),router[a5_0x226a8c(0xa1)]('/',async(_0x3c2329,_0xb8d6c)=>{const _0x3783ea=a5_0x226a8c;try{const _0x4d481b=await prisma['reception'][_0x3783ea(0x9c)]({'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0xb8d6c[_0x3783ea(0x9b)](_0x4d481b);}catch(_0x1d5b77){_0xb8d6c['status'](0x1f4)[_0x3783ea(0x9b)]({'error':_0x1d5b77['message']});}}),router[a5_0x226a8c(0xa0)](a5_0x226a8c(0xa3),async(_0x4a930e,_0x561cb3)=>{const _0x38e35d=a5_0x226a8c;try{const _0x5c8d3d=_0x4a930e[_0x38e35d(0x9a)],_0x28fbcf=await prisma[_0x38e35d(0xa4)][_0x38e35d(0x9c)]({'where':_0x5c8d3d,'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x561cb3[_0x38e35d(0x9b)](_0x28fbcf);}catch(_0x51f617){_0x561cb3['status'](0x1f4)[_0x38e35d(0x9b)]({'error':_0x51f617[_0x38e35d(0xa5)]});}}),router[a5_0x226a8c(0xa7)](a5_0x226a8c(0xa6),async(_0x5d99d8,_0x22bedd)=>{const _0x4fc8eb=a5_0x226a8c;try{const {id:_0x5a1be8}=_0x5d99d8[_0x4fc8eb(0x96)],_0x455fe8=_0x5d99d8[_0x4fc8eb(0x9a)],_0x3c49e5=await prisma['reception'][_0x4fc8eb(0xae)]({'where':{'id':Number(_0x5a1be8)},'data':_0x455fe8,'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x22bedd[_0x4fc8eb(0x9b)](_0x3c49e5);}catch(_0x29e040){_0x22bedd[_0x4fc8eb(0x97)](0x1f4)['json']({'error':_0x29e040[_0x4fc8eb(0xa5)]});}}),router['delete'](a5_0x226a8c(0xa6),async(_0x5e8741,_0x250048)=>{const _0x1deecd=a5_0x226a8c;try{const {id:_0x16bad9}=_0x5e8741['params'];await prisma[_0x1deecd(0xa4)]['delete']({'where':{'id':Number(_0x16bad9)}}),_0x250048[_0x1deecd(0x97)](0xcc)[_0x1deecd(0x9d)]();}catch(_0x2b0faa){_0x250048[_0x1deecd(0x97)](0x1f4)[_0x1deecd(0x9b)]({'error':_0x2b0faa[_0x1deecd(0xa5)]});}});export default router;
1
+ const a5_0x57e058=a5_0x5a52;(function(_0x570d84,_0x2d84e0){const _0x8961e5=a5_0x5a52,_0x5269fe=_0x570d84();while(!![]){try{const _0x3a8cdb=-parseInt(_0x8961e5(0xdd))/0x1+-parseInt(_0x8961e5(0xdf))/0x2+parseInt(_0x8961e5(0xee))/0x3+parseInt(_0x8961e5(0xec))/0x4*(-parseInt(_0x8961e5(0xde))/0x5)+-parseInt(_0x8961e5(0xf4))/0x6+parseInt(_0x8961e5(0xe9))/0x7+parseInt(_0x8961e5(0xf1))/0x8;if(_0x3a8cdb===_0x2d84e0)break;else _0x5269fe['push'](_0x5269fe['shift']());}catch(_0x2a79cc){_0x5269fe['push'](_0x5269fe['shift']());}}}(a5_0x28ba,0x96fa1));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a5_0x5a52(_0x15b407,_0x395619){_0x15b407=_0x15b407-0xdd;const _0x28ba23=a5_0x28ba();let _0x5a52d2=_0x28ba23[_0x15b407];return _0x5a52d2;}router['post']('/',async(_0x2d168a,_0x1f97de)=>{const _0x386c1c=a5_0x5a52;try{const {items:_0x472d5d,purchase:_0x3f18ca,..._0x2cf9b8}=_0x2d168a[_0x386c1c(0xe2)],_0x1a910e=await prisma[_0x386c1c(0xf0)][_0x386c1c(0xf2)]({'data':{..._0x2cf9b8,..._0x3f18ca?{'Purchase':{'create':{..._0x3f18ca}}}:{},'Items':{'create':_0x472d5d?.[_0x386c1c(0xea)](_0x27e870=>({'item':{'create':{..._0x27e870}}}))||[]}},'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x1f97de['json']({'id':_0x1a910e['id']});}catch(_0xbcf706){_0x1f97de['status'](0x1f4)['json']({'error':_0xbcf706[_0x386c1c(0xe4)]});}}),router[a5_0x57e058(0xf6)](a5_0x57e058(0xe3),async(_0x3b1c08,_0x23b2ee)=>{const _0x33d735=a5_0x57e058;try{const {id:_0x3a0f63}=_0x3b1c08[_0x33d735(0xf5)],_0x27b2d3=await prisma[_0x33d735(0xf0)][_0x33d735(0xe0)]({'where':{'id':Number(_0x3a0f63)},'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x23b2ee[_0x33d735(0xe7)](_0x27b2d3);}catch(_0x574d93){_0x23b2ee['status'](0x1f4)[_0x33d735(0xe7)]({'error':_0x574d93['message']});}}),router['get']('/',async(_0x540a08,_0x339ec1)=>{const _0x25d41a=a5_0x57e058;try{const _0x219772=await prisma[_0x25d41a(0xf0)]['findMany']({'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x339ec1['json'](_0x219772);}catch(_0x32c51a){_0x339ec1[_0x25d41a(0xeb)](0x1f4)['json']({'error':_0x32c51a[_0x25d41a(0xe4)]});}}),router[a5_0x57e058(0xe8)](a5_0x57e058(0xe1),async(_0x2d3008,_0x57fab5)=>{const _0x324c07=a5_0x57e058;try{const _0x24bdf9=_0x2d3008[_0x324c07(0xe2)],_0x426a89=await prisma['reception'][_0x324c07(0xe6)]({'where':_0x24bdf9,'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x57fab5[_0x324c07(0xe7)](_0x426a89);}catch(_0x5382c0){_0x57fab5[_0x324c07(0xeb)](0x1f4)[_0x324c07(0xe7)]({'error':_0x5382c0['message']});}}),router[a5_0x57e058(0xed)](a5_0x57e058(0xe3),async(_0x12a763,_0x1cb605)=>{const _0x5e77fc=a5_0x57e058;try{const {id:_0x7dbc68}=_0x12a763[_0x5e77fc(0xf5)],_0x25e949=_0x12a763[_0x5e77fc(0xe2)],_0x44b932=await prisma[_0x5e77fc(0xf0)][_0x5e77fc(0xef)]({'where':{'id':Number(_0x7dbc68)},'data':_0x25e949,'include':{'items':{'include':{'item':!![]}},'purchase':!![]}});_0x1cb605[_0x5e77fc(0xe7)](_0x44b932);}catch(_0x4f4396){_0x1cb605[_0x5e77fc(0xeb)](0x1f4)[_0x5e77fc(0xe7)]({'error':_0x4f4396[_0x5e77fc(0xe4)]});}}),router['delete'](a5_0x57e058(0xe3),async(_0x49cfaa,_0x3f4c4f)=>{const _0x2d59d2=a5_0x57e058;try{const {id:_0x330986}=_0x49cfaa[_0x2d59d2(0xf5)];await prisma[_0x2d59d2(0xf0)][_0x2d59d2(0xf3)]({'where':{'id':Number(_0x330986)}}),_0x3f4c4f[_0x2d59d2(0xeb)](0xcc)[_0x2d59d2(0xe5)]();}catch(_0x246b81){_0x3f4c4f['status'](0x1f4)['json']({'error':_0x246b81[_0x2d59d2(0xe4)]});}});export default router;function a5_0x28ba(){const _0xbc6e95=['create','delete','2860236pKOnzP','params','get','170882yEuqVZ','50TyrpwW','2119546cDkBjF','findUnique','/search','body','/:id','message','send','findMany','json','post','3801812YVQnUM','map','status','381284LptTVw','put','3133794CgkLgd','update','reception','13530064llAZWX'];a5_0x28ba=function(){return _0xbc6e95;};return a5_0x28ba();}
@@ -1 +1 @@
1
- const a6_0x41dbd3=a6_0x3784;(function(_0x55ba51,_0x424ec8){const _0x568b8c=a6_0x3784,_0x54cfe6=_0x55ba51();while(!![]){try{const _0x39cbb3=parseInt(_0x568b8c(0xa4))/0x1*(parseInt(_0x568b8c(0xa5))/0x2)+parseInt(_0x568b8c(0xa3))/0x3+parseInt(_0x568b8c(0xae))/0x4+parseInt(_0x568b8c(0xab))/0x5+parseInt(_0x568b8c(0xb9))/0x6+-parseInt(_0x568b8c(0xb0))/0x7+-parseInt(_0x568b8c(0xb6))/0x8;if(_0x39cbb3===_0x424ec8)break;else _0x54cfe6['push'](_0x54cfe6['shift']());}catch(_0x18a260){_0x54cfe6['push'](_0x54cfe6['shift']());}}}(a6_0xd7b6,0xeef53));import{Router}from'express';import{PrismaClient}from'@prisma/client';function a6_0x3784(_0xd92537,_0x3b245f){_0xd92537=_0xd92537-0xa2;const _0xd7b6ce=a6_0xd7b6();let _0x37847a=_0xd7b6ce[_0xd92537];return _0x37847a;}const prisma=new PrismaClient(),router=Router();router[a6_0x41dbd3(0xaa)]('/',async(_0x87950,_0x62fc89)=>{const _0x11da97=a6_0x41dbd3;try{const {item:_0x3b057f,..._0xb46282}=_0x87950[_0x11da97(0xb5)],_0x3b0c88=await prisma[_0x11da97(0xb8)][_0x11da97(0xa6)]({'data':{..._0xb46282,..._0x3b057f?{'Item':{'create':{..._0x3b057f}}}:{}},'include':{'item':!![]}});_0x62fc89[_0x11da97(0xb4)]({'id':_0x3b0c88['id']});}catch(_0x5be589){_0x62fc89[_0x11da97(0xb1)](0x1f4)[_0x11da97(0xb4)]({'error':_0x5be589['message']});}}),router[a6_0x41dbd3(0xaf)](a6_0x41dbd3(0xa2),async(_0x40efd9,_0x669ee5)=>{const _0x17a1d7=a6_0x41dbd3;try{const {id:_0x4dcd86}=_0x40efd9[_0x17a1d7(0xb2)],_0x5ce2ba=await prisma['stock'][_0x17a1d7(0xac)]({'where':{'id':Number(_0x4dcd86)},'include':{'item':!![]}});_0x669ee5[_0x17a1d7(0xb4)](_0x5ce2ba);}catch(_0x4a5b43){_0x669ee5[_0x17a1d7(0xb1)](0x1f4)[_0x17a1d7(0xb4)]({'error':_0x4a5b43[_0x17a1d7(0xa7)]});}}),router[a6_0x41dbd3(0xaf)]('/',async(_0x231b44,_0x5dbf25)=>{const _0x45781d=a6_0x41dbd3;try{const _0x27c885=await prisma[_0x45781d(0xb8)][_0x45781d(0xad)]({'include':{'item':!![]}});_0x5dbf25['json'](_0x27c885);}catch(_0x4687b3){_0x5dbf25[_0x45781d(0xb1)](0x1f4)['json']({'error':_0x4687b3[_0x45781d(0xa7)]});}}),router[a6_0x41dbd3(0xaa)](a6_0x41dbd3(0xb3),async(_0x45f7bb,_0x5ee3a3)=>{const _0x661e98=a6_0x41dbd3;try{const _0x215277=_0x45f7bb[_0x661e98(0xb5)],_0x5ad36a=await prisma['stock']['findMany']({'where':_0x215277,'include':{'item':!![]}});_0x5ee3a3[_0x661e98(0xb4)](_0x5ad36a);}catch(_0x4c595f){_0x5ee3a3[_0x661e98(0xb1)](0x1f4)[_0x661e98(0xb4)]({'error':_0x4c595f[_0x661e98(0xa7)]});}}),router[a6_0x41dbd3(0xa9)](a6_0x41dbd3(0xa2),async(_0x162dd8,_0x251832)=>{const _0x5126ad=a6_0x41dbd3;try{const {id:_0x1a6b28}=_0x162dd8[_0x5126ad(0xb2)],_0x41f0d0=_0x162dd8[_0x5126ad(0xb5)],_0x4da4c3=await prisma['stock'][_0x5126ad(0xa8)]({'where':{'id':Number(_0x1a6b28)},'data':_0x41f0d0,'include':{'item':!![]}});_0x251832[_0x5126ad(0xb4)](_0x4da4c3);}catch(_0x129599){_0x251832['status'](0x1f4)['json']({'error':_0x129599[_0x5126ad(0xa7)]});}}),router['delete']('/:id',async(_0x2dabec,_0x284671)=>{const _0x467625=a6_0x41dbd3;try{const {id:_0x2ea442}=_0x2dabec[_0x467625(0xb2)];await prisma['stock'][_0x467625(0xb7)]({'where':{'id':Number(_0x2ea442)}}),_0x284671[_0x467625(0xb1)](0xcc)['send']();}catch(_0x2786e4){_0x284671[_0x467625(0xb1)](0x1f4)['json']({'error':_0x2786e4[_0x467625(0xa7)]});}});function a6_0xd7b6(){const _0x4339e9=['get','12949321ERVCwK','status','params','/search','json','body','6974752rcOePi','delete','stock','422238DCgcOa','/:id','5476956beuZen','13SjkheO','96056aUTIdX','create','message','update','put','post','5378340zFihmC','findUnique','findMany','417844TtHXSs'];a6_0xd7b6=function(){return _0x4339e9;};return a6_0xd7b6();}export default router;
1
+ const a6_0x23d25e=a6_0x1ee2;function a6_0x1ee2(_0x96de27,_0x2f0137){_0x96de27=_0x96de27-0xce;const _0x219bca=a6_0x219b();let _0x1ee211=_0x219bca[_0x96de27];return _0x1ee211;}(function(_0x1bdbe9,_0x23c20e){const _0x2be4ea=a6_0x1ee2,_0x4e179b=_0x1bdbe9();while(!![]){try{const _0x402bc7=parseInt(_0x2be4ea(0xe4))/0x1+parseInt(_0x2be4ea(0xe3))/0x2*(-parseInt(_0x2be4ea(0xdb))/0x3)+parseInt(_0x2be4ea(0xe2))/0x4+parseInt(_0x2be4ea(0xd6))/0x5+parseInt(_0x2be4ea(0xda))/0x6+parseInt(_0x2be4ea(0xdc))/0x7*(-parseInt(_0x2be4ea(0xdf))/0x8)+parseInt(_0x2be4ea(0xdd))/0x9*(-parseInt(_0x2be4ea(0xe7))/0xa);if(_0x402bc7===_0x23c20e)break;else _0x4e179b['push'](_0x4e179b['shift']());}catch(_0x2ce8f8){_0x4e179b['push'](_0x4e179b['shift']());}}}(a6_0x219b,0x1920b));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a6_0x219b(){const _0x4f999b=['update','json','findMany','792315DWrljJ','/search','create','get','973188VLnVPE','462QQpOvt','3647Koybqu','36VbfmYX','put','152bDPjEk','body','delete','532864sHftQB','2166cAVQER','82667eHsxDX','message','stock','642350FuVOKC','post','findUnique','status','/:id','params'];a6_0x219b=function(){return _0x4f999b;};return a6_0x219b();}router[a6_0x23d25e(0xce)]('/',async(_0x5903a8,_0x5e0659)=>{const _0x6e920b=a6_0x23d25e;try{const {item:_0x14ea45,..._0x11f557}=_0x5903a8['body'],_0x1bd5b8=await prisma[_0x6e920b(0xe6)][_0x6e920b(0xd8)]({'data':{..._0x11f557,..._0x14ea45?{'Item':{'create':{..._0x14ea45}}}:{}},'include':{'item':!![]}});_0x5e0659['json']({'id':_0x1bd5b8['id']});}catch(_0x274c64){_0x5e0659[_0x6e920b(0xd0)](0x1f4)[_0x6e920b(0xd4)]({'error':_0x274c64[_0x6e920b(0xe5)]});}}),router[a6_0x23d25e(0xd9)](a6_0x23d25e(0xd1),async(_0x57b391,_0x4a1c6d)=>{const _0x279459=a6_0x23d25e;try{const {id:_0xef99f5}=_0x57b391[_0x279459(0xd2)],_0x194c3c=await prisma[_0x279459(0xe6)][_0x279459(0xcf)]({'where':{'id':Number(_0xef99f5)},'include':{'item':!![]}});_0x4a1c6d[_0x279459(0xd4)](_0x194c3c);}catch(_0x9b3d80){_0x4a1c6d[_0x279459(0xd0)](0x1f4)['json']({'error':_0x9b3d80[_0x279459(0xe5)]});}}),router[a6_0x23d25e(0xd9)]('/',async(_0x2a9dc6,_0x53fbb5)=>{const _0x14c763=a6_0x23d25e;try{const _0x1171be=await prisma[_0x14c763(0xe6)][_0x14c763(0xd5)]({'include':{'item':!![]}});_0x53fbb5[_0x14c763(0xd4)](_0x1171be);}catch(_0x5d1520){_0x53fbb5[_0x14c763(0xd0)](0x1f4)[_0x14c763(0xd4)]({'error':_0x5d1520['message']});}}),router[a6_0x23d25e(0xce)](a6_0x23d25e(0xd7),async(_0xf8f8e6,_0x11be88)=>{const _0xc8f5c1=a6_0x23d25e;try{const _0x2bdb51=_0xf8f8e6[_0xc8f5c1(0xe0)],_0x52cd3e=await prisma[_0xc8f5c1(0xe6)][_0xc8f5c1(0xd5)]({'where':_0x2bdb51,'include':{'item':!![]}});_0x11be88[_0xc8f5c1(0xd4)](_0x52cd3e);}catch(_0x47715b){_0x11be88['status'](0x1f4)[_0xc8f5c1(0xd4)]({'error':_0x47715b[_0xc8f5c1(0xe5)]});}}),router[a6_0x23d25e(0xde)]('/:id',async(_0x5c48d8,_0x71f846)=>{const _0x3d25d3=a6_0x23d25e;try{const {id:_0x2663b8}=_0x5c48d8[_0x3d25d3(0xd2)],_0x40bc5d=_0x5c48d8[_0x3d25d3(0xe0)],_0x900f97=await prisma['stock'][_0x3d25d3(0xd3)]({'where':{'id':Number(_0x2663b8)},'data':_0x40bc5d,'include':{'item':!![]}});_0x71f846['json'](_0x900f97);}catch(_0xd1a8a2){_0x71f846['status'](0x1f4)[_0x3d25d3(0xd4)]({'error':_0xd1a8a2[_0x3d25d3(0xe5)]});}}),router[a6_0x23d25e(0xe1)](a6_0x23d25e(0xd1),async(_0x517b6a,_0x57cdb7)=>{const _0x264be5=a6_0x23d25e;try{const {id:_0x2c2342}=_0x517b6a[_0x264be5(0xd2)];await prisma[_0x264be5(0xe6)][_0x264be5(0xe1)]({'where':{'id':Number(_0x2c2342)}}),_0x57cdb7['status'](0xcc)['send']();}catch(_0x3f105b){_0x57cdb7['status'](0x1f4)[_0x264be5(0xd4)]({'error':_0x3f105b['message']});}});export default router;
@@ -1 +1 @@
1
- const a7_0x884bc3=a7_0x458c;(function(_0x5b408b,_0x1b7c22){const _0xd2f91c=a7_0x458c,_0x96eb17=_0x5b408b();while(!![]){try{const _0x3d5540=parseInt(_0xd2f91c(0x1de))/0x1*(-parseInt(_0xd2f91c(0x1e8))/0x2)+-parseInt(_0xd2f91c(0x1eb))/0x3*(-parseInt(_0xd2f91c(0x1e5))/0x4)+parseInt(_0xd2f91c(0x1d9))/0x5+-parseInt(_0xd2f91c(0x1e6))/0x6+-parseInt(_0xd2f91c(0x1ea))/0x7*(parseInt(_0xd2f91c(0x1e3))/0x8)+-parseInt(_0xd2f91c(0x1d3))/0x9*(-parseInt(_0xd2f91c(0x1e2))/0xa)+-parseInt(_0xd2f91c(0x1e1))/0xb*(-parseInt(_0xd2f91c(0x1e9))/0xc);if(_0x3d5540===_0x1b7c22)break;else _0x96eb17['push'](_0x96eb17['shift']());}catch(_0x5f371e){_0x96eb17['push'](_0x96eb17['shift']());}}}(a7_0x1868,0x9484d));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a7_0x1868(){const _0x312a8c=['20muzeOo','32Lxopoq','findMany','420rQCKtY','2079618BQebsd','post','20pvYprg','13765560xsHAzL','1812286KDZhUV','11397SVSOOH','findUnique','create','1815579ccIeZn','body','params','map','update','message','5786605eQvxbb','supplier','get','/:id','delete','111628wXHeLO','json','status','11xfEsgW'];a7_0x1868=function(){return _0x312a8c;};return a7_0x1868();}function a7_0x458c(_0x11a2ef,_0x5f2c8c){_0x11a2ef=_0x11a2ef-0x1d1;const _0x1868db=a7_0x1868();let _0x458c63=_0x1868db[_0x11a2ef];return _0x458c63;}router[a7_0x884bc3(0x1e7)]('/',async(_0x5606d0,_0x3a1044)=>{const _0x4af268=a7_0x884bc3;try{const {taxes:_0x155113,..._0x4ccd2c}=_0x5606d0[_0x4af268(0x1d4)],_0x12516e=await prisma[_0x4af268(0x1da)][_0x4af268(0x1d2)]({'data':{..._0x4ccd2c,'taxes':{'create':_0x155113[_0x4af268(0x1d6)](_0x1561b2=>({'tax':{'create':{..._0x1561b2}}}))}},'include':{'taxes':{'include':{'tax':!![]}}}});_0x3a1044[_0x4af268(0x1df)]({'id':_0x12516e['id']});}catch(_0x15062a){_0x3a1044[_0x4af268(0x1e0)](0x1f4)['json']({'error':_0x15062a[_0x4af268(0x1d8)]});}}),router[a7_0x884bc3(0x1db)](a7_0x884bc3(0x1dc),async(_0x335824,_0x5f1ffa)=>{const _0x4adaa0=a7_0x884bc3;try{const {id:_0x1d0169}=_0x335824[_0x4adaa0(0x1d5)],_0x13a4e1=await prisma['supplier'][_0x4adaa0(0x1d1)]({'where':{'id':Number(_0x1d0169)},'include':{'taxes':{'include':{'tax':!![]}}}});_0x5f1ffa['json'](_0x13a4e1);}catch(_0x190d31){_0x5f1ffa[_0x4adaa0(0x1e0)](0x1f4)[_0x4adaa0(0x1df)]({'error':_0x190d31['message']});}}),router[a7_0x884bc3(0x1db)]('/',async(_0x23d8ef,_0x33f179)=>{const _0x2ab928=a7_0x884bc3;try{const _0x5485da=await prisma[_0x2ab928(0x1da)]['findMany']({'include':{'taxes':{'include':{'tax':!![]}}}});_0x33f179[_0x2ab928(0x1df)](_0x5485da);}catch(_0x4dc334){_0x33f179['status'](0x1f4)['json']({'error':_0x4dc334['message']});}}),router[a7_0x884bc3(0x1e7)]('/search',async(_0x24d2af,_0x1a6add)=>{const _0x17a837=a7_0x884bc3;try{const _0x277610=_0x24d2af[_0x17a837(0x1d4)],_0x348ef9=await prisma['supplier'][_0x17a837(0x1e4)]({'where':_0x277610,'include':{'taxes':{'include':{'tax':!![]}}}});_0x1a6add[_0x17a837(0x1df)](_0x348ef9);}catch(_0x478c20){_0x1a6add[_0x17a837(0x1e0)](0x1f4)['json']({'error':_0x478c20[_0x17a837(0x1d8)]});}}),router['put'](a7_0x884bc3(0x1dc),async(_0x449990,_0x1ee66c)=>{const _0x2130e1=a7_0x884bc3;try{const {id:_0x5d5a05}=_0x449990[_0x2130e1(0x1d5)],_0x3caa15=_0x449990[_0x2130e1(0x1d4)],_0x286ec5=await prisma[_0x2130e1(0x1da)][_0x2130e1(0x1d7)]({'where':{'id':Number(_0x5d5a05)},'data':_0x3caa15,'include':{'taxes':{'include':{'tax':!![]}}}});_0x1ee66c['json'](_0x286ec5);}catch(_0x5b403d){_0x1ee66c['status'](0x1f4)[_0x2130e1(0x1df)]({'error':_0x5b403d[_0x2130e1(0x1d8)]});}}),router[a7_0x884bc3(0x1dd)](a7_0x884bc3(0x1dc),async(_0x3f528c,_0x293111)=>{const _0x23ffb8=a7_0x884bc3;try{const {id:_0x4bf039}=_0x3f528c[_0x23ffb8(0x1d5)];await prisma['supplier'][_0x23ffb8(0x1dd)]({'where':{'id':Number(_0x4bf039)}}),_0x293111[_0x23ffb8(0x1e0)](0xcc)['send']();}catch(_0x2a9228){_0x293111[_0x23ffb8(0x1e0)](0x1f4)[_0x23ffb8(0x1df)]({'error':_0x2a9228[_0x23ffb8(0x1d8)]});}});export default router;
1
+ const a7_0x118758=a7_0x3524;(function(_0x2f1a8e,_0x3e128c){const _0x4ff5cc=a7_0x3524,_0x16aabc=_0x2f1a8e();while(!![]){try{const _0x22b6b0=parseInt(_0x4ff5cc(0x80))/0x1*(-parseInt(_0x4ff5cc(0x7c))/0x2)+parseInt(_0x4ff5cc(0x78))/0x3*(parseInt(_0x4ff5cc(0x84))/0x4)+parseInt(_0x4ff5cc(0x69))/0x5*(-parseInt(_0x4ff5cc(0x7b))/0x6)+-parseInt(_0x4ff5cc(0x83))/0x7+parseInt(_0x4ff5cc(0x74))/0x8*(-parseInt(_0x4ff5cc(0x71))/0x9)+-parseInt(_0x4ff5cc(0x68))/0xa*(parseInt(_0x4ff5cc(0x72))/0xb)+parseInt(_0x4ff5cc(0x7f))/0xc;if(_0x22b6b0===_0x3e128c)break;else _0x16aabc['push'](_0x16aabc['shift']());}catch(_0x2c2619){_0x16aabc['push'](_0x16aabc['shift']());}}}(a7_0x3bbb,0x7f4e2));function a7_0x3524(_0x1b7039,_0x15c72e){_0x1b7039=_0x1b7039-0x67;const _0x3bbb75=a7_0x3bbb();let _0x35242e=_0x3bbb75[_0x1b7039];return _0x35242e;}import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router[a7_0x118758(0x7e)]('/',async(_0x291c6b,_0xd8628e)=>{const _0x4f6378=a7_0x118758;try{const {taxes:_0x1808bb,..._0xd53799}=_0x291c6b[_0x4f6378(0x7a)],_0x1c8f2e=await prisma[_0x4f6378(0x6f)][_0x4f6378(0x73)]({'data':{..._0xd53799,'taxes':{'create':_0x1808bb[_0x4f6378(0x6d)](_0x4bdab8=>({'tax':{'create':{..._0x4bdab8}}}))}},'include':{'taxes':{'include':{'tax':!![]}}}});_0xd8628e[_0x4f6378(0x82)]({'id':_0x1c8f2e['id']});}catch(_0x5730d5){_0xd8628e[_0x4f6378(0x6c)](0x1f4)[_0x4f6378(0x82)]({'error':_0x5730d5[_0x4f6378(0x6b)]});}}),router[a7_0x118758(0x6e)](a7_0x118758(0x79),async(_0x1ccab6,_0x4e28d1)=>{const _0x3a3042=a7_0x118758;try{const {id:_0x5272ec}=_0x1ccab6[_0x3a3042(0x76)],_0x1ba0b8=await prisma['supplier'][_0x3a3042(0x67)]({'where':{'id':Number(_0x5272ec)},'include':{'taxes':{'include':{'tax':!![]}}}});_0x4e28d1[_0x3a3042(0x82)](_0x1ba0b8);}catch(_0x23c823){_0x4e28d1['status'](0x1f4)[_0x3a3042(0x82)]({'error':_0x23c823[_0x3a3042(0x6b)]});}}),router[a7_0x118758(0x6e)]('/',async(_0x2d655f,_0x31ad0a)=>{const _0x490fe0=a7_0x118758;try{const _0x460fd1=await prisma[_0x490fe0(0x6f)][_0x490fe0(0x7d)]({'include':{'taxes':{'include':{'tax':!![]}}}});_0x31ad0a['json'](_0x460fd1);}catch(_0x6fee59){_0x31ad0a[_0x490fe0(0x6c)](0x1f4)[_0x490fe0(0x82)]({'error':_0x6fee59['message']});}}),router[a7_0x118758(0x7e)](a7_0x118758(0x6a),async(_0xcf53b2,_0x600f04)=>{const _0x48fdfd=a7_0x118758;try{const _0x1a830a=_0xcf53b2[_0x48fdfd(0x7a)],_0x4d3c0b=await prisma['supplier'][_0x48fdfd(0x7d)]({'where':_0x1a830a,'include':{'taxes':{'include':{'tax':!![]}}}});_0x600f04[_0x48fdfd(0x82)](_0x4d3c0b);}catch(_0xa194a0){_0x600f04[_0x48fdfd(0x6c)](0x1f4)[_0x48fdfd(0x82)]({'error':_0xa194a0[_0x48fdfd(0x6b)]});}}),router[a7_0x118758(0x77)]('/:id',async(_0x45ff1d,_0x490854)=>{const _0x4b95d8=a7_0x118758;try{const {id:_0x35289b}=_0x45ff1d[_0x4b95d8(0x76)],_0x5a44c0=_0x45ff1d[_0x4b95d8(0x7a)],_0x4a66f5=await prisma[_0x4b95d8(0x6f)][_0x4b95d8(0x75)]({'where':{'id':Number(_0x35289b)},'data':_0x5a44c0,'include':{'taxes':{'include':{'tax':!![]}}}});_0x490854[_0x4b95d8(0x82)](_0x4a66f5);}catch(_0x59678c){_0x490854[_0x4b95d8(0x6c)](0x1f4)['json']({'error':_0x59678c[_0x4b95d8(0x6b)]});}}),router[a7_0x118758(0x81)](a7_0x118758(0x79),async(_0x55f425,_0x291e8b)=>{const _0x1bdf4b=a7_0x118758;try{const {id:_0x4b718b}=_0x55f425['params'];await prisma[_0x1bdf4b(0x6f)]['delete']({'where':{'id':Number(_0x4b718b)}}),_0x291e8b['status'](0xcc)[_0x1bdf4b(0x70)]();}catch(_0x110bc4){_0x291e8b[_0x1bdf4b(0x6c)](0x1f4)[_0x1bdf4b(0x82)]({'error':_0x110bc4[_0x1bdf4b(0x6b)]});}});function a7_0x3bbb(){const _0x5b23bf=['delete','json','1503635dQWcSr','12uzHGRz','findUnique','240FnGKoE','76115VCYUMB','/search','message','status','map','get','supplier','send','306xmCYrs','253726dVWCls','create','109400gvQdte','update','params','put','697869dJkgAS','/:id','body','6dWhRpp','2GbUsOS','findMany','post','13865172twFRrW','83296nrtOMQ'];a7_0x3bbb=function(){return _0x5b23bf;};return a7_0x3bbb();}export default router;
@@ -1 +1 @@
1
- const a8_0x5cd04d=a8_0x8298;(function(_0x1a0d5a,_0x7134c8){const _0x2e75c8=a8_0x8298,_0x160592=_0x1a0d5a();while(!![]){try{const _0x8b7c41=parseInt(_0x2e75c8(0x1d2))/0x1*(-parseInt(_0x2e75c8(0x1d6))/0x2)+parseInt(_0x2e75c8(0x1e2))/0x3*(-parseInt(_0x2e75c8(0x1dc))/0x4)+-parseInt(_0x2e75c8(0x1e4))/0x5+parseInt(_0x2e75c8(0x1de))/0x6*(-parseInt(_0x2e75c8(0x1d1))/0x7)+parseInt(_0x2e75c8(0x1d5))/0x8+-parseInt(_0x2e75c8(0x1df))/0x9+parseInt(_0x2e75c8(0x1db))/0xa*(parseInt(_0x2e75c8(0x1d3))/0xb);if(_0x8b7c41===_0x7134c8)break;else _0x160592['push'](_0x160592['shift']());}catch(_0x4d471c){_0x160592['push'](_0x160592['shift']());}}}(a8_0x5452,0xe0044));function a8_0x8298(_0x1f08e9,_0x50fbb9){_0x1f08e9=_0x1f08e9-0x1ce;const _0x5452f4=a8_0x5452();let _0x82987=_0x5452f4[_0x1f08e9];return _0x82987;}function a8_0x5452(){const _0x21f67e=['39LfnSnP','tax','4236340rBWVsa','params','put','status','post','findMany','50687XXBfPE','201039TCRyep','44UXRrfm','/:id','4055528PdvTrT','2pbnZoq','body','send','delete','json','7255010DbUIpy','82100WfvFLK','message','60PbYxpd','9934479FIsVzh','update','get'];a8_0x5452=function(){return _0x21f67e;};return a8_0x5452();}import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router[a8_0x5cd04d(0x1cf)]('/',async(_0x1dfdec,_0x3110da)=>{const _0x115f97=a8_0x5cd04d;try{const _0x4bbaaf=await prisma[_0x115f97(0x1e3)]['create']({'data':_0x1dfdec[_0x115f97(0x1d7)]});_0x3110da['json']({'id':_0x4bbaaf['id']});}catch(_0xeccd9d){_0x3110da[_0x115f97(0x1ce)](0x1f4)['json']({'error':_0xeccd9d[_0x115f97(0x1dd)]});}}),router['get']('/:id',async(_0x1130fa,_0xd3c0f)=>{const _0x3ab302=a8_0x5cd04d;try{const {id:_0xb478c5}=_0x1130fa[_0x3ab302(0x1e5)],_0x4ece73=await prisma[_0x3ab302(0x1e3)]['findUnique']({'where':{'id':Number(_0xb478c5)}});_0xd3c0f[_0x3ab302(0x1da)](_0x4ece73);}catch(_0x5f2b52){_0xd3c0f[_0x3ab302(0x1ce)](0x1f4)[_0x3ab302(0x1da)]({'error':_0x5f2b52['message']});}}),router[a8_0x5cd04d(0x1e1)]('/',async(_0x1abf4e,_0x3702b9)=>{const _0x40f9e0=a8_0x5cd04d;try{const _0x111131=await prisma[_0x40f9e0(0x1e3)][_0x40f9e0(0x1d0)]();_0x3702b9['json'](_0x111131);}catch(_0x4c96e8){_0x3702b9['status'](0x1f4)[_0x40f9e0(0x1da)]({'error':_0x4c96e8[_0x40f9e0(0x1dd)]});}}),router[a8_0x5cd04d(0x1cf)]('/search',async(_0x4c7af0,_0x2b0872)=>{const _0x1720c7=a8_0x5cd04d;try{const _0x5dca2d=_0x4c7af0['body'],_0x5bc485=await prisma[_0x1720c7(0x1e3)][_0x1720c7(0x1d0)]({'where':_0x5dca2d});_0x2b0872[_0x1720c7(0x1da)](_0x5bc485);}catch(_0x4291af){_0x2b0872['status'](0x1f4)[_0x1720c7(0x1da)]({'error':_0x4291af['message']});}}),router[a8_0x5cd04d(0x1e6)](a8_0x5cd04d(0x1d4),async(_0x5dafb0,_0x79e830)=>{const _0x17fc88=a8_0x5cd04d;try{const {id:_0x5ab9b6}=_0x5dafb0[_0x17fc88(0x1e5)],_0x4986c5=_0x5dafb0[_0x17fc88(0x1d7)],_0x3d56dd=await prisma['tax'][_0x17fc88(0x1e0)]({'where':{'id':Number(_0x5ab9b6)},'data':_0x4986c5});_0x79e830[_0x17fc88(0x1da)](_0x3d56dd);}catch(_0x299714){_0x79e830[_0x17fc88(0x1ce)](0x1f4)[_0x17fc88(0x1da)]({'error':_0x299714[_0x17fc88(0x1dd)]});}}),router['delete']('/:id',async(_0x26f992,_0x4d12be)=>{const _0x2fac1c=a8_0x5cd04d;try{const {id:_0x21ae52}=_0x26f992[_0x2fac1c(0x1e5)];await prisma[_0x2fac1c(0x1e3)][_0x2fac1c(0x1d9)]({'where':{'id':Number(_0x21ae52)}}),_0x4d12be[_0x2fac1c(0x1ce)](0xcc)[_0x2fac1c(0x1d8)]();}catch(_0x5e8028){_0x4d12be[_0x2fac1c(0x1ce)](0x1f4)[_0x2fac1c(0x1da)]({'error':_0x5e8028[_0x2fac1c(0x1dd)]});}});export default router;
1
+ const a8_0x449259=a8_0x1b31;function a8_0x50e3(){const _0x594c6d=['body','put','send','tax','create','36xPBkCV','7967001XCgjlo','66398uRPlbb','delete','params','json','status','post','update','12abnFkh','789013GEJUqw','findMany','903530gilest','get','message','/search','1032489bbdxhf','/:id','284550qZmEDV','4616472tZNEiC','findUnique'];a8_0x50e3=function(){return _0x594c6d;};return a8_0x50e3();}(function(_0x3143a6,_0x1c3fa8){const _0x54d36f=a8_0x1b31,_0x1b28d3=_0x3143a6();while(!![]){try{const _0x1fb59b=parseInt(_0x54d36f(0x112))/0x1+parseInt(_0x54d36f(0x10a))/0x2*(-parseInt(_0x54d36f(0x108))/0x3)+parseInt(_0x54d36f(0x111))/0x4*(-parseInt(_0x54d36f(0x114))/0x5)+parseInt(_0x54d36f(0x100))/0x6+parseInt(_0x54d36f(0x109))/0x7+-parseInt(_0x54d36f(0x101))/0x8+parseInt(_0x54d36f(0xfe))/0x9;if(_0x1fb59b===_0x1c3fa8)break;else _0x1b28d3['push'](_0x1b28d3['shift']());}catch(_0x23bae8){_0x1b28d3['push'](_0x1b28d3['shift']());}}}(a8_0x50e3,0x8b959));import{Router}from'express';import{PrismaClient}from'@prisma/client';function a8_0x1b31(_0x3a853b,_0x28273c){_0x3a853b=_0x3a853b-0xfd;const _0x50e3ed=a8_0x50e3();let _0x1b319c=_0x50e3ed[_0x3a853b];return _0x1b319c;}const prisma=new PrismaClient(),router=Router();router[a8_0x449259(0x10f)]('/',async(_0x3fc5ed,_0x1ba5e3)=>{const _0x323a13=a8_0x449259;try{const _0x2e6ebe=await prisma[_0x323a13(0x106)][_0x323a13(0x107)]({'data':_0x3fc5ed[_0x323a13(0x103)]});_0x1ba5e3[_0x323a13(0x10d)]({'id':_0x2e6ebe['id']});}catch(_0x3fa103){_0x1ba5e3['status'](0x1f4)[_0x323a13(0x10d)]({'error':_0x3fa103[_0x323a13(0x116)]});}}),router[a8_0x449259(0x115)](a8_0x449259(0xff),async(_0x28546c,_0x3ce03d)=>{const _0x3c629b=a8_0x449259;try{const {id:_0x52e097}=_0x28546c[_0x3c629b(0x10c)],_0x4fe2a1=await prisma['tax'][_0x3c629b(0x102)]({'where':{'id':Number(_0x52e097)}});_0x3ce03d[_0x3c629b(0x10d)](_0x4fe2a1);}catch(_0x240580){_0x3ce03d[_0x3c629b(0x10e)](0x1f4)[_0x3c629b(0x10d)]({'error':_0x240580[_0x3c629b(0x116)]});}}),router['get']('/',async(_0x1f03dd,_0x30b413)=>{const _0x4a4f5c=a8_0x449259;try{const _0x214b30=await prisma[_0x4a4f5c(0x106)]['findMany']();_0x30b413['json'](_0x214b30);}catch(_0x24f70f){_0x30b413['status'](0x1f4)['json']({'error':_0x24f70f['message']});}}),router[a8_0x449259(0x10f)](a8_0x449259(0xfd),async(_0x39a7e7,_0x24c635)=>{const _0x1942ba=a8_0x449259;try{const _0x3a71c6=_0x39a7e7[_0x1942ba(0x103)],_0xc091b2=await prisma[_0x1942ba(0x106)][_0x1942ba(0x113)]({'where':_0x3a71c6});_0x24c635[_0x1942ba(0x10d)](_0xc091b2);}catch(_0x3a37b4){_0x24c635[_0x1942ba(0x10e)](0x1f4)[_0x1942ba(0x10d)]({'error':_0x3a37b4[_0x1942ba(0x116)]});}}),router[a8_0x449259(0x104)]('/:id',async(_0x1f512f,_0x12683f)=>{const _0xf321cb=a8_0x449259;try{const {id:_0x4b8088}=_0x1f512f[_0xf321cb(0x10c)],_0x1c40dc=_0x1f512f[_0xf321cb(0x103)],_0x190db4=await prisma[_0xf321cb(0x106)][_0xf321cb(0x110)]({'where':{'id':Number(_0x4b8088)},'data':_0x1c40dc});_0x12683f['json'](_0x190db4);}catch(_0x13bb5b){_0x12683f[_0xf321cb(0x10e)](0x1f4)[_0xf321cb(0x10d)]({'error':_0x13bb5b['message']});}}),router['delete'](a8_0x449259(0xff),async(_0x7d3939,_0x4cd1bc)=>{const _0x10e5c5=a8_0x449259;try{const {id:_0x3733bd}=_0x7d3939[_0x10e5c5(0x10c)];await prisma[_0x10e5c5(0x106)][_0x10e5c5(0x10b)]({'where':{'id':Number(_0x3733bd)}}),_0x4cd1bc['status'](0xcc)[_0x10e5c5(0x105)]();}catch(_0x5c8fbd){_0x4cd1bc['status'](0x1f4)[_0x10e5c5(0x10d)]({'error':_0x5c8fbd['message']});}});export default router;
@@ -1 +1 @@
1
- function a9_0x2a00(){const _0xe2f9da=['params','findMany','json','get','post','from','message','User\x20not\x20found.','50952GjgjXk','findUnique','put','8CsGrQc','delete','2706760tSvvBh','1486588AgwRzl','user','2889450ozgVgg','115554rMTxmn','status','1387169YFCBWc','body','2952XnqBBm','/search','40910llCzoF','/login','68xNCApz','send','/:id','password','Invalid\x20password.'];a9_0x2a00=function(){return _0xe2f9da;};return a9_0x2a00();}const a9_0x45754e=a9_0x2d31;(function(_0x556b1f,_0x13ec50){const _0x16e758=a9_0x2d31,_0x14d527=_0x556b1f();while(!![]){try{const _0x2f36a7=-parseInt(_0x16e758(0x144))/0x1+-parseInt(_0x16e758(0x14a))/0x2+parseInt(_0x16e758(0x14d))/0x3*(parseInt(_0x16e758(0x155))/0x4)+-parseInt(_0x16e758(0x149))/0x5+-parseInt(_0x16e758(0x14c))/0x6+parseInt(_0x16e758(0x14f))/0x7*(parseInt(_0x16e758(0x147))/0x8)+-parseInt(_0x16e758(0x151))/0x9*(-parseInt(_0x16e758(0x153))/0xa);if(_0x2f36a7===_0x13ec50)break;else _0x14d527['push'](_0x14d527['shift']());}catch(_0x4acef5){_0x14d527['push'](_0x14d527['shift']());}}}(a9_0x2a00,0x5c330));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();function a9_0x2d31(_0x3ae73e,_0x396626){_0x3ae73e=_0x3ae73e-0x142;const _0x2a0095=a9_0x2a00();let _0x2d3115=_0x2a0095[_0x3ae73e];return _0x2d3115;}router[a9_0x45754e(0x15e)](a9_0x45754e(0x154),async(_0x20f99d,_0x2fb60d)=>{const _0x58a33c=a9_0x45754e;try{const {email:_0x3110b3,password:_0x4d9b3e}=_0x20f99d[_0x58a33c(0x150)],_0x11bdb2=await prisma[_0x58a33c(0x14b)]['findUnique']({'where':{'email':_0x3110b3}});if(!_0x11bdb2)return _0x2fb60d[_0x58a33c(0x14e)](0x194)['json']({'error':_0x58a33c(0x143)});if(_0x11bdb2[_0x58a33c(0x158)]!==_0x4d9b3e)return _0x2fb60d[_0x58a33c(0x14e)](0x191)[_0x58a33c(0x15c)]({'error':_0x58a33c(0x159)});_0x2fb60d[_0x58a33c(0x15c)](_0x11bdb2);}catch(_0x5ec3fe){_0x2fb60d[_0x58a33c(0x14e)](0x1f4)[_0x58a33c(0x15c)]({'error':_0x5ec3fe[_0x58a33c(0x142)]});}}),router[a9_0x45754e(0x15e)]('/',async(_0x419785,_0x262bca)=>{const _0x4fde1c=a9_0x45754e;try{const {email:_0x1f0352,password:_0x4fba64,authorizations:_0x8356a8}=_0x419785[_0x4fde1c(0x150)],_0x1ea30a=await prisma['user']['create']({'data':{'email':_0x1f0352??null,'password':_0x4fba64??null,'authorizations':Array[_0x4fde1c(0x15f)](_0x8356a8??[])}});_0x262bca[_0x4fde1c(0x15c)]({'id':_0x1ea30a['id']});}catch(_0x5aadbe){_0x262bca['status'](0x1f4)[_0x4fde1c(0x15c)]({'error':_0x5aadbe[_0x4fde1c(0x142)]});}}),router['get']('/:id',async(_0x5736af,_0x5d248a)=>{const _0x510c26=a9_0x45754e;try{const {id:_0x521d0b}=_0x5736af['params'],_0x3886f6=await prisma[_0x510c26(0x14b)][_0x510c26(0x145)]({'where':{'id':Number(_0x521d0b)}});_0x5d248a[_0x510c26(0x15c)](_0x3886f6);}catch(_0x387447){_0x5d248a['status'](0x1f4)[_0x510c26(0x15c)]({'error':_0x387447[_0x510c26(0x142)]});}}),router[a9_0x45754e(0x15d)]('/',async(_0x32185a,_0x350d5)=>{const _0x272b7b=a9_0x45754e;try{const _0x63bbcf=await prisma[_0x272b7b(0x14b)]['findMany']();_0x350d5['json'](_0x63bbcf);}catch(_0x136d54){_0x350d5[_0x272b7b(0x14e)](0x1f4)[_0x272b7b(0x15c)]({'error':_0x136d54['message']});}}),router[a9_0x45754e(0x15e)](a9_0x45754e(0x152),async(_0x58f20b,_0x4ab521)=>{const _0x2d34d7=a9_0x45754e;try{const _0x3ce75d=_0x58f20b[_0x2d34d7(0x150)],_0x212249=await prisma[_0x2d34d7(0x14b)][_0x2d34d7(0x15b)]({'where':_0x3ce75d});_0x4ab521[_0x2d34d7(0x15c)](_0x212249);}catch(_0x24528a){_0x4ab521[_0x2d34d7(0x14e)](0x1f4)[_0x2d34d7(0x15c)]({'error':_0x24528a[_0x2d34d7(0x142)]});}}),router[a9_0x45754e(0x146)](a9_0x45754e(0x157),async(_0x4f631c,_0x166df4)=>{const _0x277d98=a9_0x45754e;try{const {id:_0x3dffec}=_0x4f631c['params'],_0x292236=_0x4f631c[_0x277d98(0x150)],_0x43c343=await prisma[_0x277d98(0x14b)]['update']({'where':{'id':Number(_0x3dffec)},'data':_0x292236});_0x166df4[_0x277d98(0x15c)](_0x43c343);}catch(_0x517254){_0x166df4[_0x277d98(0x14e)](0x1f4)[_0x277d98(0x15c)]({'error':_0x517254[_0x277d98(0x142)]});}}),router[a9_0x45754e(0x148)]('/:id',async(_0x517d77,_0x20d156)=>{const _0x145fda=a9_0x45754e;try{const {id:_0x13ffa3}=_0x517d77[_0x145fda(0x15a)];await prisma[_0x145fda(0x14b)][_0x145fda(0x148)]({'where':{'id':Number(_0x13ffa3)}}),_0x20d156[_0x145fda(0x14e)](0xcc)[_0x145fda(0x156)]();}catch(_0xbcd1cb){_0x20d156[_0x145fda(0x14e)](0x1f4)['json']({'error':_0xbcd1cb[_0x145fda(0x142)]});}});export default router;
1
+ function a9_0x1fc6(){const _0x3e3777=['77522wXyoIp','7YzOlFl','send','json','password','status','8ROVymL','1690191SAsUaK','put','8sLIuwc','/login','from','User\x20not\x20found.','params','Invalid\x20password.','321435SpFwwq','post','5115750pApiCS','6289613RfVfwo','9BiGWoV','findUnique','update','163974mACxTu','946284toixpw','message','/:id','/search','body','get','user','findMany'];a9_0x1fc6=function(){return _0x3e3777;};return a9_0x1fc6();}function a9_0x7f61(_0xa067c8,_0x2a6804){_0xa067c8=_0xa067c8-0x10a;const _0x1fc629=a9_0x1fc6();let _0x7f615b=_0x1fc629[_0xa067c8];return _0x7f615b;}const a9_0x79ad85=a9_0x7f61;(function(_0x2cd0f0,_0x2a98dd){const _0x2e203f=a9_0x7f61,_0xc622d7=_0x2cd0f0();while(!![]){try{const _0x48a343=-parseInt(_0x2e203f(0x114))/0x1+parseInt(_0x2e203f(0x10b))/0x2*(-parseInt(_0x2e203f(0x127))/0x3)+parseInt(_0x2e203f(0x11a))/0x4*(-parseInt(_0x2e203f(0x123))/0x5)+-parseInt(_0x2e203f(0x10c))/0x6*(parseInt(_0x2e203f(0x115))/0x7)+-parseInt(_0x2e203f(0x11d))/0x8*(parseInt(_0x2e203f(0x11b))/0x9)+parseInt(_0x2e203f(0x125))/0xa+parseInt(_0x2e203f(0x126))/0xb;if(_0x48a343===_0x2a98dd)break;else _0xc622d7['push'](_0xc622d7['shift']());}catch(_0x39e811){_0xc622d7['push'](_0xc622d7['shift']());}}}(a9_0x1fc6,0x45c5c));import{Router}from'express';import{PrismaClient}from'@prisma/client';const prisma=new PrismaClient(),router=Router();router[a9_0x79ad85(0x124)](a9_0x79ad85(0x11e),async(_0x551de4,_0x16a82c)=>{const _0x5179d1=a9_0x79ad85;try{const {email:_0x354a86,password:_0x5c77f7}=_0x551de4[_0x5179d1(0x110)],_0x50f600=await prisma['user'][_0x5179d1(0x128)]({'where':{'email':_0x354a86}});if(!_0x50f600)return _0x16a82c[_0x5179d1(0x119)](0x194)[_0x5179d1(0x117)]({'error':_0x5179d1(0x120)});if(_0x50f600[_0x5179d1(0x118)]!==_0x5c77f7)return _0x16a82c[_0x5179d1(0x119)](0x191)[_0x5179d1(0x117)]({'error':_0x5179d1(0x122)});_0x16a82c['json'](_0x50f600);}catch(_0x5a23f1){_0x16a82c[_0x5179d1(0x119)](0x1f4)[_0x5179d1(0x117)]({'error':_0x5a23f1[_0x5179d1(0x10d)]});}}),router[a9_0x79ad85(0x124)]('/',async(_0x287bc2,_0x47ffbf)=>{const _0x1f7191=a9_0x79ad85;try{const {email:_0x24e815,password:_0x4d6d6a,authorizations:_0x5da336}=_0x287bc2[_0x1f7191(0x110)],_0x5bf324=await prisma[_0x1f7191(0x112)]['create']({'data':{'email':_0x24e815??null,'password':_0x4d6d6a??null,'authorizations':Array[_0x1f7191(0x11f)](_0x5da336??[])}});_0x47ffbf[_0x1f7191(0x117)]({'id':_0x5bf324['id']});}catch(_0x4ea633){_0x47ffbf[_0x1f7191(0x119)](0x1f4)[_0x1f7191(0x117)]({'error':_0x4ea633[_0x1f7191(0x10d)]});}}),router[a9_0x79ad85(0x111)](a9_0x79ad85(0x10e),async(_0x1a1482,_0x3347c6)=>{const _0x4c517c=a9_0x79ad85;try{const {id:_0x9c4ae4}=_0x1a1482[_0x4c517c(0x121)],_0x9e6cfe=await prisma['user'][_0x4c517c(0x128)]({'where':{'id':Number(_0x9c4ae4)}});_0x3347c6[_0x4c517c(0x117)](_0x9e6cfe);}catch(_0x3a484e){_0x3347c6[_0x4c517c(0x119)](0x1f4)[_0x4c517c(0x117)]({'error':_0x3a484e[_0x4c517c(0x10d)]});}}),router['get']('/',async(_0x3e9e4c,_0x22a1dc)=>{const _0x533b8d=a9_0x79ad85;try{const _0x2a4837=await prisma[_0x533b8d(0x112)][_0x533b8d(0x113)]();_0x22a1dc[_0x533b8d(0x117)](_0x2a4837);}catch(_0x2a0cf9){_0x22a1dc[_0x533b8d(0x119)](0x1f4)[_0x533b8d(0x117)]({'error':_0x2a0cf9[_0x533b8d(0x10d)]});}}),router[a9_0x79ad85(0x124)](a9_0x79ad85(0x10f),async(_0x33f630,_0x38c0af)=>{const _0x539fe7=a9_0x79ad85;try{const _0x3e3010=_0x33f630[_0x539fe7(0x110)],_0x1d2304=await prisma[_0x539fe7(0x112)][_0x539fe7(0x113)]({'where':_0x3e3010});_0x38c0af['json'](_0x1d2304);}catch(_0x367941){_0x38c0af[_0x539fe7(0x119)](0x1f4)[_0x539fe7(0x117)]({'error':_0x367941[_0x539fe7(0x10d)]});}}),router[a9_0x79ad85(0x11c)]('/:id',async(_0x582708,_0x3a634d)=>{const _0x2581bf=a9_0x79ad85;try{const {id:_0x726b8b}=_0x582708['params'],_0x2a96be=_0x582708[_0x2581bf(0x110)],_0x248952=await prisma['user'][_0x2581bf(0x10a)]({'where':{'id':Number(_0x726b8b)},'data':_0x2a96be});_0x3a634d[_0x2581bf(0x117)](_0x248952);}catch(_0x28adc0){_0x3a634d['status'](0x1f4)[_0x2581bf(0x117)]({'error':_0x28adc0[_0x2581bf(0x10d)]});}}),router['delete'](a9_0x79ad85(0x10e),async(_0x2e32a3,_0x50e692)=>{const _0x1b9f95=a9_0x79ad85;try{const {id:_0x5efc6b}=_0x2e32a3[_0x1b9f95(0x121)];await prisma[_0x1b9f95(0x112)]['delete']({'where':{'id':Number(_0x5efc6b)}}),_0x50e692[_0x1b9f95(0x119)](0xcc)[_0x1b9f95(0x116)]();}catch(_0x1d7d16){_0x50e692['status'](0x1f4)[_0x1b9f95(0x117)]({'error':_0x1d7d16[_0x1b9f95(0x10d)]});}});export default router;
@@ -1 +1 @@
1
- const a10_0x1791ef=a10_0xd95c;(function(_0x1f7e48,_0x4d02dc){const _0x404aa7=a10_0xd95c,_0x26830d=_0x1f7e48();while(!![]){try{const _0xa30925=-parseInt(_0x404aa7(0x138))/0x1*(-parseInt(_0x404aa7(0x13b))/0x2)+parseInt(_0x404aa7(0x140))/0x3+-parseInt(_0x404aa7(0x133))/0x4*(parseInt(_0x404aa7(0x13f))/0x5)+-parseInt(_0x404aa7(0x137))/0x6+parseInt(_0x404aa7(0x13c))/0x7+-parseInt(_0x404aa7(0x139))/0x8*(-parseInt(_0x404aa7(0x143))/0x9)+-parseInt(_0x404aa7(0x136))/0xa;if(_0xa30925===_0x4d02dc)break;else _0x26830d['push'](_0x26830d['shift']());}catch(_0x4567ef){_0x26830d['push'](_0x26830d['shift']());}}}(a10_0x28fe,0x4e2a7));import a10_0x3a528f from'./routes/client.routes.js';import a10_0x38ab2e from'./routes/item.routes.js';import a10_0x288278 from'./routes/order.routes.js';import a10_0x3ec2bd from'./routes/preparation.routes.js';import a10_0x2c2edf from'./routes/purchase.routes.js';import a10_0x5e602a from'./routes/reception.routes.js';function a10_0x28fe(){const _0x389067=['1071932GrWSjH','/users','log','5344800eBAsVt','3168294AHOgZs','576747BEaFdw','165448WBWghg','/receptions','2qKqlKI','2512657FhQaMC','Server\x20running\x20on\x205001','use','5IXUFUV','345696LcGxuv','/clients','/purchases','261IWCDXL','listen','/suppliers','/preparations','/stocks'];a10_0x28fe=function(){return _0x389067;};return a10_0x28fe();}import a10_0x16759e from'./routes/stock.routes.js';import a10_0x2e345b from'./routes/supplier.routes.js';import a10_0x15790d from'./routes/tax.routes.js';import a10_0x43c3e4 from'./routes/user.routes.js';import a10_0x13ba84 from'express';import a10_0x3b1cf0 from'cors';function a10_0xd95c(_0x563b8b,_0x507d6f){_0x563b8b=_0x563b8b-0x131;const _0x28fe51=a10_0x28fe();let _0xd95ca4=_0x28fe51[_0x563b8b];return _0xd95ca4;}const app=a10_0x13ba84();app[a10_0x1791ef(0x13e)](a10_0x13ba84['json']()),app[a10_0x1791ef(0x13e)](a10_0x3b1cf0()),app[a10_0x1791ef(0x13e)](a10_0x1791ef(0x141),a10_0x3a528f),app['use']('/items',a10_0x38ab2e),app[a10_0x1791ef(0x13e)]('/orders',a10_0x288278),app['use'](a10_0x1791ef(0x131),a10_0x3ec2bd),app[a10_0x1791ef(0x13e)](a10_0x1791ef(0x142),a10_0x2c2edf),app['use'](a10_0x1791ef(0x13a),a10_0x5e602a),app['use'](a10_0x1791ef(0x132),a10_0x16759e),app[a10_0x1791ef(0x13e)](a10_0x1791ef(0x145),a10_0x2e345b),app[a10_0x1791ef(0x13e)]('/taxes',a10_0x15790d),app[a10_0x1791ef(0x13e)](a10_0x1791ef(0x134),a10_0x43c3e4),app[a10_0x1791ef(0x144)](0x1389,()=>{const _0x418068=a10_0x1791ef;console[_0x418068(0x135)](_0x418068(0x13d));});
1
+ const a10_0xd2bf2d=a10_0x971a;(function(_0x3ccd20,_0x569e79){const _0x49fb7f=a10_0x971a,_0x547d66=_0x3ccd20();while(!![]){try{const _0x1da54e=-parseInt(_0x49fb7f(0x1c2))/0x1+-parseInt(_0x49fb7f(0x1d6))/0x2+parseInt(_0x49fb7f(0x1cb))/0x3*(-parseInt(_0x49fb7f(0x1c6))/0x4)+-parseInt(_0x49fb7f(0x1d5))/0x5*(parseInt(_0x49fb7f(0x1ce))/0x6)+parseInt(_0x49fb7f(0x1d4))/0x7+-parseInt(_0x49fb7f(0x1cd))/0x8*(parseInt(_0x49fb7f(0x1c8))/0x9)+parseInt(_0x49fb7f(0x1d2))/0xa*(parseInt(_0x49fb7f(0x1c7))/0xb);if(_0x1da54e===_0x569e79)break;else _0x547d66['push'](_0x547d66['shift']());}catch(_0x38293a){_0x547d66['push'](_0x547d66['shift']());}}}(a10_0x3e04,0x36fd4));import a10_0x16e219 from'./routes/client.routes.js';import a10_0x4a12ef from'./routes/item.routes.js';import a10_0x54cf25 from'./routes/order.routes.js';import a10_0x282e9f from'./routes/preparation.routes.js';import a10_0x2f20f5 from'./routes/purchase.routes.js';function a10_0x971a(_0x94ba0,_0x32e086){_0x94ba0=_0x94ba0-0x1c2;const _0x3e042f=a10_0x3e04();let _0x971a3e=_0x3e042f[_0x94ba0];return _0x971a3e;}function a10_0x3e04(){const _0x20fe69=['/clients','/users','/orders','4845820fdKLYg','listen','984340FJdlwx','5ZdffQs','403916VwFOzY','59335njcmFT','/stocks','/receptions','/preparations','4700oNLlin','22uRCNcn','90621KnxUbh','/items','/purchases','711UxFCkI','use','152FehQog','920814Awpuru'];a10_0x3e04=function(){return _0x20fe69;};return a10_0x3e04();}import a10_0x3c414f from'./routes/reception.routes.js';import a10_0x1293af from'./routes/stock.routes.js';import a10_0x29a9c8 from'./routes/supplier.routes.js';import a10_0x305a2a from'./routes/tax.routes.js';import a10_0x3bd5c1 from'./routes/user.routes.js';import a10_0x487bbd from'express';import a10_0x113243 from'cors';const app=a10_0x487bbd();app[a10_0xd2bf2d(0x1cc)](a10_0x487bbd['json']()),app[a10_0xd2bf2d(0x1cc)](a10_0x113243()),app[a10_0xd2bf2d(0x1cc)](a10_0xd2bf2d(0x1cf),a10_0x16e219),app[a10_0xd2bf2d(0x1cc)](a10_0xd2bf2d(0x1c9),a10_0x4a12ef),app[a10_0xd2bf2d(0x1cc)](a10_0xd2bf2d(0x1d1),a10_0x54cf25),app['use'](a10_0xd2bf2d(0x1c5),a10_0x282e9f),app['use'](a10_0xd2bf2d(0x1ca),a10_0x2f20f5),app['use'](a10_0xd2bf2d(0x1c4),a10_0x3c414f),app[a10_0xd2bf2d(0x1cc)](a10_0xd2bf2d(0x1c3),a10_0x1293af),app[a10_0xd2bf2d(0x1cc)]('/suppliers',a10_0x29a9c8),app[a10_0xd2bf2d(0x1cc)]('/taxes',a10_0x305a2a),app[a10_0xd2bf2d(0x1cc)](a10_0xd2bf2d(0x1d0),a10_0x3bd5c1),app[a10_0xd2bf2d(0x1d3)](0x1389,()=>{console['log']('Server\x20running\x20on\x205001');});
@@ -1 +1 @@
1
- function a13_0x55ef(){var _0x23534a=['3ZiBEiB','704114noXyaN','385qaxWGL','575812MlIcvj','3269442TXbADj','45392XwExyC','10TjBZJj','3282399wxnZsG','871636kzxMqM','9542870vtsjMK'];a13_0x55ef=function(){return _0x23534a;};return a13_0x55ef();}(function(_0x85b19f,_0x16b8e1){var _0x52e1e4=a13_0x4306,_0x44cfad=_0x85b19f();while(!![]){try{var _0x484305=parseInt(_0x52e1e4(0x1ac))/0x1+-parseInt(_0x52e1e4(0x1ae))/0x2+-parseInt(_0x52e1e4(0x1b5))/0x3*(parseInt(_0x52e1e4(0x1b3))/0x4)+parseInt(_0x52e1e4(0x1b1))/0x5*(-parseInt(_0x52e1e4(0x1af))/0x6)+-parseInt(_0x52e1e4(0x1ad))/0x7*(-parseInt(_0x52e1e4(0x1b0))/0x8)+parseInt(_0x52e1e4(0x1b2))/0x9+parseInt(_0x52e1e4(0x1b4))/0xa;if(_0x484305===_0x16b8e1)break;else _0x44cfad['push'](_0x44cfad['shift']());}catch(_0x55fad2){_0x44cfad['push'](_0x44cfad['shift']());}}}(a13_0x55ef,0xb48e1));function a13_0x4306(_0x1ebdae,_0x228b33){_0x1ebdae=_0x1ebdae-0x1ac;var _0x55efa6=a13_0x55ef();var _0x4306df=_0x55efa6[_0x1ebdae];return _0x4306df;}export class Entity{constructor(_0x1db9ab){this['owl']=_0x1db9ab;}}
1
+ function a13_0x2c69(){var _0x1e4e31=['81565twBvVx','150DayJhv','1940HccaqY','1513398dVKHAe','21054GgiJAb','3gRdvAP','14BCVJha','2952Nfvpwi','4928128lnZewg','89952horpZH','26118LiXqlT','329568OqAeXk'];a13_0x2c69=function(){return _0x1e4e31;};return a13_0x2c69();}function a13_0x1b6d(_0x24fe37,_0x64674f){_0x24fe37=_0x24fe37-0xb5;var _0x2c696=a13_0x2c69();var _0x1b6dff=_0x2c696[_0x24fe37];return _0x1b6dff;}(function(_0x3fa2b6,_0x4f2976){var _0x528bf0=a13_0x1b6d,_0x5b97e3=_0x3fa2b6();while(!![]){try{var _0x2c5354=-parseInt(_0x528bf0(0xbe))/0x1+parseInt(_0x528bf0(0xb6))/0x2*(parseInt(_0x528bf0(0xb8))/0x3)+parseInt(_0x528bf0(0xbc))/0x4*(-parseInt(_0x528bf0(0xc0))/0x5)+parseInt(_0x528bf0(0xb7))/0x6*(-parseInt(_0x528bf0(0xb9))/0x7)+-parseInt(_0x528bf0(0xbb))/0x8+parseInt(_0x528bf0(0xbd))/0x9*(-parseInt(_0x528bf0(0xb5))/0xa)+-parseInt(_0x528bf0(0xbf))/0xb*(-parseInt(_0x528bf0(0xba))/0xc);if(_0x2c5354===_0x4f2976)break;else _0x5b97e3['push'](_0x5b97e3['shift']());}catch(_0x3b553d){_0x5b97e3['push'](_0x5b97e3['shift']());}}}(a13_0x2c69,0x5f59f));export class Entity{constructor(_0x2bb8d6){this['owl']=_0x2bb8d6;}}
@@ -1 +1 @@
1
- function a14_0x2890(_0x515ee0,_0x513e8d){_0x515ee0=_0x515ee0-0xf8;const _0x47a2ab=a14_0x47a2();let _0x2890ac=_0x47a2ab[_0x515ee0];return _0x2890ac;}const a14_0x1fd281=a14_0x2890;(function(_0x3c8609,_0xa717a8){const _0x80a096=a14_0x2890,_0x57d148=_0x3c8609();while(!![]){try{const _0x249d89=-parseInt(_0x80a096(0xfa))/0x1*(parseInt(_0x80a096(0x101))/0x2)+-parseInt(_0x80a096(0x10c))/0x3+-parseInt(_0x80a096(0xf9))/0x4*(parseInt(_0x80a096(0x105))/0x5)+-parseInt(_0x80a096(0xff))/0x6+-parseInt(_0x80a096(0x102))/0x7+-parseInt(_0x80a096(0x103))/0x8+parseInt(_0x80a096(0x106))/0x9;if(_0x249d89===_0xa717a8)break;else _0x57d148['push'](_0x57d148['shift']());}catch(_0x35014c){_0x57d148['push'](_0x57d148['shift']());}}}(a14_0x47a2,0xe6349));export class EventBus{constructor(){const _0x22f241=a14_0x2890;this[_0x22f241(0xfd)]=new Map(),this[_0x22f241(0x10a)]=new Map();}['on'](_0x3c9f08,_0x56e237){const _0x70c895=a14_0x2890;!this[_0x70c895(0xfd)]['has'](_0x3c9f08)&&this[_0x70c895(0xfd)][_0x70c895(0x107)](_0x3c9f08,[]),this[_0x70c895(0xfd)][_0x70c895(0x108)](_0x3c9f08)[_0x70c895(0x104)](_0x56e237);}[a14_0x1fd281(0x100)](_0x237b71,_0x5f5159){const _0x128eed=_0x5ca2f6=>{const _0x3afb8d=a14_0x2890;_0x5f5159(_0x5ca2f6),this[_0x3afb8d(0x109)](_0x237b71,_0x128eed);};this['on'](_0x237b71,_0x128eed);}[a14_0x1fd281(0x109)](_0x1fd313,_0x9e49ef){const _0x24dcee=a14_0x1fd281,_0x5ee7d6=this[_0x24dcee(0xfd)][_0x24dcee(0x108)](_0x1fd313);if(!_0x5ee7d6)return;this[_0x24dcee(0xfd)]['set'](_0x1fd313,_0x5ee7d6[_0x24dcee(0xfe)](_0x15de37=>_0x15de37!==_0x9e49ef));}[a14_0x1fd281(0xf8)](_0x122d1d,_0x51cf81){const _0x28b820=a14_0x1fd281,_0x410129=this[_0x28b820(0xfd)][_0x28b820(0x108)](_0x122d1d)??[];_0x410129[_0x28b820(0xfc)](_0x57ae6b=>_0x57ae6b(_0x51cf81));}[a14_0x1fd281(0x10d)](_0x107622,_0x286a9a){const _0xf8a96d=a14_0x1fd281;this[_0xf8a96d(0x10a)][_0xf8a96d(0x107)](_0x107622,_0x286a9a);}async[a14_0x1fd281(0xfb)](_0x4b9eb4,_0x42c889){const _0x1329fa=a14_0x1fd281,_0x5a0d33=this[_0x1329fa(0x10a)][_0x1329fa(0x108)](_0x4b9eb4);if(!_0x5a0d33)throw new Error(_0x1329fa(0x10b)+_0x4b9eb4+'\x22');return await _0x5a0d33(_0x42c889);}}function a14_0x47a2(){const _0x315d86=['3520272EUbtHB','once','908204ChtaZb','3634141BpIEju','7036000VUFsnW','push','5SBTABD','33800922FCsqxv','set','get','off','requestListeners','No\x20request\x20listener\x20for\x20event\x20\x22','813093mOHGVt','onRequest','emit','408916KVnDDy','1Rcxofj','request','forEach','listeners','filter'];a14_0x47a2=function(){return _0x315d86;};return a14_0x47a2();}
1
+ function a14_0x4713(){const _0x2eb8a4=['push','7006reONki','570534zkBDKJ','15RxSCmM','set','No\x20request\x20listener\x20for\x20event\x20\x22','1191780xXsxJg','off','58322KAaEPw','3300tKaTHo','1536qVOKwG','3248960RGYggL','listeners','requestListeners','emit','request','get','428918vTuKqR','once','56Crnxbx','3120UIANrH'];a14_0x4713=function(){return _0x2eb8a4;};return a14_0x4713();}function a14_0x2421(_0x302031,_0x2a8d7c){_0x302031=_0x302031-0x17f;const _0x4713a6=a14_0x4713();let _0x2421da=_0x4713a6[_0x302031];return _0x2421da;}const a14_0x43e518=a14_0x2421;(function(_0x3eaaa6,_0x5b8a8a){const _0x34bf3c=a14_0x2421,_0x13f22b=_0x3eaaa6();while(!![]){try{const _0x1c98a2=parseInt(_0x34bf3c(0x189))/0x1+-parseInt(_0x34bf3c(0x188))/0x2*(-parseInt(_0x34bf3c(0x18a))/0x3)+parseInt(_0x34bf3c(0x192))/0x4+-parseInt(_0x34bf3c(0x190))/0x5*(parseInt(_0x34bf3c(0x191))/0x6)+parseInt(_0x34bf3c(0x183))/0x7+-parseInt(_0x34bf3c(0x185))/0x8*(-parseInt(_0x34bf3c(0x18d))/0x9)+-parseInt(_0x34bf3c(0x186))/0xa*(parseInt(_0x34bf3c(0x18f))/0xb);if(_0x1c98a2===_0x5b8a8a)break;else _0x13f22b['push'](_0x13f22b['shift']());}catch(_0x476fdd){_0x13f22b['push'](_0x13f22b['shift']());}}}(a14_0x4713,0x8a047));export class EventBus{constructor(){const _0x390a61=a14_0x2421;this[_0x390a61(0x193)]=new Map(),this[_0x390a61(0x17f)]=new Map();}['on'](_0x5d24a2,_0x563433){const _0x28ad4f=a14_0x2421;!this[_0x28ad4f(0x193)]['has'](_0x5d24a2)&&this[_0x28ad4f(0x193)][_0x28ad4f(0x18b)](_0x5d24a2,[]),this[_0x28ad4f(0x193)]['get'](_0x5d24a2)[_0x28ad4f(0x187)](_0x563433);}[a14_0x43e518(0x184)](_0x1960db,_0x4d4e9a){const _0x463645=_0x43c52b=>{const _0x1d10c6=a14_0x2421;_0x4d4e9a(_0x43c52b),this[_0x1d10c6(0x18e)](_0x1960db,_0x463645);};this['on'](_0x1960db,_0x463645);}[a14_0x43e518(0x18e)](_0x9b3b62,_0x46d721){const _0x4fce12=a14_0x43e518,_0x16a827=this[_0x4fce12(0x193)][_0x4fce12(0x182)](_0x9b3b62);if(!_0x16a827)return;this[_0x4fce12(0x193)]['set'](_0x9b3b62,_0x16a827['filter'](_0x4b513b=>_0x4b513b!==_0x46d721));}[a14_0x43e518(0x180)](_0x1072cd,_0x180d66){const _0x256c68=a14_0x43e518,_0x391143=this[_0x256c68(0x193)][_0x256c68(0x182)](_0x1072cd)??[];_0x391143['forEach'](_0x88482a=>_0x88482a(_0x180d66));}['onRequest'](_0x3927ca,_0x4a3770){const _0x334f83=a14_0x43e518;this[_0x334f83(0x17f)][_0x334f83(0x18b)](_0x3927ca,_0x4a3770);}async[a14_0x43e518(0x181)](_0x31d108,_0x2f6a1c){const _0x48529f=a14_0x43e518,_0x3ef163=this[_0x48529f(0x17f)]['get'](_0x31d108);if(!_0x3ef163)throw new Error(_0x48529f(0x18c)+_0x31d108+'\x22');return await _0x3ef163(_0x2f6a1c);}}
@@ -1 +1 @@
1
- var a25_0x219bce=a25_0x546b;(function(_0x191833,_0x13205b){var _0x25e596=a25_0x546b,_0x4582b5=_0x191833();while(!![]){try{var _0x111bf2=-parseInt(_0x25e596(0x116))/0x1*(-parseInt(_0x25e596(0x10d))/0x2)+-parseInt(_0x25e596(0x119))/0x3+parseInt(_0x25e596(0x10f))/0x4+-parseInt(_0x25e596(0x111))/0x5+parseInt(_0x25e596(0x10e))/0x6+-parseInt(_0x25e596(0x113))/0x7*(parseInt(_0x25e596(0x110))/0x8)+-parseInt(_0x25e596(0x114))/0x9*(-parseInt(_0x25e596(0x115))/0xa);if(_0x111bf2===_0x13205b)break;else _0x4582b5['push'](_0x4582b5['shift']());}catch(_0x4f303d){_0x4582b5['push'](_0x4582b5['shift']());}}}(a25_0x10ac,0x5c39a));import a25_0x2e5374 from'./events/UserEvents.js';import a25_0x4f97aa from'./events/ClientEvents.js';function a25_0x546b(_0x126d13,_0x38be22){_0x126d13=_0x126d13-0x10d;var _0x10acd9=a25_0x10ac();var _0x546b7e=_0x10acd9[_0x126d13];return _0x546b7e;}import a25_0x59a2a5 from'./events/SupplierEvents.js';import a25_0x4b90b5 from'./events/ItemEvents.js';import a25_0x1286de from'./events/TaxEvents.js';import a25_0x30e017 from'./events/OrderEvents.js';import a25_0x45e9c0 from'./events/PreparationEvents.js';function a25_0x10ac(){var _0x22dd7f=['1374LpfKiY','2723088RLULjV','2028936GLhLAc','8RHvUnT','3618875BJFeBk','owl','2840719ahSURK','32400DbrejU','1220NtRjWZ','297RMweJN','bindEvents','tokenIsValide','290925NeMpsN','000001:\x20Invalid\x20Token.'];a25_0x10ac=function(){return _0x22dd7f;};return a25_0x10ac();}import a25_0x59ab3a from'./events/PurchaseEvents.js';import a25_0xbc4b8c from'./events/ReceptionEvents.js';import a25_0x35a15c from'./events/StockEvents.js';export class EventsDatabase{constructor(_0x376bbe){this['owl']=_0x376bbe,this['bindEvents']();}[a25_0x219bce(0x117)](){var _0x4970d4=a25_0x219bce;if(!this[_0x4970d4(0x112)][_0x4970d4(0x118)]())throw new Error(_0x4970d4(0x11a));a25_0x2e5374(this[_0x4970d4(0x112)]),a25_0x4f97aa(this[_0x4970d4(0x112)]),a25_0x59a2a5(this[_0x4970d4(0x112)]),a25_0x4b90b5(this[_0x4970d4(0x112)]),a25_0x1286de(this[_0x4970d4(0x112)]),a25_0x30e017(this['owl']),a25_0x45e9c0(this['owl']),a25_0x59ab3a(this[_0x4970d4(0x112)]),a25_0xbc4b8c(this['owl']),a25_0x35a15c(this[_0x4970d4(0x112)]);}}
1
+ var a25_0x125200=a25_0x4cc2;(function(_0x4564ff,_0x286967){var _0x2d02ee=a25_0x4cc2,_0x3d9241=_0x4564ff();while(!![]){try{var _0x430761=parseInt(_0x2d02ee(0x7c))/0x1*(parseInt(_0x2d02ee(0x7f))/0x2)+parseInt(_0x2d02ee(0x7e))/0x3*(parseInt(_0x2d02ee(0x84))/0x4)+-parseInt(_0x2d02ee(0x83))/0x5*(parseInt(_0x2d02ee(0x76))/0x6)+parseInt(_0x2d02ee(0x86))/0x7*(parseInt(_0x2d02ee(0x82))/0x8)+parseInt(_0x2d02ee(0x78))/0x9*(parseInt(_0x2d02ee(0x80))/0xa)+parseInt(_0x2d02ee(0x77))/0xb*(parseInt(_0x2d02ee(0x7d))/0xc)+-parseInt(_0x2d02ee(0x7b))/0xd;if(_0x430761===_0x286967)break;else _0x3d9241['push'](_0x3d9241['shift']());}catch(_0x31770a){_0x3d9241['push'](_0x3d9241['shift']());}}}(a25_0x49de,0xdf194));import a25_0x5e372b from'./events/UserEvents.js';import a25_0x52361a from'./events/ClientEvents.js';function a25_0x49de(){var _0x5e5583=['tokenIsValide','bindEvents','72195149DPEtAR','1MtzJQX','28392CFxIKA','5104569WiDOjr','2637496sepJAd','51690zJcSVZ','owl','1776DLGbrx','15aoMFyg','4YWGOOQ','000001:\x20Invalid\x20Token.','22757eYSaal','230118lMsZxw','6116PTRJkE','2655tWfNDq'];a25_0x49de=function(){return _0x5e5583;};return a25_0x49de();}import a25_0x39939e from'./events/SupplierEvents.js';import a25_0x3a94ed from'./events/ItemEvents.js';import a25_0x2e78f3 from'./events/TaxEvents.js';import a25_0x42e7c3 from'./events/OrderEvents.js';import a25_0x2c5c1d from'./events/PreparationEvents.js';import a25_0x35a16b from'./events/PurchaseEvents.js';import a25_0xfac75e from'./events/ReceptionEvents.js';import a25_0x43dbbe from'./events/StockEvents.js';function a25_0x4cc2(_0x3dba5d,_0x41f629){_0x3dba5d=_0x3dba5d-0x76;var _0x49deb4=a25_0x49de();var _0x4cc264=_0x49deb4[_0x3dba5d];return _0x4cc264;}export class EventsDatabase{constructor(_0x372a67){var _0x47955a=a25_0x4cc2;this[_0x47955a(0x81)]=_0x372a67,this[_0x47955a(0x7a)]();}[a25_0x125200(0x7a)](){var _0xc70921=a25_0x125200;if(!this['owl'][_0xc70921(0x79)]())throw new Error(_0xc70921(0x85));a25_0x5e372b(this['owl']),a25_0x52361a(this[_0xc70921(0x81)]),a25_0x39939e(this[_0xc70921(0x81)]),a25_0x3a94ed(this[_0xc70921(0x81)]),a25_0x2e78f3(this['owl']),a25_0x42e7c3(this[_0xc70921(0x81)]),a25_0x2c5c1d(this['owl']),a25_0x35a16b(this[_0xc70921(0x81)]),a25_0xfac75e(this[_0xc70921(0x81)]),a25_0x43dbbe(this[_0xc70921(0x81)]);}}
@@ -1 +1 @@
1
- function a26_0x1c62(_0x105bbb,_0x109188){_0x105bbb=_0x105bbb-0x89;var _0x2113e8=a26_0x2113();var _0x1c626f=_0x2113e8[_0x105bbb];return _0x1c626f;}(function(_0x303cc9,_0x760303){var _0x20ade6=a26_0x1c62,_0x4959ca=_0x303cc9();while(!![]){try{var _0x4d1d04=parseInt(_0x20ade6(0x93))/0x1*(-parseInt(_0x20ade6(0x8c))/0x2)+parseInt(_0x20ade6(0x91))/0x3+-parseInt(_0x20ade6(0x89))/0x4*(parseInt(_0x20ade6(0x8b))/0x5)+parseInt(_0x20ade6(0x95))/0x6*(parseInt(_0x20ade6(0x8f))/0x7)+parseInt(_0x20ade6(0x97))/0x8*(parseInt(_0x20ade6(0x8d))/0x9)+parseInt(_0x20ade6(0x96))/0xa*(-parseInt(_0x20ade6(0x8e))/0xb)+parseInt(_0x20ade6(0x92))/0xc*(-parseInt(_0x20ade6(0x90))/0xd);if(_0x4d1d04===_0x760303)break;else _0x4959ca['push'](_0x4959ca['shift']());}catch(_0x5e947f){_0x4959ca['push'](_0x4959ca['shift']());}}}(a26_0x2113,0xb1a9e));export class Manager{constructor(_0x233469){var _0x26ae5f=a26_0x1c62;this[_0x26ae5f(0x8a)]=_0x233469,this[_0x26ae5f(0x94)]=new Map();}}function a26_0x2113(){var _0x219ec7=['9sIzpaV','2700885jAewQn','8827dzzjiI','2899rASCHz','161496GlCWhp','25932bOiZhQ','1yWKQmz','cache','6162EbrwIh','10AjvHZG','7636312QQuLgq','1608184hHqrmx','owl','5gdPIXK','892448RGydup'];a26_0x2113=function(){return _0x219ec7;};return a26_0x2113();}
1
+ function a26_0x39a4(_0x1e56b5,_0x56e856){_0x1e56b5=_0x1e56b5-0x1b5;var _0x1c2768=a26_0x1c27();var _0x39a497=_0x1c2768[_0x1e56b5];return _0x39a497;}(function(_0x102959,_0x31eefe){var _0x189c1b=a26_0x39a4,_0x4e9fc0=_0x102959();while(!![]){try{var _0x488239=parseInt(_0x189c1b(0x1bf))/0x1+parseInt(_0x189c1b(0x1bc))/0x2*(-parseInt(_0x189c1b(0x1c0))/0x3)+parseInt(_0x189c1b(0x1bb))/0x4+parseInt(_0x189c1b(0x1b9))/0x5+-parseInt(_0x189c1b(0x1be))/0x6+-parseInt(_0x189c1b(0x1bd))/0x7*(parseInt(_0x189c1b(0x1ba))/0x8)+-parseInt(_0x189c1b(0x1b8))/0x9*(-parseInt(_0x189c1b(0x1b5))/0xa);if(_0x488239===_0x31eefe)break;else _0x4e9fc0['push'](_0x4e9fc0['shift']());}catch(_0x47599c){_0x4e9fc0['push'](_0x4e9fc0['shift']());}}}(a26_0x1c27,0x4bb41));export class Manager{constructor(_0x4a9cb7){var _0x7cc19a=a26_0x39a4;this[_0x7cc19a(0x1b7)]=_0x4a9cb7,this[_0x7cc19a(0x1b6)]=new Map();}}function a26_0x1c27(){var _0x43bdda=['4390tBEklT','cache','owl','3852RhgDDE','2645755aVDalj','8yBYqmh','1430876aaloOn','2236NOMlyL','4269349nmBPPT','1586964uGZYEQ','480896YYuFNB','996GIyRzw'];a26_0x1c27=function(){return _0x43bdda;};return a26_0x1c27();}
@@ -1 +1 @@
1
- const a15_0x5a8804=a15_0x2432;(function(_0x20786e,_0x3685e7){const _0x3b663d=a15_0x2432,_0x3a241a=_0x20786e();while(!![]){try{const _0x3a1944=parseInt(_0x3b663d(0x87))/0x1*(-parseInt(_0x3b663d(0x90))/0x2)+parseInt(_0x3b663d(0x7d))/0x3+parseInt(_0x3b663d(0x84))/0x4+-parseInt(_0x3b663d(0x76))/0x5+-parseInt(_0x3b663d(0x7c))/0x6+parseInt(_0x3b663d(0x89))/0x7+parseInt(_0x3b663d(0x92))/0x8;if(_0x3a1944===_0x3685e7)break;else _0x3a241a['push'](_0x3a241a['shift']());}catch(_0x3d57c3){_0x3a241a['push'](_0x3a241a['shift']());}}}(a15_0x35c7,0xdb46c));function a15_0x35c7(){const _0xb848d0=['2327984ceJoCz','client.read.some','client.deleted','46610WblFns','/search','5390693QiLhPp','application/json','200002:\x20Action\x20not\x20allowed.','CLIENT_DELETED','ADMIN','getCurrentUser','client.read.all','62xIPSxJ','statusText','16168456dBkfQH','stringify','hasPermission','200003:\x20Action\x20not\x20allowed.','POST','json','client.read','5928880chduUL','CLIENT_ALL','API\x20Error:\x20','onRequest','DELETE','CLIENT_READ','3956970PFXBtA','2445555bvXEen','client.created','events','200004:\x20Action\x20not\x20allowed.','http://localhost:5001/clients','client.updated','client'];a15_0x35c7=function(){return _0xb848d0;};return a15_0x35c7();}function a15_0x2432(_0x50e9c5,_0x271d34){_0x50e9c5=_0x50e9c5-0x71;const _0x35c7ea=a15_0x35c7();let _0x243289=_0x35c7ea[_0x50e9c5];return _0x243289;}const API_BASE=a15_0x5a8804(0x81);export default function bindClientEvents(_0x3a136c){const _0x7783ff=a15_0x5a8804;_0x3a136c[_0x7783ff(0x7f)][_0x7783ff(0x79)](_0x7783ff(0x7e),async _0x1deff3=>{const _0x4db756=_0x7783ff;if(!_0x3a136c[_0x4db756(0x8e)]()[_0x4db756(0x71)](_0x4db756(0x8d))&&!_0x3a136c[_0x4db756(0x8e)]()['hasPermission'](_0x4db756(0x77))&&!_0x3a136c[_0x4db756(0x8e)]()[_0x4db756(0x71)]('CLIENT_CREATED'))throw new Error('200001:\x20Action\x20not\x20allowed.');const _0x4e3a5a=await fetch(''+API_BASE,{'method':_0x4db756(0x73),'headers':{'Content-Type':'application/json'},'body':JSON[_0x4db756(0x93)](_0x1deff3[_0x4db756(0x83)])});if(!_0x4e3a5a['ok'])throw new Error(_0x4db756(0x78)+_0x4e3a5a[_0x4db756(0x91)]);const _0xaeabb4=await _0x4e3a5a['json']();return _0xaeabb4['id'];}),_0x3a136c[_0x7783ff(0x7f)][_0x7783ff(0x79)](_0x7783ff(0x75),async({id:_0x1de0ec})=>{const _0x8c4db1=_0x7783ff;if(!_0x3a136c[_0x8c4db1(0x8e)]()[_0x8c4db1(0x71)](_0x8c4db1(0x8d))&&!_0x3a136c['getCurrentUser']()[_0x8c4db1(0x71)](_0x8c4db1(0x77))&&!_0x3a136c[_0x8c4db1(0x8e)]()[_0x8c4db1(0x71)](_0x8c4db1(0x7b)))throw new Error('200002:\x20Action\x20not\x20allowed.');const _0x1d7f88=await fetch(API_BASE+'/'+_0x1de0ec);if(!_0x1d7f88['ok'])throw new Error(_0x8c4db1(0x78)+_0x1d7f88[_0x8c4db1(0x91)]);return await _0x1d7f88[_0x8c4db1(0x74)]();}),_0x3a136c[_0x7783ff(0x7f)][_0x7783ff(0x79)](_0x7783ff(0x8f),async()=>{const _0x19584d=_0x7783ff;if(!_0x3a136c['getCurrentUser']()[_0x19584d(0x71)](_0x19584d(0x8d))&&!_0x3a136c[_0x19584d(0x8e)]()[_0x19584d(0x71)](_0x19584d(0x77))&&!_0x3a136c[_0x19584d(0x8e)]()[_0x19584d(0x71)](_0x19584d(0x7b)))throw new Error(_0x19584d(0x8b));const _0x2d4c6e=await fetch(''+API_BASE);if(!_0x2d4c6e['ok'])throw new Error(_0x19584d(0x78)+_0x2d4c6e[_0x19584d(0x91)]);return await _0x2d4c6e[_0x19584d(0x74)]();}),_0x3a136c[_0x7783ff(0x7f)][_0x7783ff(0x79)](_0x7783ff(0x85),async _0x34c04c=>{const _0x340b6f=_0x7783ff;if(!_0x3a136c[_0x340b6f(0x8e)]()[_0x340b6f(0x71)](_0x340b6f(0x8d))&&!_0x3a136c['getCurrentUser']()[_0x340b6f(0x71)](_0x340b6f(0x77))&&!_0x3a136c['getCurrentUser']()[_0x340b6f(0x71)](_0x340b6f(0x7b)))throw new Error(_0x340b6f(0x8b));const _0xeff408=await fetch(API_BASE+_0x340b6f(0x88),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x340b6f(0x93)](_0x34c04c)});if(!_0xeff408['ok'])throw new Error('API\x20Error:\x20'+_0xeff408[_0x340b6f(0x91)]);return await _0xeff408[_0x340b6f(0x74)]();}),_0x3a136c[_0x7783ff(0x7f)][_0x7783ff(0x79)](_0x7783ff(0x82),async _0x4e284a=>{const _0x176f34=_0x7783ff;if(!_0x3a136c['getCurrentUser']()[_0x176f34(0x71)]('ADMIN')&&!_0x3a136c['getCurrentUser']()['hasPermission'](_0x176f34(0x77))&&!_0x3a136c['getCurrentUser']()['hasPermission']('CLIENT_UPDATED'))throw new Error(_0x176f34(0x72));const {where:_0xe07a7a,..._0x38233d}=_0x4e284a,_0x4a7427=await fetch(API_BASE+'/'+_0xe07a7a['id'],{'method':'PUT','headers':{'Content-Type':_0x176f34(0x8a)},'body':JSON[_0x176f34(0x93)](_0x38233d)});if(!_0x4a7427['ok'])throw new Error('API\x20Error:\x20'+_0x4a7427[_0x176f34(0x91)]);return await _0x4a7427[_0x176f34(0x74)]();}),_0x3a136c[_0x7783ff(0x7f)]['on'](_0x7783ff(0x86),async({id:_0x1441af})=>{const _0xb7f80e=_0x7783ff;if(!_0x3a136c[_0xb7f80e(0x8e)]()['hasPermission'](_0xb7f80e(0x8d))&&!_0x3a136c[_0xb7f80e(0x8e)]()['hasPermission'](_0xb7f80e(0x77))&&!_0x3a136c[_0xb7f80e(0x8e)]()[_0xb7f80e(0x71)](_0xb7f80e(0x8c)))throw new Error(_0xb7f80e(0x80));const _0x31354b=await fetch(API_BASE+'/'+_0x1441af,{'method':_0xb7f80e(0x7a)});if(!_0x31354b['ok']&&_0x31354b['status']!==0xcc)throw new Error('API\x20Error:\x20'+_0x31354b[_0xb7f80e(0x91)]);});}
1
+ const a15_0x28a411=a15_0x2a4a;function a15_0x3286(){const _0x3eb3cf=['CLIENT_CREATED','DELETE','/search','196351ItqVKJ','307284FcuuJn','200002:\x20Action\x20not\x20allowed.','application/json','client.read','events','client.read.some','json','1122608zgskWZ','5zbriCM','client.deleted','POST','1005rNsAlW','346041IvwThp','status','API\x20Error:\x20','146VhlXxg','hasPermission','stringify','56zkTVlr','getCurrentUser','28QMHUxa','200001:\x20Action\x20not\x20allowed.','http://localhost:5001/clients','200003:\x20Action\x20not\x20allowed.','CLIENT_READ','ADMIN','5541790QUqEQH','onRequest','client','CLIENT_DELETED','200004:\x20Action\x20not\x20allowed.','CLIENT_ALL','17814654XdyXZd','statusText','client.created','CLIENT_UPDATED'];a15_0x3286=function(){return _0x3eb3cf;};return a15_0x3286();}(function(_0x4eeebf,_0x1eb351){const _0x425053=a15_0x2a4a,_0x5aea79=_0x4eeebf();while(!![]){try{const _0x35113f=parseInt(_0x425053(0x1c2))/0x1+-parseInt(_0x425053(0x1d2))/0x2*(-parseInt(_0x425053(0x1ce))/0x3)+parseInt(_0x425053(0x1ca))/0x4*(-parseInt(_0x425053(0x1cb))/0x5)+-parseInt(_0x425053(0x1c3))/0x6*(parseInt(_0x425053(0x1d7))/0x7)+-parseInt(_0x425053(0x1d5))/0x8*(parseInt(_0x425053(0x1cf))/0x9)+-parseInt(_0x425053(0x1b5))/0xa+parseInt(_0x425053(0x1bb))/0xb;if(_0x35113f===_0x1eb351)break;else _0x5aea79['push'](_0x5aea79['shift']());}catch(_0x598c3a){_0x5aea79['push'](_0x5aea79['shift']());}}}(a15_0x3286,0x81c22));function a15_0x2a4a(_0x2cb7ca,_0xac62ac){_0x2cb7ca=_0x2cb7ca-0x1b5;const _0x3286a6=a15_0x3286();let _0x2a4a0f=_0x3286a6[_0x2cb7ca];return _0x2a4a0f;}const API_BASE=a15_0x28a411(0x1d9);export default function bindClientEvents(_0x3e4111){const _0x39b7df=a15_0x28a411;_0x3e4111[_0x39b7df(0x1c7)][_0x39b7df(0x1b6)](_0x39b7df(0x1bd),async _0x257742=>{const _0x385dd5=_0x39b7df;if(!_0x3e4111[_0x385dd5(0x1d6)]()[_0x385dd5(0x1d3)](_0x385dd5(0x1dc))&&!_0x3e4111[_0x385dd5(0x1d6)]()[_0x385dd5(0x1d3)](_0x385dd5(0x1ba))&&!_0x3e4111[_0x385dd5(0x1d6)]()[_0x385dd5(0x1d3)](_0x385dd5(0x1bf)))throw new Error(_0x385dd5(0x1d8));const _0x2077e5=await fetch(''+API_BASE,{'method':'POST','headers':{'Content-Type':_0x385dd5(0x1c5)},'body':JSON['stringify'](_0x257742[_0x385dd5(0x1b7)])});if(!_0x2077e5['ok'])throw new Error(_0x385dd5(0x1d1)+_0x2077e5[_0x385dd5(0x1bc)]);const _0xf672ca=await _0x2077e5['json']();return _0xf672ca['id'];}),_0x3e4111[_0x39b7df(0x1c7)]['onRequest'](_0x39b7df(0x1c6),async({id:_0x4118fd})=>{const _0x5cc129=_0x39b7df;if(!_0x3e4111[_0x5cc129(0x1d6)]()[_0x5cc129(0x1d3)](_0x5cc129(0x1dc))&&!_0x3e4111[_0x5cc129(0x1d6)]()[_0x5cc129(0x1d3)]('CLIENT_ALL')&&!_0x3e4111['getCurrentUser']()['hasPermission'](_0x5cc129(0x1db)))throw new Error('200002:\x20Action\x20not\x20allowed.');const _0x4dcd60=await fetch(API_BASE+'/'+_0x4118fd);if(!_0x4dcd60['ok'])throw new Error(_0x5cc129(0x1d1)+_0x4dcd60[_0x5cc129(0x1bc)]);return await _0x4dcd60[_0x5cc129(0x1c9)]();}),_0x3e4111[_0x39b7df(0x1c7)]['onRequest']('client.read.all',async()=>{const _0x381d15=_0x39b7df;if(!_0x3e4111['getCurrentUser']()[_0x381d15(0x1d3)](_0x381d15(0x1dc))&&!_0x3e4111[_0x381d15(0x1d6)]()[_0x381d15(0x1d3)]('CLIENT_ALL')&&!_0x3e4111['getCurrentUser']()[_0x381d15(0x1d3)](_0x381d15(0x1db)))throw new Error(_0x381d15(0x1c4));const _0x4b1754=await fetch(''+API_BASE);if(!_0x4b1754['ok'])throw new Error(_0x381d15(0x1d1)+_0x4b1754[_0x381d15(0x1bc)]);return await _0x4b1754[_0x381d15(0x1c9)]();}),_0x3e4111[_0x39b7df(0x1c7)][_0x39b7df(0x1b6)](_0x39b7df(0x1c8),async _0x3b77e0=>{const _0x2ab974=_0x39b7df;if(!_0x3e4111[_0x2ab974(0x1d6)]()[_0x2ab974(0x1d3)](_0x2ab974(0x1dc))&&!_0x3e4111['getCurrentUser']()[_0x2ab974(0x1d3)](_0x2ab974(0x1ba))&&!_0x3e4111['getCurrentUser']()[_0x2ab974(0x1d3)]('CLIENT_READ'))throw new Error(_0x2ab974(0x1c4));const _0x455621=await fetch(API_BASE+_0x2ab974(0x1c1),{'method':_0x2ab974(0x1cd),'headers':{'Content-Type':'application/json'},'body':JSON[_0x2ab974(0x1d4)](_0x3b77e0)});if(!_0x455621['ok'])throw new Error(_0x2ab974(0x1d1)+_0x455621[_0x2ab974(0x1bc)]);return await _0x455621[_0x2ab974(0x1c9)]();}),_0x3e4111['events'][_0x39b7df(0x1b6)]('client.updated',async _0xb5d2f5=>{const _0x4c22bd=_0x39b7df;if(!_0x3e4111[_0x4c22bd(0x1d6)]()[_0x4c22bd(0x1d3)](_0x4c22bd(0x1dc))&&!_0x3e4111['getCurrentUser']()[_0x4c22bd(0x1d3)](_0x4c22bd(0x1ba))&&!_0x3e4111['getCurrentUser']()[_0x4c22bd(0x1d3)](_0x4c22bd(0x1be)))throw new Error(_0x4c22bd(0x1da));const {where:_0x58fc82,..._0x292a24}=_0xb5d2f5,_0x519999=await fetch(API_BASE+'/'+_0x58fc82['id'],{'method':'PUT','headers':{'Content-Type':'application/json'},'body':JSON[_0x4c22bd(0x1d4)](_0x292a24)});if(!_0x519999['ok'])throw new Error(_0x4c22bd(0x1d1)+_0x519999[_0x4c22bd(0x1bc)]);return await _0x519999[_0x4c22bd(0x1c9)]();}),_0x3e4111[_0x39b7df(0x1c7)]['on'](_0x39b7df(0x1cc),async({id:_0x5783eb})=>{const _0x106af0=_0x39b7df;if(!_0x3e4111[_0x106af0(0x1d6)]()[_0x106af0(0x1d3)](_0x106af0(0x1dc))&&!_0x3e4111[_0x106af0(0x1d6)]()[_0x106af0(0x1d3)]('CLIENT_ALL')&&!_0x3e4111[_0x106af0(0x1d6)]()[_0x106af0(0x1d3)](_0x106af0(0x1b8)))throw new Error(_0x106af0(0x1b9));const _0x1f3ff8=await fetch(API_BASE+'/'+_0x5783eb,{'method':_0x106af0(0x1c0)});if(!_0x1f3ff8['ok']&&_0x1f3ff8[_0x106af0(0x1d0)]!==0xcc)throw new Error(_0x106af0(0x1d1)+_0x1f3ff8[_0x106af0(0x1bc)]);});}
@@ -1 +1 @@
1
- const a16_0x4f3e18=a16_0x3e88;function a16_0x7599(){const _0x12b7d1=['ITEM_UPDATED','8SmyHXd','events','http://localhost:5001/items','ITEM_READ','584mVkpts','400004:\x20Action\x20not\x20allowed.','/search','400001:\x20Action\x20not\x20allowed.','ITEM_CREATED','statusText','hasPermission','11325rEgjtb','item.read.some','item.created','1450476VTDyvp','item.read.all','getCurrentUser','8361871DaCQzi','2284360qfMzrQ','POST','stringify','API\x20Error:\x20','400003:\x20Action\x20not\x20allowed.','application/json','status','item','item.updated','7991496PpOazL','onRequest','6221435AVqmPS','400002:\x20Action\x20not\x20allowed.','json','355726NFXYGy','ITEM_ALL','ADMIN','ITEM_DELETED','item.read'];a16_0x7599=function(){return _0x12b7d1;};return a16_0x7599();}function a16_0x3e88(_0x2cb643,_0x21352f){_0x2cb643=_0x2cb643-0xb6;const _0x75996b=a16_0x7599();let _0x3e8880=_0x75996b[_0x2cb643];return _0x3e8880;}(function(_0x13c68d,_0x72b702){const _0x57365d=a16_0x3e88,_0x48ee7a=_0x13c68d();while(!![]){try{const _0x414a31=-parseInt(_0x57365d(0xb8))/0x1+-parseInt(_0x57365d(0xc2))/0x2*(-parseInt(_0x57365d(0xc9))/0x3)+parseInt(_0x57365d(0xd0))/0x4+parseInt(_0x57365d(0xdb))/0x5+parseInt(_0x57365d(0xcc))/0x6+parseInt(_0x57365d(0xcf))/0x7*(-parseInt(_0x57365d(0xbe))/0x8)+-parseInt(_0x57365d(0xd9))/0x9;if(_0x414a31===_0x72b702)break;else _0x48ee7a['push'](_0x48ee7a['shift']());}catch(_0x20a658){_0x48ee7a['push'](_0x48ee7a['shift']());}}}(a16_0x7599,0xb0130));const API_BASE=a16_0x4f3e18(0xc0);export default function bindItemEvents(_0x4c4e3d){const _0x323ab6=a16_0x4f3e18;_0x4c4e3d[_0x323ab6(0xbf)][_0x323ab6(0xda)](_0x323ab6(0xcb),async _0x1c3493=>{const _0x31dd2d=_0x323ab6;if(!_0x4c4e3d['getCurrentUser']()[_0x31dd2d(0xc8)]('ADMIN')&&!_0x4c4e3d[_0x31dd2d(0xce)]()['hasPermission'](_0x31dd2d(0xb9))&&!_0x4c4e3d[_0x31dd2d(0xce)]()[_0x31dd2d(0xc8)](_0x31dd2d(0xc6)))throw new Error(_0x31dd2d(0xc5));const _0x8e4aad=await fetch(''+API_BASE,{'method':_0x31dd2d(0xd1),'headers':{'Content-Type':_0x31dd2d(0xd5)},'body':JSON[_0x31dd2d(0xd2)](_0x1c3493[_0x31dd2d(0xd7)])});if(!_0x8e4aad['ok'])throw new Error(_0x31dd2d(0xd3)+_0x8e4aad[_0x31dd2d(0xc7)]);const _0x5e2a6b=await _0x8e4aad[_0x31dd2d(0xb7)]();return _0x5e2a6b['id'];}),_0x4c4e3d[_0x323ab6(0xbf)][_0x323ab6(0xda)](_0x323ab6(0xbc),async({id:_0x33d6cf})=>{const _0x4412ce=_0x323ab6;if(!_0x4c4e3d[_0x4412ce(0xce)]()[_0x4412ce(0xc8)](_0x4412ce(0xba))&&!_0x4c4e3d[_0x4412ce(0xce)]()[_0x4412ce(0xc8)](_0x4412ce(0xb9))&&!_0x4c4e3d['getCurrentUser']()[_0x4412ce(0xc8)](_0x4412ce(0xc1)))throw new Error(_0x4412ce(0xb6));const _0x2f201c=await fetch(API_BASE+'/'+_0x33d6cf);if(!_0x2f201c['ok'])throw new Error(_0x4412ce(0xd3)+_0x2f201c[_0x4412ce(0xc7)]);return await _0x2f201c['json']();}),_0x4c4e3d['events'][_0x323ab6(0xda)](_0x323ab6(0xcd),async()=>{const _0x3aee59=_0x323ab6;if(!_0x4c4e3d[_0x3aee59(0xce)]()[_0x3aee59(0xc8)](_0x3aee59(0xba))&&!_0x4c4e3d[_0x3aee59(0xce)]()[_0x3aee59(0xc8)]('ITEM_ALL')&&!_0x4c4e3d[_0x3aee59(0xce)]()[_0x3aee59(0xc8)]('ITEM_READ'))throw new Error(_0x3aee59(0xb6));const _0x561253=await fetch(''+API_BASE);if(!_0x561253['ok'])throw new Error(_0x3aee59(0xd3)+_0x561253['statusText']);return await _0x561253[_0x3aee59(0xb7)]();}),_0x4c4e3d['events'][_0x323ab6(0xda)](_0x323ab6(0xca),async _0x2181e5=>{const _0x482028=_0x323ab6;if(!_0x4c4e3d[_0x482028(0xce)]()[_0x482028(0xc8)](_0x482028(0xba))&&!_0x4c4e3d['getCurrentUser']()[_0x482028(0xc8)](_0x482028(0xb9))&&!_0x4c4e3d['getCurrentUser']()[_0x482028(0xc8)](_0x482028(0xc1)))throw new Error(_0x482028(0xb6));const _0xdd10a1=await fetch(API_BASE+_0x482028(0xc4),{'method':_0x482028(0xd1),'headers':{'Content-Type':_0x482028(0xd5)},'body':JSON[_0x482028(0xd2)](_0x2181e5)});if(!_0xdd10a1['ok'])throw new Error(_0x482028(0xd3)+_0xdd10a1[_0x482028(0xc7)]);return await _0xdd10a1[_0x482028(0xb7)]();}),_0x4c4e3d[_0x323ab6(0xbf)][_0x323ab6(0xda)](_0x323ab6(0xd8),async _0x5ef1a9=>{const _0x40d02e=_0x323ab6;if(!_0x4c4e3d[_0x40d02e(0xce)]()[_0x40d02e(0xc8)](_0x40d02e(0xba))&&!_0x4c4e3d[_0x40d02e(0xce)]()[_0x40d02e(0xc8)](_0x40d02e(0xb9))&&!_0x4c4e3d[_0x40d02e(0xce)]()[_0x40d02e(0xc8)](_0x40d02e(0xbd)))throw new Error(_0x40d02e(0xd4));const {where:_0x197cfa,..._0x5529f1}=_0x5ef1a9,_0x1290d2=await fetch(API_BASE+'/'+_0x197cfa['id'],{'method':'PUT','headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x5529f1)});if(!_0x1290d2['ok'])throw new Error('API\x20Error:\x20'+_0x1290d2[_0x40d02e(0xc7)]);return await _0x1290d2['json']();}),_0x4c4e3d['events']['on']('item.deleted',async({id:_0x452d5d})=>{const _0x5e7cb6=_0x323ab6;if(!_0x4c4e3d['getCurrentUser']()[_0x5e7cb6(0xc8)](_0x5e7cb6(0xba))&&!_0x4c4e3d[_0x5e7cb6(0xce)]()[_0x5e7cb6(0xc8)](_0x5e7cb6(0xb9))&&!_0x4c4e3d['getCurrentUser']()['hasPermission'](_0x5e7cb6(0xbb)))throw new Error(_0x5e7cb6(0xc3));const _0x1089bb=await fetch(API_BASE+'/'+_0x452d5d,{'method':'DELETE'});if(!_0x1089bb['ok']&&_0x1089bb[_0x5e7cb6(0xd6)]!==0xcc)throw new Error(_0x5e7cb6(0xd3)+_0x1089bb[_0x5e7cb6(0xc7)]);});}
1
+ function a16_0x2ce9(_0x134aab,_0x2c2461){_0x134aab=_0x134aab-0x158;const _0x255f92=a16_0x255f();let _0x2ce9e0=_0x255f92[_0x134aab];return _0x2ce9e0;}function a16_0x255f(){const _0x1e6e4f=['item.read','3LqWqmJ','ITEM_UPDATED','52epMIMU','stringify','400002:\x20Action\x20not\x20allowed.','onRequest','item.updated','1354745kdUxTO','ITEM_READ','ADMIN','8714BRHqDv','ITEM_DELETED','38120dzvWxl','status','760165oriaTF','getCurrentUser','application/json','hasPermission','216180pKhbWO','item.read.all','json','616ikpIUe','400003:\x20Action\x20not\x20allowed.','events','item.read.some','400004:\x20Action\x20not\x20allowed.','statusText','ITEM_CREATED','6aCXPQs','36132NemxXk','DELETE','item','400001:\x20Action\x20not\x20allowed.','API\x20Error:\x20','579448ITYDhS','POST','item.deleted','ITEM_ALL','/search'];a16_0x255f=function(){return _0x1e6e4f;};return a16_0x255f();}(function(_0x25c0e2,_0x253357){const _0x42e236=a16_0x2ce9,_0x3f0a75=_0x25c0e2();while(!![]){try{const _0x134b88=parseInt(_0x42e236(0x166))/0x1*(-parseInt(_0x42e236(0x15e))/0x2)+-parseInt(_0x42e236(0x15c))/0x3*(-parseInt(_0x42e236(0x179))/0x4)+-parseInt(_0x42e236(0x16a))/0x5*(parseInt(_0x42e236(0x178))/0x6)+parseInt(_0x42e236(0x163))/0x7+parseInt(_0x42e236(0x17e))/0x8+parseInt(_0x42e236(0x16e))/0x9+parseInt(_0x42e236(0x168))/0xa*(parseInt(_0x42e236(0x171))/0xb);if(_0x134b88===_0x253357)break;else _0x3f0a75['push'](_0x3f0a75['shift']());}catch(_0x5be9f2){_0x3f0a75['push'](_0x3f0a75['shift']());}}}(a16_0x255f,0x20b06));const API_BASE='http://localhost:5001/items';export default function bindItemEvents(_0x4c3b28){const _0x56eff7=a16_0x2ce9;_0x4c3b28['events'][_0x56eff7(0x161)]('item.created',async _0x3f99fa=>{const _0x1f6f47=_0x56eff7;if(!_0x4c3b28[_0x1f6f47(0x16b)]()[_0x1f6f47(0x16d)]('ADMIN')&&!_0x4c3b28[_0x1f6f47(0x16b)]()[_0x1f6f47(0x16d)](_0x1f6f47(0x159))&&!_0x4c3b28[_0x1f6f47(0x16b)]()[_0x1f6f47(0x16d)](_0x1f6f47(0x177)))throw new Error(_0x1f6f47(0x17c));const _0x4de409=await fetch(''+API_BASE,{'method':_0x1f6f47(0x17f),'headers':{'Content-Type':'application/json'},'body':JSON[_0x1f6f47(0x15f)](_0x3f99fa[_0x1f6f47(0x17b)])});if(!_0x4de409['ok'])throw new Error(_0x1f6f47(0x17d)+_0x4de409[_0x1f6f47(0x176)]);const _0x22747b=await _0x4de409[_0x1f6f47(0x170)]();return _0x22747b['id'];}),_0x4c3b28[_0x56eff7(0x173)][_0x56eff7(0x161)](_0x56eff7(0x15b),async({id:_0x171e1b})=>{const _0x56d1bb=_0x56eff7;if(!_0x4c3b28[_0x56d1bb(0x16b)]()[_0x56d1bb(0x16d)]('ADMIN')&&!_0x4c3b28[_0x56d1bb(0x16b)]()[_0x56d1bb(0x16d)](_0x56d1bb(0x159))&&!_0x4c3b28['getCurrentUser']()['hasPermission']('ITEM_READ'))throw new Error(_0x56d1bb(0x160));const _0x3c85f2=await fetch(API_BASE+'/'+_0x171e1b);if(!_0x3c85f2['ok'])throw new Error(_0x56d1bb(0x17d)+_0x3c85f2['statusText']);return await _0x3c85f2[_0x56d1bb(0x170)]();}),_0x4c3b28[_0x56eff7(0x173)][_0x56eff7(0x161)](_0x56eff7(0x16f),async()=>{const _0x3e7795=_0x56eff7;if(!_0x4c3b28[_0x3e7795(0x16b)]()[_0x3e7795(0x16d)](_0x3e7795(0x165))&&!_0x4c3b28['getCurrentUser']()[_0x3e7795(0x16d)](_0x3e7795(0x159))&&!_0x4c3b28['getCurrentUser']()['hasPermission'](_0x3e7795(0x164)))throw new Error(_0x3e7795(0x160));const _0x183954=await fetch(''+API_BASE);if(!_0x183954['ok'])throw new Error(_0x3e7795(0x17d)+_0x183954['statusText']);return await _0x183954[_0x3e7795(0x170)]();}),_0x4c3b28[_0x56eff7(0x173)][_0x56eff7(0x161)](_0x56eff7(0x174),async _0x2a59ab=>{const _0x32647c=_0x56eff7;if(!_0x4c3b28['getCurrentUser']()['hasPermission'](_0x32647c(0x165))&&!_0x4c3b28[_0x32647c(0x16b)]()['hasPermission'](_0x32647c(0x159))&&!_0x4c3b28[_0x32647c(0x16b)]()[_0x32647c(0x16d)](_0x32647c(0x164)))throw new Error(_0x32647c(0x160));const _0xeb437c=await fetch(API_BASE+_0x32647c(0x15a),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x32647c(0x15f)](_0x2a59ab)});if(!_0xeb437c['ok'])throw new Error(_0x32647c(0x17d)+_0xeb437c[_0x32647c(0x176)]);return await _0xeb437c[_0x32647c(0x170)]();}),_0x4c3b28[_0x56eff7(0x173)]['onRequest'](_0x56eff7(0x162),async _0x191535=>{const _0x59d3dd=_0x56eff7;if(!_0x4c3b28[_0x59d3dd(0x16b)]()[_0x59d3dd(0x16d)]('ADMIN')&&!_0x4c3b28[_0x59d3dd(0x16b)]()[_0x59d3dd(0x16d)](_0x59d3dd(0x159))&&!_0x4c3b28[_0x59d3dd(0x16b)]()[_0x59d3dd(0x16d)](_0x59d3dd(0x15d)))throw new Error(_0x59d3dd(0x172));const {where:_0x21ee54,..._0x47bc1e}=_0x191535,_0x3d3268=await fetch(API_BASE+'/'+_0x21ee54['id'],{'method':'PUT','headers':{'Content-Type':_0x59d3dd(0x16c)},'body':JSON[_0x59d3dd(0x15f)](_0x47bc1e)});if(!_0x3d3268['ok'])throw new Error(_0x59d3dd(0x17d)+_0x3d3268[_0x59d3dd(0x176)]);return await _0x3d3268['json']();}),_0x4c3b28[_0x56eff7(0x173)]['on'](_0x56eff7(0x158),async({id:_0x18c90a})=>{const _0x4e23c8=_0x56eff7;if(!_0x4c3b28[_0x4e23c8(0x16b)]()[_0x4e23c8(0x16d)](_0x4e23c8(0x165))&&!_0x4c3b28[_0x4e23c8(0x16b)]()['hasPermission'](_0x4e23c8(0x159))&&!_0x4c3b28['getCurrentUser']()[_0x4e23c8(0x16d)](_0x4e23c8(0x167)))throw new Error(_0x4e23c8(0x175));const _0x4d72e5=await fetch(API_BASE+'/'+_0x18c90a,{'method':_0x4e23c8(0x17a)});if(!_0x4d72e5['ok']&&_0x4d72e5[_0x4e23c8(0x169)]!==0xcc)throw new Error('API\x20Error:\x20'+_0x4d72e5['statusText']);});}