2020-05-11 20:01:40 +00:00
|
|
|
const {
|
2020-07-26 16:20:59 +00:00
|
|
|
APP_VERSION: appVersion,
|
2020-07-30 18:28:42 +00:00
|
|
|
BRAND_NAME: brandName,
|
2021-02-08 11:08:35 +00:00
|
|
|
CHATWOOT_INBOX_TOKEN: chatwootInboxToken,
|
2021-01-17 18:29:09 +00:00
|
|
|
CREATE_NEW_ACCOUNT_FROM_DASHBOARD: createNewAccountFromDashboard,
|
|
|
|
DISPLAY_MANIFEST: displayManifest,
|
2020-07-26 07:24:50 +00:00
|
|
|
INSTALLATION_NAME: installationName,
|
2020-05-11 20:01:40 +00:00
|
|
|
LOGO_THUMBNAIL: logoThumbnail,
|
|
|
|
LOGO: logo,
|
|
|
|
PRIVACY_URL: privacyURL,
|
2020-07-26 07:24:50 +00:00
|
|
|
TERMS_URL: termsURL,
|
|
|
|
WIDGET_BRAND_URL: widgetBrandURL,
|
2021-04-30 09:54:00 +00:00
|
|
|
} = window.globalConfig || {};
|
2020-05-11 20:01:40 +00:00
|
|
|
|
|
|
|
const state = {
|
2020-07-26 16:20:59 +00:00
|
|
|
appVersion,
|
2020-07-30 18:28:42 +00:00
|
|
|
brandName,
|
2021-02-08 11:08:35 +00:00
|
|
|
chatwootInboxToken,
|
2021-01-17 18:29:09 +00:00
|
|
|
createNewAccountFromDashboard,
|
|
|
|
displayManifest,
|
2020-05-11 20:01:40 +00:00
|
|
|
installationName,
|
2020-07-26 07:24:50 +00:00
|
|
|
logo,
|
|
|
|
logoThumbnail,
|
2020-05-11 20:01:40 +00:00
|
|
|
privacyURL,
|
2020-07-26 07:24:50 +00:00
|
|
|
termsURL,
|
|
|
|
widgetBrandURL,
|
2020-05-11 20:01:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const getters = {
|
|
|
|
get: $state => $state,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const actions = {};
|
|
|
|
|
|
|
|
export const mutations = {};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state,
|
|
|
|
getters,
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
};
|