blob: e5adcab551d5e7a3db68d605167876cbbe7c3e11 [file] [log] [blame]
Matteo Scandolofb46ae62017-08-08 09:10:50 -07001
2/*
3 * Copyright 2017-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080019import {ModelRest} from './rest/model.rest';
Matteo Scandolo035c5932016-12-14 09:55:15 -080020import {AuthService} from './rest/auth.rest';
21import {WebSocketEvent} from './websocket/global';
Matteo Scandolo1aee1982017-02-17 08:33:23 -080022import {XosModelStore} from './stores/model.store';
Matteo Scandolo035c5932016-12-14 09:55:15 -080023import {StoreHelpers} from './helpers/store.helpers';
Matteo Scandolo63e43eb2016-12-14 14:18:53 -080024import {SynchronizerStore} from './stores/synchronizer.store';
Matteo Scandolo1aee1982017-02-17 08:33:23 -080025import {XosModeldefsService} from './rest/modeldefs.rest';
Matteo Scandolo1c5905f2017-01-04 17:41:15 -080026import {xosCore} from '../core/index';
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080027import {SearchService} from './helpers/search.service';
Matteo Scandolo1aee1982017-02-17 08:33:23 -080028import {XosModelDiscovererService} from './helpers/model-discoverer.service';
Matteo Scandolo035c5932016-12-14 09:55:15 -080029
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080030export const xosDataSources = 'xosDataSources';
Matteo Scandolo035c5932016-12-14 09:55:15 -080031
32angular
Matteo Scandolo1aee1982017-02-17 08:33:23 -080033 .module(xosDataSources, ['ngCookies', 'ngResource', xosCore])
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080034 .service('ModelRest', ModelRest)
Matteo Scandolo035c5932016-12-14 09:55:15 -080035 .service('AuthService', AuthService)
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080036 .service('WebSocket', WebSocketEvent)
Matteo Scandolo035c5932016-12-14 09:55:15 -080037 .service('StoreHelpers', StoreHelpers)
Matteo Scandolo63e43eb2016-12-14 14:18:53 -080038 .service('SynchronizerStore', SynchronizerStore)
Matteo Scandolo1aee1982017-02-17 08:33:23 -080039 .service('XosModelStore', XosModelStore)
40 .service('XosModelDefs', XosModeldefsService)
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080041 .service('SearchService', SearchService);
Matteo Scandolo1aee1982017-02-17 08:33:23 -080042
43angular
44 .module(xosDataSources)
45 .service('XosModelDiscoverer', XosModelDiscovererService);