'use strict';

const HANDLERS = {
  ...require('../../modules/centralizador/centralizadorCommandHandlers').HANDLERS,
  'CHANGE_PRODUCT_PRICE': (...args) => require('../softrestaurantMappers/changeProductPrice').changeProductPrice(...args),
  'UPSERT_PRODUCT': (...args) => require('../softrestaurantMappers/upsertProduct').upsertProduct(...args),
  'UPSERT_PRODUCT_WITH_MODIFIERS': (...args) => require('../softrestaurantMappers/upsertProductWithModifiers').upsertProductWithModifiers(...args),
  'CREATE_INVENTORY_WASTE': (...args) => require('../softrestaurantMappers/createInventoryWaste').createInventoryWaste(...args),
  'config.product.price.update': (...args) => require('./productCommandHandlers').updatePrice(...args),
  'config.product.create': (...args) => require('./productCommandHandlers').createProduct(...args),
  'config.product.update': (...args) => require('./productCommandHandlers').updateProduct(...args),
  'config.ingredient.create': (...args) => require('./ingredientCommandHandlers').createIngredient(...args),
  'config.ingredient.update': (...args) => require('./ingredientCommandHandlers').updateIngredient(...args),
  'catalog.supplier.upsert': (...args) => require('./supplierCommandHandlers').upsertSupplier(...args),
  'CREATE_PURCHASE': (...args) => require('./purchaseCommandHandlers').createPurchase(...args),
  'purchase.create': (...args) => require('./purchaseCommandHandlers').createPurchase(...args),
  'purchase.order.create': (...args) => require('./purchaseCommandHandlers').createPurchaseOrder(...args),
  'purchase.cancel': (...args) => require('./purchaseCommandHandlers').cancelPurchase(...args),
  'config.recipe.update': (...args) => require('./recipeCommandHandlers').updateRecipe(...args),
  'config.foodcost.recalculate': (...args) => require('./foodcostCommandHandlers').recalculate(...args),
  'config.inventory.adjust': (...args) => require('./inventoryCommandHandlers').adjust(...args),
  'inventory.count.apply': (...args) => require('./inventoryCommandHandlers').applyCount(...args),
  'config.payment_method.update': (...args) => require('./paymentCommandHandlers').update(...args),
  'billing.provider.config.update': (...args) => require('./billingCommandHandlers').updateProviderConfig(...args),
  'billing.micfdi.real_stamp': (...args) => require('./micfdiRealStampCommandHandler').execute(...args),
};

module.exports = { HANDLERS };
