What code is behind VoxEngine.easyProcess function?

VoxEngine.easyProcess(call1, call2) function means (you can find the source code on GitHub):


VoxEngine.sendMediaBetween(call1, call2);

call2.addEventListener(CallEvents.Ringing, function (e) {
call1.ring();
});

call2.addEventListener(CallEvents.AudioStarted, function (e) {
call1.startEarlyMedia();
});

call2.addEventListener(CallEvents.MessageReceived, function (e) {
call1.sendMessage(e.text);
});

call1.addEventListener(CallEvents.MessageReceived, function (e) {
call2.sendMessage(e.text);
});

call2.addEventListener(CallEvents.InfoReceived, function (e) {
call1.sendInfo(e.mimeType, e.body, e.headers);
});

call1.addEventListener(CallEvents.InfoReceived, function (e) {
call2.sendInfo(e.mimeType, e.body, e.headers);
});

call2.addEventListener(CallEvents.Connected, function (e) {
call1.answer();
});

call1.addEventListener(CallEvents.Failed, VoxEngine.terminate);
call2.addEventListener(CallEvents.Failed, VoxEngine.terminate);
call1.addEventListener(CallEvents.Disconnected, VoxEngine.terminate);
call2.addEventListener(CallEvents.Disconnected, VoxEngine.terminate);