import { NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { NativeScriptRouterModule } from '@nativescript/angular';
import { AdvertisingCategoryDetailComponent } from './containers/advertising-category-detail/advertising-category-detail.component';
import { AdvertisingCategoryNewComponent } from './containers/advertising-category-new/advertising-category-new.component';
import { AdvertisingCategoryUpdateComponent } from './containers/advertising-category-update/advertising-category-update.component';
import { AdvertisingComponent } from './containers/advertising/advertising.component';
import { MeetingDateDetailComponent } from './containers/meeting-date-detail/meeting-date-detail.component';
import { MeetingDateNewComponent } from './containers/meeting-date-new/meeting-date-new.component';
import { MeetingDateUpdateComponent } from './containers/meeting-date-update/meeting-date-update.component';

const routes: Routes = [
    { path: ':permission', component: AdvertisingComponent },
    { path: 'meetingDetail/:id/:permission', component: MeetingDateDetailComponent },
    { path: 'meetingUpdate/:id', component: MeetingDateUpdateComponent },
    { path: 'meetingNew/:permission', component: MeetingDateNewComponent },
    { path: 'advertisingCategoryNew/:permission', component: AdvertisingCategoryNewComponent },
    { path: 'advertisingCategoryDetail/:id/:permission', component: AdvertisingCategoryDetailComponent },
    { path: 'advertisingCategoryUpdate/:id', component: AdvertisingCategoryUpdateComponent }
];

@NgModule({
    imports: [NativeScriptRouterModule.forChild(routes)],
    exports: [NativeScriptRouterModule]
})

export class AdvertisingRoutingModule {
}
