1angular.module('driverCommonServices', []).factory('DriverCommonService', ['$http', '$q', function($http, $q){ 2 return { 3 getCustomerDriverUnits : function() { 4 var d =$q.defer(); 5 6 $http.get("driver/getCustomerDriverUnits",{cache: false}).then( 7 function(resp) { 8 d.resolve(resp.data); 9 }); 10 return d.promise; 11 }, 12 getCustomerDrivers : function(vehicleCustomerNumber,hideSpinner) { 13 var d =$q.defer(); 14 15 $http.post("driver/getCustomerDrivers",$.param({"customerNumber":vehicleCustomerNumber}),{headers: {'Content-Type': 'application/x-www-form-urlencoded', 16 'Hide-Loading-Spinner':hideSpinner}}).then( 17 function(resp) { 18 d.resolve(resp.data); 19 }); 20 return d.promise; 21 }, 22 getVehiclesByDriver : function(driverId,custNum) { 23 var d =$q.defer(); 24 25 $http.post("vehicle/getVehiclesForDriver", $.param({driverId: driverId,custNum:custNum}), {headers: {'Content-Type': 'application/x-www-form-urlencoded'}}).then( 26 function(resp) { 27 d.resolve(resp.data); 28 }); 29 return d.promise; 30 }, 31 removeDriver: function(driverContactId,customerNumber) { 32 var d = $q.defer(); 33 34 $http.post("driver/removeDriver",$.param({"driverContactId":driverContactId,"customerNumber":customerNumber}),{headers: {'Content-Type': 'application/x-www-form-urlencoded'}}).then( 35 function(resp) { 36 d.resolve(resp.data); 37 }); 38 39 return d.promise; 40 } 41 42 43 }; 44}]);
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.