Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
Matteo Scandolo | 4b3bf7f | 2016-04-12 11:38:40 -0700 | [diff] [blame] | 3 | |
Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 4 | angular.module('xos.helpers') |
Matteo Scandolo | 717352a | 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 | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 10 | .service('Subscribers', function($resource){ |
| 11 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/', { subscriber_id: '@id' }); |
| 12 | }) |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 13 | /** |
| 14 | * @ngdoc service |
| 15 | * @name xos.helpers.Subscriber-features |
| 16 | * @description Angular resource to fetch /api/tenant/cord/subscriber/:subscriber_id/features/ |
| 17 | **/ |
Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 18 | .service('Subscriber-features', function($resource){ |
| 19 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/', { subscriber_id: '@id' }); |
| 20 | }) |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 21 | /** |
| 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 Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 26 | .service('Subscriber-features-uplink_speed', function($resource){ |
| 27 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uplink_speed/', { subscriber_id: '@id' }); |
| 28 | }) |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 29 | /** |
| 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 Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 34 | .service('Subscriber-features-downlink_speed', function($resource){ |
| 35 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/downlink_speed/', { subscriber_id: '@id' }); |
| 36 | }) |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 37 | /** |
| 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 Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 42 | .service('Subscriber-features-cdn', function($resource){ |
| 43 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/cdn/', { subscriber_id: '@id' }); |
| 44 | }) |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 45 | /** |
| 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 Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 50 | .service('Subscriber-features-uverse', function($resource){ |
| 51 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/uverse/', { subscriber_id: '@id' }); |
| 52 | }) |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 53 | /** |
| 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 Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 58 | .service('Subscriber-features-status', function($resource){ |
| 59 | return $resource('/api/tenant/cord/subscriber/:subscriber_id/features/status/', { subscriber_id: '@id' }); |
| 60 | }) |
| 61 | })(); |