fintalk-pkg 2.3.23 → 2.3.25
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/index.js +1 -0
- package/model/AuxStructure.js +23 -0
- package/model/Customer.js +30 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = {
|
|
|
6
6
|
//SCHEMAS
|
|
7
7
|
CustomerSchema : require("./model/Customer"),
|
|
8
8
|
TransactionSchema : require("./model/Transaction"),
|
|
9
|
+
AuxSchema: require("./model/AuxStructure"),
|
|
9
10
|
|
|
10
11
|
BaseController : require("./base/BaseController"),
|
|
11
12
|
FlowControl : require("./base/FlowControl"),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const dynamoose = require("dynamoose");
|
|
2
|
+
|
|
3
|
+
dynamoose.model.defaults.set({ create: false, waitForActive: false });
|
|
4
|
+
const Schema = dynamoose.Schema;
|
|
5
|
+
|
|
6
|
+
const AuxStructureSchema = new Schema(
|
|
7
|
+
{
|
|
8
|
+
id: {
|
|
9
|
+
type: String,
|
|
10
|
+
hashKey: String,
|
|
11
|
+
},
|
|
12
|
+
sessionId: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
data: String,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
timestamps: true,
|
|
20
|
+
},
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
module.exports = dynamoose.model("fintalk-orchestrator-aux-structure", AuxStructureSchema);
|
package/model/Customer.js
CHANGED
|
@@ -84,17 +84,37 @@ var CustomerSchema = new Schema({
|
|
|
84
84
|
userData5: String,
|
|
85
85
|
isAudioOutputEnabled: { type: Boolean, default: false },
|
|
86
86
|
optin: { type: Boolean, default: false },
|
|
87
|
+
quotiUserId: String,
|
|
88
|
+
quotiChatRoom: {
|
|
89
|
+
type: String,
|
|
90
|
+
index: {
|
|
91
|
+
global: true,
|
|
92
|
+
name: `fintalk-orchestrator-${process.env.BOT}-GSI-quotiChatRoom`,
|
|
93
|
+
rangeKey: "stage",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
87
96
|
flexChatChannel: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
type: String,
|
|
98
|
+
index: {
|
|
99
|
+
global: true,
|
|
100
|
+
name: `fintalk-orchestrator-${process.env.BOT}-GSI-flexChatChannel`,
|
|
101
|
+
rangeKey: "stage",
|
|
102
|
+
},
|
|
94
103
|
},
|
|
95
104
|
flexUserId: String,
|
|
96
|
-
|
|
105
|
+
salesForceSessionId: String,
|
|
106
|
+
salesForceSessionKey: {
|
|
107
|
+
type: String,
|
|
108
|
+
index: {
|
|
109
|
+
global: true,
|
|
110
|
+
name: `fintalk-orchestrator-${process.env.BOT}-GSI-salesForceSessionKey`,
|
|
111
|
+
rangeKey: "stage",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
salesForceAffinityId: String,
|
|
97
115
|
localCapture: Boolean,
|
|
116
|
+
returnEvent: String,
|
|
117
|
+
noAgentsEvent: String,
|
|
98
118
|
nextEvent: String,
|
|
99
119
|
},
|
|
100
120
|
{
|
|
@@ -103,4 +123,6 @@ var CustomerSchema = new Schema({
|
|
|
103
123
|
|
|
104
124
|
/* creditCards: [{ type: mongoose.Schema.Types.ObjectId, ref: "CreditCard" }],*/
|
|
105
125
|
|
|
106
|
-
module.exports = dynamoose.model(`fintalk-orchestrator-${process.env.BOT}-customer`, CustomerSchema
|
|
126
|
+
module.exports = dynamoose.model(`fintalk-orchestrator-${process.env.BOT}-customer`, CustomerSchema, {
|
|
127
|
+
create: false, waitForActive: false
|
|
128
|
+
});
|