2021-04-22 18:57:38 +02:00
|
|
|
exports.LOGO_URL =
|
|
|
|
"https://d33wubrfki0l68.cloudfront.net/aac32159d7207b5085e74a7ef67afbb7027786c5/2b1fd/img/logo/bb-emblem.svg"
|
|
|
|
|
2021-03-29 18:31:41 +02:00
|
|
|
exports.UserStatus = {
|
|
|
|
ACTIVE: "active",
|
|
|
|
INACTIVE: "inactive",
|
|
|
|
}
|
2021-04-19 12:34:07 +02:00
|
|
|
|
|
|
|
exports.Groups = {
|
|
|
|
ALL_USERS: "all_users",
|
|
|
|
}
|
2021-04-20 19:14:36 +02:00
|
|
|
|
|
|
|
exports.Configs = {
|
|
|
|
SETTINGS: "settings",
|
|
|
|
ACCOUNT: "account",
|
|
|
|
SMTP: "smtp",
|
2021-04-21 22:08:04 +02:00
|
|
|
GOOGLE: "google",
|
2021-04-20 19:14:36 +02:00
|
|
|
}
|
2021-04-21 19:43:20 +02:00
|
|
|
|
2021-05-07 14:55:30 +02:00
|
|
|
exports.ConfigUploads = {
|
|
|
|
LOGO: "logo",
|
|
|
|
}
|
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
const TemplateTypes = {
|
2021-04-21 19:15:57 +02:00
|
|
|
EMAIL: "email",
|
|
|
|
}
|
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
const EmailTemplatePurpose = {
|
2021-04-22 18:57:38 +02:00
|
|
|
BASE: "base",
|
2021-04-22 16:26:32 +02:00
|
|
|
STYLES: "styles",
|
2021-04-21 19:15:57 +02:00
|
|
|
PASSWORD_RECOVERY: "password_recovery",
|
|
|
|
INVITATION: "invitation",
|
2021-04-26 15:14:51 +02:00
|
|
|
WELCOME: "welcome",
|
2021-04-21 19:15:57 +02:00
|
|
|
CUSTOM: "custom",
|
|
|
|
}
|
|
|
|
|
2021-04-22 18:57:38 +02:00
|
|
|
const TemplateBindings = {
|
2021-04-23 19:54:12 +02:00
|
|
|
PLATFORM_URL: "platformUrl",
|
2021-04-22 18:57:38 +02:00
|
|
|
COMPANY: "company",
|
|
|
|
LOGO_URL: "logoUrl",
|
|
|
|
STYLES: "styles",
|
|
|
|
BODY: "body",
|
2021-05-10 16:05:06 +02:00
|
|
|
INVITE_URL: "inviteUrl",
|
2021-04-22 18:57:38 +02:00
|
|
|
EMAIL: "email",
|
|
|
|
RESET_URL: "resetUrl",
|
|
|
|
USER: "user",
|
2021-04-26 15:14:51 +02:00
|
|
|
REQUEST: "request",
|
|
|
|
DOCS_URL: "docsUrl",
|
|
|
|
LOGIN_URL: "loginUrl",
|
2021-04-26 15:24:07 +02:00
|
|
|
CURRENT_YEAR: "currentYear",
|
|
|
|
CURRENT_DATE: "currentDate",
|
2021-05-05 13:11:06 +02:00
|
|
|
RESET_CODE: "resetCode",
|
|
|
|
INVITE_CODE: "inviteCode",
|
2021-04-22 18:57:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const TemplateMetadata = {
|
2021-04-22 16:26:32 +02:00
|
|
|
[TemplateTypes.EMAIL]: [
|
|
|
|
{
|
|
|
|
name: "Styling",
|
2021-04-22 18:57:38 +02:00
|
|
|
purpose: EmailTemplatePurpose.STYLES,
|
2021-04-22 18:58:14 +02:00
|
|
|
bindings: ["url", "company", "companyUrl", "styles", "body"],
|
2021-04-22 16:26:32 +02:00
|
|
|
},
|
|
|
|
{
|
2021-04-22 18:57:38 +02:00
|
|
|
name: "Base Format",
|
|
|
|
purpose: EmailTemplatePurpose.BASE,
|
2021-05-10 16:05:06 +02:00
|
|
|
bindings: ["company", "inviteUrl"],
|
2021-04-22 16:26:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Password Recovery",
|
2021-04-22 18:57:38 +02:00
|
|
|
purpose: EmailTemplatePurpose.PASSWORD_RECOVERY,
|
2021-04-22 16:26:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "New User Invitation",
|
2021-04-22 18:57:38 +02:00
|
|
|
purpose: EmailTemplatePurpose.INVITATION,
|
2021-04-22 16:26:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Custom",
|
2021-04-22 18:57:38 +02:00
|
|
|
purpose: EmailTemplatePurpose.CUSTOM,
|
2021-04-22 17:06:29 +02:00
|
|
|
},
|
|
|
|
],
|
2021-04-22 16:26:32 +02:00
|
|
|
}
|
2021-04-21 19:15:57 +02:00
|
|
|
|
2021-04-22 16:26:32 +02:00
|
|
|
// all purpose combined
|
|
|
|
exports.TemplatePurpose = {
|
|
|
|
...EmailTemplatePurpose,
|
|
|
|
}
|
|
|
|
exports.TemplateTypes = TemplateTypes
|
|
|
|
exports.EmailTemplatePurpose = EmailTemplatePurpose
|
2021-04-22 18:57:38 +02:00
|
|
|
exports.TemplateMetadata = TemplateMetadata
|
|
|
|
exports.TemplateBindings = TemplateBindings
|
2021-04-23 19:54:12 +02:00
|
|
|
exports.GLOBAL_OWNER = "global"
|