tango-app-api-trax 3.9.38 → 3.9.40
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/package.json +2 -2
- package/src/controllers/internalTrax.controller.js +16 -7
- package/src/controllers/teaxFlag.controller.js +953 -15
- package/src/controllers/traxDashboard.controllers.js +1 -1
- package/src/hbs/login-otp.hbs +943 -943
- package/src/hbs/visit-checklist.hbs +6 -2
- package/src/routes/trax.routes.js +3 -0
- package/src/routes/traxFlag.router.js +24 -0
|
@@ -126,8 +126,12 @@
|
|
|
126
126
|
|
|
127
127
|
<div class="cover-summary">
|
|
128
128
|
<div class="cover-sum-row"><span class="cover-sum-label">No. of questions</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{numQuestions}}</span></div>
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
{{#if hasSopFlag}}
|
|
130
|
+
<div class="cover-sum-row"><span class="cover-sum-label">Question Flag</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{numFlags}}</span></div>
|
|
131
|
+
{{/if}}
|
|
132
|
+
{{#if showRunAIFlag}}
|
|
133
|
+
<div class="cover-sum-row"><span class="cover-sum-label">Run AI Flag</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{runAIFlag}}</span></div>
|
|
134
|
+
{{/if}}
|
|
131
135
|
<div class="cover-sum-row"><span class="cover-sum-label">Submitted By</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{submittedBy}}</span></div>
|
|
132
136
|
<div class="cover-sum-row"><span class="cover-sum-label">Country</span><span class="cover-sum-colon">:</span><span class="cover-sum-val">{{country}}</span></div>
|
|
133
137
|
</div>
|
|
@@ -27,6 +27,7 @@ traxRouter
|
|
|
27
27
|
.get( '/predefinedChecklist', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ ] } ] } ), validate( aichecklistValidation ), traxController.preDefinedChecklist )
|
|
28
28
|
.post( '/selectAssign', validate( selectAssign ), traxController.selectAssign )
|
|
29
29
|
.post( '/assign', isAllowedSessionHandler, traxController.checklistAssign )
|
|
30
|
+
// .post( '/assignUpload', isAllowedSessionHandler, traxController.assignChecklistUser )
|
|
30
31
|
.post( '/updateAssign', isAllowedSessionHandler, traxController.updateAssign )
|
|
31
32
|
.post( '/updateAiConfigure', isAllowedSessionHandler, traxController.updateAiConfigure )
|
|
32
33
|
.get( '/getAiDetails', isAllowedSessionHandler, traxController.getAiDetails )
|
|
@@ -38,3 +39,5 @@ traxRouter
|
|
|
38
39
|
.post( '/exportQuestions', isAllowedSessionHandler, traxController.downloadQuestionTemplate )
|
|
39
40
|
.get( '/getTeamList', isAllowedSessionHandler, traxController.getTeamList )
|
|
40
41
|
;
|
|
42
|
+
|
|
43
|
+
// isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ ] } ] } ),
|
|
@@ -4,10 +4,16 @@ export const traxFlagRouter = express.Router();
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
checklistFlagsTable,
|
|
7
|
+
flagChecklistCards,
|
|
7
8
|
flagChecklistCardsV1,
|
|
9
|
+
flagChecklistComparisonCards,
|
|
8
10
|
flagChecklistComparisonCardsV1,
|
|
9
11
|
flagChecklistTableV1,
|
|
10
12
|
overallFlagMetrics,
|
|
13
|
+
flagCards,
|
|
14
|
+
flagComparisonCards,
|
|
15
|
+
flagTables,
|
|
16
|
+
checklistDropdown,
|
|
11
17
|
flagCardsV1,
|
|
12
18
|
flagComparisonCardsV1,
|
|
13
19
|
flagTablesV1,
|
|
@@ -27,15 +33,33 @@ traxFlagRouter
|
|
|
27
33
|
.post( '/checklist-flags-table', isAllowedSessionHandler,
|
|
28
34
|
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
29
35
|
checklistFlagsTable )
|
|
36
|
+
.post( '/flagChecklistCards', isAllowedSessionHandler,
|
|
37
|
+
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
38
|
+
flagChecklistCards )
|
|
30
39
|
.post( '/flagChecklistCardsV1', isAllowedSessionHandler,
|
|
31
40
|
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
32
41
|
flagChecklistCardsV1 )
|
|
42
|
+
.post( '/flagChecklistComparisonCards', isAllowedSessionHandler,
|
|
43
|
+
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
44
|
+
flagChecklistComparisonCards )
|
|
33
45
|
.post( '/flagChecklistComparisonCardsV1', isAllowedSessionHandler,
|
|
34
46
|
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
35
47
|
flagChecklistComparisonCardsV1 )
|
|
36
48
|
.post( '/flagChecklistTableV1', isAllowedSessionHandler,
|
|
37
49
|
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
38
50
|
flagChecklistTableV1 )
|
|
51
|
+
.post( '/flagCards', isAllowedSessionHandler,
|
|
52
|
+
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
53
|
+
flagCards )
|
|
54
|
+
.post( '/flagComparisonCards', isAllowedSessionHandler,
|
|
55
|
+
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
56
|
+
flagComparisonCards )
|
|
57
|
+
.post( '/flagTables', isAllowedSessionHandler,
|
|
58
|
+
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
59
|
+
flagTables )
|
|
60
|
+
.post( '/flagChecklistDropDown', isAllowedSessionHandler,
|
|
61
|
+
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
62
|
+
checklistDropdown )
|
|
39
63
|
.post( '/flagChecklistDropDownV1', isAllowedSessionHandler,
|
|
40
64
|
accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
|
|
41
65
|
checklistDropdownV1 )
|