hgs-twilio-class-lib 1.1.71 → 1.1.73
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/README.md +5 -5
- package/lib/controller/twilio/AgentActionsController.js +1 -1
- package/lib/controller/twilio/AgentScorecardController.js +1 -1
- package/lib/controller/twilio/AuditLogController.js +1 -1
- package/lib/controller/twilio/CallLogsController.js +1 -1
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +1 -1
- package/lib/controller/twilio/TaskInfoPanelController.js +1 -1
- package/package.json +56 -56
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Flex V2 Backend Code
|
|
2
|
-
|
|
3
|
-
Package to manage Flex V2 Backend.
|
|
4
|
-
|
|
5
|
-
Run "npm install hgs-twilio-class-lib --save"
|
|
1
|
+
# Flex V2 Backend Code
|
|
2
|
+
|
|
3
|
+
Package to manage Flex V2 Backend.
|
|
4
|
+
|
|
5
|
+
Run "npm install hgs-twilio-class-lib --save"
|
|
@@ -52,7 +52,7 @@ class AgentActionsController {
|
|
|
52
52
|
// Access object store
|
|
53
53
|
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.agentActionsTable);
|
|
54
54
|
// Add new data to the object store
|
|
55
|
-
let result = table.add(data, data.taskSid, 24 *
|
|
55
|
+
let result = table.add(data, data.taskSid, 24 * 30 * 60 * 60); // 30 days
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
58
58
|
catch (error) {
|
|
@@ -53,7 +53,7 @@ class AgentScorecardController {
|
|
|
53
53
|
// Access object store
|
|
54
54
|
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.agentScorecardTable);
|
|
55
55
|
// Add new data to the object store
|
|
56
|
-
let result = table.add(data, data.id, 24 * 60 * 60);
|
|
56
|
+
let result = table.add(data, data.id, 24 * 60 * 60); // 24 hours
|
|
57
57
|
return result;
|
|
58
58
|
}
|
|
59
59
|
catch (error) {
|
|
@@ -47,7 +47,7 @@ class AuditLogController {
|
|
|
47
47
|
}
|
|
48
48
|
const dbTransaction = yield this.getTransaction();
|
|
49
49
|
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.auditLogTable);
|
|
50
|
-
const result = yield table.add(auditLog.serialize, auditLog.id);
|
|
50
|
+
const result = yield table.add(auditLog.serialize, auditLog.id, 24 * 30 * 6 * 60 * 60); // 6 months
|
|
51
51
|
return result;
|
|
52
52
|
}
|
|
53
53
|
catch (error) {
|
|
@@ -28,7 +28,7 @@ class CallLogsController {
|
|
|
28
28
|
const database = databaseConnection.result;
|
|
29
29
|
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.callLogsTable, "readwrite");
|
|
30
30
|
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.callLogsTable);
|
|
31
|
-
let result = yield table.add(callLog.serialize, data.id, 24 * 60 * 60);
|
|
31
|
+
let result = yield table.add(callLog.serialize, data.id, 24 * 60 * 60); // 1 day
|
|
32
32
|
return result;
|
|
33
33
|
}
|
|
34
34
|
catch (error) {
|
|
@@ -52,7 +52,7 @@ class RealTimeReportsWGDetailsController {
|
|
|
52
52
|
// Access object store
|
|
53
53
|
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.realTimeReportWGDetailsTable);
|
|
54
54
|
// Add new data to the object store
|
|
55
|
-
let result = table.add(data, data.id);
|
|
55
|
+
let result = table.add(data, data.id, 24 * 2 * 60 * 60); // 2 days
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
58
58
|
catch (error) {
|
|
@@ -47,7 +47,7 @@ class TaskInfoPanelController {
|
|
|
47
47
|
}
|
|
48
48
|
const dbTransaction = yield this.getTransaction();
|
|
49
49
|
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable);
|
|
50
|
-
const result = yield table.add(TaskInfoPanel.serialize, TaskInfoPanel.id);
|
|
50
|
+
const result = yield table.add(TaskInfoPanel.serialize, TaskInfoPanel.id, 60 * 60);
|
|
51
51
|
return result;
|
|
52
52
|
}
|
|
53
53
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hgs-twilio-class-lib",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Flex 2.0 backend to connect with any database ",
|
|
5
|
-
"main": "./lib/index.js",
|
|
6
|
-
"types": "./types/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib",
|
|
10
|
-
"types",
|
|
11
|
-
"package.json"
|
|
12
|
-
],
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"directory": "lib"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf lib types",
|
|
18
|
-
"build": "npm run clean && tsc",
|
|
19
|
-
"start": "node lib/server.js",
|
|
20
|
-
"dev": "nodemon server.ts",
|
|
21
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
22
|
-
"check:unused": "ts-prune"
|
|
23
|
-
},
|
|
24
|
-
"author": "HGS",
|
|
25
|
-
"license": "",
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@rollup/plugin-commonjs": "^28.0.3",
|
|
28
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
29
|
-
"@rollup/plugin-typescript": "^12.1.2",
|
|
30
|
-
"@types/express": "4.17.21",
|
|
31
|
-
"@types/node": "20.11.17",
|
|
32
|
-
"@types/uuid": "9.0.8",
|
|
33
|
-
"esbuild": "^0.25.4",
|
|
34
|
-
"express": "^4.18.2",
|
|
35
|
-
"fast-glob": "^3.3.3",
|
|
36
|
-
"nodemon": "^3.1.0",
|
|
37
|
-
"rimraf": "^6.0.1",
|
|
38
|
-
"rollup": "^2.79.2",
|
|
39
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
40
|
-
"rollup-plugin-visualizer": "^5.14.0",
|
|
41
|
-
"ts-loader": "9.5.1",
|
|
42
|
-
"ts-node": "^10.9.2",
|
|
43
|
-
"typescript": "5.3.3"
|
|
44
|
-
},
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"@aws-sdk/client-connect": "3.723.0",
|
|
47
|
-
"cors": "^2.8.5",
|
|
48
|
-
"moment": "2.30.1",
|
|
49
|
-
"moment-timezone": "^0.5.46",
|
|
50
|
-
"twilio": "4.22.0",
|
|
51
|
-
"uuid": "^9.0.1"
|
|
52
|
-
},
|
|
53
|
-
"engines": {
|
|
54
|
-
"node": ">=18"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "hgs-twilio-class-lib",
|
|
3
|
+
"version": "1.1.73",
|
|
4
|
+
"description": "Flex 2.0 backend to connect with any database ",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"types": "./types/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib",
|
|
10
|
+
"types",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"directory": "lib"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"clean": "rimraf lib types",
|
|
18
|
+
"build": "npm run clean && tsc",
|
|
19
|
+
"start": "node lib/server.js",
|
|
20
|
+
"dev": "nodemon server.ts",
|
|
21
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
22
|
+
"check:unused": "ts-prune"
|
|
23
|
+
},
|
|
24
|
+
"author": "HGS",
|
|
25
|
+
"license": "",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
28
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
29
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
30
|
+
"@types/express": "4.17.21",
|
|
31
|
+
"@types/node": "20.11.17",
|
|
32
|
+
"@types/uuid": "9.0.8",
|
|
33
|
+
"esbuild": "^0.25.4",
|
|
34
|
+
"express": "^4.18.2",
|
|
35
|
+
"fast-glob": "^3.3.3",
|
|
36
|
+
"nodemon": "^3.1.0",
|
|
37
|
+
"rimraf": "^6.0.1",
|
|
38
|
+
"rollup": "^2.79.2",
|
|
39
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
40
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
41
|
+
"ts-loader": "9.5.1",
|
|
42
|
+
"ts-node": "^10.9.2",
|
|
43
|
+
"typescript": "5.3.3"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@aws-sdk/client-connect": "3.723.0",
|
|
47
|
+
"cors": "^2.8.5",
|
|
48
|
+
"moment": "2.30.1",
|
|
49
|
+
"moment-timezone": "^0.5.46",
|
|
50
|
+
"twilio": "4.22.0",
|
|
51
|
+
"uuid": "^9.0.1"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=18"
|
|
55
|
+
}
|
|
56
|
+
}
|