"use strict";
(self["webpackChunkafterlogic_aurora_platform"] = self["webpackChunkafterlogic_aurora_platform"] || []).push([[17],{

/***/ "pqCS":
/*!****************************************************!*\
  !*** ./modules/OfficeDocumentViewer/js/manager.js ***!
  \****************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {



module.exports = function (oAppData) {
  var moment = __webpack_require__(/*! moment */ "sdEb"),
    App = __webpack_require__(/*! modules/CoreWebclient/js/App.js */ "yU9o"),
    Types = __webpack_require__(/*! modules/CoreWebclient/js/utils/Types.js */ "ERH9"),
    CAbstractFileModel = __webpack_require__(/*! modules/CoreWebclient/js/models/CAbstractFileModel.js */ "LIBG");
  if (App.isUserNormalOrTenant()) {
    return {
      start: function start() {
        var aExtensionsToView = oAppData['OfficeDocumentViewer'] ? oAppData['OfficeDocumentViewer']['ExtensionsToView'] : [];
        aExtensionsToView = aExtensionsToView.map(function (item) {
          return Types.pString(item).toLowerCase();
        });
        CAbstractFileModel.addViewExtensions(aExtensionsToView);
        App.subscribeEvent('AbstractFileModel::FileView::before', function (oParams) {
          if (oParams['sUrl']) {
            oParams['sUrl'] += '&' + moment().unix();
          }
        });
      }
    };
  }
  return null;
};

/***/ })

}]);