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.
- 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 +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a39_0x37cb(){const _0x26a333=['values','34004YCGzcz','length','client.updated','6gMpVRs','client.read.all','139806wCqZqw','15ggnLDH','client.error','1462629mgFoLG','owl','client.cached.some','000001:\x20Invalid\x20Token.','request','has','client.cached','55GJhKtC','emit','set','client.read','get','client.read.some','88BIuZuo','events','fetchAll','647810JOioYh','client.cached.all','735860SIgpvm','then','new','3qxJgmF','17023068IWOZzj','fetch','delete','client.created','some','cache','215734RxzPiG','tokenIsValide'];a39_0x37cb=function(){return _0x26a333;};return a39_0x37cb();}const a39_0x3434cf=a39_0x4927;function a39_0x4927(_0x562539,_0x5a46ad){_0x562539=_0x562539-0x1e6;const _0x37cbd4=a39_0x37cb();let _0x49272f=_0x37cbd4[_0x562539];return _0x49272f;}(function(_0x2e3c29,_0x1e7fea){const _0x540830=a39_0x4927,_0x5406dd=_0x2e3c29();while(!![]){try{const _0x24e1a9=-parseInt(_0x540830(0x20c))/0x1*(parseInt(_0x540830(0x1ec))/0x2)+-parseInt(_0x540830(0x1f5))/0x3*(parseInt(_0x540830(0x1ef))/0x4)+-parseInt(_0x540830(0x209))/0x5*(parseInt(_0x540830(0x1f2))/0x6)+-parseInt(_0x540830(0x1f7))/0x7+parseInt(_0x540830(0x204))/0x8*(-parseInt(_0x540830(0x1f4))/0x9)+-parseInt(_0x540830(0x207))/0xa*(parseInt(_0x540830(0x1fe))/0xb)+parseInt(_0x540830(0x1e6))/0xc;if(_0x24e1a9===_0x1e7fea)break;else _0x5406dd['push'](_0x5406dd['shift']());}catch(_0x1b2c56){_0x5406dd['push'](_0x5406dd['shift']());}}}(a39_0x37cb,0x31371));import{Manager}from'../core/Manager.js';import{Client}from'../entities/Client.js';export class ClientManager extends Manager{async[a39_0x3434cf(0x1e7)](_0x2b44f3){const _0x5a3fd8=a39_0x3434cf;try{if(!this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x1ed)]())throw new Error(_0x5a3fd8(0x1fa));if(this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x1fc)](_0x2b44f3))return this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x202)](_0x2b44f3);const _0x3cff38=await this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x205)][_0x5a3fd8(0x1fb)](_0x5a3fd8(0x201),{'id':_0x2b44f3}),_0x41fd7d=new Client(this[_0x5a3fd8(0x1f8)],_0x3cff38);return this[_0x5a3fd8(0x1eb)][_0x5a3fd8(0x200)](_0x2b44f3,_0x41fd7d),this['owl']['events'][_0x5a3fd8(0x1ff)](_0x5a3fd8(0x1fd),_0x41fd7d),_0x41fd7d;}catch(_0x5011a2){this[_0x5a3fd8(0x1f8)][_0x5a3fd8(0x205)][_0x5a3fd8(0x1ff)](_0x5a3fd8(0x1f6),{'error':_0x5011a2});throw _0x5011a2;}}async[a39_0x3434cf(0x206)](){const _0xbec429=a39_0x3434cf;try{if(!this[_0xbec429(0x1f8)][_0xbec429(0x1ed)]())throw new Error(_0xbec429(0x1fa));const _0x3e30c8=await this[_0xbec429(0x1f8)][_0xbec429(0x205)][_0xbec429(0x1fb)](_0xbec429(0x1f3),{});for(let _0x3e00e7=0x0;_0x3e00e7<_0x3e30c8[_0xbec429(0x1f0)];_0x3e00e7++){const _0x376222=new Client(this[_0xbec429(0x1f8)],_0x3e30c8[_0x3e00e7]);this[_0xbec429(0x1eb)][_0xbec429(0x200)](_0x376222['id'],_0x376222);}return this[_0xbec429(0x1f8)][_0xbec429(0x205)][_0xbec429(0x1ff)](_0xbec429(0x208),this['cache'][_0xbec429(0x1ee)]()),this[_0xbec429(0x1eb)][_0xbec429(0x1ee)]();}catch(_0x4a50ab){this[_0xbec429(0x1f8)]['events'][_0xbec429(0x1ff)](_0xbec429(0x1f6),{'error':_0x4a50ab});throw _0x4a50ab;}}async[a39_0x3434cf(0x1ea)](_0x413fd5){const _0x22027c=a39_0x3434cf;try{if(!this[_0x22027c(0x1f8)][_0x22027c(0x1ed)]())throw new Error('000001:\x20Invalid\x20Token.');const _0xcc7cf2=await this[_0x22027c(0x1f8)]['events'][_0x22027c(0x1fb)](_0x22027c(0x203),_0x413fd5);for(let _0x2531f1=0x0;_0x2531f1<_0xcc7cf2[_0x22027c(0x1f0)];_0x2531f1++){const _0x40b63c=new Client(this[_0x22027c(0x1f8)],_0xcc7cf2[_0x2531f1]);this['cache'][_0x22027c(0x200)](_0x40b63c['id'],_0x40b63c);}return this[_0x22027c(0x1f8)][_0x22027c(0x205)][_0x22027c(0x1ff)](_0x22027c(0x1f9),_0xcc7cf2),_0xcc7cf2;}catch(_0x31b0f6){this[_0x22027c(0x1f8)][_0x22027c(0x205)][_0x22027c(0x1ff)](_0x22027c(0x1f6),{'error':_0x31b0f6});throw _0x31b0f6;}}async[a39_0x3434cf(0x20b)](_0x47bdec){const _0xf1ad42=a39_0x3434cf;try{if(!this[_0xf1ad42(0x1f8)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x192dfe=await this['owl'][_0xf1ad42(0x205)][_0xf1ad42(0x1fb)](_0xf1ad42(0x1e9),{'client':_0x47bdec});_0x47bdec['id']=_0x192dfe;const _0x274d51=new Client(this['owl'],_0x47bdec);return this[_0xf1ad42(0x1eb)][_0xf1ad42(0x200)](_0x274d51['id'],_0x274d51),_0x274d51;}catch(_0x404764){this[_0xf1ad42(0x1f8)][_0xf1ad42(0x205)][_0xf1ad42(0x1ff)](_0xf1ad42(0x1f6),{'error':_0x404764});throw _0x404764;}}async['modify'](_0x52298e,_0x2f93f0){const _0x50f896=a39_0x3434cf;try{if(!this[_0x50f896(0x1f8)][_0x50f896(0x1ed)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x50f896(0x1f8)][_0x50f896(0x205)][_0x50f896(0x1fb)](_0x50f896(0x1f1),_0x2f93f0)[_0x50f896(0x20a)](_0x19ca00=>{const _0x1f4274=_0x50f896;this[_0x1f4274(0x1eb)]['set'](_0x52298e,_0x19ca00);});}catch(_0x3c53be){this[_0x50f896(0x1f8)][_0x50f896(0x205)][_0x50f896(0x1ff)](_0x50f896(0x1f6),{'error':_0x3c53be});throw _0x3c53be;}}async[a39_0x3434cf(0x1e8)](_0x2319e4){const _0x292820=a39_0x3434cf;try{if(!this[_0x292820(0x1f8)][_0x292820(0x1ed)]())throw new Error(_0x292820(0x1fa));await this[_0x292820(0x1f8)][_0x292820(0x205)]['emit']('client.deleted',{'id':_0x2319e4}),this['cache'][_0x292820(0x1e8)](_0x2319e4);}catch(_0x4c3b9e){this[_0x292820(0x1f8)][_0x292820(0x205)][_0x292820(0x1ff)]('client.error',{'error':_0x4c3b9e});throw _0x4c3b9e;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x3aa694=a40_0x11a1;function a40_0x4e4b(){const _0x496449=['317409hFcRPa','length','item.deleted','fetchAll','27914427mKlWoD','new','2337035dwClRb','get','item.read','item.cached','events','delete','values','2990428WjcwMk','request','cache','item.read.all','48302uacljm','then','set','modify','8bvHvqk','item.error','emit','owl','item.cached.all','000001:\x20Invalid\x20Token.','6202854YQShsn','6505765IEfqOM','129ATpWeX','item.updated','has','tokenIsValide','item.read.some','some'];a40_0x4e4b=function(){return _0x496449;};return a40_0x4e4b();}function a40_0x11a1(_0x4b4ac6,_0x119b87){_0x4b4ac6=_0x4b4ac6-0xa9;const _0x4e4b3f=a40_0x4e4b();let _0x11a1b5=_0x4e4b3f[_0x4b4ac6];return _0x11a1b5;}(function(_0x527bec,_0x26f357){const _0x4e9f43=a40_0x11a1,_0x4b7eaa=_0x527bec();while(!![]){try{const _0x289646=-parseInt(_0x4e9f43(0xbe))/0x1+-parseInt(_0x4e9f43(0xac))/0x2*(-parseInt(_0x4e9f43(0xb8))/0x3)+-parseInt(_0x4e9f43(0xcb))/0x4+-parseInt(_0x4e9f43(0xc4))/0x5+-parseInt(_0x4e9f43(0xb6))/0x6+-parseInt(_0x4e9f43(0xb7))/0x7+parseInt(_0x4e9f43(0xb0))/0x8*(parseInt(_0x4e9f43(0xc2))/0x9);if(_0x289646===_0x26f357)break;else _0x4b7eaa['push'](_0x4b7eaa['shift']());}catch(_0x398b2f){_0x4b7eaa['push'](_0x4b7eaa['shift']());}}}(a40_0x4e4b,0x9d575));import{Manager}from'../core/Manager.js';import{Item}from'../entities/Item.js';export class ItemManager extends Manager{async['fetch'](_0x46f66b){const _0x2ea0f8=a40_0x11a1;try{if(!this[_0x2ea0f8(0xb3)]['tokenIsValide']())throw new Error(_0x2ea0f8(0xb5));if(this[_0x2ea0f8(0xaa)][_0x2ea0f8(0xba)](_0x46f66b))return this[_0x2ea0f8(0xaa)][_0x2ea0f8(0xc5)](_0x46f66b);const _0x5d947c=await this[_0x2ea0f8(0xb3)][_0x2ea0f8(0xc8)][_0x2ea0f8(0xa9)](_0x2ea0f8(0xc6),{'id':_0x46f66b}),_0x5e90dc=new Item(this['owl'],_0x5d947c);return this['cache'][_0x2ea0f8(0xae)](_0x46f66b,_0x5e90dc),this[_0x2ea0f8(0xb3)][_0x2ea0f8(0xc8)][_0x2ea0f8(0xb2)](_0x2ea0f8(0xc7),_0x5e90dc),_0x5e90dc;}catch(_0xbecd8d){this['owl'][_0x2ea0f8(0xc8)][_0x2ea0f8(0xb2)](_0x2ea0f8(0xb1),{'error':_0xbecd8d});throw _0xbecd8d;}}async[a40_0x3aa694(0xc1)](){const _0x235f8a=a40_0x3aa694;try{if(!this[_0x235f8a(0xb3)]['tokenIsValide']())throw new Error(_0x235f8a(0xb5));const _0x20aa42=await this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xa9)](_0x235f8a(0xab),{});for(let _0x4548d1=0x0;_0x4548d1<_0x20aa42[_0x235f8a(0xbf)];_0x4548d1++){const _0x565829=new Item(this['owl'],_0x20aa42[_0x4548d1]);this[_0x235f8a(0xaa)][_0x235f8a(0xae)](_0x565829['id'],_0x565829);}return this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xb2)](_0x235f8a(0xb4),this['cache'][_0x235f8a(0xca)]()),this[_0x235f8a(0xaa)][_0x235f8a(0xca)]();}catch(_0x439e68){this[_0x235f8a(0xb3)][_0x235f8a(0xc8)][_0x235f8a(0xb2)]('item.error',{'error':_0x439e68});throw _0x439e68;}}async[a40_0x3aa694(0xbd)](_0x5bc122){const _0x2bf665=a40_0x3aa694;try{if(!this[_0x2bf665(0xb3)][_0x2bf665(0xbb)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4b100e=await this[_0x2bf665(0xb3)][_0x2bf665(0xc8)][_0x2bf665(0xa9)](_0x2bf665(0xbc),_0x5bc122);for(let _0x4c0d9c=0x0;_0x4c0d9c<_0x4b100e[_0x2bf665(0xbf)];_0x4c0d9c++){const _0x1830e9=new Item(this['owl'],_0x4b100e[_0x4c0d9c]);this['cache']['set'](_0x1830e9['id'],_0x1830e9);}return this[_0x2bf665(0xb3)]['events']['emit']('item.cached.some',_0x4b100e),_0x4b100e;}catch(_0x43d279){this[_0x2bf665(0xb3)]['events'][_0x2bf665(0xb2)](_0x2bf665(0xb1),{'error':_0x43d279});throw _0x43d279;}}async[a40_0x3aa694(0xc3)](_0x1a9d56){const _0x14030d=a40_0x3aa694;try{if(!this[_0x14030d(0xb3)][_0x14030d(0xbb)]())throw new Error(_0x14030d(0xb5));const _0x182a13=await this[_0x14030d(0xb3)][_0x14030d(0xc8)][_0x14030d(0xa9)]('item.created',{'item':_0x1a9d56});_0x1a9d56['id']=_0x182a13;const _0x26f565=new Item(this['owl'],_0x1a9d56);return this[_0x14030d(0xaa)]['set'](_0x26f565['id'],_0x26f565),_0x26f565;}catch(_0xfd7641){this[_0x14030d(0xb3)][_0x14030d(0xc8)][_0x14030d(0xb2)](_0x14030d(0xb1),{'error':_0xfd7641});throw _0xfd7641;}}async[a40_0x3aa694(0xaf)](_0x12bea0,_0x13c04d){const _0x58cbee=a40_0x3aa694;try{if(!this[_0x58cbee(0xb3)][_0x58cbee(0xbb)]())throw new Error(_0x58cbee(0xb5));await this[_0x58cbee(0xb3)][_0x58cbee(0xc8)][_0x58cbee(0xa9)](_0x58cbee(0xb9),_0x13c04d)[_0x58cbee(0xad)](_0xff6482=>{const _0x3e4bf4=_0x58cbee;this[_0x3e4bf4(0xaa)][_0x3e4bf4(0xae)](_0x12bea0,_0xff6482);});}catch(_0x4e4a86){this[_0x58cbee(0xb3)]['events']['emit'](_0x58cbee(0xb1),{'error':_0x4e4a86});throw _0x4e4a86;}}async[a40_0x3aa694(0xc9)](_0xec543){const _0x1627bf=a40_0x3aa694;try{if(!this[_0x1627bf(0xb3)][_0x1627bf(0xbb)]())throw new Error(_0x1627bf(0xb5));await this[_0x1627bf(0xb3)][_0x1627bf(0xc8)][_0x1627bf(0xb2)](_0x1627bf(0xc0),{'id':_0xec543}),this['cache'][_0x1627bf(0xc9)](_0xec543);}catch(_0x1f03de){this[_0x1627bf(0xb3)][_0x1627bf(0xc8)]['emit'](_0x1627bf(0xb1),{'error':_0x1f03de});throw _0x1f03de;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a41_0x139d(_0x7dc955,_0x5c76d0){_0x7dc955=_0x7dc955-0x1be;const _0x28da24=a41_0x28da();let _0x139def=_0x28da24[_0x7dc955];return _0x139def;}const a41_0x2cfe11=a41_0x139d;(function(_0x55f21b,_0x38dc12){const _0x50131e=a41_0x139d,_0xf9a011=_0x55f21b();while(!![]){try{const _0x304f68=parseInt(_0x50131e(0x1c5))/0x1+-parseInt(_0x50131e(0x1d3))/0x2*(-parseInt(_0x50131e(0x1c1))/0x3)+parseInt(_0x50131e(0x1c4))/0x4*(parseInt(_0x50131e(0x1c3))/0x5)+-parseInt(_0x50131e(0x1cf))/0x6+-parseInt(_0x50131e(0x1d2))/0x7*(-parseInt(_0x50131e(0x1d8))/0x8)+-parseInt(_0x50131e(0x1d6))/0x9+parseInt(_0x50131e(0x1c7))/0xa;if(_0x304f68===_0x38dc12)break;else _0xf9a011['push'](_0xf9a011['shift']());}catch(_0x11f42e){_0xf9a011['push'](_0xf9a011['shift']());}}}(a41_0x28da,0x9d179));import{Manager}from'../core/Manager.js';function a41_0x28da(){const _0x217b4d=['fetch','fetchAll','set','some','cache','order.updated','order.read.all','order.read','order.read.some','has','231HQCKuq','get','5TNCxuW','998312hhXtXr','691491GaSnnG','length','3308580XKmGaF','delete','order.cached','owl','emit','000001:\x20Invalid\x20Token.','request','order.error','2218068SUIFcL','events','tokenIsValide','46522VdSZgq','7658YoFNqI','order.created','values','5580837MYqsuC','then','80QNxNEY','order.cached.all'];a41_0x28da=function(){return _0x217b4d;};return a41_0x28da();}import{Order}from'../entities/Order.js';export class OrderManager extends Manager{async[a41_0x2cfe11(0x1da)](_0x2297c2){const _0x49df88=a41_0x2cfe11;try{if(!this[_0x49df88(0x1ca)][_0x49df88(0x1d1)]())throw new Error(_0x49df88(0x1cc));if(this['cache'][_0x49df88(0x1c0)](_0x2297c2))return this[_0x49df88(0x1de)][_0x49df88(0x1c2)](_0x2297c2);const _0x376ef9=await this[_0x49df88(0x1ca)][_0x49df88(0x1d0)]['request'](_0x49df88(0x1be),{'id':_0x2297c2}),_0x4a4c2c=new Order(this['owl'],_0x376ef9);return this['cache']['set'](_0x2297c2,_0x4a4c2c),this[_0x49df88(0x1ca)]['events'][_0x49df88(0x1cb)](_0x49df88(0x1c9),_0x4a4c2c),_0x4a4c2c;}catch(_0xab1fd){this[_0x49df88(0x1ca)][_0x49df88(0x1d0)]['emit'](_0x49df88(0x1ce),{'error':_0xab1fd});throw _0xab1fd;}}async[a41_0x2cfe11(0x1db)](){const _0x5eeb08=a41_0x2cfe11;try{if(!this[_0x5eeb08(0x1ca)][_0x5eeb08(0x1d1)]())throw new Error(_0x5eeb08(0x1cc));const _0x1ba5f0=await this[_0x5eeb08(0x1ca)]['events'][_0x5eeb08(0x1cd)](_0x5eeb08(0x1e0),{});for(let _0x245860=0x0;_0x245860<_0x1ba5f0[_0x5eeb08(0x1c6)];_0x245860++){const _0x44a749=new Order(this['owl'],_0x1ba5f0[_0x245860]);this[_0x5eeb08(0x1de)][_0x5eeb08(0x1dc)](_0x44a749['id'],_0x44a749);}return this['owl']['events']['emit'](_0x5eeb08(0x1d9),this[_0x5eeb08(0x1de)][_0x5eeb08(0x1d5)]()),this[_0x5eeb08(0x1de)][_0x5eeb08(0x1d5)]();}catch(_0x5c1d18){this['owl'][_0x5eeb08(0x1d0)]['emit'](_0x5eeb08(0x1ce),{'error':_0x5c1d18});throw _0x5c1d18;}}async[a41_0x2cfe11(0x1dd)](_0x4d98fa){const _0x2d4b18=a41_0x2cfe11;try{if(!this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d1)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x3ed761=await this['owl'][_0x2d4b18(0x1d0)][_0x2d4b18(0x1cd)](_0x2d4b18(0x1bf),_0x4d98fa);for(let _0x21775a=0x0;_0x21775a<_0x3ed761[_0x2d4b18(0x1c6)];_0x21775a++){const _0x10e6e8=new Order(this[_0x2d4b18(0x1ca)],_0x3ed761[_0x21775a]);this[_0x2d4b18(0x1de)][_0x2d4b18(0x1dc)](_0x10e6e8['id'],_0x10e6e8);}return this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d0)]['emit']('order.cached.some',_0x3ed761),_0x3ed761;}catch(_0x3d409e){this[_0x2d4b18(0x1ca)][_0x2d4b18(0x1d0)]['emit'](_0x2d4b18(0x1ce),{'error':_0x3d409e});throw _0x3d409e;}}async['new'](_0x2fdc9c){const _0x5b52ca=a41_0x2cfe11;try{if(!this[_0x5b52ca(0x1ca)]['tokenIsValide']())throw new Error(_0x5b52ca(0x1cc));const _0x357a1a=await this[_0x5b52ca(0x1ca)]['events'][_0x5b52ca(0x1cd)](_0x5b52ca(0x1d4),{'order':_0x2fdc9c});_0x2fdc9c['id']=_0x357a1a;const _0x49fca1=new Order(this[_0x5b52ca(0x1ca)],_0x2fdc9c);return this[_0x5b52ca(0x1de)]['set'](_0x49fca1['id'],_0x49fca1),_0x49fca1;}catch(_0x3f3e92){this[_0x5b52ca(0x1ca)][_0x5b52ca(0x1d0)][_0x5b52ca(0x1cb)](_0x5b52ca(0x1ce),{'error':_0x3f3e92});throw _0x3f3e92;}}async['modify'](_0x12725d,_0x5f5aa9){const _0x36d853=a41_0x2cfe11;try{if(!this[_0x36d853(0x1ca)][_0x36d853(0x1d1)]())throw new Error('000001:\x20Invalid\x20Token.');await this['owl'][_0x36d853(0x1d0)]['request'](_0x36d853(0x1df),_0x5f5aa9)[_0x36d853(0x1d7)](_0x5f55f9=>{const _0x20f766=_0x36d853;this[_0x20f766(0x1de)][_0x20f766(0x1dc)](_0x12725d,_0x5f55f9);});}catch(_0x42a323){this['owl'][_0x36d853(0x1d0)][_0x36d853(0x1cb)](_0x36d853(0x1ce),{'error':_0x42a323});throw _0x42a323;}}async[a41_0x2cfe11(0x1c8)](_0x1784df){const _0x5a609d=a41_0x2cfe11;try{if(!this[_0x5a609d(0x1ca)][_0x5a609d(0x1d1)]())throw new Error(_0x5a609d(0x1cc));await this[_0x5a609d(0x1ca)]['events'][_0x5a609d(0x1cb)]('order.deleted',{'id':_0x1784df}),this[_0x5a609d(0x1de)][_0x5a609d(0x1c8)](_0x1784df);}catch(_0x1da904){this['owl'][_0x5a609d(0x1d0)][_0x5a609d(0x1cb)](_0x5a609d(0x1ce),{'error':_0x1da904});throw _0x1da904;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a42_0x2c3b(_0x4de0cd,_0x725009){_0x4de0cd=_0x4de0cd-0x95;const _0x27266a=a42_0x2726();let _0x2c3b6a=_0x27266a[_0x4de0cd];return _0x2c3b6a;}const a42_0x143734=a42_0x2c3b;(function(_0x56a787,_0x1c1882){const _0x2b2f1c=a42_0x2c3b,_0x45e67b=_0x56a787();while(!![]){try{const _0x2d3e01=-parseInt(_0x2b2f1c(0xaf))/0x1*(-parseInt(_0x2b2f1c(0x99))/0x2)+-parseInt(_0x2b2f1c(0xb3))/0x3+parseInt(_0x2b2f1c(0x95))/0x4*(-parseInt(_0x2b2f1c(0xab))/0x5)+parseInt(_0x2b2f1c(0xa1))/0x6+-parseInt(_0x2b2f1c(0xa3))/0x7+parseInt(_0x2b2f1c(0xaa))/0x8*(-parseInt(_0x2b2f1c(0x9d))/0x9)+parseInt(_0x2b2f1c(0x97))/0xa;if(_0x2d3e01===_0x1c1882)break;else _0x45e67b['push'](_0x45e67b['shift']());}catch(_0x3ec4eb){_0x45e67b['push'](_0x45e67b['shift']());}}}(a42_0x2726,0x4bc69));import{Manager}from'../core/Manager.js';function a42_0x2726(){const _0x46948d=['151687FAjOJn','some','get','preparation.updated','3414kqmRkf','preparation.read','cache','34172jaXbOB','preparation.read.some','8892870bpMsZW','length','2KrJRgd','values','preparation.cached.all','request','117VHOSpv','owl','events','fetch','2520744vfHFod','modify','3633980fSIxmV','emit','preparation.cached.some','preparation.error','tokenIsValide','set','preparation.created','366936aUJOqM','20CBHTTR','new','000001:\x20Invalid\x20Token.','preparation.deleted'];a42_0x2726=function(){return _0x46948d;};return a42_0x2726();}import{Preparation}from'../entities/Preparation.js';export class PreparationManager extends Manager{async[a42_0x143734(0xa0)](_0x840e86){const _0x46f770=a42_0x143734;try{if(!this['owl'][_0x46f770(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');if(this[_0x46f770(0xb5)]['has'](_0x840e86))return this[_0x46f770(0xb5)][_0x46f770(0xb1)](_0x840e86);const _0x4b02d3=await this[_0x46f770(0x9e)][_0x46f770(0x9f)][_0x46f770(0x9c)](_0x46f770(0xb4),{'id':_0x840e86}),_0x135687=new Preparation(this[_0x46f770(0x9e)],_0x4b02d3);return this['cache']['set'](_0x840e86,_0x135687),this[_0x46f770(0x9e)]['events'][_0x46f770(0xa4)]('preparation.cached',_0x135687),_0x135687;}catch(_0x45cd8a){this['owl'][_0x46f770(0x9f)]['emit']('preparation.error',{'error':_0x45cd8a});throw _0x45cd8a;}}async['fetchAll'](){const _0xcf09da=a42_0x143734;try{if(!this[_0xcf09da(0x9e)][_0xcf09da(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4d650e=await this[_0xcf09da(0x9e)][_0xcf09da(0x9f)][_0xcf09da(0x9c)]('preparation.read.all',{});for(let _0x34985f=0x0;_0x34985f<_0x4d650e[_0xcf09da(0x98)];_0x34985f++){const _0x328fd7=new Preparation(this[_0xcf09da(0x9e)],_0x4d650e[_0x34985f]);this[_0xcf09da(0xb5)][_0xcf09da(0xa8)](_0x328fd7['id'],_0x328fd7);}return this['owl']['events'][_0xcf09da(0xa4)](_0xcf09da(0x9b),this[_0xcf09da(0xb5)][_0xcf09da(0x9a)]()),this['cache'][_0xcf09da(0x9a)]();}catch(_0x27f17b){this['owl'][_0xcf09da(0x9f)][_0xcf09da(0xa4)](_0xcf09da(0xa6),{'error':_0x27f17b});throw _0x27f17b;}}async[a42_0x143734(0xb0)](_0x3e0162){const _0xaa0c88=a42_0x143734;try{if(!this[_0xaa0c88(0x9e)][_0xaa0c88(0xa7)]())throw new Error(_0xaa0c88(0xad));const _0xf2c00a=await this[_0xaa0c88(0x9e)][_0xaa0c88(0x9f)][_0xaa0c88(0x9c)](_0xaa0c88(0x96),_0x3e0162);for(let _0x1891ba=0x0;_0x1891ba<_0xf2c00a['length'];_0x1891ba++){const _0x4b83af=new Preparation(this[_0xaa0c88(0x9e)],_0xf2c00a[_0x1891ba]);this[_0xaa0c88(0xb5)]['set'](_0x4b83af['id'],_0x4b83af);}return this[_0xaa0c88(0x9e)][_0xaa0c88(0x9f)][_0xaa0c88(0xa4)](_0xaa0c88(0xa5),_0xf2c00a),_0xf2c00a;}catch(_0x519400){this['owl'][_0xaa0c88(0x9f)][_0xaa0c88(0xa4)]('preparation.error',{'error':_0x519400});throw _0x519400;}}async[a42_0x143734(0xac)](_0x3910f9){const _0x1b188c=a42_0x143734;try{if(!this[_0x1b188c(0x9e)][_0x1b188c(0xa7)]())throw new Error(_0x1b188c(0xad));const _0x1b2ec4=await this[_0x1b188c(0x9e)][_0x1b188c(0x9f)][_0x1b188c(0x9c)](_0x1b188c(0xa9),{'preparation':_0x3910f9});_0x3910f9['id']=_0x1b2ec4;const _0x564760=new Preparation(this[_0x1b188c(0x9e)],_0x3910f9);return this['cache'][_0x1b188c(0xa8)](_0x564760['id'],_0x564760),_0x564760;}catch(_0x473c2e){this['owl']['events'][_0x1b188c(0xa4)](_0x1b188c(0xa6),{'error':_0x473c2e});throw _0x473c2e;}}async[a42_0x143734(0xa2)](_0x42aa4c,_0x34cd87){const _0x35e03f=a42_0x143734;try{if(!this[_0x35e03f(0x9e)][_0x35e03f(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');await this['owl']['events'][_0x35e03f(0x9c)](_0x35e03f(0xb2),_0x34cd87)['then'](_0xa13750=>{const _0x1df71c=_0x35e03f;this['cache'][_0x1df71c(0xa8)](_0x42aa4c,_0xa13750);});}catch(_0x1639a8){this[_0x35e03f(0x9e)][_0x35e03f(0x9f)]['emit']('preparation.error',{'error':_0x1639a8});throw _0x1639a8;}}async['delete'](_0x555ce6){const _0x4de43d=a42_0x143734;try{if(!this[_0x4de43d(0x9e)][_0x4de43d(0xa7)]())throw new Error('000001:\x20Invalid\x20Token.');await this[_0x4de43d(0x9e)][_0x4de43d(0x9f)][_0x4de43d(0xa4)](_0x4de43d(0xae),{'id':_0x555ce6}),this[_0x4de43d(0xb5)]['delete'](_0x555ce6);}catch(_0x18c226){this[_0x4de43d(0x9e)][_0x4de43d(0x9f)][_0x4de43d(0xa4)]('preparation.error',{'error':_0x18c226});throw _0x18c226;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x22faf0=a43_0x4336;(function(_0x34b8cc,_0x1fa445){const _0x5adfc3=a43_0x4336,_0x175ce2=_0x34b8cc();while(!![]){try{const _0x30639e=-parseInt(_0x5adfc3(0x131))/0x1*(parseInt(_0x5adfc3(0x138))/0x2)+parseInt(_0x5adfc3(0x135))/0x3*(parseInt(_0x5adfc3(0x140))/0x4)+parseInt(_0x5adfc3(0x13c))/0x5*(parseInt(_0x5adfc3(0x13f))/0x6)+-parseInt(_0x5adfc3(0x139))/0x7+parseInt(_0x5adfc3(0x141))/0x8+parseInt(_0x5adfc3(0x137))/0x9*(-parseInt(_0x5adfc3(0x142))/0xa)+parseInt(_0x5adfc3(0x132))/0xb;if(_0x30639e===_0x1fa445)break;else _0x175ce2['push'](_0x175ce2['shift']());}catch(_0x9a7f14){_0x175ce2['push'](_0x175ce2['shift']());}}}(a43_0x78bc,0x73e26));import{Manager}from'../core/Manager.js';function a43_0x4336(_0x1c50c2,_0xdf7745){_0x1c50c2=_0x1c50c2-0x130;const _0x78bc93=a43_0x78bc();let _0x433604=_0x78bc93[_0x1c50c2];return _0x433604;}function a43_0x78bc(){const _0x2f3baa=['request','purchase.read.all','delete','length','fetchAll','purchase.cached','purchase.updated','fetch','events','values','emit','purchase.deleted','000001:\x20Invalid\x20Token.','purchase.cached.some','18133SBkOGY','940489VWBcoI','set','new','21GGVNBE','modify','4232331jmEvte','40UjNLLY','1776635SeguBo','then','has','5FQHmBP','owl','purchase.error','3710082WoZQRQ','322312JHlUjJ','6110024rEpidW','20CECnPj','cache','tokenIsValide'];a43_0x78bc=function(){return _0x2f3baa;};return a43_0x78bc();}import{Purchase}from'../entities/Purchase.js';export class PurchaseManager extends Manager{async[a43_0x22faf0(0x14c)](_0x563476){const _0x4678ff=a43_0x22faf0;try{if(!this[_0x4678ff(0x13d)][_0x4678ff(0x144)]())throw new Error(_0x4678ff(0x151));if(this['cache'][_0x4678ff(0x13b)](_0x563476))return this[_0x4678ff(0x143)]['get'](_0x563476);const _0x31594d=await this['owl']['events']['request']('purchase.read',{'id':_0x563476}),_0x156787=new Purchase(this[_0x4678ff(0x13d)],_0x31594d);return this[_0x4678ff(0x143)][_0x4678ff(0x133)](_0x563476,_0x156787),this[_0x4678ff(0x13d)][_0x4678ff(0x14d)][_0x4678ff(0x14f)](_0x4678ff(0x14a),_0x156787),_0x156787;}catch(_0x2d1608){this[_0x4678ff(0x13d)][_0x4678ff(0x14d)][_0x4678ff(0x14f)](_0x4678ff(0x13e),{'error':_0x2d1608});throw _0x2d1608;}}async[a43_0x22faf0(0x149)](){const _0x241e11=a43_0x22faf0;try{if(!this[_0x241e11(0x13d)][_0x241e11(0x144)]())throw new Error(_0x241e11(0x151));const _0x29d3ad=await this['owl'][_0x241e11(0x14d)][_0x241e11(0x145)](_0x241e11(0x146),{});for(let _0x15619c=0x0;_0x15619c<_0x29d3ad[_0x241e11(0x148)];_0x15619c++){const _0x3cfe9d=new Purchase(this['owl'],_0x29d3ad[_0x15619c]);this[_0x241e11(0x143)][_0x241e11(0x133)](_0x3cfe9d['id'],_0x3cfe9d);}return this[_0x241e11(0x13d)][_0x241e11(0x14d)]['emit']('purchase.cached.all',this[_0x241e11(0x143)][_0x241e11(0x14e)]()),this[_0x241e11(0x143)][_0x241e11(0x14e)]();}catch(_0x41f030){this['owl'][_0x241e11(0x14d)][_0x241e11(0x14f)](_0x241e11(0x13e),{'error':_0x41f030});throw _0x41f030;}}async['some'](_0x58c9b7){const _0x549751=a43_0x22faf0;try{if(!this[_0x549751(0x13d)][_0x549751(0x144)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x599c41=await this['owl'][_0x549751(0x14d)]['request']('purchase.read.some',_0x58c9b7);for(let _0x108e8c=0x0;_0x108e8c<_0x599c41[_0x549751(0x148)];_0x108e8c++){const _0x244054=new Purchase(this['owl'],_0x599c41[_0x108e8c]);this[_0x549751(0x143)][_0x549751(0x133)](_0x244054['id'],_0x244054);}return this[_0x549751(0x13d)][_0x549751(0x14d)][_0x549751(0x14f)](_0x549751(0x130),_0x599c41),_0x599c41;}catch(_0x2eed17){this['owl'][_0x549751(0x14d)][_0x549751(0x14f)](_0x549751(0x13e),{'error':_0x2eed17});throw _0x2eed17;}}async[a43_0x22faf0(0x134)](_0x521659){const _0x42712a=a43_0x22faf0;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x42712a(0x151));const _0x3e06e8=await this[_0x42712a(0x13d)][_0x42712a(0x14d)][_0x42712a(0x145)]('purchase.created',{'purchase':_0x521659});_0x521659['id']=_0x3e06e8;const _0x43e598=new Purchase(this[_0x42712a(0x13d)],_0x521659);return this['cache'][_0x42712a(0x133)](_0x43e598['id'],_0x43e598),_0x43e598;}catch(_0x21b4ac){this['owl'][_0x42712a(0x14d)][_0x42712a(0x14f)]('purchase.error',{'error':_0x21b4ac});throw _0x21b4ac;}}async[a43_0x22faf0(0x136)](_0x2d5395,_0xc33ea6){const _0x33c497=a43_0x22faf0;try{if(!this['owl'][_0x33c497(0x144)]())throw new Error(_0x33c497(0x151));await this[_0x33c497(0x13d)][_0x33c497(0x14d)][_0x33c497(0x145)](_0x33c497(0x14b),_0xc33ea6)[_0x33c497(0x13a)](_0x1ca84a=>{const _0xa30c6c=_0x33c497;this[_0xa30c6c(0x143)][_0xa30c6c(0x133)](_0x2d5395,_0x1ca84a);});}catch(_0x1e24b5){this['owl'][_0x33c497(0x14d)]['emit'](_0x33c497(0x13e),{'error':_0x1e24b5});throw _0x1e24b5;}}async[a43_0x22faf0(0x147)](_0x4305ee){const _0x1fb55b=a43_0x22faf0;try{if(!this[_0x1fb55b(0x13d)][_0x1fb55b(0x144)]())throw new Error(_0x1fb55b(0x151));await this[_0x1fb55b(0x13d)][_0x1fb55b(0x14d)][_0x1fb55b(0x14f)](_0x1fb55b(0x150),{'id':_0x4305ee}),this[_0x1fb55b(0x143)][_0x1fb55b(0x147)](_0x4305ee);}catch(_0x513930){this['owl'][_0x1fb55b(0x14d)][_0x1fb55b(0x14f)](_0x1fb55b(0x13e),{'error':_0x513930});throw _0x513930;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x45f3f1=a44_0x4260;function a44_0x16d4(){const _0xb2bdb6=['tokenIsValide','9xSaSFI','modify','reception.read.all','get','reception.cached','4847766NlvfAZ','then','7792631UCVgEB','654QFqDlA','15418110nGajnB','reception.deleted','329JYwOmr','reception.created','reception.read.some','8FiCcCq','events','fetchAll','delete','owl','119915bGyoCN','145634hGrCvt','reception.read','22424EXBEqF','length','some','cache','reception.updated','reception.cached.some','reception.cached.all','set','request','values','emit','000001:\x20Invalid\x20Token.','296680NYrpYU','reception.error'];a44_0x16d4=function(){return _0xb2bdb6;};return a44_0x16d4();}function a44_0x4260(_0x3662e5,_0x833577){_0x3662e5=_0x3662e5-0x134;const _0x16d4b4=a44_0x16d4();let _0x426011=_0x16d4b4[_0x3662e5];return _0x426011;}(function(_0x2f70f2,_0x22d29c){const _0x2f5a15=a44_0x4260,_0x2bb09c=_0x2f70f2();while(!![]){try{const _0x3e8e31=-parseInt(_0x2f5a15(0x150))/0x1*(parseInt(_0x2f5a15(0x156))/0x2)+parseInt(_0x2f5a15(0x14a))/0x3*(parseInt(_0x2f5a15(0x158))/0x4)+parseInt(_0x2f5a15(0x155))/0x5+parseInt(_0x2f5a15(0x147))/0x6+-parseInt(_0x2f5a15(0x14d))/0x7*(-parseInt(_0x2f5a15(0x13f))/0x8)+-parseInt(_0x2f5a15(0x142))/0x9*(parseInt(_0x2f5a15(0x14b))/0xa)+-parseInt(_0x2f5a15(0x149))/0xb;if(_0x3e8e31===_0x22d29c)break;else _0x2bb09c['push'](_0x2bb09c['shift']());}catch(_0x63fe23){_0x2bb09c['push'](_0x2bb09c['shift']());}}}(a44_0x16d4,0xeb6b7));import{Manager}from'../core/Manager.js';import{Reception}from'../entities/Reception.js';export class ReceptionManager extends Manager{async['fetch'](_0x2ad9c0){const _0x380285=a44_0x4260;try{if(!this[_0x380285(0x154)][_0x380285(0x141)]())throw new Error(_0x380285(0x13e));if(this['cache']['has'](_0x2ad9c0))return this[_0x380285(0x136)][_0x380285(0x145)](_0x2ad9c0);const _0x3e8502=await this[_0x380285(0x154)][_0x380285(0x151)]['request'](_0x380285(0x157),{'id':_0x2ad9c0}),_0x3b08b2=new Reception(this['owl'],_0x3e8502);return this['cache'][_0x380285(0x13a)](_0x2ad9c0,_0x3b08b2),this['owl']['events'][_0x380285(0x13d)](_0x380285(0x146),_0x3b08b2),_0x3b08b2;}catch(_0x1dcfbc){this['owl'][_0x380285(0x151)][_0x380285(0x13d)]('reception.error',{'error':_0x1dcfbc});throw _0x1dcfbc;}}async[a44_0x45f3f1(0x152)](){const _0xb8ac48=a44_0x45f3f1;try{if(!this[_0xb8ac48(0x154)]['tokenIsValide']())throw new Error(_0xb8ac48(0x13e));const _0x4b568e=await this[_0xb8ac48(0x154)][_0xb8ac48(0x151)][_0xb8ac48(0x13b)](_0xb8ac48(0x144),{});for(let _0x362783=0x0;_0x362783<_0x4b568e[_0xb8ac48(0x134)];_0x362783++){const _0x186945=new Reception(this[_0xb8ac48(0x154)],_0x4b568e[_0x362783]);this[_0xb8ac48(0x136)]['set'](_0x186945['id'],_0x186945);}return this['owl'][_0xb8ac48(0x151)][_0xb8ac48(0x13d)](_0xb8ac48(0x139),this[_0xb8ac48(0x136)][_0xb8ac48(0x13c)]()),this['cache']['values']();}catch(_0x446758){this[_0xb8ac48(0x154)][_0xb8ac48(0x151)][_0xb8ac48(0x13d)](_0xb8ac48(0x140),{'error':_0x446758});throw _0x446758;}}async[a44_0x45f3f1(0x135)](_0x42b203){const _0x3dbd74=a44_0x45f3f1;try{if(!this[_0x3dbd74(0x154)]['tokenIsValide']())throw new Error(_0x3dbd74(0x13e));const _0x3f3230=await this[_0x3dbd74(0x154)][_0x3dbd74(0x151)][_0x3dbd74(0x13b)](_0x3dbd74(0x14f),_0x42b203);for(let _0x2f7462=0x0;_0x2f7462<_0x3f3230[_0x3dbd74(0x134)];_0x2f7462++){const _0x5e7c70=new Reception(this['owl'],_0x3f3230[_0x2f7462]);this[_0x3dbd74(0x136)][_0x3dbd74(0x13a)](_0x5e7c70['id'],_0x5e7c70);}return this[_0x3dbd74(0x154)][_0x3dbd74(0x151)]['emit'](_0x3dbd74(0x138),_0x3f3230),_0x3f3230;}catch(_0x5e7831){this[_0x3dbd74(0x154)][_0x3dbd74(0x151)][_0x3dbd74(0x13d)](_0x3dbd74(0x140),{'error':_0x5e7831});throw _0x5e7831;}}async['new'](_0x157fbb){const _0x38dac5=a44_0x45f3f1;try{if(!this[_0x38dac5(0x154)]['tokenIsValide']())throw new Error('000001:\x20Invalid\x20Token.');const _0x402810=await this[_0x38dac5(0x154)][_0x38dac5(0x151)][_0x38dac5(0x13b)](_0x38dac5(0x14e),{'reception':_0x157fbb});_0x157fbb['id']=_0x402810;const _0x581002=new Reception(this['owl'],_0x157fbb);return this['cache'][_0x38dac5(0x13a)](_0x581002['id'],_0x581002),_0x581002;}catch(_0x38c60a){this['owl']['events'][_0x38dac5(0x13d)]('reception.error',{'error':_0x38c60a});throw _0x38c60a;}}async[a44_0x45f3f1(0x143)](_0x59a402,_0xf38bc0){const _0x8e1b0b=a44_0x45f3f1;try{if(!this[_0x8e1b0b(0x154)][_0x8e1b0b(0x141)]())throw new Error(_0x8e1b0b(0x13e));await this[_0x8e1b0b(0x154)][_0x8e1b0b(0x151)][_0x8e1b0b(0x13b)](_0x8e1b0b(0x137),_0xf38bc0)[_0x8e1b0b(0x148)](_0x1381fa=>{const _0x17024d=_0x8e1b0b;this[_0x17024d(0x136)][_0x17024d(0x13a)](_0x59a402,_0x1381fa);});}catch(_0x2fbb30){this['owl'][_0x8e1b0b(0x151)][_0x8e1b0b(0x13d)](_0x8e1b0b(0x140),{'error':_0x2fbb30});throw _0x2fbb30;}}async['delete'](_0x282218){const _0x1bec88=a44_0x45f3f1;try{if(!this[_0x1bec88(0x154)][_0x1bec88(0x141)]())throw new Error(_0x1bec88(0x13e));await this[_0x1bec88(0x154)][_0x1bec88(0x151)][_0x1bec88(0x13d)](_0x1bec88(0x14c),{'id':_0x282218}),this[_0x1bec88(0x136)][_0x1bec88(0x153)](_0x282218);}catch(_0x40e8d1){this[_0x1bec88(0x154)][_0x1bec88(0x151)][_0x1bec88(0x13d)](_0x1bec88(0x140),{'error':_0x40e8d1});throw _0x40e8d1;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a45_0x560fba=a45_0x311a;function a45_0x311a(_0x1e7542,_0x39c872){_0x1e7542=_0x1e7542-0x1c2;const _0x18ec51=a45_0x18ec();let _0x311a68=_0x18ec51[_0x1e7542];return _0x311a68;}(function(_0x26bec1,_0x232d5c){const _0x12d431=a45_0x311a,_0x19642d=_0x26bec1();while(!![]){try{const _0x2056fd=-parseInt(_0x12d431(0x1df))/0x1+-parseInt(_0x12d431(0x1cc))/0x2+parseInt(_0x12d431(0x1cb))/0x3+parseInt(_0x12d431(0x1ce))/0x4+-parseInt(_0x12d431(0x1d7))/0x5*(parseInt(_0x12d431(0x1d4))/0x6)+-parseInt(_0x12d431(0x1d3))/0x7*(-parseInt(_0x12d431(0x1d0))/0x8)+parseInt(_0x12d431(0x1e0))/0x9;if(_0x2056fd===_0x232d5c)break;else _0x19642d['push'](_0x19642d['shift']());}catch(_0x5c6c85){_0x19642d['push'](_0x19642d['shift']());}}}(a45_0x18ec,0xa9b41));import{Manager}from'../core/Manager.js';import{Stock}from'../entities/Stock.js';export class StockManager extends Manager{async[a45_0x560fba(0x1da)](_0x18594b){const _0x22ca07=a45_0x560fba;try{if(!this[_0x22ca07(0x1ca)][_0x22ca07(0x1c7)]())throw new Error(_0x22ca07(0x1e1));if(this['cache'][_0x22ca07(0x1db)](_0x18594b))return this[_0x22ca07(0x1dd)][_0x22ca07(0x1de)](_0x18594b);const _0x89c096=await this[_0x22ca07(0x1ca)]['events'][_0x22ca07(0x1c3)](_0x22ca07(0x1d9),{'id':_0x18594b}),_0x1b74c2=new Stock(this[_0x22ca07(0x1ca)],_0x89c096);return this[_0x22ca07(0x1dd)][_0x22ca07(0x1e2)](_0x18594b,_0x1b74c2),this['owl'][_0x22ca07(0x1d8)]['emit']('stock.cached',_0x1b74c2),_0x1b74c2;}catch(_0x2d72cf){this[_0x22ca07(0x1ca)][_0x22ca07(0x1d8)][_0x22ca07(0x1cf)](_0x22ca07(0x1c8),{'error':_0x2d72cf});throw _0x2d72cf;}}async['fetchAll'](){const _0x2e2d11=a45_0x560fba;try{if(!this[_0x2e2d11(0x1ca)]['tokenIsValide']())throw new Error(_0x2e2d11(0x1e1));const _0x104a6d=await this[_0x2e2d11(0x1ca)][_0x2e2d11(0x1d8)][_0x2e2d11(0x1c3)](_0x2e2d11(0x1d6),{});for(let _0x15f3d9=0x0;_0x15f3d9<_0x104a6d[_0x2e2d11(0x1d5)];_0x15f3d9++){const _0x377eab=new Stock(this['owl'],_0x104a6d[_0x15f3d9]);this['cache'][_0x2e2d11(0x1e2)](_0x377eab['id'],_0x377eab);}return this[_0x2e2d11(0x1ca)][_0x2e2d11(0x1d8)][_0x2e2d11(0x1cf)]('stock.cached.all',this[_0x2e2d11(0x1dd)][_0x2e2d11(0x1dc)]()),this[_0x2e2d11(0x1dd)]['values']();}catch(_0x48178d){this[_0x2e2d11(0x1ca)][_0x2e2d11(0x1d8)]['emit'](_0x2e2d11(0x1c8),{'error':_0x48178d});throw _0x48178d;}}async['some'](_0x5f5a51){const _0x5d3dd4=a45_0x560fba;try{if(!this[_0x5d3dd4(0x1ca)][_0x5d3dd4(0x1c7)]())throw new Error(_0x5d3dd4(0x1e1));const _0x4155e3=await this[_0x5d3dd4(0x1ca)][_0x5d3dd4(0x1d8)][_0x5d3dd4(0x1c3)](_0x5d3dd4(0x1d1),_0x5f5a51);for(let _0x37c08f=0x0;_0x37c08f<_0x4155e3[_0x5d3dd4(0x1d5)];_0x37c08f++){const _0x1b9f52=new Stock(this[_0x5d3dd4(0x1ca)],_0x4155e3[_0x37c08f]);this['cache'][_0x5d3dd4(0x1e2)](_0x1b9f52['id'],_0x1b9f52);}return this[_0x5d3dd4(0x1ca)][_0x5d3dd4(0x1d8)]['emit'](_0x5d3dd4(0x1c2),_0x4155e3),_0x4155e3;}catch(_0x28d350){this['owl'][_0x5d3dd4(0x1d8)][_0x5d3dd4(0x1cf)](_0x5d3dd4(0x1c8),{'error':_0x28d350});throw _0x28d350;}}async[a45_0x560fba(0x1d2)](_0x5e929c){const _0x346dc1=a45_0x560fba;try{if(!this[_0x346dc1(0x1ca)][_0x346dc1(0x1c7)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x4c9ae1=await this[_0x346dc1(0x1ca)][_0x346dc1(0x1d8)][_0x346dc1(0x1c3)](_0x346dc1(0x1cd),{'stock':_0x5e929c});_0x5e929c['id']=_0x4c9ae1;const _0x2329fd=new Stock(this['owl'],_0x5e929c);return this[_0x346dc1(0x1dd)][_0x346dc1(0x1e2)](_0x2329fd['id'],_0x2329fd),_0x2329fd;}catch(_0x21a0ad){this[_0x346dc1(0x1ca)][_0x346dc1(0x1d8)]['emit']('stock.error',{'error':_0x21a0ad});throw _0x21a0ad;}}async[a45_0x560fba(0x1c4)](_0x17305b,_0x4d985e){const _0x475aae=a45_0x560fba;try{if(!this[_0x475aae(0x1ca)][_0x475aae(0x1c7)]())throw new Error(_0x475aae(0x1e1));await this[_0x475aae(0x1ca)]['events'][_0x475aae(0x1c3)](_0x475aae(0x1c6),_0x4d985e)[_0x475aae(0x1c9)](_0x54d2f9=>{const _0x24761f=_0x475aae;this[_0x24761f(0x1dd)][_0x24761f(0x1e2)](_0x17305b,_0x54d2f9);});}catch(_0x362402){this[_0x475aae(0x1ca)][_0x475aae(0x1d8)][_0x475aae(0x1cf)](_0x475aae(0x1c8),{'error':_0x362402});throw _0x362402;}}async[a45_0x560fba(0x1c5)](_0x26917c){const _0x9ab95a=a45_0x560fba;try{if(!this[_0x9ab95a(0x1ca)][_0x9ab95a(0x1c7)]())throw new Error(_0x9ab95a(0x1e1));await this[_0x9ab95a(0x1ca)][_0x9ab95a(0x1d8)][_0x9ab95a(0x1cf)]('stock.deleted',{'id':_0x26917c}),this[_0x9ab95a(0x1dd)][_0x9ab95a(0x1c5)](_0x26917c);}catch(_0x1a59a0){this[_0x9ab95a(0x1ca)][_0x9ab95a(0x1d8)][_0x9ab95a(0x1cf)](_0x9ab95a(0x1c8),{'error':_0x1a59a0});throw _0x1a59a0;}}}function a45_0x18ec(){const _0x376f47=['632441yOZMhX','15845877dPVZrx','000001:\x20Invalid\x20Token.','set','stock.cached.some','request','modify','delete','stock.updated','tokenIsValide','stock.error','then','owl','101580prnsBL','2531434bFuMiu','stock.created','5026600RkAtBd','emit','8ALRtvW','stock.read.some','new','1234877luQSZS','162FszaKX','length','stock.read.all','117465taMTVJ','events','stock.read','fetch','has','values','cache','get'];a45_0x18ec=function(){return _0x376f47;};return a45_0x18ec();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x2b5218=a46_0x4390;function a46_0x2eaf(){const _0x40ee6e=['fetch','supplier.cached','supplier.error','fetchAll','56QDHloi','get','tokenIsValide','supplier.cached.all','7276kCOXTN','56849fFqqIF','new','28RXQpSo','supplier.read','set','events','request','537468TYHRkU','2846492KFrPqr','supplier.created','has','supplier.read.all','3438864loKxrK','24eTixGD','then','474nmvnjF','supplier.updated','delete','supplier.deleted','cache','000001:\x20Invalid\x20Token.','length','9TwZyua','owl','emit','1909470pTyDti','modify','3576975BStCCc'];a46_0x2eaf=function(){return _0x40ee6e;};return a46_0x2eaf();}function a46_0x4390(_0x48923b,_0x528e76){_0x48923b=_0x48923b-0x144;const _0x2eafb1=a46_0x2eaf();let _0x4390c3=_0x2eafb1[_0x48923b];return _0x4390c3;}(function(_0x2216b4,_0x4ca34b){const _0x5de9da=a46_0x4390,_0x46d1ea=_0x2216b4();while(!![]){try{const _0x16c98d=parseInt(_0x5de9da(0x14d))/0x1*(parseInt(_0x5de9da(0x14f))/0x2)+parseInt(_0x5de9da(0x15c))/0x3*(-parseInt(_0x5de9da(0x14c))/0x4)+-parseInt(_0x5de9da(0x168))/0x5+-parseInt(_0x5de9da(0x154))/0x6*(-parseInt(_0x5de9da(0x148))/0x7)+-parseInt(_0x5de9da(0x159))/0x8+-parseInt(_0x5de9da(0x163))/0x9*(parseInt(_0x5de9da(0x166))/0xa)+-parseInt(_0x5de9da(0x155))/0xb*(-parseInt(_0x5de9da(0x15a))/0xc);if(_0x16c98d===_0x4ca34b)break;else _0x46d1ea['push'](_0x46d1ea['shift']());}catch(_0x2b22e5){_0x46d1ea['push'](_0x46d1ea['shift']());}}}(a46_0x2eaf,0x633b4));import{Manager}from'../core/Manager.js';import{Supplier}from'../entities/Supplier.js';export class SupplierManager extends Manager{async[a46_0x2b5218(0x144)](_0x28a3eb){const _0x4c92ec=a46_0x2b5218;try{if(!this[_0x4c92ec(0x164)][_0x4c92ec(0x14a)]())throw new Error(_0x4c92ec(0x161));if(this[_0x4c92ec(0x160)][_0x4c92ec(0x157)](_0x28a3eb))return this[_0x4c92ec(0x160)][_0x4c92ec(0x149)](_0x28a3eb);const _0x225621=await this[_0x4c92ec(0x164)][_0x4c92ec(0x152)][_0x4c92ec(0x153)](_0x4c92ec(0x150),{'id':_0x28a3eb}),_0xcbb2f1=new Supplier(this['owl'],_0x225621);return this[_0x4c92ec(0x160)][_0x4c92ec(0x151)](_0x28a3eb,_0xcbb2f1),this[_0x4c92ec(0x164)][_0x4c92ec(0x152)][_0x4c92ec(0x165)](_0x4c92ec(0x145),_0xcbb2f1),_0xcbb2f1;}catch(_0x5d481e){this['owl'][_0x4c92ec(0x152)][_0x4c92ec(0x165)](_0x4c92ec(0x146),{'error':_0x5d481e});throw _0x5d481e;}}async[a46_0x2b5218(0x147)](){const _0x11c5d6=a46_0x2b5218;try{if(!this[_0x11c5d6(0x164)][_0x11c5d6(0x14a)]())throw new Error(_0x11c5d6(0x161));const _0x103ab0=await this[_0x11c5d6(0x164)][_0x11c5d6(0x152)]['request'](_0x11c5d6(0x158),{});for(let _0x5f1304=0x0;_0x5f1304<_0x103ab0['length'];_0x5f1304++){const _0xd028cc=new Supplier(this[_0x11c5d6(0x164)],_0x103ab0[_0x5f1304]);this['cache'][_0x11c5d6(0x151)](_0xd028cc['id'],_0xd028cc);}return this[_0x11c5d6(0x164)]['events'][_0x11c5d6(0x165)](_0x11c5d6(0x14b),this['cache']['values']()),this['cache']['values']();}catch(_0x5a068a){this[_0x11c5d6(0x164)]['events'][_0x11c5d6(0x165)](_0x11c5d6(0x146),{'error':_0x5a068a});throw _0x5a068a;}}async['some'](_0x46bd9a){const _0x4ddd31=a46_0x2b5218;try{if(!this['owl'][_0x4ddd31(0x14a)]())throw new Error('000001:\x20Invalid\x20Token.');const _0x3d7c31=await this[_0x4ddd31(0x164)][_0x4ddd31(0x152)][_0x4ddd31(0x153)]('supplier.read.some',_0x46bd9a);for(let _0x50926c=0x0;_0x50926c<_0x3d7c31[_0x4ddd31(0x162)];_0x50926c++){const _0x5816b9=new Supplier(this[_0x4ddd31(0x164)],_0x3d7c31[_0x50926c]);this[_0x4ddd31(0x160)]['set'](_0x5816b9['id'],_0x5816b9);}return this[_0x4ddd31(0x164)][_0x4ddd31(0x152)][_0x4ddd31(0x165)]('supplier.cached.some',_0x3d7c31),_0x3d7c31;}catch(_0x26341e){this[_0x4ddd31(0x164)]['events'][_0x4ddd31(0x165)]('supplier.error',{'error':_0x26341e});throw _0x26341e;}}async[a46_0x2b5218(0x14e)](_0x5c6752){const _0x1326dd=a46_0x2b5218;try{if(!this['owl'][_0x1326dd(0x14a)]())throw new Error(_0x1326dd(0x161));const _0x451fbe=await this[_0x1326dd(0x164)][_0x1326dd(0x152)]['request'](_0x1326dd(0x156),{'supplier':_0x5c6752});_0x5c6752['id']=_0x451fbe;const _0x103a59=new Supplier(this[_0x1326dd(0x164)],_0x5c6752);return this['cache'][_0x1326dd(0x151)](_0x103a59['id'],_0x103a59),_0x103a59;}catch(_0x2ab780){this[_0x1326dd(0x164)][_0x1326dd(0x152)][_0x1326dd(0x165)](_0x1326dd(0x146),{'error':_0x2ab780});throw _0x2ab780;}}async[a46_0x2b5218(0x167)](_0x5707b5,_0x425c81){const _0x54c4c4=a46_0x2b5218;try{if(!this['owl'][_0x54c4c4(0x14a)]())throw new Error(_0x54c4c4(0x161));await this[_0x54c4c4(0x164)][_0x54c4c4(0x152)][_0x54c4c4(0x153)](_0x54c4c4(0x15d),_0x425c81)[_0x54c4c4(0x15b)](_0x1bb29a=>{const _0x11a2ee=_0x54c4c4;this['cache'][_0x11a2ee(0x151)](_0x5707b5,_0x1bb29a);});}catch(_0x3a6287){this['owl'][_0x54c4c4(0x152)]['emit'](_0x54c4c4(0x146),{'error':_0x3a6287});throw _0x3a6287;}}async[a46_0x2b5218(0x15e)](_0x2533b5){const _0x91a8bc=a46_0x2b5218;try{if(!this[_0x91a8bc(0x164)][_0x91a8bc(0x14a)]())throw new Error(_0x91a8bc(0x161));await this[_0x91a8bc(0x164)][_0x91a8bc(0x152)][_0x91a8bc(0x165)](_0x91a8bc(0x15f),{'id':_0x2533b5}),this['cache'][_0x91a8bc(0x15e)](_0x2533b5);}catch(_0x41bc78){this['owl']['events'][_0x91a8bc(0x165)]('supplier.error',{'error':_0x41bc78});throw _0x41bc78;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x5c0e00=a47_0x47ff;function a47_0x50f0(){const _0x4610db=['767684hdWrFb','new','2222788llCgPN','emit','owl','values','tax.deleted','tax.cached.all','tax.error','tax.updated','events','set','get','1632970PWJcyT','fetch','delete','tokenIsValide','length','477164ZFRBuJ','3332118DETQyI','12tLtLhK','10850RbJLeJ','fetchAll','cache','tax.created','7983bdiFwf','000001:\x20Invalid\x20Token.','tax.read.some','request','14UOITCK','tax.read','tax.cached.some','some','2159896JdYFfN','tax.read.all'];a47_0x50f0=function(){return _0x4610db;};return a47_0x50f0();}(function(_0x40dc78,_0x25ea6e){const _0x131f5d=a47_0x47ff,_0x1973e7=_0x40dc78();while(!![]){try{const _0x4c89a4=parseInt(_0x131f5d(0x9d))/0x1+-parseInt(_0x131f5d(0x9f))/0x2+parseInt(_0x131f5d(0xb1))/0x3*(parseInt(_0x131f5d(0xaf))/0x4)+parseInt(_0x131f5d(0xaa))/0x5+parseInt(_0x131f5d(0xb0))/0x6+-parseInt(_0x131f5d(0x97))/0x7*(-parseInt(_0x131f5d(0x9b))/0x8)+parseInt(_0x131f5d(0xb6))/0x9*(-parseInt(_0x131f5d(0xb2))/0xa);if(_0x4c89a4===_0x25ea6e)break;else _0x1973e7['push'](_0x1973e7['shift']());}catch(_0x4d6763){_0x1973e7['push'](_0x1973e7['shift']());}}}(a47_0x50f0,0x90c54));import{Manager}from'../core/Manager.js';import{Tax}from'../entities/Tax.js';function a47_0x47ff(_0x4ddd38,_0x3914c7){_0x4ddd38=_0x4ddd38-0x94;const _0x50f0ce=a47_0x50f0();let _0x47ffff=_0x50f0ce[_0x4ddd38];return _0x47ffff;}export class TaxManager extends Manager{async[a47_0x5c0e00(0xab)](_0x5654cd){const _0x27b9fa=a47_0x5c0e00;try{if(!this['owl']['tokenIsValide']())throw new Error(_0x27b9fa(0x94));if(this[_0x27b9fa(0xb4)]['has'](_0x5654cd))return this[_0x27b9fa(0xb4)][_0x27b9fa(0xa9)](_0x5654cd);const _0x3498d6=await this[_0x27b9fa(0xa1)][_0x27b9fa(0xa7)]['request'](_0x27b9fa(0x98),{'id':_0x5654cd}),_0x37234d=new Tax(this[_0x27b9fa(0xa1)],_0x3498d6);return this[_0x27b9fa(0xb4)][_0x27b9fa(0xa8)](_0x5654cd,_0x37234d),this[_0x27b9fa(0xa1)][_0x27b9fa(0xa7)][_0x27b9fa(0xa0)]('tax.cached',_0x37234d),_0x37234d;}catch(_0x21558f){this[_0x27b9fa(0xa1)][_0x27b9fa(0xa7)]['emit']('tax.error',{'error':_0x21558f});throw _0x21558f;}}async[a47_0x5c0e00(0xb3)](){const _0x506f9f=a47_0x5c0e00;try{if(!this[_0x506f9f(0xa1)][_0x506f9f(0xad)]())throw new Error(_0x506f9f(0x94));const _0x4ace20=await this['owl'][_0x506f9f(0xa7)][_0x506f9f(0x96)](_0x506f9f(0x9c),{});for(let _0x1f7204=0x0;_0x1f7204<_0x4ace20['length'];_0x1f7204++){const _0x550f21=new Tax(this[_0x506f9f(0xa1)],_0x4ace20[_0x1f7204]);this['cache'][_0x506f9f(0xa8)](_0x550f21['id'],_0x550f21);}return this[_0x506f9f(0xa1)]['events'][_0x506f9f(0xa0)](_0x506f9f(0xa4),this[_0x506f9f(0xb4)][_0x506f9f(0xa2)]()),this[_0x506f9f(0xb4)][_0x506f9f(0xa2)]();}catch(_0x112eb0){this[_0x506f9f(0xa1)][_0x506f9f(0xa7)][_0x506f9f(0xa0)](_0x506f9f(0xa5),{'error':_0x112eb0});throw _0x112eb0;}}async[a47_0x5c0e00(0x9a)](_0x44990c){const _0x42dbac=a47_0x5c0e00;try{if(!this[_0x42dbac(0xa1)][_0x42dbac(0xad)]())throw new Error(_0x42dbac(0x94));const _0x625384=await this[_0x42dbac(0xa1)]['events'][_0x42dbac(0x96)](_0x42dbac(0x95),_0x44990c);for(let _0x1b848b=0x0;_0x1b848b<_0x625384[_0x42dbac(0xae)];_0x1b848b++){const _0x4b775f=new Tax(this[_0x42dbac(0xa1)],_0x625384[_0x1b848b]);this[_0x42dbac(0xb4)][_0x42dbac(0xa8)](_0x4b775f['id'],_0x4b775f);}return this['owl']['events']['emit'](_0x42dbac(0x99),_0x625384),_0x625384;}catch(_0x260c3d){this['owl'][_0x42dbac(0xa7)][_0x42dbac(0xa0)](_0x42dbac(0xa5),{'error':_0x260c3d});throw _0x260c3d;}}async[a47_0x5c0e00(0x9e)](_0x2e245f){const _0x286ca2=a47_0x5c0e00;try{if(!this[_0x286ca2(0xa1)][_0x286ca2(0xad)]())throw new Error(_0x286ca2(0x94));const _0x3f822c=await this[_0x286ca2(0xa1)][_0x286ca2(0xa7)]['request'](_0x286ca2(0xb5),{'tax':_0x2e245f});_0x2e245f['id']=_0x3f822c;const _0x3f18d1=new Tax(this[_0x286ca2(0xa1)],_0x2e245f);return this[_0x286ca2(0xb4)][_0x286ca2(0xa8)](_0x3f18d1['id'],_0x3f18d1),_0x3f18d1;}catch(_0x45fadf){this[_0x286ca2(0xa1)][_0x286ca2(0xa7)][_0x286ca2(0xa0)](_0x286ca2(0xa5),{'error':_0x45fadf});throw _0x45fadf;}}async['modify'](_0x30038a,_0x146100){const _0x185577=a47_0x5c0e00;try{if(!this[_0x185577(0xa1)]['tokenIsValide']())throw new Error(_0x185577(0x94));await this['owl'][_0x185577(0xa7)][_0x185577(0x96)](_0x185577(0xa6),_0x146100)['then'](_0x38514b=>{const _0x53cb29=_0x185577;this[_0x53cb29(0xb4)][_0x53cb29(0xa8)](_0x30038a,_0x38514b);});}catch(_0x2fce81){this[_0x185577(0xa1)][_0x185577(0xa7)][_0x185577(0xa0)](_0x185577(0xa5),{'error':_0x2fce81});throw _0x2fce81;}}async[a47_0x5c0e00(0xac)](_0x44f0d4){const _0x4555c9=a47_0x5c0e00;try{if(!this[_0x4555c9(0xa1)]['tokenIsValide']())throw new Error(_0x4555c9(0x94));await this[_0x4555c9(0xa1)]['events']['emit'](_0x4555c9(0xa3),{'id':_0x44f0d4}),this[_0x4555c9(0xb4)][_0x4555c9(0xac)](_0x44f0d4);}catch(_0x1d5e23){this[_0x4555c9(0xa1)][_0x4555c9(0xa7)]['emit'](_0x4555c9(0xa5),{'error':_0x1d5e23});throw _0x1d5e23;}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x3a95a0=a48_0x3cf6;(function(_0x4fc821,_0x50a13c){const _0x5bfbc0=a48_0x3cf6,_0x98c15f=_0x4fc821();while(!![]){try{const _0x863227=parseInt(_0x5bfbc0(0xd7))/0x1*(-parseInt(_0x5bfbc0(0xd5))/0x2)+-parseInt(_0x5bfbc0(0xe5))/0x3+-parseInt(_0x5bfbc0(0xd4))/0x4+-parseInt(_0x5bfbc0(0xce))/0x5+-parseInt(_0x5bfbc0(0xe6))/0x6+-parseInt(_0x5bfbc0(0xee))/0x7+parseInt(_0x5bfbc0(0xd8))/0x8;if(_0x863227===_0x50a13c)break;else _0x98c15f['push'](_0x98c15f['shift']());}catch(_0x4e017c){_0x98c15f['push'](_0x98c15f['shift']());}}}(a48_0x10d4,0xef96d));function a48_0x10d4(){const _0x2c12a8=['events','000001:\x20Invalid\x20Token.','user.cached.some','then','emit','user.read','user.loggedIn','980964MIdHAN','5933520rtQVGy','some','tokenIsValide','user.created','user.updated','user.read.some','length','user.error','8072134tQiXBh','user.read.all','user.cached','login','8325375ZEgeIc','cache','user.cached.all','delete','fetchAll','owl','3981568MQtJaZ','66CtGKQd','set','10583srFuZW','51681064SyxmXV','has','user.login','values','fetch','request'];a48_0x10d4=function(){return _0x2c12a8;};return a48_0x10d4();}import{Manager}from'../core/Manager.js';import{User}from'../entities/User.js';function a48_0x3cf6(_0xc6264e,_0x4a366a){_0xc6264e=_0xc6264e-0xcd;const _0x10d4f0=a48_0x10d4();let _0x3cf610=_0x10d4f0[_0xc6264e];return _0x3cf610;}export class UserManager extends Manager{async[a48_0x3a95a0(0xcd)](_0x135412,_0x516d7b){const _0x3c9d1e=a48_0x3a95a0;try{if(!this['owl'][_0x3c9d1e(0xe8)]())throw new Error(_0x3c9d1e(0xdf));const _0x14b408=await this['owl'][_0x3c9d1e(0xde)][_0x3c9d1e(0xdd)](_0x3c9d1e(0xda),{'email':_0x135412,'password':_0x516d7b}),_0x5f5b88=new User(this['owl'],_0x14b408);return this[_0x3c9d1e(0xcf)][_0x3c9d1e(0xd6)](_0x5f5b88['id'],_0x5f5b88),this[_0x3c9d1e(0xd3)]['events']['emit'](_0x3c9d1e(0xe4),_0x5f5b88),_0x5f5b88;}catch(_0x573858){this[_0x3c9d1e(0xd3)][_0x3c9d1e(0xde)][_0x3c9d1e(0xe2)](_0x3c9d1e(0xed),{'error':_0x573858});throw _0x573858;}}async[a48_0x3a95a0(0xdc)](_0x22ac1b){const _0x26f131=a48_0x3a95a0;try{if(!this['owl'][_0x26f131(0xe8)]())throw new Error(_0x26f131(0xdf));if(this[_0x26f131(0xcf)][_0x26f131(0xd9)](_0x22ac1b))return this[_0x26f131(0xcf)]['get'](_0x22ac1b);const _0x4952bd=await this[_0x26f131(0xd3)][_0x26f131(0xde)][_0x26f131(0xdd)](_0x26f131(0xe3),{'id':_0x22ac1b}),_0x4c0961=new User(this[_0x26f131(0xd3)],_0x4952bd);return this[_0x26f131(0xcf)][_0x26f131(0xd6)](_0x22ac1b,_0x4c0961),this[_0x26f131(0xd3)]['events']['emit'](_0x26f131(0xf0),_0x4c0961),_0x4c0961;}catch(_0x1d1225){this['owl'][_0x26f131(0xde)][_0x26f131(0xe2)](_0x26f131(0xed),{'error':_0x1d1225});throw _0x1d1225;}}async[a48_0x3a95a0(0xd2)](){const _0x47ba7f=a48_0x3a95a0;try{if(!this[_0x47ba7f(0xd3)][_0x47ba7f(0xe8)]())throw new Error(_0x47ba7f(0xdf));const _0x48628d=await this[_0x47ba7f(0xd3)]['events'][_0x47ba7f(0xdd)](_0x47ba7f(0xef),{});for(let _0x1d9d2a=0x0;_0x1d9d2a<_0x48628d[_0x47ba7f(0xec)];_0x1d9d2a++){const _0x4e64e5=new User(this[_0x47ba7f(0xd3)],_0x48628d[_0x1d9d2a]);this[_0x47ba7f(0xcf)][_0x47ba7f(0xd6)](_0x4e64e5['id'],_0x4e64e5);}return this['owl'][_0x47ba7f(0xde)][_0x47ba7f(0xe2)](_0x47ba7f(0xd0),this[_0x47ba7f(0xcf)]['values']()),this[_0x47ba7f(0xcf)][_0x47ba7f(0xdb)]();}catch(_0x26c88f){this[_0x47ba7f(0xd3)][_0x47ba7f(0xde)][_0x47ba7f(0xe2)](_0x47ba7f(0xed),{'error':_0x26c88f});throw _0x26c88f;}}async[a48_0x3a95a0(0xe7)](_0x2ebcd1){const _0x545bad=a48_0x3a95a0;try{if(!this['owl'][_0x545bad(0xe8)]())throw new Error(_0x545bad(0xdf));const _0x1769da=await this['owl'][_0x545bad(0xde)]['request'](_0x545bad(0xeb),_0x2ebcd1);for(let _0x3c31c3=0x0;_0x3c31c3<_0x1769da[_0x545bad(0xec)];_0x3c31c3++){const _0x557acb=new User(this[_0x545bad(0xd3)],_0x1769da[_0x3c31c3]);this[_0x545bad(0xcf)][_0x545bad(0xd6)](_0x557acb['id'],_0x557acb);}return this[_0x545bad(0xd3)]['events']['emit'](_0x545bad(0xe0),_0x1769da),_0x1769da;}catch(_0x3678bb){this[_0x545bad(0xd3)][_0x545bad(0xde)]['emit']('user.error',{'error':_0x3678bb});throw _0x3678bb;}}async['new'](_0x5465fa){const _0x294257=a48_0x3a95a0;try{if(!this['owl'][_0x294257(0xe8)]())throw new Error(_0x294257(0xdf));const _0x14a941=await this['owl'][_0x294257(0xde)][_0x294257(0xdd)](_0x294257(0xe9),{'user':_0x5465fa});_0x5465fa['id']=_0x14a941;const _0x3d7864=new User(this[_0x294257(0xd3)],_0x5465fa);return this[_0x294257(0xcf)][_0x294257(0xd6)](_0x3d7864['id'],_0x3d7864),_0x3d7864;}catch(_0x302113){this['owl']['events'][_0x294257(0xe2)](_0x294257(0xed),{'error':_0x302113});throw _0x302113;}}async['modify'](_0x3fecec,_0x14dc9f){const _0x1fde24=a48_0x3a95a0;try{if(!this[_0x1fde24(0xd3)][_0x1fde24(0xe8)]())throw new Error(_0x1fde24(0xdf));await this['owl'][_0x1fde24(0xde)][_0x1fde24(0xdd)](_0x1fde24(0xea),_0x14dc9f)[_0x1fde24(0xe1)](_0x55f71c=>{const _0x225036=_0x1fde24;this[_0x225036(0xcf)]['set'](_0x3fecec,_0x55f71c);});}catch(_0x3721e3){this[_0x1fde24(0xd3)][_0x1fde24(0xde)][_0x1fde24(0xe2)](_0x1fde24(0xed),{'error':_0x3721e3});throw _0x3721e3;}}async[a48_0x3a95a0(0xd1)](_0x6b85c3){const _0x4de974=a48_0x3a95a0;try{if(!this['owl'][_0x4de974(0xe8)]())throw new Error(_0x4de974(0xdf));await this[_0x4de974(0xd3)][_0x4de974(0xde)]['emit']('user.deleted',{'id':_0x6b85c3}),this['cache'][_0x4de974(0xd1)](_0x6b85c3);}catch(_0x3888ad){this[_0x4de974(0xd3)]['events']['emit'](_0x4de974(0xed),{'error':_0x3888ad});throw _0x3888ad;}}}
|
package/dist/owl/OWLClient.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a49_0x4c78(){const _0x4e71db=['360473BaJLGk','enc','158851YRvoZw','tokenIsValide','getCurrentUser','1068984QBmLft','fetchAll','http://localhost:3000/check','application/json','init','517whhPSK','213310yiWjwH','tokenValidate','token','users','receptions','3744onkbdB','validateToken','orders','login','000001:\x20Invalid\x20Token.','result','POST','866490UWXSCZ','events','toString','currentUser','30MovCbh','admin','taxes','then','5787xwGMjq','66kjRGEF','items','SHA256','purchases','stringify','suppliers','user.loggedIn','push','Hex','modules','17230znyqyk'];a49_0x4c78=function(){return _0x4e71db;};return a49_0x4c78();}const a49_0x1693e3=a49_0x4674;(function(_0x5c7797,_0xff8365){const _0x31938f=a49_0x4674,_0x7b1dc5=_0x5c7797();while(!![]){try{const _0x5887c3=-parseInt(_0x31938f(0x11c))/0x1+-parseInt(_0x31938f(0x11b))/0x2*(-parseInt(_0x31938f(0x111))/0x3)+-parseInt(_0x31938f(0x121))/0x4+-parseInt(_0x31938f(0x108))/0x5+parseInt(_0x31938f(0x10c))/0x6*(parseInt(_0x31938f(0x11e))/0x7)+-parseInt(_0x31938f(0x101))/0x8*(parseInt(_0x31938f(0x110))/0x9)+-parseInt(_0x31938f(0xfc))/0xa*(-parseInt(_0x31938f(0xfb))/0xb);if(_0x5887c3===_0xff8365)break;else _0x7b1dc5['push'](_0x7b1dc5['shift']());}catch(_0x594cfc){_0x7b1dc5['push'](_0x7b1dc5['shift']());}}}(a49_0x4c78,0x31b5b));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';function a49_0x4674(_0x3d8d67,_0x22e366){_0x3d8d67=_0x3d8d67-0xf9;const _0x4c7842=a49_0x4c78();let _0x46749f=_0x4c7842[_0x3d8d67];return _0x46749f;}import{TaxManager}from'../managers/TaxManager.js';import*as a49_0x500989 from'crypto-js';import{EventsDatabase}from'../core/EventsDatabase.js';export class OWLClient{constructor(_0xea5cbc){const _0x381a74=a49_0x4674;this[_0x381a74(0x11a)]=[],this[_0x381a74(0xfd)]=![],this[_0x381a74(0xfe)]=_0xea5cbc,this['users']=new UserManager(this),this['clients']=new ClientManager(this),this[_0x381a74(0x116)]=new SupplierManager(this),this[_0x381a74(0x112)]=new ItemManager(this),this[_0x381a74(0x103)]=new OrderManager(this),this['preparations']=new PreparationManager(this),this[_0x381a74(0x114)]=new PurchaseManager(this),this[_0x381a74(0x100)]=new ReceptionManager(this),this['stocks']=new StockManager(this),this[_0x381a74(0x10e)]=new TaxManager(this),this[_0x381a74(0x109)]=new EventBus();}async[a49_0x1693e3(0x102)](){const _0x5610c3=a49_0x1693e3,_0x5c0845=await fetch(_0x5610c3(0x123),{'method':_0x5610c3(0x107),'headers':{'Content-Type':_0x5610c3(0xf9)},'body':JSON[_0x5610c3(0x115)]({'content':a49_0x500989[_0x5610c3(0x113)](this[_0x5610c3(0xfe)])[_0x5610c3(0x10a)](a49_0x500989[_0x5610c3(0x11d)][_0x5610c3(0x119)])})}),_0x46ef90=await _0x5c0845['json']();return _0x46ef90[_0x5610c3(0x106)];}async['init'](){const _0x48ca04=a49_0x1693e3;await this[_0x48ca04(0x104)](),this['dbEvents']=new EventsDatabase(this),this[_0x48ca04(0x10b)]=new User(this,{'authorizations':new Set(['ADMIN'])}),await this[_0x48ca04(0xff)][_0x48ca04(0x122)]()[_0x48ca04(0x10f)](_0x42ceef=>{const _0x230231=_0x48ca04;[..._0x42ceef]['length']==0x0&&this[_0x230231(0xff)]['new']({'email':_0x230231(0x10d),'password':_0x230231(0x10d),'authorizations':new Set(['ADMIN'])}),this['currentUser']=undefined;}),this[_0x48ca04(0x109)]['on'](_0x48ca04(0x117),_0x2f95fc=>{const _0x22219b=_0x48ca04;this[_0x22219b(0x10b)]=_0x2f95fc;});}async['login'](){const _0x2d85f1=a49_0x1693e3;this[_0x2d85f1(0xfd)]=await this[_0x2d85f1(0x102)]();if(!this['tokenValidate'])throw new Error(_0x2d85f1(0x105));}['tokenIsValide'](){const _0x572f48=a49_0x1693e3;return this[_0x572f48(0xfd)];}[a49_0x1693e3(0x120)](){const _0x3c793d=a49_0x1693e3;if(!this[_0x3c793d(0x11f)]())throw new Error(_0x3c793d(0x105));return this[_0x3c793d(0x10b)]||new User(this,{});}['registerModule'](_0x210601){const _0x1b5c3d=a49_0x1693e3;if(!this['tokenIsValide']())throw new Error(_0x1b5c3d(0x105));_0x210601[_0x1b5c3d(0xfa)](this),this['modules'][_0x1b5c3d(0x118)](_0x210601);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owl-progiciel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Progiciel / ERP modulaire",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/body-parser": "^1.19.6",
|
|
28
28
|
"@types/cors": "^2.8.19",
|
|
29
|
+
"@types/crypto-js": "^4.2.2",
|
|
29
30
|
"@types/express": "^5.0.6",
|
|
30
31
|
"@types/node": "^20.6.1",
|
|
31
32
|
"prisma": "^6.19.2",
|
|
@@ -34,7 +35,8 @@
|
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@prisma/client": "^6.19.2",
|
|
36
37
|
"cors": "^2.8.6",
|
|
38
|
+
"crypto-js": "^4.2.0",
|
|
37
39
|
"express": "^5.2.1",
|
|
38
40
|
"owl-progiciel": "^1.0.2"
|
|
39
41
|
}
|
|
40
|
-
}
|
|
42
|
+
}
|