hunk.code_window:   '$scope',
     'LocalStorage',
     'StateManager',
     'EndpointProvider',
     'ThemeManager',
     function ($scope, LocalStorage, StateManager, EndpointProvider) {
       /**
        * Sidebar Toggle & Cookie Control
        */
       var mobileView = 992;
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:   function ($scope, LocalStorage, StateManager, EndpointProvider, ThemeManager) {
  
hunk.file_path: app/portainer/views/main/mainController.js
hunk.type: replace
file: import _ from 'lodash-es';
  
  class GenericHelper {
    static findDeepAll(obj, target, res = []) {
      if (typeof obj === 'object') {
        _.forEach(obj, (child, key) => {
          if (key === target) res.push(child);
          if (typeof child === 'object') GenericHelper.findDeepAll(child, target, res);
        });
      }
      return res;
    }
  }
  
  export default GenericHelper;
  