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