hunk.code_window:   function ($q, $scope, ServiceService, ServiceHelper, Notifications, TaskService, TaskHelper, NodeService, ContainerService) {
       $scope.getServices = getServices;
       function getServices() {
         var agentProxy = $scope.applicationState.endpoint.mode.agentProxy;
         $q.all({
           services: ServiceService.services(),
           tasks: TaskService.tasks(),
           containers: agentProxy ? ContainerService.containers(1) : [],
           nodes: NodeService.nodes(),
         })
           .then(function success(data) {
             var services = data.services;
             var tasks = data.tasks;
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:       return $q
           .all({
             services: ServiceService.services(),
             tasks: TaskService.tasks(),
             containers: agentProxy ? ContainerService.containers(1) : [],
             nodes: NodeService.nodes(),
           })
  
hunk.file_path: app/docker/views/services/servicesController.js
hunk.type: replace
file: import { KubernetesResourcePool } from 'Kubernetes/models/resource-pool/models';
  
  class KubernetesResourcePoolConverter {
    static apiToResourcePool(namespace) {
      const res = new KubernetesResourcePool();
      res.Namespace = namespace;
      res.Yaml = namespace.Yaml;
      return res;
    }
  }
  
  export default KubernetesResourcePoolConverter;
  