@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
25 lines (23 loc) • 858 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.LivechatUpdater = void 0;
class LivechatUpdater {
constructor(bridges, appId) {
this.bridges = bridges;
this.appId = appId;
}
transferVisitor(visitor, transferData) {
return this.bridges.getLivechatBridge().doTransferVisitor(visitor, transferData, this.appId);
}
closeRoom(room, comment, closer) {
return this.bridges.getLivechatBridge().doCloseRoom(room, comment, closer, this.appId);
}
setCustomFields(token, key, value, overwrite) {
return this.bridges
.getLivechatBridge()
.doSetCustomFields({ token, key, value, overwrite }, this.appId)
.then((result) => result > 0);
}
}
exports.LivechatUpdater = LivechatUpdater;
//# sourceMappingURL=LivechatUpdater.js.map
;