var WebAgentService=function() {
WebAgentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebAgentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WebAgentService._staticInstance.get_path();},
EnableOfferFlyIn:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EnableOfferFlyIn',false,{},succeededCallback,failedCallback,userContext); },
OfferAgentCall:function(pageName,requestedUnit,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'OfferAgentCall',false,{pageName:pageName,requestedUnit:requestedUnit},succeededCallback,failedCallback,userContext); },
DisableAgentOffer:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DisableAgentOffer',false,{},succeededCallback,failedCallback,userContext); },
RequestAgentSession:function(countryCode,phoneNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RequestAgentSession',false,{countryCode:countryCode,phoneNumber:phoneNumber},succeededCallback,failedCallback,userContext); }}
WebAgentService.registerClass('WebAgentService',Sys.Net.WebServiceProxy);
WebAgentService._staticInstance = new WebAgentService();
WebAgentService.set_path = function(value) { WebAgentService._staticInstance.set_path(value); }
WebAgentService.get_path = function() { return WebAgentService._staticInstance.get_path(); }
WebAgentService.set_timeout = function(value) { WebAgentService._staticInstance.set_timeout(value); }
WebAgentService.get_timeout = function() { return WebAgentService._staticInstance.get_timeout(); }
WebAgentService.set_defaultUserContext = function(value) { WebAgentService._staticInstance.set_defaultUserContext(value); }
WebAgentService.get_defaultUserContext = function() { return WebAgentService._staticInstance.get_defaultUserContext(); }
WebAgentService.set_defaultSucceededCallback = function(value) { WebAgentService._staticInstance.set_defaultSucceededCallback(value); }
WebAgentService.get_defaultSucceededCallback = function() { return WebAgentService._staticInstance.get_defaultSucceededCallback(); }
WebAgentService.set_defaultFailedCallback = function(value) { WebAgentService._staticInstance.set_defaultFailedCallback(value); }
WebAgentService.get_defaultFailedCallback = function() { return WebAgentService._staticInstance.get_defaultFailedCallback(); }
WebAgentService.set_path("/WebServices/WebAgentService.asmx");
WebAgentService.EnableOfferFlyIn= function(onSuccess,onFailed,userContext) {WebAgentService._staticInstance.EnableOfferFlyIn(onSuccess,onFailed,userContext); }
WebAgentService.OfferAgentCall= function(pageName,requestedUnit,onSuccess,onFailed,userContext) {WebAgentService._staticInstance.OfferAgentCall(pageName,requestedUnit,onSuccess,onFailed,userContext); }
WebAgentService.DisableAgentOffer= function(onSuccess,onFailed,userContext) {WebAgentService._staticInstance.DisableAgentOffer(onSuccess,onFailed,userContext); }
WebAgentService.RequestAgentSession= function(countryCode,phoneNumber,onSuccess,onFailed,userContext) {WebAgentService._staticInstance.RequestAgentSession(countryCode,phoneNumber,onSuccess,onFailed,userContext); }
