"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.inviteRoomRequest = inviteRoomRequest;
var _client = require("@xmpp/client");
var _PLATFORM_CONSTANTS = require("../../helpers/constants/PLATFORM_CONSTANTS");
async function inviteRoomRequest(client, to, roomJid) {
  const id = `invite-rooms:${Date.now().toString()}`;
  const xmlMessage = (0, _client.xml)('message', {
    to: roomJid,
    id: id
  }, (0, _client.xml)('x', 'http://jabber.org/protocol/muc#user', (0, _client.xml)('invite', {
    to: to + _PLATFORM_CONSTANTS.CHAT_DOMAIN
  })));
  client.send(xmlMessage);
}
//# sourceMappingURL=inviteRoomRequest.xmpp.js.map