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

/**
 * The Economic -> Customer -> EconomicCustomerBarred object
 */
export const EconomicCustomerBarred = {
    get: async () => {
        return authenticatedRequest(
            "/economic/customers/barred",
            "GET"
        ).catch((error) => {
            handleEconomicError(error);
        });
    }
};
</script>