import { LinksunBackend } from "@/services/api";

export async function cadastrarNotificacao(data: any) {
  const nomeDaFuncao = "cadastrarNotificacao";
  const response = await LinksunBackend.post(
    `?action=${nomeDaFuncao}&class=Notificacoes`,
    data
  ).then((res) => res.body);
  return response;
}

export async function cadastrarNotificacaoAutomatizada(data: any) {
  const nomeDaFuncao = "cadastrarNotificacaoAutomatizada";
  const response = await LinksunBackend.post(
    `?action=${nomeDaFuncao}&class=Notificacoes`,
    data
  ).then((res) => res.body);
  return response;
}
