feat(sla): persist applied sla on conversations

This commit is contained in:
2026-06-05 07:16:05 +08:00
parent 4cf68d1639
commit a11bb965fa
6 changed files with 270 additions and 30 deletions
+2
View File
@@ -486,6 +486,8 @@ func Bootstrap(env string) (*App, error) {
inboxMemberService := service.NewInboxMemberService(inboxMemberRepo)
accountUserRepo := repository.NewAccountUserRepo(db)
conversationService := service.NewConversationService(conversationRepo, messageRepo, channelDispatcher, inboxMemberService, accountUserRepo, teamRepo, teamMemberRepo)
appliedSlaService := service.NewAppliedSlaService(appliedSlaRepo, slaEventRepo, slaPolicyRepo, conversationRepo)
conversationService.SetAppliedSlaService(appliedSlaService)
conversationParticipantService := service.NewConversationParticipantService(conversationParticipantRepo, conversationRepo)
draftMessageService := service.NewDraftMessageService(draftMessageRepo, conversationRepo)
inboxService := service.NewInboxService(inboxRepo, agentBotInboxRepo, agentBotRepo, campaignRepo, webhookSubRepo, waService, waRepo)