var LiveService=function() {
LiveService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LiveService.prototype={
getLiveChatIncoming:function(UserID,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'getLiveChatIncoming',false,{UserID:UserID},succeededCallback,failedCallback,userContext); },
acceptLiveChatIncoming:function(LiveChatID,UserID,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'acceptLiveChatIncoming',false,{LiveChatID:LiveChatID,UserID:UserID},succeededCallback,failedCallback,userContext); },
getLiveChatPoll:function(LiveChatUserID,LiveChatEventID,LiveChatUserHash,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'getLiveChatPoll',false,{LiveChatUserID:LiveChatUserID,LiveChatEventID:LiveChatEventID,LiveChatUserHash:LiveChatUserHash},succeededCallback,failedCallback,userContext); },
getLiveChatStatus:function(LiveChatID,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'getLiveChatStatus',false,{LiveChatID:LiveChatID},succeededCallback,failedCallback,userContext); },
publishEvent:function(LiveChatUserID,HTML,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'publishEvent',false,{LiveChatUserID:LiveChatUserID,HTML:HTML},succeededCallback,failedCallback,userContext); },
getActiveOperators:function(UserID,Hash,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'getActiveOperators',false,{UserID:UserID,Hash:Hash},succeededCallback,failedCallback,userContext); },
updateOperatorStatus:function(UserID,Hash,Status,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'updateOperatorStatus',false,{UserID:UserID,Hash:Hash,Status:Status},succeededCallback,failedCallback,userContext); },
authenticateUser:function(Email,Password,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'authenticateUser',false,{Email:Email,Password:Password},succeededCallback,failedCallback,userContext); },
getActiveUserList:function(UserID,Hash,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'getActiveUserList',false,{UserID:UserID,Hash:Hash},succeededCallback,failedCallback,userContext); },
getActiveChatList:function(UserID,Hash,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveService.get_path(), 'getActiveChatList',false,{UserID:UserID,Hash:Hash},succeededCallback,failedCallback,userContext); }}
LiveService.registerClass('LiveService',Sys.Net.WebServiceProxy);
LiveService._staticInstance = new LiveService();
LiveService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; LiveService._staticInstance._path = value; }
LiveService.get_path = function() { return LiveService._staticInstance._path; }
LiveService.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); }
LiveService._staticInstance._timeout = value; }
LiveService.get_timeout = function() { 
return LiveService._staticInstance._timeout; }
LiveService.set_defaultUserContext = function(value) { 
LiveService._staticInstance._userContext = value; }
LiveService.get_defaultUserContext = function() { 
return LiveService._staticInstance._userContext; }
LiveService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; LiveService._staticInstance._succeeded = value; }
LiveService.get_defaultSucceededCallback = function() { 
return LiveService._staticInstance._succeeded; }
LiveService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; LiveService._staticInstance._failed = value; }
LiveService.get_defaultFailedCallback = function() { 
return LiveService._staticInstance._failed; }
LiveService.set_path("/Web/WebService/LiveService.asmx");
LiveService.getLiveChatIncoming= function(UserID,onSuccess,onFailed,userContext) {LiveService._staticInstance.getLiveChatIncoming(UserID,onSuccess,onFailed,userContext); }
LiveService.acceptLiveChatIncoming= function(LiveChatID,UserID,onSuccess,onFailed,userContext) {LiveService._staticInstance.acceptLiveChatIncoming(LiveChatID,UserID,onSuccess,onFailed,userContext); }
LiveService.getLiveChatPoll= function(LiveChatUserID,LiveChatEventID,LiveChatUserHash,onSuccess,onFailed,userContext) {LiveService._staticInstance.getLiveChatPoll(LiveChatUserID,LiveChatEventID,LiveChatUserHash,onSuccess,onFailed,userContext); }
LiveService.getLiveChatStatus= function(LiveChatID,onSuccess,onFailed,userContext) {LiveService._staticInstance.getLiveChatStatus(LiveChatID,onSuccess,onFailed,userContext); }
LiveService.publishEvent= function(LiveChatUserID,HTML,onSuccess,onFailed,userContext) {LiveService._staticInstance.publishEvent(LiveChatUserID,HTML,onSuccess,onFailed,userContext); }
LiveService.getActiveOperators= function(UserID,Hash,onSuccess,onFailed,userContext) {LiveService._staticInstance.getActiveOperators(UserID,Hash,onSuccess,onFailed,userContext); }
LiveService.updateOperatorStatus= function(UserID,Hash,Status,onSuccess,onFailed,userContext) {LiveService._staticInstance.updateOperatorStatus(UserID,Hash,Status,onSuccess,onFailed,userContext); }
LiveService.authenticateUser= function(Email,Password,onSuccess,onFailed,userContext) {LiveService._staticInstance.authenticateUser(Email,Password,onSuccess,onFailed,userContext); }
LiveService.getActiveUserList= function(UserID,Hash,onSuccess,onFailed,userContext) {LiveService._staticInstance.getActiveUserList(UserID,Hash,onSuccess,onFailed,userContext); }
LiveService.getActiveChatList= function(UserID,Hash,onSuccess,onFailed,userContext) {LiveService._staticInstance.getActiveChatList(UserID,Hash,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('System.Data');
if (typeof(System.Data.DataSet) === 'undefined') {
System.Data.DataSet=gtc("System.Data.DataSet");
System.Data.DataSet.registerClass('System.Data.DataSet');
}
Type.registerNamespace('ChatService');
if (typeof(ChatService.sqleLiveChat) === 'undefined') {
ChatService.sqleLiveChat=gtc("ChatService.sqleLiveChat");
ChatService.sqleLiveChat.registerClass('ChatService.sqleLiveChat');
}
if (typeof(ChatService.PollResponse) === 'undefined') {
ChatService.PollResponse=gtc("ChatService.PollResponse");
ChatService.PollResponse.registerClass('ChatService.PollResponse');
}
if (typeof(ChatService.authenticatedUser) === 'undefined') {
ChatService.authenticatedUser=gtc("ChatService.authenticatedUser");
ChatService.authenticatedUser.registerClass('ChatService.authenticatedUser');
}
