Chore: Update swagger API documentation (#745)
* Chore: Update swagger documentation
This commit is contained in:
@@ -2,6 +2,7 @@ json.id @inbox.id
|
||||
json.channel_id @inbox.channel_id
|
||||
json.name @inbox.name
|
||||
json.channel_type @inbox.channel_type
|
||||
json.avatar_url @inbox.try(:avatar_url)
|
||||
json.website_token @inbox.channel.try(:website_token)
|
||||
json.widget_color @inbox.channel.try(:widget_color)
|
||||
json.website_url @inbox.channel.try(:website_url)
|
||||
@@ -9,3 +10,4 @@ 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)
|
||||
json.web_widget_script @inbox.channel.try(:web_widget_script)
|
||||
json.enable_auto_assignment @inbox.enable_auto_assignment
|
||||
|
||||
@@ -2,6 +2,7 @@ json.id @inbox.id
|
||||
json.channel_id @inbox.channel_id
|
||||
json.name @inbox.name
|
||||
json.channel_type @inbox.channel_type
|
||||
json.avatar_url @inbox.try(:avatar_url)
|
||||
json.website_token @inbox.channel.try(:website_token)
|
||||
json.widget_color @inbox.channel.try(:widget_color)
|
||||
json.website_url @inbox.channel.try(:website_url)
|
||||
@@ -9,3 +10,4 @@ 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)
|
||||
json.web_widget_script @inbox.channel.try(:web_widget_script)
|
||||
json.enable_auto_assignment @inbox.enable_auto_assignment
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
window.chatwootWebChannel = {
|
||||
websiteName: '<%= @web_widget.inbox.name %>',
|
||||
widgetColor: '<%= @web_widget.widget_color %>',
|
||||
websiteToken: '<%= @web_widget.welcome_title %>',
|
||||
websiteToken: '<%= @web_widget.website_token %>',
|
||||
welcomeTitle: '<%= @web_widget.welcome_title %>',
|
||||
welcomeTagline: '<%= @web_widget.welcome_tagline %>',
|
||||
avatarUrl: '<%= @web_widget.inbox.avatar_url %>',
|
||||
}
|
||||
window.chatwootPubsubToken = '<%= @contact.pubsub_token %>'
|
||||
window.authToken = '<%= @token %>'
|
||||
|
||||
Reference in New Issue
Block a user