"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InternalNoteService = void 0;
class InternalNoteService {
    noteRepository;
    logger;
    constructor(noteRepository, logger) {
        this.noteRepository = noteRepository;
        this.logger = logger;
    }
    async createNote(input) {
        const note = await this.noteRepository.create(input);
        this.logger.info("Internal note created.", { ticketId: input.ticketId, agentId: input.agentId });
        return note;
    }
    async getNotesByTicketId(ticketId) {
        return this.noteRepository.findByTicketId(ticketId);
    }
    async updateNote(id, text) {
        return this.noteRepository.update(id, text);
    }
    async deleteNote(id) {
        return this.noteRepository.delete(id);
    }
}
exports.InternalNoteService = InternalNoteService;
