blob: 342d856bb6f38bf03b07aaaf432a3fadc1a7ed07 [file] [log] [blame]
Matteo Scandolofbd486c2016-04-13 10:19:55 -07001(function() {
2 'use strict';
Matteo Scandolo4b3bf7f2016-04-12 11:38:40 -07003
Matteo Scandolofbd486c2016-04-13 10:19:55 -07004 angular.module('xos.helpers')
Matteo Scandolo717352a2016-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 Scandolofbd486c2016-04-13 10:19:55 -070010 .service('Subscribers', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070011 return $resource('/api/tenant/cord/subscriber/:subscriber_id/', { subscriber_id: '@id' }, {
12 update: { method: 'PUT' }
13 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070014 })
Matteo Scandolo717352a2016-04-13 17:23:28 -070015 /**
16 * @ngdoc service
17 * @name xos.helpers.Subscriber-features
18 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/
19 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070020 .service('Subscriber-features', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070021 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/', { subscriber_id: '@id' }, {
22 update: { method: 'PUT' }
23 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070024 })
Matteo Scandolo717352a2016-04-13 17:23:28 -070025 /**
26 * @ngdoc service
27 * @name xos.helpers.Subscriber-features-uplink_speed
28 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/uplink_speed/
29 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070030 .service('Subscriber-features-uplink_speed', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070031 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uplink_speed/', { subscriber_id: '@id' }, {
32 update: { method: 'PUT' }
33 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070034 })
Matteo Scandolo717352a2016-04-13 17:23:28 -070035 /**
36 * @ngdoc service
37 * @name xos.helpers.Subscriber-features-downlink_speed
38 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/downlink_speed/
39 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070040 .service('Subscriber-features-downlink_speed', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070041 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/downlink_speed/', { subscriber_id: '@id' }, {
42 update: { method: 'PUT' }
43 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070044 })
Matteo Scandolo717352a2016-04-13 17:23:28 -070045 /**
46 * @ngdoc service
47 * @name xos.helpers.Subscriber-features-cdn
48 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/cdn/
49 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070050 .service('Subscriber-features-cdn', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070051 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/cdn/', { subscriber_id: '@id' }, {
52 update: { method: 'PUT' }
53 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070054 })
Matteo Scandolo717352a2016-04-13 17:23:28 -070055 /**
56 * @ngdoc service
57 * @name xos.helpers.Subscriber-features-uverse
58 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/uverse/
59 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070060 .service('Subscriber-features-uverse', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070061 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uverse/', { subscriber_id: '@id' }, {
62 update: { method: 'PUT' }
63 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070064 })
Matteo Scandolo717352a2016-04-13 17:23:28 -070065 /**
66 * @ngdoc service
67 * @name xos.helpers.Subscriber-features-status
68 * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/status/
69 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070070 .service('Subscriber-features-status', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070071 return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/status/', { subscriber_id: '@id' }, {
72 update: { method: 'PUT' }
73 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070074 })
75})();