import AppError from "../../errors/AppError"; import SchedulingNotify from "../../models/SchedulingNotify"; interface Request { ticketId: string, statusChatEndId: string, schedulingDate: string, schedulingTime: string, message: string } const CreateSchedulingNotifyService = async ({ ticketId, statusChatEndId, schedulingDate, schedulingTime, message }: Request): Promise => { const schedulingNotify = await SchedulingNotify.create( { ticketId, statusChatEndId, schedulingDate, schedulingTime, message }) return schedulingNotify } export default CreateSchedulingNotifyService