2019-12-28 16:26:42 +00:00
|
|
|
json.payload do
|
|
|
|
json.array! @inboxes do |inbox|
|
|
|
|
json.id inbox.id
|
|
|
|
json.channel_id inbox.channel_id
|
|
|
|
json.name inbox.name
|
|
|
|
json.channel_type inbox.channel_type
|
2020-04-19 18:10:28 +00:00
|
|
|
json.avatar_url inbox.try(:avatar_url)
|
2019-12-28 16:26:42 +00:00
|
|
|
json.page_id inbox.channel.try(:page_id)
|
|
|
|
json.widget_color inbox.channel.try(:widget_color)
|
2020-04-19 18:10:28 +00:00
|
|
|
json.website_url inbox.channel.try(:website_url)
|
|
|
|
json.welcome_title inbox.channel.try(:welcome_title)
|
|
|
|
json.welcome_tagline inbox.channel.try(:welcome_tagline)
|
|
|
|
json.agent_away_message inbox.channel.try(:agent_away_message)
|
2020-02-19 09:10:03 +00:00
|
|
|
json.enable_auto_assignment inbox.enable_auto_assignment
|
2020-03-16 07:02:34 +00:00
|
|
|
json.web_widget_script inbox.channel.try(:web_widget_script)
|
2020-04-05 16:41:27 +00:00
|
|
|
json.phone_number inbox.channel.try(:phone_number)
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|
|
|
|
end
|