From 0679a31c1d612f25bdaaec842abc35f85acf3081 Mon Sep 17 00:00:00 2001 From: JeremyDec <34273689+JeremyDec@users.noreply.github.com> Date: Tue, 1 Oct 2019 08:21:09 +0200 Subject: [PATCH] feat(telephony.carrier.sip): add cluster details (#238) ref: MANAGER-3210 --- src/api/telephony/carrierSip/carrier-sip.service.js | 3 +++ .../clusterDetails/carrier-sip-clusterDetails.service.js | 5 +++++ .../clusterDetails/carrier-sip-clusterDetails.v6.service.js | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.service.js create mode 100644 src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.v6.service.js diff --git a/src/api/telephony/carrierSip/carrier-sip.service.js b/src/api/telephony/carrierSip/carrier-sip.service.js index ac60fa97..374da39a 100644 --- a/src/api/telephony/carrierSip/carrier-sip.service.js +++ b/src/api/telephony/carrierSip/carrier-sip.service.js @@ -5,6 +5,9 @@ angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSip', $injecto Cdrs() { return $injector.get('OvhApiTelephonyCarrierSipCdrs'); }, + ClusterDetails() { + return $injector.get('OvhApiTelephonyCarrierSipClusterDetails'); + }, Endpoints() { return $injector.get('OvhApiTelephonyCarrierSipEndpoints'); }, diff --git a/src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.service.js b/src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.service.js new file mode 100644 index 00000000..90b1d59c --- /dev/null +++ b/src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.service.js @@ -0,0 +1,5 @@ +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipClusterDetails', $injector => ({ + v6() { + return $injector.get('OvhApiTelephonyCarrierSipClusterDetailsV6'); + }, +})); diff --git a/src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.v6.service.js b/src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.v6.service.js new file mode 100644 index 00000000..a7f52051 --- /dev/null +++ b/src/api/telephony/carrierSip/clusterDetails/carrier-sip-clusterDetails.v6.service.js @@ -0,0 +1,4 @@ +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipClusterDetailsV6', $resource => $resource('/telephony/:billingAccount/carrierSip/:serviceName/clusterDetails', { + billingAccount: '@billingAccount', + serviceName: '@serviceName', +}));