// event excute method // Copyright © Huawei Technologies Co., Ltd. 2015. All rights reserved. var AgentEventNotPrintElems = { OnReceiveChat: [1], OnReceiveChatEx: [1], OnDelCallInConf: [1, 2], OnCallerCalledInfoArrived: [2, 3], OnPrepareJoinMultimediaConf: [4] }; var VoiceEventNotPrintJSONElems = { VoiceRegisterResultEvent: ["name", "telephone"], VoiceDeregisterResultEvent: ["name", "telephone"], VoiceTalkOutgoingEvent: ["callee"], VoiceTalkRingBackEvent: ["callee"], VoiceTalkAlertingEvent: ["caller"], VoiceTalkConnectedEvent: ["callee", "caller"], VoiceTalkReleaseEvent: ["callee", "caller"], VoiceSipInfoArrivedEvent: ["message"] }; var ConferenceEventNotPrintJSONElems = { MessageArrivedEvent: ["data"], FileTranProgressEvent: ["fileName"], FileTranOverEvent: ["fileName"], FileArrivedEvent: ["fileName"] }; // !function ICSClientOcx event excute function ICSClientEventHandle(sEventName) { var _argumentsInfo = arguments[1]; if("" != _argumentsInfo) { var obj = JSON.parse(_argumentsInfo); if(-1 != _argumentsInfo.indexOf("chatContent")) { obj.event.content.chatContent = "******"; } if(-1 != _argumentsInfo.indexOf("confInfo")) { obj.event.content.confInfo = "******"; } _argumentsInfo = JSON.stringify(obj); } INFO_LOG_METHOD("ICSClientOcx", "Event:" + sEventName+ ",start. eventInfo:" + _argumentsInfo); if(isNull(sEventName) ) { alert("event name is null."); return; } if("function" === typeof(Event["ICSClientOcx"][sEventName]) ) { Event["ICSClientOcx"][sEventName](arguments[1]); } INFO_LOG_METHOD("ICSClientOcx", "Event:"+sEventName+ ",end. " ); } // !function AgentOcx interfaces excute function AgentEventHandle(sEventName) { var _argumentsInfo = ""; var _phoneNumber = ""; for(var i=0; i