hunk.code_window:     form.team_name.$setValidity('validName', valid);
     };
     $scope.addTeam = function() {
       var teamName = $scope.formValues.Name;
       var leaderIds = [];
       angular.forEach($scope.formValues.Leaders, function(user) {
         leaderIds.push(user.Id);
       });
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:     var teamName = $sanitize($scope.formValues.Name);
  
hunk.file_path: app/portainer/views/teams/teamsController.js
hunk.type: replace
file: angular.module('portainer.docker')
  .factory('Swarm', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function SwarmFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
    'use strict';
    return $resource(API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/swarm', {
      endpointId: EndpointProvider.endpointID
    },
    {
      get: { method: 'GET' }
    });
  }]);
  