in services/survey.js [45:72]
static handlePayload(payload) {
let response;
switch (payload) {
case "CSAT_GOOD":
response = Response.genText(i18n.__("survey.positive"));
break;
case "CSAT_AVERAGE":
response = Response.genText(i18n.__("survey.neutral"));
break;
case "CSAT_BAD":
response = Response.genQuickReply(i18n.__("survey.negative"), [
{
title: i18n.__("menu.help"),
payload: "CARE_HELP"
}
]);
break;
case "CSAT_SUGGESTION":
response = Response.genText(i18n.__("survey.suggestion"));
break;
}
return response;
}