okcjs / thunderplains-hexo

ThunderPlains Website Powered by Hexo.io
http://thunderplainsconf.com
1 stars 3 forks source link

Create attendee list for processing #27

Closed the-simian closed 10 years ago

the-simian commented 10 years ago
the-simian commented 10 years ago

this is how thanks lodash

function toAndreaData(row) {
    return {
        Company: '',
        Title: '',
        First: row.ticket_holder_first_name,
        Last: row.ticket_holder_last_name,
        Address: '',
        Address2: '',
        Address3: '',
        City: '',
        State: '',
        Country: '',
        "Zip Code": '',
        Phone: '',
        Fax: '',
        Email: row.ticket_holder_email,
        Showtype: 'THNDR',
        Sourcecode: 'IMPORT',
        extra1: '',
        extra2: '',
        extra3: '',
        extra4: '',
        extra5: '',
        extra6: '',
        extra7: '',
        extra8: '',
        extra9: '',
        extra10:''
    };
}

var output = _
    .chain(input)
    .map(toAndreaData)
    .value();