shuttlepro-shared 1.2.92 → 1.2.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/repositories/index.js +2 -1
- package/models/Integration.js +1 -9
- package/models.js +2 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ const roleRepository = require("./role.repository");
|
|
|
12
12
|
const userPermissionRepository = require("./userPermission.repository");
|
|
13
13
|
const userRolePermissionRepository = require("./userRolePermission.repository");
|
|
14
14
|
const notificationSettingsRepository = require("./notificationSettings.repository");
|
|
15
|
-
|
|
15
|
+
const customerProfileRepository = require("./customerProfile.repository");
|
|
16
16
|
exports.module = {
|
|
17
17
|
workspaceRepository,
|
|
18
18
|
integrationRepository,
|
|
@@ -28,4 +28,5 @@ exports.module = {
|
|
|
28
28
|
roleRepository,
|
|
29
29
|
userPermissionRepository,
|
|
30
30
|
userRolePermissionRepository,
|
|
31
|
+
customerProfileRepository,
|
|
31
32
|
};
|
package/models/Integration.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
const mongoose = require("mongoose");
|
|
2
|
-
const { Schema } = mongoose;
|
|
3
|
-
|
|
4
1
|
const IntegrationSchema = new mongoose.Schema(
|
|
5
2
|
{
|
|
6
3
|
workspaceId: {
|
|
@@ -21,6 +18,7 @@ const IntegrationSchema = new mongoose.Schema(
|
|
|
21
18
|
"webChat",
|
|
22
19
|
"smtp_gmail",
|
|
23
20
|
"outlook",
|
|
21
|
+
"business_central",
|
|
24
22
|
],
|
|
25
23
|
},
|
|
26
24
|
chatbot: { type: Boolean, default: false },
|
|
@@ -45,10 +43,4 @@ const IntegrationSchema = new mongoose.Schema(
|
|
|
45
43
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
46
44
|
);
|
|
47
45
|
|
|
48
|
-
IntegrationSchema.virtual("conversations", {
|
|
49
|
-
ref: "Conversation",
|
|
50
|
-
localField: "_id",
|
|
51
|
-
foreignField: "platformId",
|
|
52
|
-
});
|
|
53
|
-
|
|
54
46
|
module.exports = mongoose.model("Integration", IntegrationSchema);
|
package/models.js
CHANGED
|
@@ -42,6 +42,7 @@ const NewProduct = require("./models/NewProduct");
|
|
|
42
42
|
const NotificationSettings = require("./models/NotificationSettings");
|
|
43
43
|
const UserWorkflow = require("./models/UserWorkflow");
|
|
44
44
|
const Setting = require("./models/Setting");
|
|
45
|
+
const CustomerProfile = require("./models/CustomerProfile");
|
|
45
46
|
module.exports = {
|
|
46
47
|
Website,
|
|
47
48
|
ProductQueue,
|
|
@@ -87,4 +88,5 @@ module.exports = {
|
|
|
87
88
|
NotificationSettings,
|
|
88
89
|
UserWorkflow,
|
|
89
90
|
Setting,
|
|
91
|
+
CustomerProfile,
|
|
90
92
|
};
|