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

export async function editarNotificacao(data: any) {
  const nomeDaFuncao = "editarNotificacao";
  const response = await LinksunBackend.post(
    `?action=${nomeDaFuncao}&class=Notificacoes`,
    data,
    { noToast: true }
  );
  return response;
}

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