import { DeviceAuthGuard } from '@iotize/ionic';

export const monitoringRoutes = [
  <% for (let route of routes) { %>{
        path: '<%= route.path %>',<% if (route.loadChildren) { %>
        loadChildren: '<%= route.loadChildren %>',<% } %><% if (route.redirectTo) { %>
        redirectTo: '<%= route.redirectTo %>',<% } %>
        <% if (route.profileName) { %>canActivate: [
          DeviceAuthGuard
        ],
        data: {
          username: '<%= route.profileName %>'
        }<% } %>
      },
<% } %>
];
