Subversion Repositories SmartDukaan

Rev

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

Rev 32746 Rev 32747
Line 1323... Line 1323...
1323
        String fromMobile = authUser.getMobileNumber();
1323
        String fromMobile = authUser.getMobileNumber();
1324
 
1324
 
1325
        SmartPingAgentModel smartPingAgentModel = smartPingService.getAllAgents().get(fromMobile);
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
        LOGGER.info("smartPingAgentModel - {}", smartPingAgentModel);
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
 
1331
        restClient.get(url, null, null);
1331
        restClient.get(url, null, null);
1332
 
1332
 
1333
        return responseSender.ok(true);
1333
        return responseSender.ok(true);