|
|
@@ -64,6 +64,7 @@ function Crowi() {
|
|
|
this.interceptorManager = new InterceptorManager();
|
|
|
this.slackIntegrationService = null;
|
|
|
this.inAppNotificationService = null;
|
|
|
+ this.ActivityService = null;
|
|
|
this.xss = new Xss();
|
|
|
|
|
|
this.tokens = null;
|
|
|
@@ -122,6 +123,7 @@ Crowi.prototype.init = async function() {
|
|
|
this.setupImport(),
|
|
|
this.setupPageService(),
|
|
|
this.setupInAppNotificationService(),
|
|
|
+ this.setupActivityService(),
|
|
|
this.setupSyncPageStatusService(),
|
|
|
]);
|
|
|
|
|
|
@@ -160,7 +162,8 @@ Crowi.prototype.initForTest = async function() {
|
|
|
// this.setupExport(),
|
|
|
// this.setupImport(),
|
|
|
this.setupPageService(),
|
|
|
- this.setupInAppNotificationService(),
|
|
|
+ // this.setupInAppNotificationService(),
|
|
|
+ // this.setupActivityService(),
|
|
|
]);
|
|
|
|
|
|
// globalNotification depends on slack and mailer
|
|
|
@@ -648,6 +651,13 @@ Crowi.prototype.setupInAppNotificationService = async function() {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+Crowi.prototype.setupActivityService = async function() {
|
|
|
+ const ActivityService = require('../service/activity');
|
|
|
+ if (this.activityService == null) {
|
|
|
+ this.activityService = new ActivityService(this);
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
Crowi.prototype.setupSyncPageStatusService = async function() {
|
|
|
const SyncPageStatusService = require('../service/system-events/sync-page-status');
|
|
|
if (this.syncPageStatusService == null) {
|