expediteServicesModule.service("accountsService",["$http","$rootScope",function(n,t){var i=this;return i.getAccounts=function(r,u){n.get(`${t.ExpediteApi}/customer`).then(function({data:n}){i.accounts=n.filter(n=>n.Status!==0&&n.Id!==-1&&n.Id===n.ParentId);r()},function({data:n,status:t}){u(n,t)})},i.getCarrierAccounts=function(r,u){n.get(`${t.ExpediteApi}/customer`).then(function({data:n}){i.accounts=[{Id:255,Name:"XPO Expedite"}].concat(n.filter(n=>n.Status!==0&&n.Id>0&&n.ParentId!==0).sort((n,t)=>n.Name>t.Name?1:-1));r()},function({data:n,status:t}){u(n,t)})},i}]);expediteServicesModule.service("alertResolutionService",["$http","$rootScope",function(n,t){var i=this;return i.getAlertDetails=function(i,r,u,f){var e=`${t.ExpediteApi}/shipment/${i}/alert/${r}`;n.get(e).then(function({data:n}){u(n)},function({data:n,status:t}){f(n,t)})},i.submitAlertResolution=function(i,r,u,f,e){var o=`${t.ExpediteApi}/shipment/${i}/alert/${r}`;n.patch(o,u).then(function({data:n}){f(n)},function({data:n,status:t}){e(n,t)})},i.getStates=function(r,u){var f=`${t.ExpediteApi}/state`;n.get(f).then(function({data:n}){i.states=n;r(n)},function({data:n,status:t}){u(n,t)})},i.getCountriesList=function(r){var u=`${t.ExpediteApi}/country`;n.get(u).then(function({data:n}){i.countries=n;r(n)})},i}]);expediteServicesModule.service("bulletinBoardService",["$http","$rootScope",function(n,t){var i=this;return i.getBulletinBoardData=function(r,u){n.get(t.ExpediteApi+"/BulletinBoard/GetMessageList").then(function({data:n}){i.DynamicContent=n;r(n)},function({data:n,status:t}){u(n,t)})},i.getUnreadMessages=function(r,u){n.get(t.ExpediteApi+"/BulletinBoard/Unread").then(function({data:n}){for(let t=0;tt.CurShortName===n).CurId},i}]);expediteServicesModule.service("customerAuthCodePatternService",["$http","$rootScope",function(n,t){var i=this;return i.getPatterns=function(i){return n.get(`${t.ExpediteApi}/customer/${i}/auth-code-pattern`)},i.insertPattern=function(i,r){var u={ValidationPattern:r.ValidationPattern,IsEnabled:!0};return n.post(`${t.ExpediteApi}/customer/${i}/auth-code-pattern`,u)},i.updatePattern=function(i,r){var u={ValidationPattern:r.ValidationPattern,IsEnabled:r.IsEnabled};return n.put(`${t.ExpediteApi}/customer/${i}/auth-code-pattern/${r.Id}`,u)},i}]);expediteServicesModule.service("customersService",["$http","$rootScope",function(n,t){var i=this;return i.getCustomers=function(r,u){n.get(`${t.ExpediteApi}/customer`).then(function({data:n}){i.customers=n.filter(n=>n.Status!==0);r()},function({data:n,status:t}){u(n,t)})},i.getCustomerListWithFeature=function(r,u,f){return n.get(`${t.ExpediteApi}/customer?featureTypeId=${r}`).then(function({data:n}){i.customers=n.filter(n=>n.Status!==0);u()},function({data:n,status:t}){f(n,t)})},i.getFailureReasons=function(i,r,u,f){var e=`${t.ExpediteApi}/customer/${i}/failure-reason?locationId=${r}`;n.get(e).then(function({data:n}){for(var t=0;tn.concat({Id:i,Name:t}),[]).sort((n,t)=>n.Name>t.Name?1:-1)},n}]);expediteServicesModule.service("invoiceItemUnitService",[function(){var n=this;return n.getInvoiceItemUnits=function(){return Object.entries({Flat:1,Hour:3,Mile:2,Unknown:-1}).reduce((n,[t,i])=>n.concat({Id:i,Name:t}),[])},n}]);expediteServicesModule.service("invoiceService",["$http","$rootScope",function(n,t){var i=this,r=function(n,t){n.sort(function(n,i){return n[t]>i[t]?1:n[t]0&&u.notifications.push({messageText:"Border Fee Applies: $"+u.details.BorderFee.toFixed(2),messageColor:"black"});u.details.EPOD&&u.notifications.push({messageText:"This shipment requires E-POD to be faxed in.",messageColor:"black"});u.details.OpenAuctionFlag&&(r="This is an open spot bid shipment. You must enter a dollar value in the Spot Bid field for your transportation costs.",u.details.CarrierFuelSurcharge>0&&(r=r+"The displayed fuel surcharge will be added to your bid amount."),u.notifications.push({messageText:r,messageColor:"black"}));u.details.AcceptanceCarrierId==-2&&u.notifications.push({messageText:"***This is an Unapproved Carrier Export",messageColor:"red"});u.details.ExceptionFlag&&u.notifications.push({messageText:"***This is an EXCEPTION Shipment.",messageColor:"black"});u.CustomerId==1&&u.notifications.push({messageText:"All carriers transporting material for Ford Motor Company need to ensure all equipment (i.e. trailers) used to transport such material is in compliance with Automotive Industry Action Group (AIAG) Standards. Also all drivers hired to haul freight into any Ford Motor Company or supplier location must be trained on the AIAG standards. Failure to comply with these standards will result in suspension or termination from the Ford Motor Company/NLM program.",messageColor:"black"});u.CustomerId==3&&u.notifications.push({messageText:"Per GM requirement, by accepting this award you are agreeing that your drivers will not climb on their trailer after product is loaded.",messageColor:"black"});u.CustomerId==4&&u.notifications.push({messageText:"**ATTENTION CARRIER*** Please note for the Stellantis account it's important the ETAs submitted throughout the life of the shipment are 100% accurate. Stellantis requires your ETA to be exactly when the driver(s) are expected to arrive at the pickup/delivery location.",messageColor:"black"});u.CustomerId==42&&u.notifications.push({messageText:"Trailers cannot be older than 10 years old per Allison Transmission.",messageColor:"black"});u.MexicoBorderProgram==="Y"&&u.IsFirstLeg===1&&u.notifications.push({messageText:"By bidding on this Stellantis RXO Managed Border Crossing Program shipment a transfer type of DTD means that you plan to allow us to use the same trailer from origin to final destination with a partner carrier of your choice doing the Intra-Mexico leg. The partner carrier will be assigned the Intra-Mexico shipment and is expected to update the RXO Expedite System. Note: The shipment may require a round trip.",messageColor:"black"});u.MexicoBorderProgram==="Y"&&u.IsFirstLeg===1&&u.notifications.push({messageText:"By bidding on this Stellantis RXO Managed Border Crossing Program shipment a transfer type of transload means that you do not intend for us to take your trailer to the final destination and we will transload its contents onto another trailer. The shipment is complete upon departure from the destination.",messageColor:"black"});u.details.CrossBorderSpecial&&u.notifications.push({messageText:"By bidding on this Stellantis RXO Managed Border Crossing Program shipment a transfer type of DTD means that you plan to allow us to use the same trailer from origin to final destination with a partner carrier of your choice doing the Intra-Mexico leg. You will be assigned the load from origin to destination, and you are expected to update the RXO Expedite System with the events of the intra-Mexico carrier on behalf of the your partner carrier.",messageColor:"black"});u.details.CrossBorderSpecial&&u.notifications.push({messageText:"By bidding on the Stellantis RXO Managed Border Crossing Program shipment, a transfer type of transload means that you do not intend to take the origin trailer to final destination and we will transload the contents to another trailer for final delivery. The shipment is complete upon departure from the destination.",messageColor:"black"});u.MexicoBorderProgram==="Y"&&u.IsFirstLeg===0&&u.notifications.push({messageText:"This shipment is part of the Stellantis border crossing program. The ready time is an estimate.",messageColor:"blue"});u.details.CovidVaxRequired&&u.notifications.push({messageText:"Stellantis requires all service providers who perform services at Stellantis Canada Sites to confirm their representatives are fully vaccinated against Covid-19 prior to sending such representatives to a Stellantis Plant",messageColor:"black"});u.ModeType=="Over-Dim"&&u.notifications.push({messageText:"PERMITS REQUIRED",messageColor:"red"});u.details.TarpsRequired&&u.notifications.push({messageText:"Shipment Requires Tarps",messageColor:"black"});u.details.AirRideRequired&&u.notifications.push({messageText:"Shipment Requires Air Ride",messageColor:"black"});u.details.EscortRequired&&u.notifications.push({messageText:"Shipment Requires Escort",messageColor:"black"});u.ModeDesc=="Air"&&u.details.HardToCoverFlag&&u.notifications.push({messageText:"***This is a Hard To Cover shipment",messageColor:"black"});u.ModeDesc=="Ground"&&(u.details.ShowOfferedRateFlag&&u.notifications.push({messageText:"***This is a "+u.AccountName+" Shipment. You are bidding against an offered rate, not a tariff rate.",messageColor:"black"}),u.ModeGroupId==2&&(u.CustomerId==1||u.CustomerId==2)&&u.notifications.push({messageText:"All truckload shipments delivering to a Ford Body & Assembly facility may require the carrier to drop their trailer. This should be taken into consideration when bidding on the shipment.",messageColor:"black"}),i.getVehicleTypes(t.carrierId,function(n){i.vehicleTypes=n}));u.RoundTripFlag&&u.details.Note&&(u.details.Note=u.details.Note+" - Bid with lowest cost option");!u.details.OpenAuctionFlag&&u.details.CarrierCost>0&&(e="($"+(u.Miles==0?"0.00":(u.details.CarrierCost/u.Miles).toFixed(2))+" /Mi)",u.carrierCostDescription=u.details.ShowOfferedRateFlag?"Offered Rate: $"+u.details.CarrierCost.toFixed(2)+" "+e:"Tariff Cost: $"+u.details.CarrierCost.toFixed(2)+" "+e);i.recalculateEstimates();u.MexicoBorderProgram==="Y"&&u.IsFirstLeg===1&&(u.MasterShipperOriginCountryId===1||u.MasterShipperOriginCountryId===2?i.getPartnerCarriers(139,function(n){i.partnerCarriers=n}):i.getPartnerCarriers(1,function(n){i.partnerCarriers=n}));u.details.CrossBorderSpecial&&i.getPartnerCarriers(139,function(n){i.partnerCarriers=n});f(n)},function({data:n,status:t}){e(n,t)})},i.getAirportCharges=function(i,r,u,f,e){var o=`${t.ExpediteApi}/AirportCharges?acceptanceId=${i}&airportCode=${r}&isDelivery=${u}`;n.get(o).then(function({data:n}){f(n)},function({data:n,status:t}){e(n,t)})},i.recalculateEstimates=function(){var n=0;i.selected.shipment.bid&&(i.selected.shipment.bid.SpotBidAmount&&(n+=i.selected.shipment.bid.SpotBidAmount),i.selected.shipment.bid.SpecialPickupChargeAmount&&(n+=i.selected.shipment.bid.SpecialPickupChargeAmount),i.selected.shipment.bid.SpecialDeliveryChargeAmount&&(n+=i.selected.shipment.bid.SpecialDeliveryChargeAmount));i.selected.shipment.details&&(i.selected.shipment.details.StopOffAccessorial&&(n+=i.selected.shipment.details.StopOffAccessorial.NumberOfExtraStops*i.selected.shipment.details.StopOffAccessorial.Fee),i.selected.shipment.details.CarrierFuelSurcharge&&(n+=i.selected.shipment.details.CarrierFuelSurcharge));i.selected.shipment.estimatedTotal=n},i.getProjectSchedule=function(i,r,u){var f=`${t.ExpediteApi}/project/${i}/schedule/`;n.get(f).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getAvailableOpportunities=function(i,r,u,f){var e=`${t.ExpediteApi}/carrier/${i}/unit-availability?shipmentId=${r.ShipmentId}`;n.get(e).then(function({data:n}){u(n)},function({data:n,status:t}){f(n,t)})},i.insertOpenShipmentBid=function(i,r,u){var f=`${t.ExpediteApi}/Carrier/Bid`;n.post(f,i).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.insertAwardConfirmation=function(i,r,u){var f=`${t.ExpediteApi}/Carrier/AwardConfirmation`;n.post(f,i).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.cancelBid=function(i,r,u){var f=`${t.ExpediteApi}/Carrier/Bid/${i}`;n.delete(f).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getAboveTariffReasonCodes=function(i,r){var u=`${t.ExpediteApi}/Carrier/AboveTariffReasonCodes`;n.get(u).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getRefusalReasons=function(i,r){var u=`${t.ExpediteApi}/Carrier/RefusalReasons`;n.get(u).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getTurnBackReasons=function(i,r){var u=`${t.ExpediteApi}/Carrier/TurnBackReasons`;n.get(u).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getMexicoBorderStops=function(i,r){var u=`${t.ExpediteApi}/location?locationGroupId=${220}`;n.get(u).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getAircraftList=function(i,r,u){var f=`${t.ExpediteApi}/carrier/${i}/aircraft`;n.get(f).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getBidHistory=function(i,r,u,f){var e=`${t.ExpediteApi}/Carrier/${i}/Bids/${r.ShipmentId}`;n.get(e).then(function({data:n}){r.bidHistory=n;var t=_.find(r.bidHistory,"Awarded");t&&(r.awardedCost=_.get(t,"SpotBidAmount",null),r.ETAPickup=_.get(t,"ETAPickup",null));u(n)},function({data:n,status:t}){f(n,t)})},i.getAwardStatus=function(i,r){return n.get(`${t.ExpediteApi}/Carrier/${i}/VerifyAwardStatus/${r}`)},i.getPartnerCarriers=function(i,r,u){var f=`${t.ExpediteApi}/carrier?countryId=${i}`;n.get(f).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getVehicleTypes=function(i,r){var u=`${t.ExpediteApi}/carrier/${i}/equipment`;n.get(u).then(function({data:n}){r(n)})},i}]);expediteServicesModule.service("orderEntryService",["$http","$rootScope",function(n,t){var i=this;return i.getPremiumCodes=function(r,u,f){n.post(`${t.ExpediteApi}/premium-code-search`,r).then(function({data:n}){for(var t=0;tn.Sequence>t.Sequence?1:-1),e={callerId:i.CallerLocationId??"",originId:f[0]?.LocationId??"",shipperId:i.OriginalShipperLocationId??"",destinationId:f[f.length-1]?.LocationId??"",finalId:i.FinalConsigneeLocationId??"",payorId:i.PayorLocationId??"",releaseNumber:i.SpecializedReleaseNumber??""};n.get(`${t.ExpediteApi}/order-entry-customer`,{params:e}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getCustomerPlantList=function(i,r,u){var f={customerId:i??"",locationType:1};n.get(`${t.ExpediteApi}/location`,{params:f}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.validateShipment=function(i,r,u){n.post(`${t.ExpediteApi}/order-entry-validation`,i).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getCustomers=function(i,r){var u={locationId:t.locationId??"",locationContactId:t.contactCategoryId===11?t.locationContactId??"":""};n.get(`${t.ExpediteApi}/customer`,{params:u}).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getCustomerModeGroups=function(i,r,u){n.get(`${t.ExpediteApi}/order-entry-customer/${i}/mode-group`).then(function({data:n}){var t=_.findIndex(n.ModeGroups,{Id:-1});t>-1&&n.ModeGroups.splice(t,1,{Id:1,Name:"Ground Expedite"});r(n)},function({data:n,status:t}){u(n,t)})},i.getPaymentTerms=function(i,r,u){var f=i.Stops.sort((n,t)=>n.Sequence>t.Sequence?1:-1),e={callerId:i.CallerLocationId??"",originId:f[0]?.LocationId??"",shipperId:i.OriginalShipperLocationId??"",destinationId:f[f.length-1]?.LocationId??"",finalId:i.FinalConsigneeLocationId??"",customerId:i.CustomerId??"",modeGroupId:i.ModeGroupId??""};n.get(`${t.ExpediteApi}/payment-terms`,{params:e}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getEligibleCarrierResults=function(i,r,u){var f=i.Stops.sort((n,t)=>n.Sequence>t.Sequence?1:-1),e={customerId:i.CustomerId??"",modeGroupId:i.ModeGroupId??"",callerLocationId:i.CallerLocationId??"",originLocationId:f[0].LocationId??"",destinationLocationId:f[f.length-1].LocationId??""};n.get(`${t.ExpediteApi}/carrier`,{params:e}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getTruckloadFailingCarrierList=function(i,r,u){var f={customerId:i??""};n.get(`${t.ExpediteApi}/carrier`,{params:f}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getParts=function(i,r,u,f){var e={supplierCode:i??"",plantCode:r??""};n.get(`${t.ExpediteApi}/part`,{params:e}).then(function({data:n}){u(n)},function({data:n,status:t}){f(n,t)})},i.validateAETC=function(i,r,u,f){n.get(`${t.ExpediteApi}/customer/${r}/aetc/${i}`).then(function({data:n}){u(n)},function({data:n,status:t}){f(n,t)})},i.validateWBS=function(i,r,u){var f={wbsNumber:i??""};n.get(`${t.ExpediteApi}/order-entry-validation`,{params:f}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.validateDepartmentCode=function(i,r,u){var f={costCenterNumber:i??""};n.get(`${t.ExpediteApi}/order-entry-validation`,{params:f}).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i}]);expediteServicesModule.service("parcelFreightService",["$http","$rootScope",function(n,t){var i=this;return i.getTrackingList=function(i,r,u){return n.get(t.ExpediteApi+"/ParcelFreightStatusUpdates/"+r+"/Shipment/"+i+"/Carrier/"+u)},i.getEventTypeList=function(i){return n.get(t.ExpediteApi+"/ParcelFreightEventTypes/"+i)},i.InsertTrackingStatus=function(i){return n.put(t.ExpediteApi+"/ParcelFreightManualStatusInsert",i)},i}]);expediteServicesModule.service("payAndInvoiceService",["$http","$rootScope",function(n,t){var i=this;return i.getBillers=function(i,r){n.get(`${t.ExpediteApi}/biller`).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getShipmentBillingDetails=function(i,r,u){n.get(`${t.ExpediteApi}/shipment/${i}/billing-details`).then(function({data:n}){r(n)},function({data:n,status:t}){u(n,t)})},i.getPayAndInvoicePermissions=function(i,r){n.get(`${t.ExpediteApi}/staff-permission`).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getInvoiceDisputeItems=function(i){return n.get(`${t.ExpediteApi}/CarrierDispute/${i}/Items`)},i.insertInvoiceDisputeItem=function(i,r){return n.post(`${t.ExpediteApi}/CarrierDispute/${i}/Items/Insert`,r)},i.updateInvoiceDisputeItem=function(i,r){return n.post(`${t.ExpediteApi}/CarrierDispute/Items/${i}/Update`,r)},i.deleteInvoiceDisputeItem=function(i){return n.post(`${t.ExpediteApi}/CarrierDispute/Items/${i}/Delete`)},i.getAccessorialList=function(){return n.get(`${t.ExpediteApi}/CarrierDispute/GetAccessorialList`)},i.getAdditionalFuelSurcharge=function(i,r){return n.get(`${t.ExpediteApi}/CarrierDispute/GetAdditionalMileageFSC/${i}/Miles/${r}`)},i.GetDetentionCalculationData=function(i){return n.get(`${t.ExpediteApi}/CarrierDispute/GetDetentionCalculationData/${i}`)},i.GetWeightBreakdownList=function(){return n.get(`${t.ExpediteApi}/CarrierDispute/GetWeightBreakdown`)},i.GetMileageBreakdownList=function(i){return n.get(`${t.ExpediteApi}/CarrierDispute/GetMileageBreakdown/${i}`)},i.GetRateCalculatorData=function(i){return n.get(`${t.ExpediteApi}/CarrierDispute/GetRateCalculationData/${i}`)},i.GetRate=function(i){return n.post(`${t.ExpediteApi}/ModeSelector/Results`,i)},i}]);expediteServicesModule.service("premiumCodeService",["$http","$rootScope",function(n,t){var i=this;return i.getPremiumCodesWithCustomerId=function(i,r,u){n.get(t.ExpediteApi+"/premium-code?customer="+i).then(function({data:n}){for(var t=0;tn.concat({Id:i,Name:t}),[]).sort((n,t)=>n.Name>t.Name?1:-1)},n}]);expediteServicesModule.service("purchaseItemUnitService",[function(){var n=this;return n.getPurchaseItemUnits=function(){return Object.entries({Flat:1,Hour:3,Mile:2,Unknown:-1}).reduce((n,[t,i])=>n.concat({Id:i,Name:t}),[])},n}]);expediteServicesModule.service("purchaseService",["$http","$rootScope",function(n,t){var i=this,r=function(n,t){n.sort(function(n,i){return n[t]>i[t]?1:n[t]0&&n.ETA!=null&&n.ETA.length>0&&u.ProNumber!=null&&u.ProNumber.length>0&&f.EquipmentId>0;i.panelToggles.originDepartureToggle=t.length>0&&n.ATA!=null&&n.ATA.length>0;i.panelToggles.finalDestinationInToggle=t.length>0&&n.BillOfLading!=null&&n.BillOfLading.length>0&&n.ATD!=null&&n.ATD.length>0&&r.ETA!=null&&r.ETA.length>0;i.panelToggles.finalDestinationOutToggle=t.length>0&&r.ATA!=null&&r.ATA.length>0}};i.testRepeatingRules=function(n){for(var u,r,t=1;t0?!0:!1,u.WorkflowDepartureTimeEntered=u.ATD!=null&&u.ATD.length>0?!0:!1,t==n.length-2&&r.ATD!=null&&r.ATD.length>0&&(i.panelToggles.finalDestinationInToggle=!0)}}(),i.getShipment=function(r,u,f){var e=n.get(`${t.ExpediteApi}/shipment/${r}`),o=function({data:n}){i.shipmentData=n;typeof u=="function"&&u(n)},s=function({data:n,status:t}){typeof f=="function"&&f(n,t)};e.then(o,s)},i.getAllPackagingTypes=function(r,u){var f=`${t.ExpediteApi}/packaging-type`;n.get(f).then(function({data:n}){i.allPackagingTypes=n;r(n)},function({data:n,status:t}){u(n,t)})},i.getEquipment=function(r,u,f){var e=`${t.ExpediteApi}/carrier/${r}/equipment`;n.get(e).then(function({data:n}){i.equipment=n;u(n)},function({data:n,status:t}){f(n,t)})},i.getDrivers=function(i,r){var u=`${t.ExpediteApi}/user-carrier-driver`;n.get(u).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getDrayageList=function(i,r){var u=`${t.ExpediteApi}/drayage-provider`;n.get(u).then(function({data:n}){i(n)},function({data:n,status:t}){r(n,t)})},i.getStates=function(r,u){var f=`${t.ExpediteApi}/state`;n.get(f).then(function({data:n}){i.states=n;r(n)},function({data:n,status:t}){u(n,t)})},i.getIncoterms=function(r,u,f){var e=`${t.ExpediteApi}/customer/${r}/incoterm`;n.get(e).then(function({data:n}){i.Incoterms=n;u(n)},function({data:n,status:t}){f(n,t)})},i.getWebTasks=function(r,u,f){var e=`${t.ExpediteApi}/web-task?shipmentId=${r}`;n.get(e).then(function({data:n}){i.WebTasks=n;u(n)},function({data:n,status:t}){f(n,t)})},i.resolveWebTask=function(i,r,u,f){var e=`${t.ExpediteApi}/web-task/${i}`;n.post(e,r).then(function({data:n}){u(n)},function({data:n,status:t}){f(n,t)})},i.getOriginETAChangeReasons=function(i,r,u,f){var e;e=i===10?`${t.ExpediteApi}/eta-change-reason?modeGroupId=${i}&modeTypeId=${r}&stopTypeId=1&roleId=3`:`${t.ExpediteApi}/eta-change-reason?modeGroupId=${i}&modeTypeId=&stopTypeId=1&roleId=3`;n.get(e).then(({data:n})=>{u(n)},({data:n,status:t})=>{f(n,t)})},i.getDestinationETAChangeReasons=function(i,r,u,f){var e;e=i===10?`${t.ExpediteApi}/eta-change-reason?modeGroupId=${i}&modeTypeId=${r}&stopTypeId=2&roleId=3`:`${t.ExpediteApi}/eta-change-reason?modeGroupId=${i}&modeTypeId=&stopTypeId=2&roleId=3`;n.get(e).then(({data:n})=>{u(n)},({data:n,status:t})=>{f(n,t)})},i.getShipmentStopSchedule=function(i,r,u){i!=null&&n.get(`${t.ExpediteApi}/location/${i}/schedule`).then(({data:n})=>{r(n)},({data:n,status:t})=>{u(n,t)})},i}]);expediteServicesModule.service("userLocationTypeService",["$http","$rootScope",function(n,t){var i=this;return i.getLocationTypes=function(r,u){n.get(`${t.ExpediteApi}/user-location-type`).then(function({data:n}){i.LocationTypes=n;r()},function({data:n,status:t}){u(n,t)})},i}]);expediteServicesModule.service("vehicleListService",["$http","$rootScope",function(n,t){var i=this;return i.getVehicleList=function(r,u,f,e){n.get(`${t.ExpediteApi}/vehicle-type?customer=${r}&modeGroup=${u}`).then(function({data:n}){for(var t=0;t