2021-05-17 05:02:59 +00:00
|
|
|
###### Attributes Supported by Integration Apps #######
|
|
|
|
# id: Internal Id for the integrations, used by the hooks
|
|
|
|
# logo: place the image in /public/dashboard/images/integrations and reference here
|
|
|
|
# i18n_key: the key under which translations for the integration is placed in en.yml
|
|
|
|
# action: if integration requires external redirect url
|
2021-06-06 11:29:05 +00:00
|
|
|
# hook_type: ( account / inbox )
|
2021-05-17 05:02:59 +00:00
|
|
|
# allow_multiple_hooks: whether multiple hooks can be created for the integration
|
|
|
|
# settings_json_schema: the json schema used to validate the settings hash (https://json-schema.org/)
|
|
|
|
# settings_form_schema: the formulate schema used in frontend to render settings form (https://vueformulate.com/)
|
|
|
|
########################################################
|
|
|
|
|
2020-06-12 17:42:47 +00:00
|
|
|
slack:
|
2020-06-22 07:49:26 +00:00
|
|
|
id: slack
|
|
|
|
logo: slack.png
|
2020-11-30 10:54:54 +00:00
|
|
|
i18n_key: slack
|
2020-06-25 18:05:16 +00:00
|
|
|
action: https://slack.com/oauth/v2/authorize?scope=commands,chat:write,channels:read,channels:manage,channels:join,groups:write,im:write,mpim:write,users:read,users:read.email,chat:write.customize,channels:history,groups:history,mpim:history,im:history
|
2021-05-17 05:02:59 +00:00
|
|
|
hook_type: account
|
|
|
|
allow_multiple_hooks: false
|
2020-08-03 07:52:51 +00:00
|
|
|
webhooks:
|
2020-06-22 07:49:26 +00:00
|
|
|
id: webhook
|
|
|
|
logo: cable.svg
|
2020-12-15 11:02:13 +00:00
|
|
|
i18n_key: webhooks
|
2020-06-22 07:49:26 +00:00
|
|
|
action: /webhook
|
2021-05-17 05:02:59 +00:00
|
|
|
hook_type: account
|
|
|
|
allow_multiple_hooks: true
|
2021-05-05 15:36:11 +00:00
|
|
|
dialogflow:
|
|
|
|
id: dialogflow
|
|
|
|
logo: dialogflow.svg
|
|
|
|
i18n_key: dialogflow
|
|
|
|
action: /dialogflow
|
2021-05-17 05:02:59 +00:00
|
|
|
hook_type: inbox
|
|
|
|
allow_multiple_hooks: true
|
|
|
|
settings_json_schema: {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"project_id": { "type": "string" },
|
|
|
|
"credentials": { "type": "object" }
|
|
|
|
},
|
|
|
|
"required": ["project_id", "credentials"],
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
settings_form_schema: [
|
|
|
|
{
|
|
|
|
"label": "Dialogflow Project ID",
|
|
|
|
"type": "text",
|
2021-06-06 11:29:05 +00:00
|
|
|
"name": "project_id",
|
|
|
|
"validation": "required",
|
|
|
|
"validationName": 'Project Id',
|
2021-05-17 05:02:59 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Dialogflow Project Key File",
|
|
|
|
"type": "textarea",
|
|
|
|
"name": "credentials",
|
2021-06-06 11:29:05 +00:00
|
|
|
"validation": "required|JSON",
|
|
|
|
"validationName": 'Credentials',
|
|
|
|
"validation-messages": {
|
|
|
|
"JSON": "Invalid JSON",
|
|
|
|
"required": "Credentials is required"
|
|
|
|
}
|
2021-05-17 05:02:59 +00:00
|
|
|
}
|
|
|
|
]
|
2021-06-06 11:29:05 +00:00
|
|
|
visible_properties: ['project_id']
|
|
|
|
fullcontact:
|
|
|
|
id: fullcontact
|
|
|
|
logo: fullcontact.png
|
|
|
|
i18n_key: fullcontact
|
|
|
|
action: /fullcontact
|
|
|
|
hook_type: account
|
|
|
|
allow_multiple_hooks: false
|
|
|
|
settings_json_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']
|