fcc-core
Version:
Fusion communication center.
33 lines (31 loc) • 813 B
JavaScript
export default xwEvent => {
xwEvent.xw.webServiceSocket.on('118', data => {
const content = JSON.parse(htmlEscapeBack(data.content))
console.log('118118118', content)
xwEvent.emit('OnMeetingOver', {
meetingId: content.MEETING_ID
})
})
// xwEvent.xw.exe.on('OnCloseConfWindow', data => {
// if (data.resultCode === 0) {
// xwEvent.emit('OnMeetingOver', {
// meetingId: data.data.confId
// })
// }
// })
}
const htmlEscapeBack = (html) => {
const reg = /(<)|(>)|(&)|(")/g
return html.replace(reg, function (match) {
switch (match) {
case '<':
return '<'
case '>':
return '>'
case '&':
return '&'
case '"':
return '"'
}
})
}