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 (#221)
Browse files Browse the repository at this point in the history
ref: MANAGER-3210
  • Loading branch information
marie-j authored and antleblanc committed Sep 26, 2019
1 parent 01716f2 commit 2bc2815
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 6 deletions.
14 changes: 14 additions & 0 deletions src/api/telephony/carrierSip/carrier-sip.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSip', $injector => ({
v6() {
return $injector.get('OvhApiTelephonyCarrierSipV6');
},
Cdrs() {
return $injector.get('OvhApiTelephonyCarrierSipCdrs');
},
Endpoints() {
return $injector.get('OvhApiTelephonyCarrierSipEndpoints');
},
Settings() {
return $injector.get('OvhApiTelephonyCarrierSipSettings');
},
}));
6 changes: 6 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,6 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipV6', $resource => $resource(
'/telephony/:billingAccount/carrierSip/:serviceName', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
},
));
5 changes: 5 additions & 0 deletions src/api/telephony/carrierSip/cdrs/cdrs.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipCdrs', $injector => ({
v6() {
return $injector.get('OvhApiTelephonyCarrierSipCdrsV6');
},
}));
6 changes: 6 additions & 0 deletions src/api/telephony/carrierSip/cdrs/cdrs.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipCdrsV6', $resource => $resource(
'/telephony/:billingAccount/carrierSip/:serviceName/cdrs', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
},
));
5 changes: 5 additions & 0 deletions src/api/telephony/carrierSip/endpoints/endpoints.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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,7 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipEndpointsV6', $resource => $resource(
'/telephony/:billingAccount/carrierSip/:serviceName/endpoints/:id', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
id: '@id',
},
));
5 changes: 5 additions & 0 deletions src/api/telephony/carrierSip/settings/settings.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipSettings', $injector => ({
v6() {
return $injector.get('OvhApiTelephonyCarrierSipSettingsV6');
},
}));
10 changes: 10 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,10 @@
angular.module('ovh-api-services').service('OvhApiTelephonyCarrierSipSettingsV6', $resource => $resource(
'/telephony/:billingAccount/carrierSip/:serviceName/settings', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
}, {
query: {
isArray: false,
},
},
));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiTelephonyServicePreviousVoiceConsumption', $injector => ({
v6() {
return $injector.get('OvhApiTelephonyServicePreviousVoiceConsumptionV6');
},
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiTelephonyServicePreviousVoiceConsumptionV6', $resource => $resource('/telephony/:billingAccount/service/:serviceName/previousVoiceConsumption/:consumptionId', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
consumptionId: '@consumptionId',
}));
15 changes: 9 additions & 6 deletions src/api/telephony/service/telephony-service.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ angular.module('ovh-api-services').service('OvhApiTelephonyService', $injector =
v7() {
return $injector.get('OvhApiTelephonyServiceV7');
},
VoiceConsumption() {
return $injector.get('OvhApiTelephonyServiceVoiceConsumption');
},
FaxConsumption() {
return $injector.get('OvhApiTelephonyServiceFaxConsumption');
},
Task() {
return $injector.get('OvhApiTelephonyServiceTask');
},
OfferTask() {
return $injector.get('OvhApiTelephonyServiceOfferTask');
},
PreviousVoiceConsumption() {
return $injector.get('OvhApiTelephonyServicePreviousVoiceConsumption');
},
RepaymentConsumption() {
return $injector.get('OvhApiTelephonyServiceRepaymentConsumption');
},
Task() {
return $injector.get('OvhApiTelephonyServiceTask');
},
VoiceConsumption() {
return $injector.get('OvhApiTelephonyServiceVoiceConsumption');
},
}));
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 2bc2815

Please sign in to comment.