shuttlepro-shared 1.3.29 → 1.3.31
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/customerProfile.repository.js +83 -14
- package/common/repositories/userRole.repository.js +5 -2
- package/config/redis.js +72 -73
- package/middlewares/checkPermission/index.js +36 -23
- package/models/Activity.js +28 -0
- package/models/AgentActivity.js +5 -2
- package/models/Attribute.js +130 -0
- package/models/Automation.js +238 -0
- package/models/Card.js +50 -1
- package/models/Catalogue.js +22 -0
- package/models/Category.js +129 -0
- package/models/ChatMemberSession.js +21 -0
- package/models/ChatMessage.js +43 -0
- package/models/Color.js +10 -0
- package/models/Column.js +6 -0
- package/models/Conversation.js +1 -0
- package/models/Customer.js +3 -2
- package/models/DeviceInfo.js +13 -0
- package/models/EscalationConfiguration.js +123 -0
- package/models/EscalationManager.js +50 -0
- package/models/Faq.js +29 -0
- package/models/FeedbackResponse.js +72 -0
- package/models/FormTemplate.js +27 -0
- package/models/Integration.js +6 -0
- package/models/InternalComments.js +27 -0
- package/models/InternalThreads.js +20 -0
- package/models/JobDesign.js +32 -0
- package/models/JobQueue.js +17 -0
- package/models/LabelsPdf.js +12 -0
- package/models/Layout.js +12 -0
- package/models/Location.js +147 -0
- package/models/Logo.js +11 -0
- package/models/Notification.js +32 -0
- package/models/Order.js +11 -0
- package/models/OrderPdf.js +29 -0
- package/models/PostsAutomation.js +66 -0
- package/models/Product.js +336 -0
- package/models/ProductAttachment.js +158 -0
- package/models/ProductAttribute.js +140 -0
- package/models/ProductCategory.js +128 -0
- package/models/ProductLabels.js +11 -0
- package/models/ProductShopify.js +13 -0
- package/models/ProductTag.js +124 -0
- package/models/ProductVariant.js +156 -0
- package/models/ServiceUsage.js +26 -0
- package/models/ShipperSetting.js +24 -0
- package/models/SocialGroup.js +127 -0
- package/models/SocialPost.js +40 -0
- package/models/SocialProfile.js +57 -0
- package/models/Tag.js +77 -0
- package/models/Template.js +76 -0
- package/models/TemplateFrame.js +37 -0
- package/models/TemplateTag.js +10 -0
- package/models/UserSession.js +47 -0
- package/models/VariantLocation.js +145 -0
- package/models/WhatsappFlow.js +0 -0
- package/models/Workflow.js +34 -0
- package/models/Workspace.js +13 -0
- package/models.js +148 -49
- package/package.json +1 -1
package/models/Tag.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
const TagSchema = new Schema(
|
|
4
|
+
{
|
|
5
|
+
name: { type: String, default: "" },
|
|
6
|
+
workspaceId: {
|
|
7
|
+
type: Schema.Types.ObjectId,
|
|
8
|
+
ref: "Workspace",
|
|
9
|
+
default: null,
|
|
10
|
+
},
|
|
11
|
+
oldId: { type: String, default: "" },
|
|
12
|
+
webTagId: { type: Number, default: "" },
|
|
13
|
+
createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
|
|
14
|
+
updatedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
|
|
15
|
+
isDeleted: { type: Boolean, default: false },
|
|
16
|
+
},
|
|
17
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const Tag = mongoose.model("Tag", TagSchema);
|
|
21
|
+
|
|
22
|
+
const tagsByAggregation = async (aggregate) => {
|
|
23
|
+
try {
|
|
24
|
+
return await Tag.aggregate(aggregate);
|
|
25
|
+
} catch (err) {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const findTags = async (obj) => {
|
|
31
|
+
try {
|
|
32
|
+
return await Tag.find(obj);
|
|
33
|
+
} catch (err) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const findSingleTag = async (obj) => {
|
|
39
|
+
try {
|
|
40
|
+
return await Tag.findOne(obj);
|
|
41
|
+
} catch (err) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const createTag = async (obj) => {
|
|
47
|
+
try {
|
|
48
|
+
const tag = new Tag(obj);
|
|
49
|
+
return await tag.save();
|
|
50
|
+
} catch (err) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const softDeleteTags = async (workspaceId, convertingIds, type) => {
|
|
55
|
+
try {
|
|
56
|
+
const filter = {
|
|
57
|
+
workspaceId: workspaceId,
|
|
58
|
+
isDeleted: false,
|
|
59
|
+
};
|
|
60
|
+
filter[type] = { $in: convertingIds };
|
|
61
|
+
const update = { $set: { isDeleted: true } };
|
|
62
|
+
const result = await Tag.updateMany(filter, update);
|
|
63
|
+
return result;
|
|
64
|
+
} catch (err) {
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
module.exports = {
|
|
70
|
+
Tag,
|
|
71
|
+
tagsByAggregation,
|
|
72
|
+
findTags,
|
|
73
|
+
findSingleTag,
|
|
74
|
+
createTag,
|
|
75
|
+
softDeleteTags,
|
|
76
|
+
Tag,
|
|
77
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
|
|
4
|
+
const templateSchema = new mongoose.Schema({
|
|
5
|
+
text: [
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
textId: String,
|
|
9
|
+
text: String,
|
|
10
|
+
fontSize: String,
|
|
11
|
+
color: String,
|
|
12
|
+
fontFamily: String,
|
|
13
|
+
fontWeight: String,
|
|
14
|
+
textDecoration: String,
|
|
15
|
+
fontStyle: String,
|
|
16
|
+
x: Number,
|
|
17
|
+
y: Number,
|
|
18
|
+
width: Number,
|
|
19
|
+
rotation: { type: Number, default: 0 },
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
image: [
|
|
23
|
+
{
|
|
24
|
+
id: String,
|
|
25
|
+
src: String,
|
|
26
|
+
url: String,
|
|
27
|
+
x: Number,
|
|
28
|
+
y: Number,
|
|
29
|
+
height: Number,
|
|
30
|
+
width: Number,
|
|
31
|
+
type: { type: String, default: "logo" },
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
height: String,
|
|
35
|
+
width: String,
|
|
36
|
+
back: [
|
|
37
|
+
{
|
|
38
|
+
src: String,
|
|
39
|
+
id: String,
|
|
40
|
+
x: Number,
|
|
41
|
+
y: Number,
|
|
42
|
+
height: Number,
|
|
43
|
+
width: Number,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
display: [
|
|
47
|
+
{
|
|
48
|
+
id: String,
|
|
49
|
+
src: String,
|
|
50
|
+
x: Number,
|
|
51
|
+
y: Number,
|
|
52
|
+
height: Number,
|
|
53
|
+
width: Number,
|
|
54
|
+
rotation: { type: Number, default: 0 },
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
preview: {
|
|
58
|
+
id: String,
|
|
59
|
+
src: String,
|
|
60
|
+
x: Number,
|
|
61
|
+
y: Number,
|
|
62
|
+
height: Number,
|
|
63
|
+
width: Number,
|
|
64
|
+
rotation: { type: Number, default: 0 },
|
|
65
|
+
},
|
|
66
|
+
frameId: {
|
|
67
|
+
type: Schema.Types.ObjectId,
|
|
68
|
+
ref: "TemplateFrame",
|
|
69
|
+
},
|
|
70
|
+
name: { type: String, default: "" },
|
|
71
|
+
canColor: String,
|
|
72
|
+
userId: String,
|
|
73
|
+
workspaceId: { type: String, default: "" },
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
module.exports = mongoose.model("Template", templateSchema);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
|
|
4
|
+
const templateFrameSchema = new mongoose.Schema(
|
|
5
|
+
{
|
|
6
|
+
fullImageUrl: { type: String, default: "" },
|
|
7
|
+
frameUrl: { type: String, default: "" },
|
|
8
|
+
name: { type: String, default: "" },
|
|
9
|
+
height: { type: Number },
|
|
10
|
+
width: { type: Number },
|
|
11
|
+
displayImageHeight: { type: Number },
|
|
12
|
+
displayImageWidth: { type: Number },
|
|
13
|
+
type: { type: String, default: "" },
|
|
14
|
+
categoryId: { type: Schema.Types.ObjectId, ref: "Catalogue" },
|
|
15
|
+
subCategoryId: { type: String, default: "" },
|
|
16
|
+
workspaceId: { type: String, default: "" },
|
|
17
|
+
colorIds: [
|
|
18
|
+
{
|
|
19
|
+
colorId: {
|
|
20
|
+
type: Schema.Types.ObjectId,
|
|
21
|
+
ref: "Color",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
tagIds: [
|
|
26
|
+
{
|
|
27
|
+
tagId: {
|
|
28
|
+
type: Schema.Types.ObjectId,
|
|
29
|
+
ref: "TemplateTag",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
module.exports = mongoose.model("TemplateFrame", templateFrameSchema);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
|
|
3
|
+
const tagSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
name: { type: String, default: "" },
|
|
6
|
+
},
|
|
7
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
module.exports = mongoose.model("TemplateTag", tagSchema);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
|
|
3
|
+
const userSessionSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
userId: {
|
|
6
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
default: null,
|
|
9
|
+
},
|
|
10
|
+
browserId: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "",
|
|
13
|
+
},
|
|
14
|
+
ipAddress: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "",
|
|
17
|
+
},
|
|
18
|
+
userAgent: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "",
|
|
21
|
+
},
|
|
22
|
+
createdTime: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "",
|
|
25
|
+
},
|
|
26
|
+
lastActivity: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "",
|
|
29
|
+
},
|
|
30
|
+
valid: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true,
|
|
33
|
+
},
|
|
34
|
+
uuid: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "",
|
|
37
|
+
},
|
|
38
|
+
type: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "web",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const UserSession = mongoose.model("UserSession", userSessionSchema);
|
|
47
|
+
module.exports = UserSession;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
const VariantLocationSchema = new Schema(
|
|
4
|
+
{
|
|
5
|
+
variantId: {
|
|
6
|
+
type: Schema.Types.ObjectId,
|
|
7
|
+
ref: "ProductVariant",
|
|
8
|
+
default: null,
|
|
9
|
+
},
|
|
10
|
+
quantity: { type: Number, default: 0 },
|
|
11
|
+
workspaceId: {
|
|
12
|
+
type: Schema.Types.ObjectId,
|
|
13
|
+
ref: "Workspace",
|
|
14
|
+
default: null,
|
|
15
|
+
},
|
|
16
|
+
productId: { type: Schema.Types.ObjectId, ref: "Product", default: null },
|
|
17
|
+
locationId: { type: Schema.Types.ObjectId, ref: "Location", default: null },
|
|
18
|
+
webVariantLocationId: { type: Number, default: null },
|
|
19
|
+
rackNo: { type: String, default: "" },
|
|
20
|
+
boxNo: { type: String, default: "" },
|
|
21
|
+
shelfNo: { type: String, default: "" },
|
|
22
|
+
uuid: { type: String, default: "" },
|
|
23
|
+
createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
|
|
24
|
+
updatedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
|
|
25
|
+
isDeleted: { type: Boolean, default: false },
|
|
26
|
+
},
|
|
27
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
const VariantLocation = mongoose.model(
|
|
31
|
+
"VariantLocation",
|
|
32
|
+
VariantLocationSchema
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const createNewVariantLocation = async (variantLocationData) => {
|
|
36
|
+
try {
|
|
37
|
+
return await VariantLocation.create(variantLocationData);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.log(error);
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const insertVariantLocations = async (data) => {
|
|
45
|
+
try {
|
|
46
|
+
return await VariantLocation.insertMany(data);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.log(error);
|
|
49
|
+
return [null];
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const updateManyVariantsLocations = async (
|
|
54
|
+
criteria,
|
|
55
|
+
updateData,
|
|
56
|
+
options = {}
|
|
57
|
+
) => {
|
|
58
|
+
try {
|
|
59
|
+
return await VariantLocation.updateMany(criteria, updateData, options);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
console.log(error);
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const findVariantLocationById = async (variantLocationId) => {
|
|
67
|
+
try {
|
|
68
|
+
return await VariantLocation.findById(variantLocationId);
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.log(error);
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const updateVariantLocationById = async (criteria, updateData, options) => {
|
|
76
|
+
try {
|
|
77
|
+
return await VariantLocation.findByIdAndUpdate(
|
|
78
|
+
criteria,
|
|
79
|
+
updateData,
|
|
80
|
+
options
|
|
81
|
+
);
|
|
82
|
+
} catch (error) {
|
|
83
|
+
console.log(error);
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const deleteVariantLocationById = async (variantLocationId) => {
|
|
89
|
+
try {
|
|
90
|
+
return await VariantLocation.findByIdAndDelete(variantLocationId);
|
|
91
|
+
} catch (error) {
|
|
92
|
+
console.log(error);
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const findVariantLocation = async (criteria) => {
|
|
98
|
+
try {
|
|
99
|
+
return await VariantLocation.findOne(criteria);
|
|
100
|
+
} catch (error) {
|
|
101
|
+
console.log(error);
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const findVariantLocations = async (criteria) => {
|
|
107
|
+
try {
|
|
108
|
+
return await VariantLocation.find(criteria);
|
|
109
|
+
} catch (error) {
|
|
110
|
+
console.log(error);
|
|
111
|
+
return [];
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const findSingleVariantLocation = async (obj) => {
|
|
116
|
+
try {
|
|
117
|
+
let variantLocation = await VariantLocation.findOne(obj);
|
|
118
|
+
return variantLocation;
|
|
119
|
+
} catch (err) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const findVariantLocationsByPopulate = async (criteria, populate) => {
|
|
125
|
+
try {
|
|
126
|
+
return await VariantLocation.find(criteria).populate(populate);
|
|
127
|
+
} catch (error) {
|
|
128
|
+
console.log(error);
|
|
129
|
+
return [];
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
module.exports = {
|
|
134
|
+
insertVariantLocations,
|
|
135
|
+
createNewVariantLocation,
|
|
136
|
+
updateManyVariantsLocations,
|
|
137
|
+
findVariantLocationById,
|
|
138
|
+
updateVariantLocationById,
|
|
139
|
+
findVariantLocationsByPopulate,
|
|
140
|
+
deleteVariantLocationById,
|
|
141
|
+
findVariantLocation,
|
|
142
|
+
findVariantLocations,
|
|
143
|
+
findSingleVariantLocation,
|
|
144
|
+
VariantLocation,
|
|
145
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
|
|
3
|
+
const WorkflowSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
workspaceId: {
|
|
6
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Workspace",
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
orders: {
|
|
11
|
+
enabled: { type: Boolean, default: false },
|
|
12
|
+
maxOrders: { type: Number, default: 100 },
|
|
13
|
+
currentCount: { type: Number, default: 0 },
|
|
14
|
+
},
|
|
15
|
+
chatbot: { type: Boolean, default: true },
|
|
16
|
+
nlpBot: {
|
|
17
|
+
enabled: { type: Boolean, default: true },
|
|
18
|
+
shared: {
|
|
19
|
+
maxRequests: { type: Number, default: 5000 },
|
|
20
|
+
maxTokens: { type: Number, default: 80000 },
|
|
21
|
+
requestsCount: { type: Number, default: 0 },
|
|
22
|
+
tokensCount: { type: Number, default: 0 },
|
|
23
|
+
},
|
|
24
|
+
custom: {
|
|
25
|
+
requestsCount: { type: Number, default: 0 },
|
|
26
|
+
tokensCount: { type: Number, default: 0 },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const Workflow = mongoose.model("Workflow", WorkflowSchema);
|
|
34
|
+
module.exports = Workflow;
|
package/models/Workspace.js
CHANGED
|
@@ -273,6 +273,9 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
273
273
|
"url",
|
|
274
274
|
"colour",
|
|
275
275
|
"file",
|
|
276
|
+
"starRating",
|
|
277
|
+
"paragraph",
|
|
278
|
+
"heading",
|
|
276
279
|
],
|
|
277
280
|
},
|
|
278
281
|
option: {
|
|
@@ -292,6 +295,16 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
292
295
|
default: "everyone",
|
|
293
296
|
},
|
|
294
297
|
defaultShift: { type: String, default: "" },
|
|
298
|
+
automationManager: {
|
|
299
|
+
delayThreshold: {
|
|
300
|
+
type: Number,
|
|
301
|
+
default: 5,
|
|
302
|
+
},
|
|
303
|
+
messageCount: {
|
|
304
|
+
type: Number,
|
|
305
|
+
default: 3,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
295
308
|
},
|
|
296
309
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
297
310
|
);
|
package/models.js
CHANGED
|
@@ -1,94 +1,193 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const ProductQueue = require("./models/ProductQueue");
|
|
5
|
-
const ColumnPreference = require("./models/ColumnPreference");
|
|
6
|
-
const UserPermission = require("./models/UserPermission");
|
|
7
|
-
const GoogleClientInfo = require("./models/GoogleClientInfo");
|
|
8
|
-
const GoogleCredentials = require("./models/GoogleCredentials");
|
|
9
|
-
const User = require("./models/User");
|
|
1
|
+
const Activity = require("./models/Activity");
|
|
2
|
+
const ActivityLogs = require("./models/ActivityLogs");
|
|
3
|
+
const AgentActivity = require("./models/AgentActivity");
|
|
10
4
|
const AllPostSchema = require("./models/AllPost");
|
|
11
5
|
const AllPostBatchSchema = require("./models/AllPostBatch");
|
|
12
6
|
const AllPostScheduleSchema = require("./models/AllPostSchedule");
|
|
13
|
-
const AutoSchedulerSchema = require("./models/AutoScheduler");
|
|
14
|
-
const ActivityLogs = require("./models/ActivityLogs");
|
|
15
|
-
const UserRole = require("./models/UserRole");
|
|
16
|
-
const OrderQueue = require("./models/OrderQueue");
|
|
17
|
-
const AgentActivity = require("./models/AgentActivity");
|
|
18
7
|
const Assignment = require("./models/Assignment");
|
|
8
|
+
const Attribute = require("./models/Attribute");
|
|
9
|
+
const Automation = require("./models/Automation");
|
|
10
|
+
const AutoSchedulerSchema = require("./models/AutoScheduler");
|
|
19
11
|
const BusinessDistribution = require("./models/BusinessDistribution");
|
|
12
|
+
const Card = require("./models/Card");
|
|
20
13
|
const CardComments = require("./models/CardComments");
|
|
14
|
+
const Catalogue = require("./models/Catalogue");
|
|
15
|
+
const Category = require("./models/Category");
|
|
16
|
+
const Chatbot = require("./models/Chatbot");
|
|
17
|
+
const ChatMember = require("./models/ChatMember");
|
|
18
|
+
const ChatMemberSession = require("./models/ChatMemberSession");
|
|
19
|
+
const ChatMessage = require("./models/ChatMessage");
|
|
21
20
|
const Checkpoint = require("./models/Checkpoint");
|
|
22
21
|
const City = require("./models/City");
|
|
22
|
+
const Color = require("./models/Color");
|
|
23
23
|
const Column = require("./models/Column");
|
|
24
|
+
const ColumnPreference = require("./models/ColumnPreference");
|
|
24
25
|
const Conversation = require("./models/Conversation");
|
|
25
26
|
const Customer = require("./models/Customer");
|
|
27
|
+
const CustomerProfile = require("./models/CustomerProfile");
|
|
28
|
+
const CustomerTimeline = require("./models/CustomerTimeline");
|
|
29
|
+
const DefaultRolePermission = require("./models/DefaultRolePermission");
|
|
30
|
+
const DescriptionTemplate = require("./models/DescriptionTemplate");
|
|
31
|
+
const DeviceInfo = require("./models/DeviceInfo");
|
|
32
|
+
const EscalationConfiguration = require("./models/EscalationConfiguration");
|
|
33
|
+
const EscalationManager = require("./models/EscalationManager");
|
|
34
|
+
const Faq = require("./models/Faq");
|
|
35
|
+
const FeedbackResponse = require("./models/FeedbackResponse");
|
|
36
|
+
const FormTemplate = require("./models/FormTemplate");
|
|
37
|
+
const GoogleClientInfo = require("./models/GoogleClientInfo");
|
|
38
|
+
const GoogleCredentials = require("./models/GoogleCredentials");
|
|
26
39
|
const Integration = require("./models/Integration");
|
|
40
|
+
const InternalComments = require("./models/InternalComments");
|
|
41
|
+
const InternalThreads = require("./models/InternalThreads");
|
|
42
|
+
const JobDesign = require("./models/JobDesign");
|
|
43
|
+
const JobQueue = require("./models/JobQueue");
|
|
27
44
|
const Label = require("./models/Label");
|
|
45
|
+
const LabelPdf = require("./models/LabelPdf");
|
|
46
|
+
const Layout = require("./models/Layout");
|
|
47
|
+
const Location = require("./models/Location");
|
|
48
|
+
const Logo = require("./models/Logo");
|
|
28
49
|
const Message = require("./models/Message");
|
|
50
|
+
const NewProduct = require("./models/NewProduct");
|
|
51
|
+
const Notification = require("./models/Notification");
|
|
52
|
+
const NotificationSettings = require("./models/NotificationSettings");
|
|
29
53
|
const Order = require("./models/Order");
|
|
54
|
+
const OrderPdf = require("./models/OrderPdf");
|
|
30
55
|
const OrderProduct = require("./models/OrderProduct");
|
|
56
|
+
const OrderQueue = require("./models/OrderQueue");
|
|
57
|
+
const PostsAutomation = require("./models/PostsAutomation");
|
|
58
|
+
const Product = require("./models/Product");
|
|
59
|
+
const ProductAttachment = require("./models/ProductAttachment");
|
|
60
|
+
const ProductAttribute = require("./models/ProductAttribute");
|
|
61
|
+
const ProductCategory = require("./models/ProductCategory");
|
|
62
|
+
const ProductLabel = require("./models/ProductLabels");
|
|
63
|
+
const ProductQueue = require("./models/ProductQueue");
|
|
64
|
+
const ProductShopify = require("./models/ProductShopify");
|
|
65
|
+
const ProductTag = require("./models/ProductTag");
|
|
66
|
+
const ProductVariant = require("./models/ProductVariant");
|
|
67
|
+
const Profile = require("./models/Profile");
|
|
31
68
|
const Report = require("./models/Report");
|
|
69
|
+
const Role = require("./models/Role");
|
|
70
|
+
const Setting = require("./models/Setting");
|
|
71
|
+
const ServiceUsage = require("./models/ServiceUsage");
|
|
32
72
|
const Shipper = require("./models/Shipper");
|
|
73
|
+
const ShipperSetting = require("./models/ShipperSetting");
|
|
74
|
+
const SocialGroup = require("./models/SocialGroup");
|
|
75
|
+
const SocialMediaSetting = require("./models/SocialMediaSetting");
|
|
76
|
+
const SocialPost = require("./models/SocialPost");
|
|
77
|
+
const SocialProfile = require("./models/SocialProfile");
|
|
33
78
|
const Status = require("./models/Status");
|
|
34
79
|
const StatusType = require("./models/StatusType");
|
|
35
|
-
const Type = require("./models/Type");
|
|
36
|
-
const Workspace = require("./models/Workspace");
|
|
37
|
-
const Card = require("./models/Card");
|
|
38
|
-
const Profile = require("./models/Profile");
|
|
39
|
-
const Chatbot = require("./models/Chatbot");
|
|
40
80
|
const Step = require("./models/Step");
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
81
|
+
const Tag = require("./models/Tag");
|
|
82
|
+
const Template = require("./models/Template");
|
|
83
|
+
const TemplateFrame = require("./models/TemplateFrame");
|
|
84
|
+
const TemplateTag = require("./models/TemplateTag");
|
|
85
|
+
const Type = require("./models/Type");
|
|
86
|
+
const User = require("./models/User");
|
|
87
|
+
const UserPermission = require("./models/UserPermission");
|
|
88
|
+
const UserRole = require("./models/UserRole");
|
|
89
|
+
const UserSession = require("./models/UserSession");
|
|
44
90
|
const UserWorkflow = require("./models/UserWorkflow");
|
|
45
|
-
const
|
|
46
|
-
const
|
|
91
|
+
const VariantLocation = require("./models/VariantLocation");
|
|
92
|
+
const Website = require("./models/Website");
|
|
93
|
+
const WhatsappFlow = require("./models/WhatsappFlow");
|
|
94
|
+
const Workflow = require("./models/Workflow");
|
|
95
|
+
const Workspace = require("./models/Workspace");
|
|
96
|
+
|
|
47
97
|
module.exports = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
UserPermission,
|
|
52
|
-
User,
|
|
53
|
-
GoogleClientInfo,
|
|
54
|
-
GoogleCredentials,
|
|
98
|
+
Activity,
|
|
99
|
+
ActivityLogs,
|
|
100
|
+
AgentActivity,
|
|
55
101
|
AllPostSchema,
|
|
56
102
|
AllPostBatchSchema,
|
|
57
103
|
AllPostScheduleSchema,
|
|
58
|
-
AutoSchedulerSchema,
|
|
59
|
-
ActivityLogs,
|
|
60
|
-
UserRole,
|
|
61
|
-
OrderQueue,
|
|
62
|
-
AgentActivity,
|
|
63
104
|
Assignment,
|
|
105
|
+
Attribute,
|
|
106
|
+
Automation,
|
|
107
|
+
AutoSchedulerSchema,
|
|
64
108
|
BusinessDistribution,
|
|
109
|
+
Card,
|
|
65
110
|
CardComments,
|
|
111
|
+
Catalogue,
|
|
112
|
+
Category,
|
|
113
|
+
Chatbot,
|
|
114
|
+
ChatMember,
|
|
115
|
+
ChatMemberSession,
|
|
116
|
+
ChatMessage,
|
|
66
117
|
Checkpoint,
|
|
118
|
+
City,
|
|
119
|
+
Color,
|
|
67
120
|
Column,
|
|
121
|
+
ColumnPreference,
|
|
68
122
|
Conversation,
|
|
69
|
-
City,
|
|
70
123
|
Customer,
|
|
124
|
+
CustomerProfile,
|
|
125
|
+
CustomerTimeline,
|
|
126
|
+
DefaultRolePermission,
|
|
127
|
+
DescriptionTemplate,
|
|
128
|
+
DeviceInfo,
|
|
129
|
+
EscalationConfiguration,
|
|
130
|
+
EscalationManager,
|
|
131
|
+
Faq,
|
|
132
|
+
FeedbackResponse,
|
|
133
|
+
FormTemplate,
|
|
134
|
+
GoogleClientInfo,
|
|
135
|
+
GoogleCredentials,
|
|
71
136
|
Integration,
|
|
137
|
+
InternalComments,
|
|
138
|
+
InternalThreads,
|
|
139
|
+
JobDesign,
|
|
140
|
+
JobQueue,
|
|
72
141
|
Label,
|
|
142
|
+
LabelPdf,
|
|
143
|
+
Layout,
|
|
144
|
+
Location,
|
|
145
|
+
Logo,
|
|
73
146
|
Message,
|
|
147
|
+
NewProduct,
|
|
148
|
+
Notification,
|
|
149
|
+
NotificationSettings,
|
|
74
150
|
Order,
|
|
151
|
+
OrderPdf,
|
|
75
152
|
OrderProduct,
|
|
153
|
+
OrderQueue,
|
|
154
|
+
PostsAutomation,
|
|
155
|
+
Product,
|
|
156
|
+
ProductAttachment,
|
|
157
|
+
ProductAttribute,
|
|
158
|
+
ProductCategory,
|
|
159
|
+
ProductLabel,
|
|
160
|
+
ProductQueue,
|
|
161
|
+
ProductShopify,
|
|
162
|
+
ProductTag,
|
|
163
|
+
ProductVariant,
|
|
164
|
+
Profile,
|
|
76
165
|
Report,
|
|
166
|
+
Role,
|
|
167
|
+
Setting,
|
|
168
|
+
ServiceUsage,
|
|
77
169
|
Shipper,
|
|
170
|
+
ShipperSetting,
|
|
171
|
+
SocialGroup,
|
|
172
|
+
SocialMediaSetting,
|
|
173
|
+
SocialPost,
|
|
174
|
+
SocialProfile,
|
|
78
175
|
Status,
|
|
79
|
-
Type,
|
|
80
|
-
Workspace,
|
|
81
176
|
StatusType,
|
|
82
|
-
Card,
|
|
83
|
-
DescriptionTemplate,
|
|
84
|
-
Profile,
|
|
85
|
-
ChatMember,
|
|
86
|
-
Chatbot,
|
|
87
177
|
Step,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
178
|
+
Tag,
|
|
179
|
+
Template,
|
|
180
|
+
TemplateFrame,
|
|
181
|
+
TemplateTag,
|
|
182
|
+
Type,
|
|
183
|
+
User,
|
|
184
|
+
UserPermission,
|
|
185
|
+
UserRole,
|
|
186
|
+
UserSession,
|
|
91
187
|
UserWorkflow,
|
|
92
|
-
|
|
93
|
-
|
|
188
|
+
VariantLocation,
|
|
189
|
+
Website,
|
|
190
|
+
WhatsappFlow,
|
|
191
|
+
Workflow,
|
|
192
|
+
Workspace,
|
|
94
193
|
};
|