feat: Implement Phase 10 support and recommendations features
- Added models for support messages, SLA policies, tickets, ticket events, and ticket links. - Created routes for help, help admin, newsletter, recommendations, and support for both customer and admin. - Developed services for help, marketing (newsletter), and recommendations. - Introduced support service for ticket management, including creation, replies, transitions, and attachments. - Added validation schemas for support recommendations and ticket management. - Implemented a cron job for support reconciliation and recommendation cleanup. - Created migration for new support and recommendation database tables. - Added unit tests for validation and policy checks related to Phase 10 features.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
const cron=require("node-cron"),support=require("../app/services/support/support.service"),recommendations=require("../app/services/recommendation/recommendation.service");module.exports=()=>cron.schedule("*/5 * * * *",async()=>{try{await support.reconcile(Number(process.env.SUPPORT_SLA_RECONCILIATION_BATCH_SIZE||100));await recommendations.cleanup(1000);}catch(e){console.error("Phase 10 reconciliation failed",e.message);}},{noOverlap:true});
|
||||
Reference in New Issue
Block a user