|  |  |  | @ -653,6 +653,80 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |     handler: userController.addTeamMembers, | 
			
		
	
		
			
				
					|  |  |  |  |   }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |     method: "PUT", | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/deleteTeamMember/:customerId", | 
			
		
	
		
			
				
					|  |  |  |  |     schema: { | 
			
		
	
		
			
				
					|  |  |  |  |       tags: ["User"], | 
			
		
	
		
			
				
					|  |  |  |  |       summary: "This is for delete Team Member", | 
			
		
	
		
			
				
					|  |  |  |  |       description: "This is for delete Team Member", | 
			
		
	
		
			
				
					|  |  |  |  |       params: { | 
			
		
	
		
			
				
					|  |  |  |  |         required: ["customerId"], | 
			
		
	
		
			
				
					|  |  |  |  |         type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  |           customerId: { | 
			
		
	
		
			
				
					|  |  |  |  |             type: "string", | 
			
		
	
		
			
				
					|  |  |  |  |             description: "customerId", | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       querystring: { | 
			
		
	
		
			
				
					|  |  |  |  |         phone: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       security: [ | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |           basicAuth: [], | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       ], | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     preHandler: fastify.auth([fastify.authenticate]), | 
			
		
	
		
			
				
					|  |  |  |  |     handler: userController.deleteTeamMember, // Ensure this line points to the handler
 | 
			
		
	
		
			
				
					|  |  |  |  |   }); | 
			
		
	
		
			
				
					|  |  |  |  |    | 
			
		
	
		
			
				
					|  |  |  |  |   fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |     method: "PUT", | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/updateTeamMeber/:customerId", | 
			
		
	
		
			
				
					|  |  |  |  |     schema: { | 
			
		
	
		
			
				
					|  |  |  |  |       tags: ["User"], | 
			
		
	
		
			
				
					|  |  |  |  |       summary: "This is for update Team Member details", | 
			
		
	
		
			
				
					|  |  |  |  |       params: { | 
			
		
	
		
			
				
					|  |  |  |  |         required: ["customerId"], | 
			
		
	
		
			
				
					|  |  |  |  |         type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  |           customerId: { | 
			
		
	
		
			
				
					|  |  |  |  |             type: "string", | 
			
		
	
		
			
				
					|  |  |  |  |             description: "customerId", | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       querystring: { | 
			
		
	
		
			
				
					|  |  |  |  |         phone: {type: 'string'} | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |        | 
			
		
	
		
			
				
					|  |  |  |  |       body: { | 
			
		
	
		
			
				
					|  |  |  |  |         type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |         // required: ['phone'],
 | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             name: { type: "string", default: null }, | 
			
		
	
		
			
				
					|  |  |  |  |             phone: { type: "string", default: null }, | 
			
		
	
		
			
				
					|  |  |  |  |             alternativeContactNumber: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       security: [ | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |           basicAuth: [], | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       ], | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     // preHandler: [
 | 
			
		
	
		
			
				
					|  |  |  |  |     //   fastify.auth([fastify.operatorAuthenticate]),
 | 
			
		
	
		
			
				
					|  |  |  |  |     //   validationHandler.validatePhoneFormat,
 | 
			
		
	
		
			
				
					|  |  |  |  |     // ],
 | 
			
		
	
		
			
				
					|  |  |  |  |    // preHandler: fastify.auth([fastify.authenticate]),
 | 
			
		
	
		
			
				
					|  |  |  |  |     handler: userController.updateTeamMember, | 
			
		
	
		
			
				
					|  |  |  |  |   }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |     method: "DELETE", | 
			
		
	
	
		
			
				
					|  |  |  | 
 |