Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(telephony): add carrier sip calls
Browse files Browse the repository at this point in the history
  • Loading branch information
marie-j committed Aug 26, 2019
1 parent c5963c7 commit ad4fb84
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/telephony/carrierSip/carrier-sip.service.js
Original file line number Diff line number Diff line change
@@ -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');
},
}));
8 changes: 8 additions & 0 deletions src/api/telephony/carrierSip/carrier-sip.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipV6', $resource => $resource(
'/telephony/:billingAccount/carrierSip/:serviceName', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
},
));
6 changes: 6 additions & 0 deletions src/api/telephony/carrierSip/endpoints/endpoints.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipEndpoints', $injector => ({
v6() {
return $injector.get('OvhApiTelephonyCarrierSipEndpointsV6');
},
}));
Original file line number Diff line number Diff line change
@@ -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',
},
));
6 changes: 6 additions & 0 deletions src/api/telephony/carrierSip/settings/settings.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipSettings', $injector => ({
v6() {
return $injector.get('OvhApiTelephonyCarrierSipSettingsV6');
},
}));
8 changes: 8 additions & 0 deletions src/api/telephony/carrierSip/settings/settings.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipSettingsV6', $resource => $resource(
'/telephony/:billingAccount/carrierSip/:serviceName/settings', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
},
));
3 changes: 3 additions & 0 deletions src/api/telephony/telephony.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},
Expand Down

0 comments on commit ad4fb84

Please sign in to comment.