hunk.code_window:           'timestamps': params.timestamps || 0,
             'tail': params.tail || 'all'
           }
         }).success(callback).error(function (data, status, headers, config) {
           console.log(error, data);
         });
       }
     };
   }]);
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:         console.log(data);
  
hunk.file_path: app/rest/docker/serviceLogs.js
hunk.type: replace
file: function ResourceControlViewModel(data) {
    this.Id = data.Id;
    this.Type = data.Type;
    this.ResourceId = data.ResourceId;
    this.UserAccesses = data.UserAccesses;
    this.TeamAccesses = data.TeamAccesses;
    this.AdministratorsOnly = data.AdministratorsOnly;
    this.Ownership = determineOwnership(this);
  }
  
  function determineOwnership(resourceControl) {
    if (resourceControl.AdministratorsOnly) {
      return 'administrators';
    } else if (resourceControl.UserAccesses.length === 1 && resourceControl.TeamAccesses.length === 0) {
      return 'private';
    } else if (resourceControl.UserAccesses.length > 1 || resourceControl.TeamAccesses.length > 0) {
      return 'restricted';
    }
  }
  