1MediaINFOApp.factory("$$Redirects",["$http","$q",function(a,b){"use strict";var c={};return c.incoming=function(){var c=b.defer();return a.get("/api/redirects/incoming").success(function(a){c.resolve(a)}).error(function(a){c.reject(a)}),c.promise},c.incomingUpdate=function(c){var d=b.defer();return a.put("/api/redirects/incoming",c).success(function(a){d.resolve(a)}).error(function(a){d.reject(a)}),d.promise},c}]),MediaINFOApp.controller("AdminRedirectsCtrl",["$scope","$$Redirects","notify","$filter","$$Field",function(a,b,c){$("body").addClass("admin-view"),$("body").addClass("redirects"),a.$on("$destroy",function(){$("body").removeClass("admin-view"),$("body").removeClass("redirects")}),a.isLoading=!0,a.fieldList=[],a.frontUrl=void 0,a.redirects={field:null,domainRedirects:{enabled:!1,domains:[""]}},b.incoming().then(function(b){a.isLoading=!1,a.fieldList=b.fieldsAvailable,b&&b.field&&b.field.id&&angular.forEach(a.fieldList,function(c){c.id==b.field.id&&(a.redirects.field=c)}),a.frontUrl=b.defaultURL,a.redirects.domainRedirects.enabled=b.domainRedirects.enabled,b.domainRedirects.domains&&b.domainRedirects.domains.length>0&&(a.redirects.domainRedirects.domains.length=0,angular.forEach(b.domainRedirects.domains,function(b){a.redirects.domainRedirects.domains.push(b)}))},function(b){a.isLoading=!1,b&&b.error&&b.error.message&&c(b.error.message)}),a.deleteDomainName=function(b){a.redirects.domainRedirects.domains.splice(b,1)},a.addDomainName=function(){a.redirects.domainRedirects.domains.push("")},a.save=function(){a.isLoading=!0,b.incomingUpdate(a.redirects).then(function(){a.isLoading=!1,c("Settings are saved")},function(b){a.isLoading=!1,b&&b.error&&b.error.message&&c(b.error.message)})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.