2020-07-21 06:45:24 +00:00
|
|
|
json.id resource.id
|
|
|
|
json.channel_id resource.channel_id
|
|
|
|
json.name resource.name
|
|
|
|
json.channel_type resource.channel_type
|
|
|
|
json.greeting_enabled resource.greeting_enabled
|
|
|
|
json.greeting_message resource.greeting_message
|
2021-02-23 06:41:15 +00:00
|
|
|
json.working_hours_enabled resource.working_hours_enabled
|
2021-06-10 09:34:03 +00:00
|
|
|
json.enable_email_collect resource.enable_email_collect
|
2021-02-23 06:41:15 +00:00
|
|
|
json.out_of_office_message resource.out_of_office_message
|
2021-07-05 05:37:02 +00:00
|
|
|
json.csat_survey_enabled resource.csat_survey_enabled
|
2021-02-23 06:41:15 +00:00
|
|
|
json.working_hours resource.weekly_schedule
|
|
|
|
json.timezone resource.timezone
|
2020-07-21 06:45:24 +00:00
|
|
|
json.avatar_url resource.try(:avatar_url)
|
|
|
|
json.page_id resource.channel.try(:page_id)
|
|
|
|
json.widget_color resource.channel.try(:widget_color)
|
|
|
|
json.website_url resource.channel.try(:website_url)
|
|
|
|
json.welcome_title resource.channel.try(:welcome_title)
|
|
|
|
json.welcome_tagline resource.channel.try(:welcome_tagline)
|
|
|
|
json.enable_auto_assignment resource.enable_auto_assignment
|
|
|
|
json.web_widget_script resource.channel.try(:web_widget_script)
|
2021-02-15 07:38:15 +00:00
|
|
|
json.website_token resource.channel.try(:website_token)
|
2021-03-04 08:29:59 +00:00
|
|
|
json.forward_to_email resource.channel.try(:forward_to_email)
|
2020-07-21 06:45:24 +00:00
|
|
|
json.phone_number resource.channel.try(:phone_number)
|
2020-08-05 12:16:17 +00:00
|
|
|
json.selected_feature_flags resource.channel.try(:selected_feature_flags)
|
2020-10-18 18:02:22 +00:00
|
|
|
json.reply_time resource.channel.try(:reply_time)
|
2020-09-29 19:42:32 +00:00
|
|
|
json.reauthorization_required resource.channel.try(:reauthorization_required?) if resource.facebook?
|
2021-02-15 19:28:57 +00:00
|
|
|
if resource.web_widget?
|
|
|
|
json.hmac_token resource.channel.try(:hmac_token)
|
|
|
|
json.pre_chat_form_enabled resource.channel.try(:pre_chat_form_enabled)
|
|
|
|
json.pre_chat_form_options resource.channel.try(:pre_chat_form_options)
|
|
|
|
end
|