diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index 30b78772a..25a981df6 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -55,7 +55,8 @@ class DashboardController < ActionController::Base
ENABLE_ACCOUNT_SIGNUP: GlobalConfigService.load('ENABLE_ACCOUNT_SIGNUP', 'false'),
FB_APP_ID: GlobalConfigService.load('FB_APP_ID', ''),
FACEBOOK_API_VERSION: 'v14.0',
- IS_ENTERPRISE: ChatwootApp.enterprise?
+ IS_ENTERPRISE: ChatwootApp.enterprise?,
+ AZURE_APP_ID: ENV.fetch('AZURE_APP_ID', '')
}
end
end
diff --git a/app/javascript/dashboard/api/channel/microsoftClient.js b/app/javascript/dashboard/api/channel/microsoftClient.js
new file mode 100644
index 000000000..2d43fb132
--- /dev/null
+++ b/app/javascript/dashboard/api/channel/microsoftClient.js
@@ -0,0 +1,14 @@
+/* global axios */
+import ApiClient from '../ApiClient';
+
+class MicrosoftClient extends ApiClient {
+ constructor() {
+ super('microsoft', { accountScoped: true });
+ }
+
+ generateAuthorization(payload) {
+ return axios.post(`${this.url}/authorization`, payload);
+ }
+}
+
+export default new MicrosoftClient();
diff --git a/app/javascript/dashboard/components/ChannelSelector.vue b/app/javascript/dashboard/components/ChannelSelector.vue
index 80d599e5d..f64000fb5 100644
--- a/app/javascript/dashboard/components/ChannelSelector.vue
+++ b/app/javascript/dashboard/components/ChannelSelector.vue
@@ -36,7 +36,7 @@ export default {
margin: -1px;
padding: var(--space-normal) 0;
transition: all 0.2s ease-in;
-
+ align-items: center;
&:hover {
border: 1px solid var(--w-500);
box-shadow: var(--shadow-medium);
diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json
index e7f8e42a5..1ac74ee73 100644
--- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json
+++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json
@@ -53,10 +53,6 @@
"ENABLE": "Create conversations from mentioned Tweets"
}
},
- "MICROSOFT": {
- "HELP": "To add your Microsoft account as a channel, you need to authenticate your Microsoft account by clicking on 'Sign in with Microsoft' ",
- "ERROR_MESSAGE": "There was an error connecting to Microsoft, please try again"
- },
"WEBSITE_CHANNEL": {
"TITLE": "Website channel",
"DESC": "Create a channel for your website and start supporting your customers via our website widget.",
@@ -218,7 +214,7 @@
"PHONE_NUMBER": {
"LABEL": "Phone number",
"PLACEHOLDER": "Please enter the phone number from which message will be sent.",
- "ERROR": "Please provide a valid phone number that starts with a `+` sign and does not contain any spaces."
+ "ERROR": "Please provide a valid phone number that starts with a `+` sign and does not contain any spaces."
},
"PHONE_NUMBER_ID": {
"LABEL": "Phone number ID",
@@ -348,6 +344,17 @@
"FINISH": {
"TITLE": "Nailed It!",
"DESC": "You have successfully finished integrating your Facebook Page with Chatwoot. Next time a customer messages your Page, the conversation will automatically appear on your inbox.
We are also providing you with a widget script that you can easily add to your website. Once this is live on your website, customers can message you right from your website without the help of any external tool and the conversation will appear right here, on Chatwoot.
Cool, huh? Well, we sure try to be :)"
+ },
+ "EMAIL_PROVIDER": {
+ "TITLE": "Select your email provider",
+ "DESCRIPTION": "Select an email provider from the list below. If you don't see your email provider in the list, you can select the other provider option and provide the IMAP and SMTP Credentials."
+ },
+ "MICROSOFT": {
+ "TITLE": "Microsoft Email",
+ "DESCRIPTION": "Click on the Sign in with Microsoft button to get started. You will redirected to the email sign in page. Once you accept the requested permissions, you would be redirected back to the inbox creation step.",
+ "EMAIL_PLACEHOLDER": "Enter email address",
+ "HELP": "To add your Microsoft account as a channel, you need to authenticate your Microsoft account by clicking on 'Sign in with Microsoft' ",
+ "ERROR_MESSAGE": "There was an error connecting to Microsoft, please try again"
}
},
"DETAILS": {
@@ -674,6 +681,10 @@
},
"BRANDING_TEXT": "Powered by Chatwoot",
"SCRIPT_SETTINGS": "\n window.chatwootSettings = {options};"
+ },
+ "EMAIL_PROVIDERS": {
+ "MICROSOFT": "Microsoft",
+ "OTHER_PROVIDERS": "Other Providers"
}
}
}
diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/FinishSetup.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/FinishSetup.vue
index 7931016e4..f302c2aec 100644
--- a/app/javascript/dashboard/routes/dashboard/settings/inbox/FinishSetup.vue
+++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/FinishSetup.vue
@@ -50,12 +50,11 @@
:script="currentInbox.callback_webhook_url"
/>
-