1app.controller('privacyServicesCtrl', function ($scope, $http, toastr) { 2 $scope.privacyContact = { 3 email: '', 4 phone: '' 5 }; 6 7 $scope.privacyInit = function () { 8 $scope.getPrivacyContactDetails(); 9 }; 10 11 $scope.getPrivacyContactDetails = function () { 12 var transform = function (data) { 13 return $.param(data); 14 }; 15 16 $http 17 .post( 18 window.site_url + 'FrontEndAPI/getPrivacyContactDetails', 19 {}, 20 { 21 headers: { 22 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 23 }, 24 transformRequest: transform, 25 } 26 ) 27 .then(function (response) { 28 if (response.data && response.data.status && response.data.status.status == '201') { 29 $scope.privacyContact = response.data.data || $scope.privacyContact; 30 } else if (response.data && response.data.status && response.data.status.message) { 31 toastr.warning(response.data.status.message); 32 } 33 }) 34 .catch(function () { 35 toastr.error('Unable to fetch privacy contact details.'); 36 }); 37 }; 38});
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.