|
|
@@ -1,12 +1,13 @@
|
|
|
const crypto = require('crypto');
|
|
|
const mongoose = require('mongoose');
|
|
|
+const { defaultSupportedCommandsNameForBroadcastUse, defaultSupportedCommandsNameForSingleUse } = require('@growi/slack');
|
|
|
|
|
|
const schema = new mongoose.Schema({
|
|
|
tokenGtoP: { type: String, required: true, unique: true },
|
|
|
tokenPtoG: { type: String, required: true, unique: true },
|
|
|
isPrimary: { type: Boolean, unique: true, sparse: true },
|
|
|
- supportedCommandsForBroadcastUse: { type: [String], default: [] },
|
|
|
- supportedCommandsForSingleUse: { type: [String], default: [] },
|
|
|
+ supportedCommandsForBroadcastUse: { type: [String], default: defaultSupportedCommandsNameForBroadcastUse },
|
|
|
+ supportedCommandsForSingleUse: { type: [String], default: defaultSupportedCommandsNameForSingleUse },
|
|
|
});
|
|
|
|
|
|
class SlackAppIntegration {
|