| Line 39... |
Line 39... |
| 39 |
// smartPingService.createAgentRecording(callDetailString);
|
39 |
// smartPingService.createAgentRecording(callDetailString);
|
| 40 |
// model.addAttribute("response1", mvcResponseSender.createResponseString("GODBLESSYOU"));
|
40 |
// model.addAttribute("response1", mvcResponseSender.createResponseString("GODBLESSYOU"));
|
| 41 |
// return "response";
|
41 |
// return "response";
|
| 42 |
// }
|
42 |
// }
|
| 43 |
|
43 |
|
| 44 |
@RequestMapping(value = "/click2call/report-handler", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
|
44 |
@RequestMapping(value = "/click2call/report-handler", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
| 45 |
public ResponseEntity<?> click2callReportHandlerPost(HttpServletRequest request, Model model, @RequestBody CallDetailModel callDetail) throws Exception {
|
45 |
public ResponseEntity<?> click2callReportHandlerPost(HttpServletRequest request, Model model, @RequestBody CallDetailModel callDetail) throws Exception {
|
| 46 |
LOGGER.info("first event call detail {}", callDetail);
|
46 |
LOGGER.info("first event call detail {}", callDetail);
|
| 47 |
smartPingService.createAgentRecording(callDetail);
|
47 |
smartPingService.createAgentRecording(callDetail);
|
| 48 |
|
48 |
|
| 49 |
return responseSender.ok(true);
|
49 |
return responseSender.ok(true);
|
| 50 |
}
|
50 |
}
|
| 51 |
|
51 |
|
| 52 |
|
52 |
|
| 53 |
@RequestMapping(value = "/click2call/report-handler/recording-url", method = RequestMethod.POST)
|
53 |
@RequestMapping(value = "/click2call/report-handler/recording-url", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
| 54 |
public ResponseEntity<?> click2callReportHandlerUpdateRecordingUrlPost(HttpServletRequest request, Model model, @RequestBody CallDetailModel callDetail) throws Exception {
|
54 |
public ResponseEntity<?> click2callReportHandlerUpdateRecordingUrlPost(HttpServletRequest request, Model model, @RequestBody CallDetailModel callDetail) throws Exception {
|
| 55 |
LOGGER.info("update call detail {}", callDetail);
|
55 |
LOGGER.info("update call detail {}", callDetail);
|
| 56 |
smartPingService.updateAgentRecordingUrl(callDetail);
|
56 |
smartPingService.updateAgentRecordingUrl(callDetail);
|
| 57 |
return responseSender.ok(true);
|
57 |
return responseSender.ok(true);
|
| 58 |
}
|
58 |
}
|