|
|
|
@ -37,8 +37,7 @@ RocketChat.API.v1.addRoute('livechat/room.close', { |
|
|
|
|
token: String, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const { rid } = this.bodyParams; |
|
|
|
|
const { token } = this.bodyParams; |
|
|
|
|
const { rid, token } = this.bodyParams; |
|
|
|
|
|
|
|
|
|
const visitor = findGuest(token); |
|
|
|
|
if (!visitor) { |
|
|
|
@ -77,8 +76,7 @@ RocketChat.API.v1.addRoute('livechat/room.transfer', { |
|
|
|
|
department: String, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const { rid } = this.bodyParams; |
|
|
|
|
const { token, department } = this.bodyParams; |
|
|
|
|
const { rid, token, department } = this.bodyParams; |
|
|
|
|
|
|
|
|
|
const guest = findGuest(token); |
|
|
|
|
if (!guest) { |
|
|
|
@ -117,8 +115,7 @@ RocketChat.API.v1.addRoute('livechat/room.survey', { |
|
|
|
|
})], |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const { rid } = this.bodyParams; |
|
|
|
|
const { token, data } = this.bodyParams; |
|
|
|
|
const { rid, token, data } = this.bodyParams; |
|
|
|
|
|
|
|
|
|
const visitor = findGuest(token); |
|
|
|
|
if (!visitor) { |
|
|
|
|