Added Helpdesk

Added M2M Auth
This commit is contained in:
2025-10-31 16:27:56 +01:00
parent bbd5bbab9b
commit 2eb19b36a6
7 changed files with 232 additions and 7 deletions

View File

@@ -220,7 +220,8 @@ const helpdeskRoutes: FastifyPluginAsync = async (server) => {
subject,
channel_instance_id,
helpdesk_contacts(email),
helpdesk_channel_instances(config, name)
helpdesk_channel_instances(config, name),
ticket_number
`)
.eq("id", conversationId)
.single()
@@ -263,7 +264,7 @@ const helpdeskRoutes: FastifyPluginAsync = async (server) => {
const mailOptions = {
from: `"${channel?.name}" <${user}>`,
to: contact.email,
subject: conv.subject || "Antwort vom FEDEO Helpdesk",
subject: `${conv.ticket_number} | ${conv.subject}` || `${conv.ticket_number} | Antwort vom FEDEO Helpdesk`,
text,
}