Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
Matteo Scandolo | c7987cd | 2016-04-12 11:38:40 -0700 | [diff] [blame] | 3 | |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 4 | angular.module('xos.helpers') |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 5 | /** |
| 6 | * @ngdoc service |
| 7 | * @name xos.helpers.Subscribers |
| 8 | * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/ |
| 9 | **/ |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 10 | .service('Subscribers', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 11 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/', { subscriber_id: '@id' }, { |
| 12 | update: { method: 'PUT' } |
| 13 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 14 | }) |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 15 | /** |
| 16 | * @ngdoc service |
| 17 | * @name xos.helpers.Subscriber-features |
| 18 | * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/ |
| 19 | **/ |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 20 | .service('Subscriber-features', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 21 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/', { subscriber_id: '@id' }, { |
| 22 | update: { method: 'PUT' } |
| 23 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 24 | }) |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 25 | /** |
| 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 Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 30 | .service('Subscriber-features-uplink_speed', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 31 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uplink_speed/', { subscriber_id: '@id' }, { |
| 32 | update: { method: 'PUT' } |
| 33 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 34 | }) |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 35 | /** |
| 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 Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 40 | .service('Subscriber-features-downlink_speed', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 41 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/downlink_speed/', { subscriber_id: '@id' }, { |
| 42 | update: { method: 'PUT' } |
| 43 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 44 | }) |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 45 | /** |
| 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 Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 50 | .service('Subscriber-features-cdn', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 51 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/cdn/', { subscriber_id: '@id' }, { |
| 52 | update: { method: 'PUT' } |
| 53 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 54 | }) |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 55 | /** |
| 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 Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 60 | .service('Subscriber-features-uverse', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 61 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uverse/', { subscriber_id: '@id' }, { |
| 62 | update: { method: 'PUT' } |
| 63 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 64 | }) |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 65 | /** |
| 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 Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 70 | .service('Subscriber-features-status', function($resource){ |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 71 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/status/', { subscriber_id: '@id' }, { |
| 72 | update: { method: 'PUT' } |
| 73 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 74 | }) |
| 75 | })(); |