<script>
import {authenticatedRequest} from "@/components/session/authenticatedRequest.vue";
import {handleEconomicError} from "@/components/request/HandleEconomicError.vue";

/**
 * The fromCustomerNumber object
 * This object is used to get, create and update customer data by customer number
 */
export const fromCustomerNumber = {
  getUserId: async (customerNumber) => {
    return authenticatedRequest(
        "/admin/customer/getUserId?customer_number=" + customerNumber,
        "GET")
  },
};

</script>