import { Injectable } from '@angular/core' ; /**
 * Auth configuration.
 */ @ Injectable ( ) export class SchedulerConfig { locale ? : string = 'en' ; headerDateFormat ? : 'weekNumber' | 'daysRange' = 'daysRange' ; logEnabled ? : boolean = false ; constructor ( config = { } ) { function use < T > ( source , defaultValue ) { return config && source !== undefined ? source : defaultValue ; } this . locale = use ( config . locale , this . locale ) ; this . headerDateFormat = use ( config . headerDateFormat , this . headerDateFormat ) ; this . logEnabled = use ( config . logEnabled , this . logEnabled ) ; } }