123 lines
4.4 KiB
TypeScript
123 lines
4.4 KiB
TypeScript
// Module ID: 13840
|
|
// Function ID: 13841
|
|
// Dependencies: [5, 676, 13810, 13798, 10800, 7630, 10795, 13802, 10672, 2]
|
|
|
|
// Module 13840
|
|
import getApplicationFlags from "getApplicationFlags";
|
|
import ME from "ME";
|
|
import createRPCCommand from "createRPCCommand";
|
|
import createRPCCommand from "createRPCCommand";
|
|
|
|
let RPCCommands;
|
|
let c4;
|
|
let c5;
|
|
const require = arg1;
|
|
({ RPCCommands, RPCErrors: c4, ApplicationFlags: c5 } = ME);
|
|
let obj = {};
|
|
obj = {
|
|
scope: require("activityInstanceConnectedParticipants").activityInstanceConnectedParticipantsScope,
|
|
handler(socket) {
|
|
const result = require(10800) /* recurseReplaceContentTree */.validatePostMessageTransport(socket.socket.transport);
|
|
const obj = require(10800) /* recurseReplaceContentTree */;
|
|
return require(13798) /* activityInstanceConnectedParticipants */.activityInstanceConnectedParticipants();
|
|
}
|
|
};
|
|
obj[RPCCommands.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS] = createRPCCommand.createRPCCommand(RPCCommands.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS, obj);
|
|
obj = {
|
|
scope: require("activityInstanceConnectedParticipants").activityInstanceConnectedParticipantsScope,
|
|
handler(socket) {
|
|
socket = socket.socket;
|
|
return callback(function*() {
|
|
if (constants2 === 2) {
|
|
constants2 = 3;
|
|
HermesBuiltin.throwTypeError();
|
|
} else if (tmp6 === 3) {
|
|
if (arg0 === 1) {
|
|
throw arg1;
|
|
} else if (arg0 === 2) {
|
|
let obj = { value: null, done: true };
|
|
obj[0] = arg1;
|
|
return obj;
|
|
} else {
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} else {
|
|
try {
|
|
constants2 = 2;
|
|
if (0 === constants) {
|
|
if (arg0 === 1) {
|
|
constants2 = 3;
|
|
throw arg1;
|
|
} else if (arg0 === 2) {
|
|
constants2 = 3;
|
|
obj = { value: null, done: true };
|
|
obj[0] = arg1;
|
|
return obj;
|
|
} else {
|
|
let closure_1 = tmp3;
|
|
const result = outer1_0(outer1_2[4]).validatePostMessageTransport(outer1_0.transport);
|
|
const obj9 = outer1_0(outer1_2[4]);
|
|
const tmp38 = outer1_0;
|
|
const obj10 = outer1_0(outer1_2[4]);
|
|
const validateApplicationResult = outer1_0(outer1_2[4]).validateApplication(outer1_0.application);
|
|
if (obj11.hasApplicationFlag(outer1_0.application, constants2.EMBEDDED)) {
|
|
const tmp26 = tmp46(tmp47[7])();
|
|
let c3 = 1;
|
|
let closure_0 = {};
|
|
let id;
|
|
if (tmp26 != null) {
|
|
id = tmp26.id;
|
|
}
|
|
constants = 2;
|
|
constants2 = 1;
|
|
const obj1 = { value: null, done: false };
|
|
obj1[0] = tmp38(outer1_2[8]).createProxyTicket(validateApplicationResult, id);
|
|
return obj1;
|
|
} else {
|
|
const obj2 = { errorCode: null };
|
|
obj2[0] = constants.UNAUTHORIZED_FOR_APPLICATION;
|
|
const tmp24 = new tmp46(tmp47[6])(obj2, "This application cannot access this API");
|
|
throw tmp24;
|
|
}
|
|
obj11 = outer1_0(outer1_2[5]);
|
|
}
|
|
} else if (1 === tmp7) {
|
|
c3 = 0;
|
|
const obj3 = { errorCode: null };
|
|
obj3[0] = constants.UNKNOWN_ERROR;
|
|
const tmp18 = new outer1_1(outer1_2[6])(obj3, "Failed to create proxy ticket");
|
|
throw tmp18;
|
|
} else if (arg0 === 1) {
|
|
constants2 = 3;
|
|
throw arg1;
|
|
} else if (arg0 === 2) {
|
|
c3 = 0;
|
|
constants2 = 3;
|
|
const obj4 = { value: null, done: true };
|
|
obj4[0] = arg1;
|
|
return obj4;
|
|
} else {
|
|
closure_0.ticket = arg1;
|
|
c3 = 0;
|
|
constants2 = 3;
|
|
obj = { value: null, done: true };
|
|
obj[0] = closure_0;
|
|
return obj;
|
|
}
|
|
} catch (tmp29) {
|
|
let closure_2 = tmp29;
|
|
if (tmp4 === c3) {
|
|
constants2 = tmp2;
|
|
throw tmp29;
|
|
} else {
|
|
constants = tmp;
|
|
}
|
|
}
|
|
}
|
|
})();
|
|
}
|
|
};
|
|
obj[RPCCommands.REQUEST_PROXY_TICKET_REFRESH] = createRPCCommand.createRPCCommand(RPCCommands.REQUEST_PROXY_TICKET_REFRESH, obj);
|
|
let result = require("createRPCCommand").fileFinishedImporting("modules/rpc/server/commands/activities.tsx");
|
|
|
|
export default obj;
|