|
|
@@ -69,6 +69,7 @@ function Crowi() {
|
|
|
this.interceptorManager = new InterceptorManager();
|
|
|
this.slackIntegrationService = null;
|
|
|
this.inAppNotificationService = null;
|
|
|
+ this.inAppNotificationSettingsService = null;
|
|
|
this.activityService = null;
|
|
|
this.commentService = null;
|
|
|
this.xss = new Xss();
|
|
|
@@ -129,6 +130,7 @@ Crowi.prototype.init = async function() {
|
|
|
this.setupImport(),
|
|
|
this.setupPageService(),
|
|
|
this.setupInAppNotificationService(),
|
|
|
+ this.setupInAppNotificationSettingsService(),
|
|
|
this.setupActivityService(),
|
|
|
this.setupCommentService(),
|
|
|
this.setupSyncPageStatusService(),
|
|
|
@@ -686,6 +688,13 @@ Crowi.prototype.setupInAppNotificationService = async function() {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+Crowi.prototype.setupInAppNotificationSettingsService = async function() {
|
|
|
+ const InAppNotificationSettingsService = require('../service/in-app-notification-settings');
|
|
|
+ if (this.inAppNotificationSettingsService == null) {
|
|
|
+ this.inAppNotificationSettingsService = new InAppNotificationSettingsService(this);
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
Crowi.prototype.setupActivityService = async function() {
|
|
|
const ActivityService = require('../service/activity');
|
|
|
if (this.activityService == null) {
|