| Line 24... |
Line 24... |
| 24 |
import org.springframework.http.MediaType;
|
24 |
import org.springframework.http.MediaType;
|
| 25 |
import org.springframework.http.ResponseEntity;
|
25 |
import org.springframework.http.ResponseEntity;
|
| 26 |
import org.springframework.stereotype.Controller;
|
26 |
import org.springframework.stereotype.Controller;
|
| 27 |
import org.springframework.ui.Model;
|
27 |
import org.springframework.ui.Model;
|
| 28 |
import org.springframework.web.bind.annotation.ModelAttribute;
|
28 |
import org.springframework.web.bind.annotation.ModelAttribute;
|
| - |
|
29 |
import org.springframework.web.bind.annotation.RequestBody;
|
| 29 |
import org.springframework.web.bind.annotation.RequestMapping;
|
30 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 30 |
import org.springframework.web.bind.annotation.RequestMethod;
|
31 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 31 |
|
32 |
|
| 32 |
import javax.servlet.http.HttpServletRequest;
|
33 |
import javax.servlet.http.HttpServletRequest;
|
| 33 |
import javax.transaction.Transactional;
|
34 |
import javax.transaction.Transactional;
|
| Line 73... |
Line 74... |
| 73 |
LOGGER.info("update call detail {}", callDetail);
|
74 |
LOGGER.info("update call detail {}", callDetail);
|
| 74 |
recordingService.updateAgentRecordingUrl(callDetail);
|
75 |
recordingService.updateAgentRecordingUrl(callDetail);
|
| 75 |
return responseSender.ok(true);
|
76 |
return responseSender.ok(true);
|
| 76 |
}
|
77 |
}
|
| 77 |
|
78 |
|
| - |
|
79 |
@RequestMapping(
|
| - |
|
80 |
value = "/click2call/push-call-log-handler",
|
| - |
|
81 |
method = RequestMethod.POST,
|
| 78 |
@RequestMapping(value = "/click2call/push-call-log-handler", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
82 |
consumes = MediaType.APPLICATION_JSON_VALUE
|
| - |
|
83 |
)
|
| 79 |
public ResponseEntity<?> click2callPushLogHandler(HttpServletRequest request, Model model, @ModelAttribute PushCallLogModel pushCallLogModel) throws Exception {
|
84 |
public ResponseEntity<?> click2callPushLogHandler(@RequestBody PushCallLogModel pushCallLogModel) throws Exception {
|
| 80 |
LOGGER.info("update call detail {}", pushCallLogModel);
|
85 |
LOGGER.info("update call detail {}", pushCallLogModel);
|
| 81 |
recordingService.updateAgentCallLog(pushCallLogModel);
|
86 |
recordingService.updateAgentCallLog(pushCallLogModel);
|
| 82 |
return responseSender.ok(true);
|
87 |
return responseSender.ok(true);
|
| 83 |
}
|
88 |
}
|
| 84 |
|
89 |
|