feat: Add customer satisfaction component (#2456)

This commit is contained in:
Muhsin Keloth
2021-06-22 13:01:19 +05:30
committed by GitHub
parent a357b657a8
commit 29b9915d3b
11 changed files with 225 additions and 6 deletions

View File

@@ -10,6 +10,17 @@ module WootMessageSeeder
)
end
def self.create_sample_csat_collect_message(conversation)
Message.create!(
account: conversation.account,
inbox: conversation.inbox,
conversation: conversation,
message_type: :template,
content_type: :input_csat,
content: 'Please rate the support'
)
end
def self.create_sample_cards_message(conversation)
Message.create!(
account: conversation.account,