z坐席助手
2021-10-25 13:46:32 29 举报
z坐席助手uml
作者其他创作
大纲/内容
(主应用)Application
socket: WebSocketClass; websocket 对象 domFactory: DomFactory; dom对象 liaisonHistoryId: string; 联络历史id status: AppStatus; 坐席拨打状态 token: string; 服务器校验令牌 options: Options; 用户传入的参数 isPopup: boolean; 是否主动弹窗 startParams: HistoryParams; position: \"left\" | \"right\";
操作dom的类DomUtil
数据状态AppState
dialogData: MessageData[]; flowEngineAnswers: FlowEngineAnswer[]; replyKnowledgeAnswers: ReplyKnowledgeAnswer[]; talkTime: string; customerInfo: CustomerInfo; portraits: string[]; superviseMessage: string[]; superviseFlag: boolean; aidKnowledgeSearchTops: any[];
创建websocket的类WebSocketClass
options: Options; 用户传传入的参数 url: string; websocket连接url ws: WebSocket; websocket 对象 timeout: number; 超时时间 timer: NodeJS.Timer; 心跳定时器 isHeart = false; isHandClose = false; 是否手动关闭 status: SocketStatus; websocket状态
heartCheck(); 心跳检测方法 reCreate(); 重新连接websocket connect(); websocket连接 close(); websocket 断开连接 send(message:string); 发送消息 initEventListener(); 监听websocket事件
发布订阅EventEmitter
DOM对象DOMFactory
createWrapper(): HTMLElement; createRing(): HTMLElement; createDialogBox(): HTMLElement; createCustomer(): HTMLElement; createPortrait(): HTMLElement; createKnowledge(): HTMLElement; createProcess(): HTMLElement; createHotspot(): HTMLElement; createSummary(): HTMLElement; createHistory(): HTMLElement; wrapperElement: HTMLElement; suspensionElement: HTMLElement;
入口函数createApp(hostNameParams:{ apiHost: string;socketHost: string;}):入口函数创建接受接口和websocket的服务器地址,创建Application对象,返回application的方法application.start;application.ringOff;application.setCustomerInfo;application.checkout;application.checkIn;
HistoryParams
liaisonHistoryId: string; callId: string; recordId: string; recordTimestamp: string;
0 条评论
回复 删除
下一页