Subversion Repositories SmartDukaan

Rev

Rev 33581 | Rev 33590 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33581 Rev 33586
Line 42... Line 42...
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_JSON_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)
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
    }
59
}
59
}