function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }

function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }

function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }

function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }

function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }

function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }

function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }

function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }

function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }

function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }

function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }

function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["service-logs-service-logs-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.html":
  /*!*******************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.html ***!
    \*******************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_dbMonitoring_configurationAndLogs_serviceLogs_serviceLogsComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<div class=\"service-logs-container\" #widget>\n    <div class=\"p-grid p-col-12\">\n        <app-help #help></app-help>\n        <cav-table [value]=\"dataTable.data\" [headerRelativePath]=\"headerRelativePath\" (clickButtonEvent)=\"clickButtonEvent($event)\"\n        scrollHeight=\"350px\"></cav-table>\n        <div *ngIf=\"loading\"\n            [ngClass]=\"{'loading-indicator pageLoading':dbMonService.spinnerClass === false, 'spinner':dbMonService.spinnerClass === true}\">\n            <p-progressSpinner [style]=\"{width: '40px', height: '40px'}\" strokeWidth=\"4\" animationDuration=\".5s\">\n            </p-progressSpinner>\n        </div>\n    </div>\n</div>\n<app-common-stats-filter #commonFilterSidebar></app-common-stats-filter>";
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.scss":
  /*!*****************************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.scss ***!
    \*****************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_dbMonitoring_configurationAndLogs_serviceLogs_serviceLogsComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "app-service-logs .service-logs-container .ui-table-globalfilter-container .global-search {\n  position: absolute;\n  top: -55px;\n  left: 53px;\n  width: 250px;\n  padding: 0.429em 0.429em 0.429em 2em;\n}\napp-service-logs .service-logs-container .ui-table-globalfilter-container i {\n  position: absolute;\n  top: -49px;\n  left: 58px;\n  z-index: 99;\n  font-size: 1.5em;\n}\napp-service-logs .service-logs-container .action-container .filter-icon-button {\n  margin: 0px 5px;\n}\napp-service-logs .service-logs-container .action-container .input-field-search {\n  padding: 0.429em 0.429em 0.429em 2em;\n  width: 200px;\n}\napp-service-logs .service-logs-container .action-container .search-div-css {\n  position: relative;\n  width: 80%;\n}\napp-service-logs .service-logs-container .action-container .search-div-css i {\n  font-size: 1.5em;\n  position: absolute;\n  color: #1d5290;\n  top: 5px;\n  left: 5px;\n}\napp-service-logs .service-logs-container .action-container .ui-multiselect {\n  border: none;\n  background: transparent;\n}\napp-service-logs .service-logs-container .action-container .ui-multiselect .ui-helper-hidden-accessible {\n  display: none;\n}\napp-service-logs .service-logs-container .action-container .ui-multiselect .ui-multiselect-label {\n  display: none;\n}\napp-service-logs .service-logs-container .action-container .ui-multiselect .ui-multiselect-trigger {\n  margin-top: 1px;\n  background-color: transparent;\n}\napp-service-logs .service-logs-container .action-container .ui-multiselect .ui-multiselect-trigger .ui-multiselect-trigger-icon {\n  font-size: 1.5em;\n}\napp-service-logs .service-logs-container .action-container .icons-container {\n  display: inline-flex;\n}\napp-service-logs .service-logs-container .action-container .ip-alert-group {\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n}\napp-service-logs .service-logs-container .column-icon {\n  font-size: 1.5em;\n  color: #1d5290;\n  margin: 0 10px;\n}\napp-service-logs .service-logs-container .ui-table .columnwidth {\n  width: 40px;\n}\napp-service-logs .service-logs-container .ui-table .action-olumnwidth {\n  width: 180px;\n}\napp-service-logs .service-logs-container .ui-table .switch-column {\n  width: 60px;\n}\napp-service-logs .service-logs-container .ui-table .ui-table-scrollable-body {\n  overflow-x: hidden;\n}\napp-service-logs .service-logs-container .ui-table .icons8 {\n  color: #1d5290;\n}\napp-service-logs .service-logs-container .mh-10 {\n  margin: 0 10px;\n}\napp-service-logs .service-logs-container p-panel {\n  width: 100%;\n}\napp-service-logs .service-logs-container .mulitselectRight .ui-multiselect-panel {\n  right: 0px !important;\n  left: auto !important;\n}\napp-service-logs .service-logs-container .side-bar-content {\n  overflow: hidden;\n}\napp-service-logs .service-logs-container .loading-indicator {\n  position: fixed;\n  z-index: 9999;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background-color: rgba(0, 0, 0, 0.15);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\napp-service-logs .service-logs-container .spinner {\n  position: fixed;\n  top: 85px;\n  right: 37px;\n}";
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.ts":
  /*!***************************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.ts ***!
    \***************************************************************************************************/

  /*! exports provided: ServiceLogsComponent */

  /***/
  function _src_app_pages_dbMonitoring_configurationAndLogs_serviceLogs_serviceLogsComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ServiceLogsComponent", function () {
      return ServiceLogsComponent;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_shared_scheduler_scheduler_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! src/app/shared/scheduler/scheduler.service */
    "./src/app/shared/scheduler/scheduler.service.ts");
    /* harmony import */


    var _db_monitoring_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../db-monitoring.state */
    "./src/app/pages/db-monitoring/db-monitoring.state.ts");
    /* harmony import */


    var _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../../services/db-monitoring.services */
    "./src/app/pages/db-monitoring/services/db-monitoring.services.ts");
    /* harmony import */


    var _service_service_logs_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ./service/service-logs.service */
    "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service/service-logs.service.ts");
    /* harmony import */


    var src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! src/app/shared/time-bar/service/time-bar.service */
    "./src/app/shared/time-bar/service/time-bar.service.ts");

    var ServiceLogsComponent = /*#__PURE__*/function () {
      function ServiceLogsComponent(serviceLog, dbMonService, schedulerService, sessionSerivce, timebarService) {
        _classCallCheck(this, ServiceLogsComponent);

        this.serviceLog = serviceLog;
        this.dbMonService = dbMonService;
        this.schedulerService = schedulerService;
        this.sessionSerivce = sessionSerivce;
        this.timebarService = timebarService;
      }

      return _createClass(ServiceLogsComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          var me = this;
          me.headerRelativePath = "DBMonitoring/MSSQL_Services_Logs.json";
          me.dataTable = {
            data: []
          };
          me.load();
          me.subscribeScheduleLoad();
        }
      }, {
        key: "ngAfterViewInit",
        value: function ngAfterViewInit() {
          var me = this;
          setTimeout(function () {
            //For the change in progress spinner css
            me.dbMonService.spinnerClass = false;
          });
        }
      }, {
        key: "subscribeScheduleLoad",
        value: function subscribeScheduleLoad() {
          var _this = this;

          var me = this;
          me.dataSubsciption = me.dbMonService.scheduleDataRequestObservable$.subscribe(function (result) {
            if (result && _this.serviceLog.resPending) {
              _this.serviceLog.resPending = false;
              me.load();
            }
          });
        }
      }, {
        key: "load",
        value: function load() {
          var me = this;
          me.loading = true;

          if (!me.sessionSerivce.isActive()) {
            return;
          }

          me.serviceLog.getPresetAndLoad().subscribe(function (state) {
            if (state instanceof _db_monitoring_state__WEBPACK_IMPORTED_MODULE_4__["DBMonitoringLoadingState"]) {
              me.onLoading(state);
              return;
            }

            if (state instanceof _db_monitoring_state__WEBPACK_IMPORTED_MODULE_4__["DBMonitoringLoadedState"]) {
              me.onLoaded(state);
              return;
            }
          }, function (state) {
            me.onLoadingError(state);
          });
        }
      }, {
        key: "onLoading",
        value: function onLoading(state) {
          var me = this;
          me.loading = true;
        }
      }, {
        key: "onLoadingError",
        value: function onLoadingError(state) {
          var me = this;
          me.loading = false;
        }
        /*  Method to load table data.  */

      }, {
        key: "onLoaded",
        value: function onLoaded(state) {
          var me = this;
          me.loading = false;
          me.timebarService.isTimeChangedFromGlobal = false;
          me.dataTable.data = state.data;

          if (!me.dataTable.data) {
            me.dataTable.data = [];
          } //For the change in progress spinner css


          me.dbMonService.spinnerClass = true;
        } // Making custom function for sorting numbers, dates and strings

      }, {
        key: "customSort",
        value: function customSort(event) {
          event.data.sort(function (data1, data2) {
            var value1 = data1[event.key];
            var value2 = data2[event.key];
            var result = null; // Sorting null values

            if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (event['key'] == 'executionTime') {
              var newarr1 = data1[event.key].split("ms");
              var newarr2 = data2[event.key].split("ms");
              value1 = Number(newarr1[0]);
              value2 = Number(newarr2[0]);
              result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
            } //Checking fields individually for their type and sort data accordingly.
            else if (event['key'] == 'timestamp' || event['key'] == 'dbName' || event['key'] == 'className' || event['key'] == 'methodName' || event['key'] == 'serviceName') //for string type fields
              result = value1.localeCompare(value2);else {
              result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
            }
            return event.order * result;
          });
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          var me = this;
          me.schedulerService.unsubscribe('load-servicelog');

          if (me.dataSubsciption) {
            me.dataSubsciption.unsubscribe();
          }
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b;

          var me = this;

          if (((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) == "help") {
            me.help.show('msSqlConfigurationLogs', 'ConfigurationLogs', 'db-monitoring');
          }
        }
      }]);
    }();

    ServiceLogsComponent.ctorParameters = function () {
      return [{
        type: _service_service_logs_service__WEBPACK_IMPORTED_MODULE_6__["ServiceLogsService"]
      }, {
        type: _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_5__["DBMonitoringService"]
      }, {
        type: src_app_shared_scheduler_scheduler_service__WEBPACK_IMPORTED_MODULE_3__["SchedulerService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__["SessionService"]
      }, {
        type: src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_7__["TimebarService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('help')], ServiceLogsComponent.prototype, "help", void 0);
    ServiceLogsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-service-logs',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./service-logs.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./service-logs.component.scss */
      "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.scss"))["default"]]
    })], ServiceLogsComponent);
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.module.ts":
  /*!************************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.module.ts ***!
    \************************************************************************************************/

  /*! exports provided: ServiceLogsModule */

  /***/
  function _src_app_pages_dbMonitoring_configurationAndLogs_serviceLogs_serviceLogsModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ServiceLogsModule", function () {
      return ServiceLogsModule;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! @angular/common */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
    /* harmony import */


    var _service_logs_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./service-logs.component */
    "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service-logs.component.ts");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _shared_common_stats_filter_common_stats_filter_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../shared/common-stats-filter/common-stats-filter.module */
    "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.module.ts");
    /* harmony import */


    var src_app_shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! src/app/shared/pipes/pipes.module */
    "./src/app/shared/pipes/pipes.module.ts");
    /* harmony import */


    var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! @angular/material/tooltip */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tooltip.js");
    /* harmony import */


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! src/app/shared/cav-table/cav-table.module */
    "./src/app/shared/cav-table/cav-table.module.ts");
    /* harmony import */


    var src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! src/app/shared/help/help.module */
    "./src/app/shared/help/help.module.ts");

    var imports = [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CardModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ProgressSpinnerModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["RatingModule"], _shared_common_stats_filter_common_stats_filter_module__WEBPACK_IMPORTED_MODULE_7__["CommonStatsFilterModule"], src_app_shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_8__["PipeModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__["MatTooltipModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_10__["CavTableModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_11__["HelpModule"]];
    var components = [_service_logs_component__WEBPACK_IMPORTED_MODULE_3__["ServiceLogsComponent"]];
    var routes = [{
      path: '',
      component: _service_logs_component__WEBPACK_IMPORTED_MODULE_3__["ServiceLogsComponent"],
      pathMatch: 'full'
    }];

    var ServiceLogsModule = /*#__PURE__*/_createClass(function ServiceLogsModule() {
      _classCallCheck(this, ServiceLogsModule);
    });

    ServiceLogsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [components],
      imports: [imports, _angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"].forChild(routes)],
      exports: [_angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"]]
    })], ServiceLogsModule);
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service/service-logs.service.ts":
  /*!*********************************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/configuration-and-logs/service-logs/service/service-logs.service.ts ***!
    \*********************************************************************************************************/

  /*! exports provided: ServiceLogsService */

  /***/
  function _src_app_pages_dbMonitoring_configurationAndLogs_serviceLogs_service_serviceLogsServiceTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ServiceLogsService", function () {
      return ServiceLogsService;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var rxjs_internal_Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! rxjs/internal/Subject */
    "./node_modules/rxjs/internal/Subject.js");
    /* harmony import */


    var rxjs_internal_Subject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_Subject__WEBPACK_IMPORTED_MODULE_2__);
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! src/app/core/store/store */
    "./src/app/core/store/store.ts");
    /* harmony import */


    var src_app_shared_time_bar_service_time_bar_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! src/app/shared/time-bar/service/time-bar.state */
    "./src/app/shared/time-bar/service/time-bar.state.ts");
    /* harmony import */


    var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! src/environments/environment */
    "./src/environments/environment.ts");
    /* harmony import */


    var _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../../db-monitoring.state */
    "./src/app/pages/db-monitoring/db-monitoring.state.ts");
    /* harmony import */


    var _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../../services/db-monitoring.services */
    "./src/app/pages/db-monitoring/services/db-monitoring.services.ts");

    var ServiceLogsService = /*#__PURE__*/function (_src_app_core_store_s) {
      function ServiceLogsService(sessionService, dbmonService) {
        var _this2;

        _classCallCheck(this, ServiceLogsService);

        _this2 = _callSuper(this, ServiceLogsService);
        _this2.sessionService = sessionService;
        _this2.dbmonService = dbmonService;
        _this2.resPending = false;
        return _this2;
      }

      _inherits(ServiceLogsService, _src_app_core_store_s);

      return _createClass(ServiceLogsService, [{
        key: "load",
        value: function load(payload) {
          var _this3 = this;

          var me = this;
          this.resPending = false;
          var output = new rxjs_internal_Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadingState"]());
          }, 0);
          var session = me.sessionService.session;

          if (session) {
            payload.cctx = me.sessionService.session.cctx;
            payload.tr = me.sessionService.session.testRun.id;
            payload.timezone = me.sessionService.selectedTimeZone.zoneLabel;
          }

          payload.dataSourceName = me.dbmonService.dataSource;
          payload.dbType = me.dbmonService.dbType;
          payload.globalId = me.dbmonService.globalId; //need to bind

          if (me.sessionService.isMultiDC) {
            payload.subject = me.dbmonService.subject;
          }

          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].api.dbMonitoring.servicesLogs.endpoint;
          me.controller.post(path, payload).subscribe(function (result) {
            var state = new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadedState"]();
            _this3.resPending = true;

            if (result != undefined) {
              state.data = result;
              output.next(state);
              return;
            }
          }, function (e) {
            _this3.resPending = true;
            output.error(new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadingErrorStatus"](e));
            output.complete();
            me.logger.error('Service-logs is not loaded successfully');
          });
          return output;
        }
      }, {
        key: "getPresetAndLoad",
        value: function getPresetAndLoad() {
          var me = this;
          var payload = {};
          var output = new rxjs_internal_Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          me.dbmonService.getPresetTime().subscribe(function (state) {
            if (state instanceof src_app_shared_time_bar_service_time_bar_state__WEBPACK_IMPORTED_MODULE_5__["GlobalTimebarTimeLoadedState"]) {
              me.load(payload).subscribe(function (state) {
                if (state instanceof _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadedState"]) {
                  output.next(state);
                }
              });
              return;
            }
          });
          return output;
        }
      }]);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__["Store"].AbstractService);

    ServiceLogsService.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"]
      }, {
        type: _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_8__["DBMonitoringService"]
      }];
    };

    ServiceLogsService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
      providedIn: 'root'
    })], ServiceLogsService);
    /***/
  }
}]);