2014-10-20 08:21:23 +00:00
|
|
|
;(function() {
|
|
|
|
|
|
|
|
function loadProtoBufs(filename) {
|
|
|
|
return dcodeIO.ProtoBuf.loadProtoFile({root: 'protos', file: filename}).build('textsecure');
|
|
|
|
};
|
|
|
|
|
|
|
|
var pushMessages = loadProtoBufs('IncomingPushMessageSignal.proto');
|
2014-11-15 01:48:57 +00:00
|
|
|
var subProtocolMessages = loadProtoBufs('SubProtocol.proto');
|
2014-10-20 08:21:23 +00:00
|
|
|
var deviceMessages = loadProtoBufs('DeviceMessages.proto');
|
|
|
|
|
|
|
|
window.textsecure = window.textsecure || {};
|
|
|
|
window.textsecure.protobuf = {
|
|
|
|
IncomingPushMessageSignal : pushMessages.IncomingPushMessageSignal,
|
|
|
|
PushMessageContent : pushMessages.PushMessageContent,
|
2015-01-19 20:23:25 +00:00
|
|
|
ProvisioningUuid : deviceMessages.ProvisioningUuid,
|
2015-01-23 21:19:29 +00:00
|
|
|
ProvisionEnvelope : deviceMessages.ProvisionEnvelope,
|
|
|
|
ProvisionMessage : deviceMessages.ProvisionMessage,
|
2014-11-15 01:48:57 +00:00
|
|
|
DeviceControl : deviceMessages.DeviceControl,
|
|
|
|
WebSocketResponseMessage : subProtocolMessages.WebSocketResponseMessage,
|
|
|
|
WebSocketRequestMessage : subProtocolMessages.WebSocketRequestMessage,
|
|
|
|
WebSocketMessage : subProtocolMessages.WebSocketMessage
|
2014-10-20 08:21:23 +00:00
|
|
|
};
|
|
|
|
})();
|