Feature: Slack integration (#783)

- Integrations architecture
- Slack integration
This commit is contained in:
Subin T P
2020-06-12 23:12:47 +05:30
committed by GitHub
parent 4f3b483066
commit ed1c871633
44 changed files with 867 additions and 7 deletions

View File

@@ -0,0 +1 @@
APPS_CONFIG = YAML.load_file(File.join(Rails.root, 'config/integration', 'apps.yml'))

View File

@@ -0,0 +1,6 @@
slack:
id: cw_slack
name: Slack
logo: https://a.slack-edge.com/80588/marketing/img/media-kit/img-logos@2x.png
description: "'Be less busy' - Slack is the chat tool that brings all your communication together in one place. By integrating Slack with SupportBee, you can get notified in your Slack channels for important events in your support desk"
button: <a href="https://slack.com/oauth/v2/authorize?scope=incoming-webhook,commands,chat:write&client_id=706921004289.1094198503990"><img alt=""Add to Slack"" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/add_to_slack@2x.png 2x" /></a>

View File

@@ -87,18 +87,26 @@ Rails.application.routes.draw do
end
resource :notification_settings, only: [:show, :update]
resources :webhooks, except: [:show]
resources :webhooks, except: [:show]
namespace :integrations do
resources :apps, only: [:index, :show]
resources :slack, only: [:create, :update, :destroy]
end
end
end
# end of account scoped api routes
# ----------------------------------
namespace :integrations do
resources :webhooks, only: [:create]
end
resource :profile, only: [:show, :update]
resource :notification_subscriptions, only: [:create]
resources :agent_bots, only: [:index]
namespace :widget do
resources :events, only: [:create]
resources :messages, only: [:index, :create, :update]

View File

@@ -13,6 +13,7 @@
:queues:
- [low, 1]
- [webhooks, 1]
- [integrations, 2]
- [bots, 1]
- [active_storage_analysis, 1]
- [action_mailbox_incineration, 1]