Last active
August 29, 2015 14:26
-
-
Save popcorn245/59f9f16d0ce3ca143ece to your computer and use it in GitHub Desktop.
AngularJS factory for Global Vehicle Damage Codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.factory('damage', function() { | |
var damage = {}; | |
damage.areas = [ | |
{ | |
"code":"1", | |
"description":"Antenna / Antenna Base" | |
}, | |
{ | |
"code":"2", | |
"description":"Battery / Box" | |
}, | |
{ | |
"code":"3", | |
"description":"Bumper / Cover / Ext-Front" | |
}, | |
{ | |
"code":"4", | |
"description":"Bumper / Cover / Ext-Rear" | |
}, | |
{ | |
"code":"5", | |
"description":"Bumper Guard / Strip-Front" | |
}, | |
{ | |
"code":"6", | |
"description":"Bumper Guard / Strip-Rear" | |
}, | |
{ | |
"code":"7", | |
"description":"Door-Back Cargo, Right" | |
}, | |
{ | |
"code":"8", | |
"description":"Door-Back Cargo, Left" | |
}, | |
{ | |
"code":"9", | |
"description":"Door, Right Cargo" | |
}, | |
{ | |
"code":"10", | |
"description":"Door-Left Front" | |
}, | |
{ | |
"code":"11", | |
"description":"Door-Left Rear" | |
}, | |
{ | |
"code":"12", | |
"description":"Door-Right Front" | |
}, | |
{ | |
"code":"13", | |
"description":"Door-Right Rear" | |
}, | |
{ | |
"code":"14", | |
"description":"Fender-Left Front" | |
}, | |
{ | |
"code":"15", | |
"description":"Quarter Panel/Pick-Up Box-Left" | |
}, | |
{ | |
"code":"16", | |
"description":"Fender-Right Front" | |
}, | |
{ | |
"code":"17", | |
"description":"Quarter Panel/Pick-Up Box-Right" | |
}, | |
{ | |
"code":"18", | |
"description":"Front Floor Mats" | |
}, | |
{ | |
"code":"19", | |
"description":"Floor Mats Rear" | |
}, | |
{ | |
"code":"20", | |
"description":"Glass Windshield" | |
}, | |
{ | |
"code":"21", | |
"description":"Glass Rear" | |
}, | |
{ | |
"code":"22", | |
"description":"Grille" | |
}, | |
{ | |
"code":"23", | |
"description":"Accessory Bag / Box" | |
}, | |
{ | |
"code":"24", | |
"description":"Headlight / Cover / Turn Signal" | |
}, | |
{ | |
"code":"25", | |
"description":"Lamps-Fog / Driving / Spot Light" | |
}, | |
{ | |
"code":"26", | |
"description":"Headliner" | |
}, | |
{ | |
"code":"27", | |
"description":"Hood" | |
}, | |
{ | |
"code":"28", | |
"description":"Keys" | |
}, | |
{ | |
"code":"29", | |
"description":"Keyless Remote" | |
}, | |
{ | |
"code":"30", | |
"description":"Mirror-Outside Left" | |
}, | |
{ | |
"code":"31", | |
"description":"Mirror-Outside Right" | |
}, | |
{ | |
"code":"32", | |
"description":"Open" | |
}, | |
{ | |
"code":"33", | |
"description":"Audio / Video Player" | |
}, | |
{ | |
"code":"34", | |
"description":"TV / DVD Screen" | |
}, | |
{ | |
"code":"35", | |
"description":"Rocker Panel / Outer Sill - Left" | |
}, | |
{ | |
"code":"36", | |
"description":"Rocker Panel / Outer Sill - Right" | |
}, | |
{ | |
"code":"37", | |
"description":"Roof" | |
}, | |
{ | |
"code":"38", | |
"description":"Running Board / Step - Left" | |
}, | |
{ | |
"code":"39", | |
"description":"Running Board / Step - Right" | |
}, | |
{ | |
"code":"40", | |
"description":"Spare Tire / Wheel" | |
}, | |
{ | |
"code":"41", | |
"description":"Open" | |
}, | |
{ | |
"code":"42", | |
"description":"Splash Panel / Spoiler - Front" | |
}, | |
{ | |
"code":"43", | |
"description":"Open" | |
}, | |
{ | |
"code":"44", | |
"description":"Gas Tank" | |
}, | |
{ | |
"code":"45", | |
"description":"Tail Light / Hardware" | |
}, | |
{ | |
"code":"46", | |
"description":"Open" | |
}, | |
{ | |
"code":"47", | |
"description":"Open" | |
}, | |
{ | |
"code":"48", | |
"description":"Trim Panel-Front Left" | |
}, | |
{ | |
"code":"49", | |
"description":"CD Changer Separate Unit" | |
}, | |
{ | |
"code":"50", | |
"description":"Trim Panel-Front Right" | |
}, | |
{ | |
"code":"51", | |
"description":"Open" | |
}, | |
{ | |
"code":"52", | |
"description":"Deck Lid / Tailgate / Hatchback" | |
}, | |
{ | |
"code":"53", | |
"description":"Sunroof / T-Top" | |
}, | |
{ | |
"code":"54", | |
"description":"Undercarriage-Other" | |
}, | |
{ | |
"code":"55", | |
"description":"Cargo Area-Other" | |
}, | |
{ | |
"code":"56", | |
"description":"Vinyl / Convertible Top / Tonneau Cover" | |
}, | |
{ | |
"code":"57", | |
"description":"Wheel COvers / Caps / Rings" | |
}, | |
{ | |
"code":"58", | |
"description":"Radio Speakers" | |
}, | |
{ | |
"code":"59", | |
"description":"Wipers, all" | |
}, | |
{ | |
"code":"60", | |
"description":"Special Use" | |
}, | |
{ | |
"code":"61", | |
"description":"Box Interior, Pickup" | |
}, | |
{ | |
"code":"62", | |
"description":"Open" | |
}, | |
{ | |
"code":"63", | |
"description":"Rails, Truckbed / Lightbar" | |
}, | |
{ | |
"code":"64", | |
"description":"Spoiler / Deflector-Rear" | |
}, | |
{ | |
"code":"65", | |
"description":"Luggage Rack (Strips) / Drip Rail" | |
}, | |
{ | |
"code":"66", | |
"description":"Dash / Instrument Panel" | |
}, | |
{ | |
"code":"67", | |
"description":"Cigarette Lighter / Ashtray" | |
}, | |
{ | |
"code":"68", | |
"description":"Carpet-Front" | |
}, | |
{ | |
"code":"69", | |
"description":"Center Post, Right" | |
}, | |
{ | |
"code":"70", | |
"description":"Center Post, Left" | |
}, | |
{ | |
"code":"71", | |
"description":"Corner Post" | |
}, | |
{ | |
"code":"72", | |
"description":"Left Front Tire" | |
}, | |
{ | |
"code":"73", | |
"description":"Left Front Wheel / Rim" | |
}, | |
{ | |
"code":"74", | |
"description":"Left Rear Tire" | |
}, | |
{ | |
"code":"75", | |
"description":"Left Rear Wheel / Rim" | |
}, | |
{ | |
"code":"76", | |
"description":"Right Rear Tire" | |
}, | |
{ | |
"code":"77", | |
"description":"Right Rear Wheel / Rim" | |
}, | |
{ | |
"code":"78", | |
"description":"Right Front Tire" | |
}, | |
{ | |
"code":"79", | |
"description":"Right Front Wheel / Rim" | |
}, | |
{ | |
"code":"80", | |
"description":"Cowl" | |
}, | |
{ | |
"code":"81", | |
"description":"Gas / Cap Cover" | |
}, | |
{ | |
"code":"82", | |
"description":"Fender-Rear Left" | |
}, | |
{ | |
"code":"83", | |
"description":"Fender-Rear Right" | |
}, | |
{ | |
"code":"84", | |
"description":"Tools / Jacks / Spare-Tire Mount + Lock" | |
}, | |
{ | |
"code":"85", | |
"description":"Communications / GPS Unit" | |
}, | |
{ | |
"code":"86", | |
"description":"Parking Sonar System" | |
}, | |
{ | |
"code":"87", | |
"description":"Open" | |
}, | |
{ | |
"code":"88", | |
"description":"Open" | |
}, | |
{ | |
"code":"89", | |
"description":"Trailer Hitch, Wiring Harness, Tow Hooks" | |
}, | |
{ | |
"code":"90", | |
"description":"Frame" | |
}, | |
{ | |
"code":"91", | |
"description":"Parking Sonar System" | |
}, | |
{ | |
"code":"92", | |
"description":"License-Bracket" | |
}, | |
{ | |
"code":"93", | |
"description":"Steering Wheel / Airbag" | |
}, | |
{ | |
"code":"94", | |
"description":"Seat-Front Left" | |
}, | |
{ | |
"code":"95", | |
"description":"Seat-Front Right" | |
}, | |
{ | |
"code":"96", | |
"description":"Seat-Rear" | |
}, | |
{ | |
"code":"97", | |
"description":"Carpet-Rear" | |
}, | |
{ | |
"code":"98", | |
"description":"Interior Other" | |
}, | |
{ | |
"code":"99", | |
"description":"Engine Compartment-Other" | |
} | |
]; | |
damage.types = [ | |
{ | |
"code":"1", | |
"description":"Bent" | |
}, | |
{ | |
"code":"2", | |
"description":"Broken" | |
}, | |
{ | |
"code":"3", | |
"description":"Cut" | |
}, | |
{ | |
"code":"4", | |
"description":"Dented" | |
}, | |
{ | |
"code":"5", | |
"description":"Chipped" | |
}, | |
{ | |
"code":"6", | |
"description":"Cracked" | |
}, | |
{ | |
"code":"7", | |
"description":"Gouged" | |
}, | |
{ | |
"code":"8", | |
"description":"Missing" | |
}, | |
{ | |
"code":"9", | |
"description":"Scuffed" | |
}, | |
{ | |
"code":"10", | |
"description":"Stained or Soiled" | |
}, | |
{ | |
"code":"11", | |
"description":"Punctured" | |
}, | |
{ | |
"code":"12", | |
"description":"Scratched" | |
}, | |
{ | |
"code":"13", | |
"description":"Torn" | |
}, | |
{ | |
"code":"14", | |
"description":"Dented Paint not Damaged" | |
}, | |
{ | |
"code":"18", | |
"description":"Moulding/emblem.weatherstrip damaged" | |
}, | |
{ | |
"code":"19", | |
"description":"Moulding/emblem.weatherstrip loose" | |
}, | |
{ | |
"code":"20", | |
"description":"Glass Cracked" | |
}, | |
{ | |
"code":"21", | |
"description":"Glass Broken" | |
}, | |
{ | |
"code":"22", | |
"description":"Glass Chipped" | |
}, | |
{ | |
"code":"23", | |
"description":"Glass Scratched" | |
}, | |
{ | |
"code":"24", | |
"description":"Marker Light / Additional Turn Light Damage" | |
}, | |
{ | |
"code":"25", | |
"description":"Decal / Pain Stripe Damage" | |
}, | |
{ | |
"code":"29", | |
"description":"Contamination, Exterior" | |
}, | |
{ | |
"code":"30", | |
"description":"Fluid Spillage, Exterior" | |
}, | |
{ | |
"code":"34", | |
"description":"Chipped Panel Edge" | |
}, | |
{ | |
"code":"36", | |
"description":"Incorrect Part of Option not as Invoiced" | |
}, | |
{ | |
"code":"37", | |
"description":"Hardware - Damaged" | |
}, | |
{ | |
"code":"38", | |
"description":"Hardware - Loose or Missing" | |
} | |
]; | |
damage.severities = [ | |
{ | |
"code":"1", | |
"description":"Damage up to and including 1 inch in length/diameter - less than 2.5 cm" | |
}, | |
{ | |
"code":"2", | |
"description":"Damage over 1 inch up to and including 3 inches in length/diameter — 2.5 cm up to 7.5 cm" | |
}, | |
{ | |
"code":"3", | |
"description":"Damage over 3 inch up to and including 6 inches in length/diameter - over 7.5 cm up to 15 cm" | |
}, | |
{ | |
"code":"4", | |
"description":"Damage over 6 inches up to and including 12 inches in length/diameter - over 15 cm to 30 cm" | |
}, | |
{ | |
"code":"5", | |
"description":"Damage over 12 inches in length/diameter - over 30 cm" | |
}, | |
{ | |
"code":"6", | |
"description":"Missing" | |
} | |
]; | |
return { | |
all: function() { | |
return damage; | |
}, | |
areas: function(){ | |
return damage.areas | |
}, | |
types: function(){ | |
return damage.types | |
}, | |
severities: function(){ | |
return damage.severities | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment