import ApiService from "@/services/ApiService";

const baseUrl = "laundry/scans";

/**
 * Registro de escaneo por área (qrOrFolio + areaCode).
 * Respuesta API: { data, meta, errors }
 */
export const listOperators = async (areaCode) => {
  const response = await ApiService.get("laundry/scan-operators", {
    params: { area_code: areaCode },
  });
  return response.data;
};

export const create = async (payload) => {
  const response = await ApiService.post(`${baseUrl}`, payload);
  return response.data;
};
