const recommendServices = require('./apis/recommendServices.js')
const searchServices = require('./apis/searchServices.js')
const getServiceDetail = require('./apis/getServiceDetail.js')
const prepareLeadDraft = require('./apis/prepareLeadDraft.js')
const getAccountSummary = require('./apis/getAccountSummary.js')
const getAccountProgress = require('./apis/getAccountProgress.js')
const getTodoItems = require('./apis/getTodoItems.js')

const skill = wx.modelContext.createSkill('skills/service-assistant')

skill.registerAPI('recommendServices', recommendServices)
skill.registerAPI('searchServices', searchServices)
skill.registerAPI('getServiceDetail', getServiceDetail)
skill.registerAPI('prepareLeadDraft', prepareLeadDraft)
skill.registerAPI('getAccountSummary', getAccountSummary)
skill.registerAPI('getAccountProgress', getAccountProgress)
skill.registerAPI('getTodoItems', getTodoItems)

console.log('[dlbdi-service] APIs registered')
