feat: Add a pre-chat form on widget (#1769)
This commit is contained in:
9
app/views/api/v1/models/_widget_message.json.jbuilder
Normal file
9
app/views/api/v1/models/_widget_message.json.jbuilder
Normal file
@@ -0,0 +1,9 @@
|
||||
json.id resource.id
|
||||
json.content resource.content
|
||||
json.message_type resource.message_type_before_type_cast
|
||||
json.content_type resource.content_type
|
||||
json.content_attributes resource.content_attributes
|
||||
json.created_at resource.created_at.to_i
|
||||
json.conversation_id resource.conversation.display_id
|
||||
json.attachments resource.attachments.map(&:push_event_data) if resource.attachments.present?
|
||||
json.sender resource.sender.push_event_data if resource.sender
|
||||
Reference in New Issue
Block a user