blob: 945e1e840be403bdf85002adc228bee1c9c2efc0 [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
Matteo Scandolodfcfd752016-05-03 14:35:03 -07008 * @description Angular resource to fetch Subscribers
Matteo Scandolo717352a2016-04-13 17:23:28 -07009 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070010 .service('Subscribers', function($resource){
Matteo Scandolodfcfd752016-05-03 14:35:03 -070011 return $resource('/api/tenant/cord/subscriber/:id/', { id: '@id' }, {
12 update: { method: 'PUT' },
13 /**
14 * @ngdoc method
15 * @name xos.helpers.Subscribers#View-a-Subscriber-Features-Detail
16 * @methodOf xos.helpers.Subscribers
17 * @description
18 * View-a-Subscriber-Features-Detail
19 **/
20 'View-a-Subscriber-Features-Detail': {
21 method: 'GET',
22 isArray: false,
23 url: '/api/tenant/cord/subscriber/:id/features/'
24 },
25 /**
26 * @ngdoc method
27 * @name xos.helpers.Subscribers#Read-Subscriber-uplink_speed
28 * @methodOf xos.helpers.Subscribers
29 * @description
30 * Read-Subscriber-uplink_speed
31 **/
32 'Read-Subscriber-uplink_speed': {
33 method: 'GET',
34 isArray: false,
35 url: '/api/tenant/cord/subscriber/:id/features/uplink_speed/'
36 },
37 /**
38 * @ngdoc method
39 * @name xos.helpers.Subscribers#Update-Subscriber-uplink_speed
40 * @methodOf xos.helpers.Subscribers
41 * @description
42 * Update-Subscriber-uplink_speed
43 **/
44 'Update-Subscriber-uplink_speed': {
45 method: 'PUT',
46 isArray: false,
47 url: '/api/tenant/cord/subscriber/:id/features/uplink_speed/'
48 },
49 /**
50 * @ngdoc method
51 * @name xos.helpers.Subscribers#Read-Subscriber-downlink_speed
52 * @methodOf xos.helpers.Subscribers
53 * @description
54 * Read-Subscriber-downlink_speed
55 **/
56 'Read-Subscriber-downlink_speed': {
57 method: 'GET',
58 isArray: false,
59 url: '/api/tenant/cord/subscriber/:id/features/downlink_speed/'
60 },
61 /**
62 * @ngdoc method
63 * @name xos.helpers.Subscribers#Update-Subscriber-downlink_speed
64 * @methodOf xos.helpers.Subscribers
65 * @description
66 * Update-Subscriber-downlink_speed
67 **/
68 'Update-Subscriber-downlink_speed': {
69 method: 'PUT',
70 isArray: false,
71 url: '/api/tenant/cord/subscriber/:id/features/downlink_speed/'
72 },
73 /**
74 * @ngdoc method
75 * @name xos.helpers.Subscribers#Read-Subscriber-cdn
76 * @methodOf xos.helpers.Subscribers
77 * @description
78 * Read-Subscriber-cdn
79 **/
80 'Read-Subscriber-cdn': {
81 method: 'GET',
82 isArray: false,
83 url: '/api/tenant/cord/subscriber/:id/features/cdn/'
84 },
85 /**
86 * @ngdoc method
87 * @name xos.helpers.Subscribers#Update-Subscriber-cdn
88 * @methodOf xos.helpers.Subscribers
89 * @description
90 * Update-Subscriber-cdn
91 **/
92 'Update-Subscriber-cdn': {
93 method: 'PUT',
94 isArray: false,
95 url: '/api/tenant/cord/subscriber/:id/features/cdn/'
96 },
97 /**
98 * @ngdoc method
99 * @name xos.helpers.Subscribers#Read-Subscriber-uverse
100 * @methodOf xos.helpers.Subscribers
101 * @description
102 * Read-Subscriber-uverse
103 **/
104 'Read-Subscriber-uverse': {
105 method: 'GET',
106 isArray: false,
107 url: '/api/tenant/cord/subscriber/:id/features/uverse/'
108 },
109 /**
110 * @ngdoc method
111 * @name xos.helpers.Subscribers#Update-Subscriber-uverse
112 * @methodOf xos.helpers.Subscribers
113 * @description
114 * Update-Subscriber-uverse
115 **/
116 'Update-Subscriber-uverse': {
117 method: 'PUT',
118 isArray: false,
119 url: '/api/tenant/cord/subscriber/:id/features/uverse/'
120 },
121 /**
122 * @ngdoc method
123 * @name xos.helpers.Subscribers#Read-Subscriber-status
124 * @methodOf xos.helpers.Subscribers
125 * @description
126 * Read-Subscriber-status
127 **/
128 'Read-Subscriber-status': {
129 method: 'GET',
130 isArray: false,
131 url: '/api/tenant/cord/subscriber/:id/features/status/'
132 },
133 /**
134 * @ngdoc method
135 * @name xos.helpers.Subscribers#Update-Subscriber-status
136 * @methodOf xos.helpers.Subscribers
137 * @description
138 * Update-Subscriber-status
139 **/
140 'Update-Subscriber-status': {
141 method: 'PUT',
142 isArray: false,
143 url: '/api/tenant/cord/subscriber/:id/features/status/'
144 }
145 })
Matteo Scandolofbd486c2016-04-13 10:19:55 -0700146 })
147})();