blob: 45f2561da34dcd1f0be4bcef2e9d600194f5ba75 [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';
Matteo Scandolo06542252018-01-30 13:35:55 -080021import {SocketIoService, 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 Scandolo63498472017-09-26 17:21:41 -070029import {XosModeldefsCache} from './helpers/modeldefs.service';
Matteo Scandolo035c5932016-12-14 09:55:15 -080030
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080031export const xosDataSources = 'xosDataSources';
Matteo Scandolo035c5932016-12-14 09:55:15 -080032
33angular
Matteo Scandolo1aee1982017-02-17 08:33:23 -080034 .module(xosDataSources, ['ngCookies', 'ngResource', xosCore])
Matteo Scandolof2c3ed62016-12-15 14:32:50 -080035 .service('ModelRest', ModelRest)
Matteo Scandolo035c5932016-12-14 09:55:15 -080036 .service('AuthService', AuthService)
Matteo Scandolo06542252018-01-30 13:35:55 -080037 .service('SocketIo', SocketIoService)
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080038 .service('WebSocket', WebSocketEvent)
Matteo Scandolo63498472017-09-26 17:21:41 -070039 .service('XosModeldefsCache', XosModeldefsCache)
Matteo Scandolo035c5932016-12-14 09:55:15 -080040 .service('StoreHelpers', StoreHelpers)
Matteo Scandolo63e43eb2016-12-14 14:18:53 -080041 .service('SynchronizerStore', SynchronizerStore)
Matteo Scandolo1aee1982017-02-17 08:33:23 -080042 .service('XosModelStore', XosModelStore)
43 .service('XosModelDefs', XosModeldefsService)
Matteo Scandolo86bc26a2017-01-18 11:06:47 -080044 .service('SearchService', SearchService);
Matteo Scandolo1aee1982017-02-17 08:33:23 -080045
46angular
47 .module(xosDataSources)
48 .service('XosModelDiscoverer', XosModelDiscovererService);