feat: Add backend APIs for Dyte integration (#6197)
- The backend changes required for Dyte Integration.
This commit is contained in:
@@ -60,20 +60,34 @@ dialogflow:
|
||||
}
|
||||
]
|
||||
visible_properties: ['project_id']
|
||||
fullcontact:
|
||||
id: fullcontact
|
||||
logo: fullcontact.png
|
||||
i18n_key: fullcontact
|
||||
action: /fullcontact
|
||||
dyte:
|
||||
id: dyte
|
||||
logo: dyte.png
|
||||
i18n_key: dyte
|
||||
action: /dyte
|
||||
hook_type: account
|
||||
allow_multiple_hooks: false
|
||||
settings_json_schema:
|
||||
settings_json_schema: {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"api_key": { "type": "string" },
|
||||
"organization_id": { "type": "string" },
|
||||
},
|
||||
"required": ["api_key", "organization_id"],
|
||||
"additionalProperties": false,
|
||||
}
|
||||
settings_form_schema: [
|
||||
{
|
||||
'type': 'object',
|
||||
'properties': { 'api_key': { 'type': 'string' } },
|
||||
'required': ['api_key'],
|
||||
'additionalProperties': false,
|
||||
}
|
||||
settings_form_schema:
|
||||
[{ 'label': 'API Key', 'type': 'text', 'name': 'api_key',"validation": "required", }]
|
||||
visible_properties: ['api_key']
|
||||
"label": "Organization ID",
|
||||
"type": "text",
|
||||
"name": "organization_id",
|
||||
"validation": "required",
|
||||
},
|
||||
{
|
||||
"label": "API Key",
|
||||
"type": "text",
|
||||
"name": "api_key",
|
||||
"validation": "required",
|
||||
},
|
||||
]
|
||||
visible_properties: ["organization_id"]
|
||||
|
||||
@@ -51,13 +51,15 @@ en:
|
||||
contacts:
|
||||
import:
|
||||
failed: File is blank
|
||||
email:
|
||||
email:
|
||||
invalid: Invalid email
|
||||
phone_number:
|
||||
invalid: should be in e164 format
|
||||
categories:
|
||||
locale:
|
||||
unique: should be unique in the category and portal
|
||||
dyte:
|
||||
invalid_message_type: "Invalid message type. Action not permitted"
|
||||
inboxes:
|
||||
imap:
|
||||
socket_error: Please check the network connection, IMAP address and try again.
|
||||
@@ -153,6 +155,10 @@ en:
|
||||
online:
|
||||
delete: "%{contact_name} is Online, please try again later"
|
||||
integration_apps:
|
||||
dyte:
|
||||
name: "Dyte"
|
||||
description: "Dyte is tool that helps you to add live audio & video to your application with just a few lines of code. This integration allows you to give an option to your agents to have a video or voice call with your customers from without leaving Chatwoot."
|
||||
meeting_name: "%{agent_name} has started a meeting"
|
||||
slack:
|
||||
name: "Slack"
|
||||
description: "Slack is a chat tool that brings all your communication together in one place. By integrating Slack, you can get notified of all the new conversations in your account right inside your Slack."
|
||||
|
||||
@@ -158,6 +158,12 @@ Rails.application.routes.draw do
|
||||
resources :apps, only: [:index, :show]
|
||||
resources :hooks, only: [:create, :update, :destroy]
|
||||
resource :slack, only: [:create, :update, :destroy], controller: 'slack'
|
||||
resource :dyte, controller: 'dyte', only: [] do
|
||||
collection do
|
||||
post :create_a_meeting
|
||||
post :add_participant_to_meeting
|
||||
end
|
||||
end
|
||||
end
|
||||
resources :working_hours, only: [:update]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user