The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/packages/rocketchat-livechat/server/methods/sendTranscript.js

21 lines
423 B

/* globals DDPRateLimiter */
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
9 years ago
Meteor.methods({
9 years ago
'livechat:sendTranscript'(token, rid, email) {
check(rid, String);
check(email, String);
return RocketChat.Livechat.sendTranscript({ token, rid, email });
},
});
DDPRateLimiter.addRule({
type: 'method',
name: 'livechat:sendTranscript',
connectionId() {
return true;
},
}, 1, 5000);