| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- const debug = require('debug')('growi:service:GlobalNotification');
- /**
- * the service class of GlobalNotificationSetting
- */
- class GlobalNotification {
- constructor() {
- }
- /**
- * send test notification
- * @memberof GlobalNotification
- */
- sendTesteNotification() {}
- /**
- * send notification at page creation
- * @memberof GlobalNotification
- */
- sendPageCreateNotification() {}
- /**
- * send notification at page edit
- * @memberof GlobalNotification
- */
- sendPageEditNotification() {}
- /**
- * send notification at page deletion
- * @memberof GlobalNotification
- */
- sendPageDeleteNotification() {}
- /**
- * send notification at page move
- * @memberof GlobalNotification
- */
- sendPageMoveNotification() {}
- /**
- * send notification at page like
- * @memberof GlobalNotification
- */
- sendPageLikeNotification() {}
- /**
- * send notification at page comment
- * @memberof GlobalNotification
- */
- sendCommentNotification() {}
- }
- module.exports = GlobalNotification;
- // res.send
- // const notifications = await findSettingByPathAndEvent(path, 'comment');
- // notifications.forEach(notification => {
- // sendCommentNotification(notification);
- // });
- // const mailOption = {
- // to: '',
- // from: '',
- // text: '#comment',
- // subject: '',
- // };
|