import API from "../../Utils/API";
import logger from "./Logger";
export default class StatusPageSubscriberWebhookUtil {
    static async sendWebhookNotification(data) {
        logger.debug("Sending status page subscriber webhook notification.");
        const apiResult = await API.post({
            url: data.webhookUrl,
            data: data.payload,
            options: {
                retries: 3,
                exponentialBackoff: true,
            },
        });
        logger.debug("Status page subscriber webhook response:");
        logger.debug(apiResult);
        return apiResult;
    }
}
//# sourceMappingURL=StatusPageSubscriberWebhook.js.map