UNPKG

2.15 kBJavaScriptView Raw
1/**
2 * @fileoverview added by tsickle
3 * @suppress {checkTypes} checked by tsc
4 */
5import * as tslib_1 from "tslib";
6import { NacoService } from '../domains/services/naco.service';
7import { Config } from '../domains/values/config';
8import { InjectionToken } from '@angular/core';
9/**
10 * @param {?} config
11 * @param {?} router
12 * @param {?} storage
13 * @param {?} http
14 * @return {?}
15 */
16export function nacoFactory(config, router, storage, http) {
17 return new NacoService(new Config(tslib_1.__assign({}, config)), router, storage, http);
18}
19export var /** @type {?} */ NACO_CONFIG = new InjectionToken('NACO_CONFIG');
20
21//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmFjby1mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5ha2VyL25hY28vIiwic291cmNlcyI6WyJmYWN0b3JpZXMvbmFjby1mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQy9ELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUdsRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQUcvQyxNQUFNLHNCQUFzQixNQUFjLEVBQUUsTUFBYyxFQUFFLE9BQWdCLEVBQUUsSUFBZ0I7SUFDMUYsT0FBTyxJQUFJLFdBQVcsQ0FDbEIsSUFBSSxNQUFNLHNCQUFNLE1BQU0sRUFBRyxFQUN6QixNQUFNLEVBQ04sT0FBTyxFQUNQLElBQUksQ0FDUCxDQUFDO0NBQ0w7QUFFRCxNQUFNLENBQUMscUJBQU0sV0FBVyxHQUFHLElBQUksY0FBYyxDQUFTLGFBQWEsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmFjb1NlcnZpY2UgfSBmcm9tICcu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