Created
April 24, 2015 00:44
-
-
Save egorvinogradov/6b239d36139e12c64dad to your computer and use it in GitHub Desktop.
LG lead fields mapping
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
LG.settings.leadFields = LG.settings.leadFields.map(function(item){ // TODO: remove mapping | |
var key = item.key.toLowerCase().replace(/\s+/g, '_'); | |
if ( key === 'company_name' ) { | |
key = 'org_name'; | |
} | |
return _.extend(item, { | |
key: key | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment