2727import org .springframework .http .HttpStatus ;
2828import org .springframework .http .MediaType ;
2929import org .springframework .http .ResponseEntity ;
30- import org . springframework . web . bind . annotation . CrossOrigin ;
30+
3131import org .springframework .web .bind .annotation .GetMapping ;
3232import org .springframework .web .bind .annotation .PathVariable ;
3333import org .springframework .web .bind .annotation .PostMapping ;
5050
5151@ RestController
5252@ RequestMapping (value = "/callAllocation" , headers = "Authorization" )
53- @ CrossOrigin ()
5453public class CallAllocationController {
5554
5655 @ Autowired
@@ -127,7 +126,7 @@ public ResponseEntity<Object> reAllocateCalls(@RequestBody RequestCallAllocation
127126 public ResponseEntity <String > updateAlerts (@ RequestBody RequestCallAllocationDTO callAllocationDto ) {
128127 return new ResponseEntity <>(callAllocationImpl .moveAllocatedCallsToBin (callAllocationDto ), HttpStatus .OK );
129128 }
130-
129+
131130 @ PostMapping (value = "/insertRecordsInOutboundCalls" , produces = MediaType .APPLICATION_JSON_VALUE , consumes = MediaType .APPLICATION_JSON_VALUE )
132131 @ Operation (summary = "Insert Records In OutboundCalls" , description = "Desc - Insert Records In OutboundCalls" )
133132 @ ApiResponses (value = {
@@ -141,7 +140,7 @@ public ResponseEntity<String> insertRecordsInOutboundCalls(@RequestBody Outbound
141140 return new ResponseEntity <>(callAllocationImpl .insertRecordsInOutboundCalls (outboundCallsDTO ), HttpStatus .OK );
142141
143142 }
144-
143+
145144 @ GetMapping (value = "/getEligibleRecordsLanguageInfo/{psmId}/{phoneNoType}/{recordType}/{fDate}/{tDate}/{preferredLanguage}/{role}" , produces = MediaType .APPLICATION_JSON_VALUE )
146145 @ Operation (summary = "Fetch eligible Language records for allocation" , description = "Desc - Fetch eligible records for allocation" )
147146 @ ApiResponses (value = {
@@ -153,9 +152,12 @@ public ResponseEntity<String> insertRecordsInOutboundCalls(@RequestBody Outbound
153152 @ ApiResponse (responseCode = CustomExceptionResponse .BAD_REQUEST_SC_V , description = CustomExceptionResponse .BAD_REQUEST_SC ) })
154153 public ResponseEntity <ResponseEligibleCallRecordsDTO > getEligibleRecordsLanguageInfo (@ PathVariable int psmId ,
155154 @ PathVariable String phoneNoType , @ PathVariable String recordType , @ PathVariable String fDate ,
156- @ PathVariable String tDate , @ PathVariable String preferredLanguage ,@ PathVariable String role ) throws ECDException {
155+ @ PathVariable String tDate , @ PathVariable String preferredLanguage , @ PathVariable String role )
156+ throws ECDException {
157157 return new ResponseEntity <>(
158- callAllocationImpl .getEligibleRecordsLanguageInfo (psmId , phoneNoType , recordType , fDate , tDate , preferredLanguage ,role ), HttpStatus .OK );
158+ callAllocationImpl .getEligibleRecordsLanguageInfo (psmId , phoneNoType , recordType , fDate , tDate ,
159+ preferredLanguage , role ),
160+ HttpStatus .OK );
159161
160162 }
161163
0 commit comments