Retsly/retsly-js-leads — pull request #20 by switters (2014-11-24 22:03:41+00:00)
Title: Move leads to rely on http proxy instead of retsly-js-sdk

Currently the leads component uses retsly-sdk to send a lead to retsly. Because the posting of a lead now requires an access_token associated with the resource owner and this token is potentially sensitive, the lead should now be submitted via server proxy.

- [x] An opts.lead_endpoint config option has been required
- [x] Retsly-sdk must still be passed for reasons relating to sid
- [x] The post to the /lead/ endpoint is done via superagent