tango-app-api-trax 3.9.44 → 3.9.45
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 +5 -5
- package/src/controllers/teaxFlag.controller.js +22 -956
- package/src/controllers/trax.controller.js +5 -3
- package/src/hbs/login-otp.hbs +943 -943
- package/src/routes/trax.routes.js +0 -3
- package/src/routes/traxFlag.router.js +0 -24
|
@@ -473,7 +473,7 @@ export const getConfigDetails = async ( req, res ) => {
|
|
|
473
473
|
isdeleted: false,
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
if ( [ 'storeopenandclose', 'uniformdetection', 'mobileusagedetection', 'lossprevention', 'opertaionchecklist', 'dailystorechecklist', 'storehygiene' ].includes( type ) ) {
|
|
476
|
+
if ( [ 'storeopenandclose', 'uniformdetection', 'mobileusagedetection', 'lossprevention', 'opertaionchecklist', 'dailystorechecklist', 'storehygiene', 'scrum', 'customerunattended' ].includes( type ) ) {
|
|
477
477
|
query.checkListType = type;
|
|
478
478
|
query.client_id = { $exists: false };
|
|
479
479
|
}
|
|
@@ -619,6 +619,8 @@ export const zoneList = async ( req, res ) => {
|
|
|
619
619
|
'Unattended Detection',
|
|
620
620
|
'Employee Monitoring',
|
|
621
621
|
'Customer Unattended',
|
|
622
|
+
'Store Huddle Adherence Checklist',
|
|
623
|
+
'Activity Monitoring',
|
|
622
624
|
|
|
623
625
|
|
|
624
626
|
];
|
|
@@ -4142,7 +4144,7 @@ async function updateOpenSearch( user, data ) {
|
|
|
4142
4144
|
export const aiChecklist = async ( req, res ) => {
|
|
4143
4145
|
try {
|
|
4144
4146
|
let storeDetails = await storeService.count( { clientId: req.query.clientId, status: 'active' } );
|
|
4145
|
-
let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'cleaning', 'scrum', 'suspiciousactivity', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'occupancydetection', 'employeemonitoring' ];
|
|
4147
|
+
let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'cleaning', 'scrum', 'suspiciousactivity', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'occupancydetection', 'employeemonitoring', 'activitymonitoring' ];
|
|
4146
4148
|
let checklistDetails = [];
|
|
4147
4149
|
let publishList = [];
|
|
4148
4150
|
let unpublishList = [];
|
|
@@ -4155,7 +4157,7 @@ export const aiChecklist = async ( req, res ) => {
|
|
|
4155
4157
|
checklistDetails = [ ...publishList, ...unpublishList ];
|
|
4156
4158
|
|
|
4157
4159
|
checklistDetails.forEach( ( item ) => {
|
|
4158
|
-
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'storehygienemonitoring', 'employeemonitoring' ].includes( item.checkListType ) ) {
|
|
4160
|
+
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert', 'staffgrouping', 'boxalert', 'employeeCount', 'unattendeddetection', 'storehygienemonitoring', 'employeemonitoring', 'activitymonitoring' ].includes( item.checkListType ) ) {
|
|
4159
4161
|
item.storeCount = storeDetails;
|
|
4160
4162
|
}
|
|
4161
4163
|
} );
|