static genAgentRating()

in services/survey.js [18:43]


  static genAgentRating(agent) {
    let response = Response.genQuickReply(
      i18n.__("survey.prompt", {
        agentFirstName: agent
      }),
      [
        {
          title: "\uD83D\uDE00",
          payload: "CSAT_GOOD"
        },
        {
          title: "\uD83D\uDE42",
          payload: "CSAT_AVERAGE"
        },
        {
          title: "\uD83D\uDE41",
          payload: "CSAT_BAD"
        }
      ]
    );

    // This is triggered 4 sec after comming back from talking with an agent
    response.delay = "4000";

    return response;
  }