export * from './UserService';
export * from './TransRoutesService';
export * from './DriverService';
export * from './VehicleService';
export * from './EmployeeService';
export * from './CustomerService';
export * from './AuthService';
export * from './RouteTemplateService';
export * from './ReportService';
export * from './DispatcherService';
export * from './MessageService';
export * from './CenterPhoneService';
export * from './ResourceService';
export * from './EventsService';
export * from './EventRequestService';
export * from './SignatureRequestService';
export * from './VehicleRepairService';
export * from './LabelService';
export * from './SeatingService';
export * from './AttendanceNoteService';
export * from './CarouselService';
export * from './DailyRoutesTemplateService';
export * from './TemplateFileService';

// Utility functions
export const parseDateFromBackend = (dateString) => {
  if (!dateString) return null;
  
  // Handle MM/DD/YYYY format
  if (typeof dateString === 'string' && dateString.includes('/')) {
    const [month, day, year] = dateString.split('/');
    return new Date(parseInt(year), parseInt(month) - 1, parseInt(day));
  }
  
  // Handle other date formats
  return new Date(dateString);
};