blob: ebab252c95b90897ca259baf7df91b1b2c2f631d [file] [log] [blame]
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -07001(function() {
2 'use strict';
Matteo Scandoloc7987cd2016-04-12 11:38:40 -07003
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -07004 angular.module('xos.helpers')
Matteo Scandolo582cc812016-04-13 17:23:28 -07005 /**
6 * @ngdoc service
7 * @name xos.helpers.Subscribers
8 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/
9 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070010 .service('Subscribers', function($resource){
11 return $resource('/api/tenant/cord/subscriber/:subscriber_id/', { subscriber_id: '@id' });
12 })
Matteo Scandolo582cc812016-04-13 17:23:28 -070013 /**
14 * @ngdoc service
15 * @name xos.helpers.Subscriber-features
16 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/
17 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070018 .service('Subscriber-features', function($resource){
19 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/', { subscriber_id: '@id' });
20 })
Matteo Scandolo582cc812016-04-13 17:23:28 -070021 /**
22 * @ngdoc service
23 * @name xos.helpers.Subscriber-features-uplink_speed
24 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/uplink_speed/
25 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070026 .service('Subscriber-features-uplink_speed', function($resource){
27 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uplink_speed/', { subscriber_id: '@id' });
28 })
Matteo Scandolo582cc812016-04-13 17:23:28 -070029 /**
30 * @ngdoc service
31 * @name xos.helpers.Subscriber-features-downlink_speed
32 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/downlink_speed/
33 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070034 .service('Subscriber-features-downlink_speed', function($resource){
35 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/downlink_speed/', { subscriber_id: '@id' });
36 })
Matteo Scandolo582cc812016-04-13 17:23:28 -070037 /**
38 * @ngdoc service
39 * @name xos.helpers.Subscriber-features-cdn
40 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/cdn/
41 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070042 .service('Subscriber-features-cdn', function($resource){
43 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/cdn/', { subscriber_id: '@id' });
44 })
Matteo Scandolo582cc812016-04-13 17:23:28 -070045 /**
46 * @ngdoc service
47 * @name xos.helpers.Subscriber-features-uverse
48 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/uverse/
49 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070050 .service('Subscriber-features-uverse', function($resource){
51 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uverse/', { subscriber_id: '@id' });
52 })
Matteo Scandolo582cc812016-04-13 17:23:28 -070053 /**
54 * @ngdoc service
55 * @name xos.helpers.Subscriber-features-status
56 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/status/
57 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070058 .service('Subscriber-features-status', function($resource){
59 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/status/', { subscriber_id: '@id' });
60 })
61})();