| Line 1320... |
Line 1320... |
| 1320 |
int id = (int) request.getAttribute("userId");
|
1320 |
int id = (int) request.getAttribute("userId");
|
| 1321 |
User user = userRepository.selectById(id);
|
1321 |
User user = userRepository.selectById(id);
|
| 1322 |
AuthUser authUser = authRepository.selectByEmailOrMobile(user.getEmailId());
|
1322 |
AuthUser authUser = authRepository.selectByEmailOrMobile(user.getEmailId());
|
| 1323 |
String fromMobile = authUser.getMobileNumber();
|
1323 |
String fromMobile = authUser.getMobileNumber();
|
| 1324 |
|
1324 |
|
| 1325 |
SmartPingAgentModel smartPingAgentModel = smartPingService.getAllAgents().get(toMobile);
|
1325 |
SmartPingAgentModel smartPingAgentModel = smartPingService.getAllAgents().get(fromMobile);
|
| 1326 |
|
1326 |
|
| 1327 |
String urlTemplate = "https://ccs1.smartpingcc.io/v2/clickToCall/para?&user_id=71287091&token=InCfClzwFUtLUW610faI&from=%d&fromType=Agent&fromCLI=&to=%s&toCLI=%s";
|
1327 |
String urlTemplate = "https://ccs1.smartpingcc.io/v2/clickToCall/para?&user_id=71287091&token=InCfClzwFUtLUW610faI&from=%d&fromType=Agent&fromCLI=&to=%s&toCLI=%s";
|
| 1328 |
|
1328 |
|
| 1329 |
String url = String.format(urlTemplate, smartPingAgentModel.getAgentId(), smartPingAgentModel.getAllowDid().get(0), toMobile, smartPingAgentModel.getAllowDid().get(0));
|
1329 |
String url = String.format(urlTemplate, smartPingAgentModel.getAgentId(), smartPingAgentModel.getAllowDid().get(0), toMobile, smartPingAgentModel.getAllowDid().get(0));
|
| 1330 |
|
1330 |
|