/home/ivoiecob/email.hirewise-va.com/static/js/MobileAppsWebclient.app.b761c04ba686d56c7170.js
"use strict";
(self["webpackChunkafterlogic_aurora_platform"] = self["webpackChunkafterlogic_aurora_platform"] || []).push([[31],{

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



module.exports = function (oAppData) {
  var App = __webpack_require__(/*! modules/CoreWebclient/js/App.js */ "yU9o");
  if (App.isUserNormalOrTenant()) {
    var TextUtils = __webpack_require__(/*! modules/CoreWebclient/js/utils/Text.js */ "LKDt"),
      Settings = __webpack_require__(/*! modules/MobileAppsWebclient/js/Settings.js */ "m2Me");
    Settings.init(oAppData);
    return {
      start: function start(ModulesManager) {
        ModulesManager.run('SettingsWebclient', 'registerSettingsTab', [function () {
          return __webpack_require__(/*! modules/MobileAppsWebclient/js/views/MobileAppsSettingsPaneView.js */ "IP3R");
        }, Settings.HashModuleName, TextUtils.i18n('MOBILEAPPSWEBCLIENT/LABEL_SETTINGS_TAB')]);
      }
    };
  }
  return null;
};

/***/ }),

/***/ "IP3R":
/*!****************************************************************************!*\
  !*** ./modules/MobileAppsWebclient/js/views/MobileAppsSettingsPaneView.js ***!
  \****************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {



var TextUtils = __webpack_require__(/*! modules/CoreWebclient/js/utils/Text.js */ "LKDt"),
  UrlUtils = __webpack_require__(/*! modules/CoreWebclient/js/utils/Url.js */ "3cxN"),
  App = __webpack_require__(/*! modules/CoreWebclient/js/App.js */ "yU9o"),
  Settings = __webpack_require__(/*! modules/MobileAppsWebclient/js/Settings.js */ "m2Me");

/**
 * @constructor
 */
function CMobileAppsSettingsPaneView() {
  this.sAppPath = UrlUtils.getAppPath();
  this.sMailSectionName = Settings.MailSectionName || TextUtils.i18n('MOBILEAPPSWEBCLIENT/HEADING_MAIL_APP');
  this.bShowMailServerUrlApp = Settings.ShowMailServerUrlApp;
  this.bShowMailIosApp = Settings.ShowMailIosApp && Settings.MailIosAppLink !== '';
  this.sMailIosApp = Settings.MailIosAppLink;
  this.bShowMailAndroidApp = Settings.ShowMailAndroidApp && Settings.MailAndroidAppLink !== '';
  this.sMailAndroidApp = Settings.MailAndroidAppLink;
  this.bShowMailSection = this.bShowMailIosApp || this.bShowMailAndroidApp;
  this.sFilesSectionName = Settings.FilesSectionName || TextUtils.i18n('MOBILEAPPSWEBCLIENT/HEADING_FILES_APP');
  this.bShowFilesServerUrlApp = Settings.ShowFilesServerUrlApp;
  this.bShowFilesAndroidApp = Settings.ShowFilesAndroidApp && Settings.FilesAndroidAppLink !== '';
  this.sFilesAndroidAppLink = Settings.FilesAndroidAppLink;
  this.bShowFilesIosApp = Settings.ShowFilesIosApp && Settings.FilesIosAppLink !== '';
  this.sFilesIosAppLink = Settings.FilesIosAppLink;
  this.bShowFilesWinApp = Settings.ShowFilesWinApp && Settings.FilesWinAppLink !== '';
  this.sFilesWinAppLink = Settings.FilesWinAppLink;
  this.bShowFilesSection = this.bShowFilesAndroidApp || this.bShowFilesIosApp || this.bShowFilesWinApp;
}
CMobileAppsSettingsPaneView.prototype.ViewTemplate = 'MobileAppsWebclient_MobileAppsSettingsPaneView';
module.exports = new CMobileAppsSettingsPaneView();

/***/ }),

/***/ "m2Me":
/*!****************************************************!*\
  !*** ./modules/MobileAppsWebclient/js/Settings.js ***!
  \****************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {



var _ = __webpack_require__(/*! underscore */ "C3HO"),
  Types = __webpack_require__(/*! modules/CoreWebclient/js/utils/Types.js */ "ERH9");
module.exports = {
  ServerModuleName: 'MobileApps',
  HashModuleName: 'mobile-apps',
  FilesSectionName: '',
  ShowFilesServerUrlApp: true,
  ShowFilesAndroidApp: true,
  FilesAndroidAppLink: '',
  ShowFilesIosApp: true,
  FilesIosAppLink: '',
  ShowFilesWinApp: true,
  FilesWinAppLink: '',
  MailSectionName: '',
  ShowMailServerUrlApp: true,
  ShowMailAndroidApp: true,
  MailAndroidAppLink: '',
  ShowMailIosApp: true,
  MailIosAppLink: '',
  /**
   * Initializes settings from AppData object sections.
   * 
   * @param {Object} oAppData Object contained modules settings.
   */
  init: function init(oAppData) {
    var oAppDataSection = oAppData['MobileAppsWebclient'];
    if (!_.isEmpty(oAppDataSection)) {
      this.FilesSectionName = Types.pString(oAppDataSection.FilesSectionName, this.FilesSectionName);
      this.ShowFilesServerUrlApp = Types.pBool(oAppDataSection.ShowFilesServerUrlApp, this.ShowFilesServerUrlApp);
      this.ShowFilesAndroidApp = Types.pBool(oAppDataSection.ShowFilesAndroidApp, this.ShowFilesAndroidApp);
      this.FilesAndroidAppLink = Types.pString(oAppDataSection.FilesAndroidAppLink, this.FilesAndroidAppLink);
      this.ShowFilesIosApp = Types.pBool(oAppDataSection.ShowFilesIosApp, this.ShowFilesIosApp);
      this.FilesIosAppLink = Types.pString(oAppDataSection.FilesIosAppLink, this.FilesIosAppLink);
      this.ShowFilesWinApp = Types.pBool(oAppDataSection.ShowFilesWinApp, this.ShowFilesWinApp);
      this.FilesWinAppLink = Types.pString(oAppDataSection.FilesWinAppLink, this.FilesWinAppLink);
      this.MailSectionName = Types.pString(oAppDataSection.MailSectionName, this.MailSectionName);
      this.ShowMailServerUrlApp = Types.pBool(oAppDataSection.ShowMailServerUrlApp, this.ShowMailServerUrlApp);
      this.ShowMailAndroidApp = Types.pBool(oAppDataSection.ShowMailAndroidApp, this.ShowMailAndroidApp);
      this.MailAndroidAppLink = Types.pString(oAppDataSection.MailAndroidAppLink, this.MailAndroidAppLink);
      this.ShowMailIosApp = Types.pBool(oAppDataSection.ShowMailIosApp, this.ShowMailIosApp);
      this.MailIosAppLink = Types.pString(oAppDataSection.MailIosAppLink, this.MailIosAppLink);
    }
  }
};

/***/ })

}]);