2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2017-10-12 08:40:51 +08:00
|
|
|
import handlePresentationAdded from './handlers/presentationAdded';
|
|
|
|
import handlePresentationRemove from './handlers/presentationRemove';
|
|
|
|
import handlePresentationCurrentSet from './handlers/presentationCurrentSet';
|
|
|
|
import handlePresentationConversionUpdate from './handlers/presentationConversionUpdate';
|
2019-02-16 03:45:42 +08:00
|
|
|
import handlePresentationDownloadableSet from './handlers/presentationDownloadableSet';
|
2022-07-20 03:36:00 +08:00
|
|
|
import handlePresentationExport from './handlers/presentationExport';
|
2016-11-12 03:02:46 +08:00
|
|
|
|
2019-10-21 20:33:40 +08:00
|
|
|
RedisPubSub.on('PdfConversionInvalidErrorEvtMsg', handlePresentationConversionUpdate);
|
2017-10-12 08:40:51 +08:00
|
|
|
RedisPubSub.on('PresentationPageGeneratedEvtMsg', handlePresentationConversionUpdate);
|
2017-11-28 01:44:45 +08:00
|
|
|
RedisPubSub.on('PresentationPageCountErrorEvtMsg', handlePresentationConversionUpdate);
|
2017-10-12 08:40:51 +08:00
|
|
|
RedisPubSub.on('PresentationConversionUpdateEvtMsg', handlePresentationConversionUpdate);
|
2021-04-21 01:21:12 +08:00
|
|
|
RedisPubSub.on('PresentationUploadedFileTooLargeErrorEvtMsg', handlePresentationConversionUpdate);
|
2017-10-12 08:40:51 +08:00
|
|
|
RedisPubSub.on('PresentationConversionCompletedEvtMsg', handlePresentationAdded);
|
|
|
|
RedisPubSub.on('RemovePresentationEvtMsg', handlePresentationRemove);
|
|
|
|
RedisPubSub.on('SetCurrentPresentationEvtMsg', handlePresentationCurrentSet);
|
2019-02-16 03:45:42 +08:00
|
|
|
RedisPubSub.on('SetPresentationDownloadableEvtMsg', handlePresentationDownloadableSet);
|
2022-07-21 07:20:32 +08:00
|
|
|
RedisPubSub.on('NewPresAnnFileAvailableEvtMsg', handlePresentationExport);
|