diff --git a/src/api/telephony/carrierSip/carrier-sip.service.js b/src/api/telephony/carrierSip/carrier-sip.service.js new file mode 100644 index 00000000..5808ac51 --- /dev/null +++ b/src/api/telephony/carrierSip/carrier-sip.service.js @@ -0,0 +1,11 @@ +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSip', $injector => ({ + v6() { + return $injector.get('OvhApiTelephonyCarrierSipV6'); + }, + Endpoints() { + return $injector.get('OvhApiTelephonyCarrierSipEndpointsV6'); + }, + Settings() { + return $injector.get('OvhApiTelephonyCarrierSipSettingsV6'); + }, +})); diff --git a/src/api/telephony/carrierSip/carrier-sip.v6.service.js b/src/api/telephony/carrierSip/carrier-sip.v6.service.js new file mode 100644 index 00000000..52695733 --- /dev/null +++ b/src/api/telephony/carrierSip/carrier-sip.v6.service.js @@ -0,0 +1,8 @@ + + +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipV6', $resource => $resource( + '/telephony/:billingAccount/carrierSip/:serviceName', { + billingAccount: '@billingAccount', + serviceName: '@serviceName', + }, +)); diff --git a/src/api/telephony/carrierSip/endpoints/endpoints.service.js b/src/api/telephony/carrierSip/endpoints/endpoints.service.js new file mode 100644 index 00000000..63fdfeea --- /dev/null +++ b/src/api/telephony/carrierSip/endpoints/endpoints.service.js @@ -0,0 +1,6 @@ + +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipEndpoints', $injector => ({ + v6() { + return $injector.get('OvhApiTelephonyCarrierSipEndpointsV6'); + }, +})); diff --git a/src/api/telephony/carrierSip/endpoints/endpoints.v6.service.js b/src/api/telephony/carrierSip/endpoints/endpoints.v6.service.js new file mode 100644 index 00000000..8d9379e4 --- /dev/null +++ b/src/api/telephony/carrierSip/endpoints/endpoints.v6.service.js @@ -0,0 +1,9 @@ + + +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipEndpointsV6', $resource => $resource( + '/telephony/:billingAccount/carrierSip/:serviceName/endpoints/:id', { + billingAccount: '@billingAccount', + serviceName: '@serviceName', + id: '@id', + }, +)); diff --git a/src/api/telephony/carrierSip/settings/settings.service.js b/src/api/telephony/carrierSip/settings/settings.service.js new file mode 100644 index 00000000..98788a17 --- /dev/null +++ b/src/api/telephony/carrierSip/settings/settings.service.js @@ -0,0 +1,6 @@ + +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipSettings', $injector => ({ + v6() { + return $injector.get('OvhApiTelephonyCarrierSipSettingsV6'); + }, +})); diff --git a/src/api/telephony/carrierSip/settings/settings.v6.service.js b/src/api/telephony/carrierSip/settings/settings.v6.service.js new file mode 100644 index 00000000..223bfc46 --- /dev/null +++ b/src/api/telephony/carrierSip/settings/settings.v6.service.js @@ -0,0 +1,8 @@ + + +angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipSettingsV6', $resource => $resource( + '/telephony/:billingAccount/carrierSip/:serviceName/settings', { + billingAccount: '@billingAccount', + serviceName: '@serviceName', + }, +)); diff --git a/src/api/telephony/telephony.service.js b/src/api/telephony/telephony.service.js index d5dfd491..20a2b94c 100644 --- a/src/api/telephony/telephony.service.js +++ b/src/api/telephony/telephony.service.js @@ -11,6 +11,9 @@ angular.module('ovh-api-services').service('OvhApiTelephony', $injector => ({ AbbreviatedNumber() { return $injector.get('OvhApiTelephonyAbbreviatedNumber'); }, + CarrierSip() { + return $injector.get('OvhApiTelephonyCarrierSip'); + }, Eventtoken() { return $injector.get('OvhApiTelephonyEventtoken'); },