IAV-243/add FAQ chatbot endpoint for retrieving agent FAQs
Description
This MR adds a new endpoint to retrieve FAQs for customer care agents, designed specifically for chatbot integration. The endpoint returns only active FAQs with their questions and responses, enabling chatbots to provide automated customer support.
Changes
- Created
FaqChatBotResponseDTO containing question and response fields - Implemented
FaqRepositorywith JPQL query filtering by agent ID and active status - Added
FaqServicewith read-only transaction support for optimized performance - Developed
FaqMapperfor clean entity-to-DTO conversion - Created
FaqControllerexposing GET endpoint at/api/customer-care/faq/agent/{agentId} - Updated
AgentPathsconstants with new FAQ path definitions