var RCGDirectWS=function() {
RCGDirectWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RCGDirectWS.prototype={
SendToSalesforce:function(firstName,lastName,streetAddress,city,state,zip,country,phone,email,company,isWebLead,hasRCGAccount,additionalInfo,leadSource,leadSourceDescription,campaignSource,succeededCallback, failedCallback, userContext) {
return this._invoke(RCGDirectWS.get_path(), 'SendToSalesforce',false,{firstName:firstName,lastName:lastName,streetAddress:streetAddress,city:city,state:state,zip:zip,country:country,phone:phone,email:email,company:company,isWebLead:isWebLead,hasRCGAccount:hasRCGAccount,additionalInfo:additionalInfo,leadSource:leadSource,leadSourceDescription:leadSourceDescription,campaignSource:campaignSource},succeededCallback,failedCallback,userContext); },
HelloWorld:function(succeededCallback, failedCallback, userContext) {
return this._invoke(RCGDirectWS.get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
HelloMe:function(name,succeededCallback, failedCallback, userContext) {
return this._invoke(RCGDirectWS.get_path(), 'HelloMe',false,{name:name},succeededCallback,failedCallback,userContext); },
SubmitOnyxCampaignLead:function(firstName,lastName,eMail,phoneNumber,hasRCGAccount,leadSource,campaignSource,succeededCallback, failedCallback, userContext) {
return this._invoke(RCGDirectWS.get_path(), 'SubmitOnyxCampaignLead',false,{firstName:firstName,lastName:lastName,eMail:eMail,phoneNumber:phoneNumber,hasRCGAccount:hasRCGAccount,leadSource:leadSource,campaignSource:campaignSource},succeededCallback,failedCallback,userContext); }}
RCGDirectWS.registerClass('RCGDirectWS',Sys.Net.WebServiceProxy);
RCGDirectWS._staticInstance = new RCGDirectWS();
RCGDirectWS.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; RCGDirectWS._staticInstance._path = value; }
RCGDirectWS.get_path = function() { return RCGDirectWS._staticInstance._path; }
RCGDirectWS.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
RCGDirectWS._staticInstance._timeout = value; }
RCGDirectWS.get_timeout = function() { 
return RCGDirectWS._staticInstance._timeout; }
RCGDirectWS.set_defaultUserContext = function(value) { 
RCGDirectWS._staticInstance._userContext = value; }
RCGDirectWS.get_defaultUserContext = function() { 
return RCGDirectWS._staticInstance._userContext; }
RCGDirectWS.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; RCGDirectWS._staticInstance._succeeded = value; }
RCGDirectWS.get_defaultSucceededCallback = function() { 
return RCGDirectWS._staticInstance._succeeded; }
RCGDirectWS.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; RCGDirectWS._staticInstance._failed = value; }
RCGDirectWS.get_defaultFailedCallback = function() { 
return RCGDirectWS._staticInstance._failed; }
RCGDirectWS.set_path("/RCGDirectWS.asmx");
RCGDirectWS.SendToSalesforce= function(firstName,lastName,streetAddress,city,state,zip,country,phone,email,company,isWebLead,hasRCGAccount,additionalInfo,leadSource,leadSourceDescription,campaignSource,onSuccess,onFailed,userContext) {RCGDirectWS._staticInstance.SendToSalesforce(firstName,lastName,streetAddress,city,state,zip,country,phone,email,company,isWebLead,hasRCGAccount,additionalInfo,leadSource,leadSourceDescription,campaignSource,onSuccess,onFailed,userContext); }
RCGDirectWS.HelloWorld= function(onSuccess,onFailed,userContext) {RCGDirectWS._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
RCGDirectWS.HelloMe= function(name,onSuccess,onFailed,userContext) {RCGDirectWS._staticInstance.HelloMe(name,onSuccess,onFailed,userContext); }
RCGDirectWS.SubmitOnyxCampaignLead= function(firstName,lastName,eMail,phoneNumber,hasRCGAccount,leadSource,campaignSource,onSuccess,onFailed,userContext) {RCGDirectWS._staticInstance.SubmitOnyxCampaignLead(firstName,lastName,eMail,phoneNumber,hasRCGAccount,leadSource,campaignSource,onSuccess,onFailed,userContext); }
if (typeof(SalesforceManager_LeadSource) === 'undefined') {
SalesforceManager_LeadSource = function() { throw Error.invalidOperation(); }
SalesforceManager_LeadSource.prototype = {LearnMore: 0,ForexTrader: 1,fxtrader: 2,PowerTrader: 3,RCGOnyx: 4,Other: 5,PrimeTrader: 6}
SalesforceManager_LeadSource.registerEnum('SalesforceManager_LeadSource', true);
}
if (typeof(SalesforceManager_CampaignSource) === 'undefined') {
SalesforceManager_CampaignSource = function() { throw Error.invalidOperation(); }
SalesforceManager_CampaignSource.prototype = {None: 0,TotalViewPayPerClick1: 1,TotalViewPayPerClick2: 2}
SalesforceManager_CampaignSource.registerEnum('SalesforceManager_CampaignSource', true);
}
