Feature: Slack integration (#783)
- Integrations architecture - Slack integration
This commit is contained in:
1
config/initializers/00_init.rb
Normal file
1
config/initializers/00_init.rb
Normal file
@@ -0,0 +1 @@
|
||||
APPS_CONFIG = YAML.load_file(File.join(Rails.root, 'config/integration', 'apps.yml'))
|
||||
6
config/integration/apps.yml
Normal file
6
config/integration/apps.yml
Normal 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>
|
||||
@@ -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]
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
:queues:
|
||||
- [low, 1]
|
||||
- [webhooks, 1]
|
||||
- [integrations, 2]
|
||||
- [bots, 1]
|
||||
- [active_storage_analysis, 1]
|
||||
- [action_mailbox_incineration, 1]
|
||||
|
||||
Reference in New Issue
Block a user