"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SendEmail = void 0;
var _axiosAPIClient = require("../api/axiosAPIClient");
var _enums = require("../constants/enums");
var _wrapperService = require("./wrapperService");
const REACT_APP_AUTHAPI_URL = process.env.REACT_APP_AUTHAPI_URL;
const SEND_FEEDBACK_EMAIL_URL = _enums.endPoints.SEND_FEEDBACK_EMAIL_URL;
const SendEmail = async input => {
  try {
    const url = "".concat(REACT_APP_AUTHAPI_URL).concat((0, _wrapperService.getAPIPrefix)()).concat(SEND_FEEDBACK_EMAIL_URL);
    const response = await _axiosAPIClient.axiosApiInstance.post(url, input);
    if (response.status === 200) {
      return await response.data;
    }
  } catch (err) {
    throw new Error("Exception occurred");
  }
};
exports.SendEmail = SendEmail;