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 _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); }

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

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["tcp-dump-revamp-tcp-dump-revamp-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.html":
  /*!**************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.html ***!
    \**************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"w-100-p ns-scenario  \">\n    <div class=\"w-100-p relative\">\n        <p-breadcrumb [model]=\"breadcrumbItems\"></p-breadcrumb>\n        <span class=\"breadcumb_help\">\n            <app-help *ngIf=\"!isAddTcpDumpVisible\" [helpFileName]=\"'tcpDump'\" [helpTitle]=\"'TCP Dump'\" [helpFolder]=\"'action'\"></app-help>\n            <app-help *ngIf=\"isAddTcpDumpVisible\" [helpFileName]=\"'takeTcpDump'\" [helpTitle]=\"'Take TCP Dump'\" [helpFolder]=\"'action'\"></app-help>\n        </span>\n    </div>\n    <div class=\"p-8 overflow dump-heights\">\n        <div *ngIf=\"!isAddTcpDumpVisible && !tableEnable\" class=\"w-100-p\">\n            <cav-table [value]=\"tcpDumpTableData\" [headerRelativePath]=\"relativePathForTCPDump\" [scrollable]=\"true\"\n                (clickButtonEvent)=\"tcpDumpTableEvent($event)\"\n                currentPageReportTemplate=\"showing {first} to {last} of {totalRecords}\"\n                scrollHeight=\"calc(100vh - 250px)\"></cav-table>\n        </div>\n\n        <div *ngIf=\"tableEnable\">\n            <cav-scheduler-table [scheduleObj]=\"scheduleObj\" (outputEvent)=\"outputEventHandler($event)\"></cav-scheduler-table>\n        </div>\n        <p-menu #tableMenuPrime [popup]=\"true\" [style]=\"{'width':'180px'}\" [model]=\"tableMenuItemsRef\"></p-menu>\n\n        <ng-container *ngIf=\"isAddTcpDumpVisible\">\n            <div class=\"w-100-p border-all bg-white border-4 p-6\">\n                <app-cav-toolbar [number]=\"'1'\" [label]=\"'Select Target'\"></app-cav-toolbar>\n                <div class=\"w-100-p\">\n                    <app-tier-server-info [tierServerInstanceObj]=\"tierServerVal\" [parentName]=\"'TCPDump'\"></app-tier-server-info>\n                </div>\n\n                <app-cav-toolbar [number]=\"'2'\" [label]=\"'Set Configuration'\"></app-cav-toolbar>\n                <div class=\"p-grid mb-16\">\n                    <div class=\"p-col-3 form-group\">\n                        <label class=\"p-col-4 control-label\" for=\"maxDuration\">Duration</label>\n                        <div class=\"p-col-8 p-grid p-nogutter timeBadge\">\n                            <p-spinner type=\"number\" inputStyleClass=\"width-80\" min=0 required\n                                [(ngModel)]=\"tcpDumpSettingData['maxDuration']\" id=\"maxDuration\"></p-spinner>\n                            <p-dropdown [options]=\"durationList\" [(ngModel)]=\"tcpDumpSettingData['timeUnit']\"\n                                [style]=\"{'min-width':'100px'}\"></p-dropdown>\n                        </div>\n                    </div>\n\n                    <div class=\"p-col-3 form-group\">\n                        <label class=\"p-col-4 control-label\" for=\"memorySize\">Max File Size</label>\n                        <div class=\"p-col-8 p-grid p-nogutter timeBadge\">\n                            <p-spinner type=\"number\" inputStyleClass=\"width-80\" required\n                                [(ngModel)]=\"tcpDumpSettingData['memorySize']\" id=\"memorySize\"></p-spinner>\n                            <p-dropdown [options]=\"sizeList\" [(ngModel)]=\"tcpDumpSettingData['sizeUnit']\"\n                                [style]=\"{'min-width':'90px'}\"></p-dropdown>\n                        </div>\n                    </div>\n\n                    <div class=\"p-col-3 form-group\">\n                        <label class=\"p-col-4 control-label\" for=\"numPackets\">Number of Packets</label>\n                        <div class=\"p-col-8\">\n                            <p-spinner type=\"number\" id=\"numPackets\" min=0 required\n                                [(ngModel)]=\"tcpDumpSettingData['numPackets']\"></p-spinner>\n                        </div>\n                    </div>\n\n                    <div class=\"p-col-3 form-group\">\n                        <label class=\"p-col-4 control-label\" for=\"port\">Port</label>\n                        <div class=\"p-col-8\">\n                            <p-spinner type=\"number\" min=0 max=65535 required [(ngModel)]=\"tcpDumpSettingData['port']\"\n                                id=\"port\" min=1 max=65535 required></p-spinner>\n                        </div>\n                    </div>\n\n                    <div class=\"p-col-12 form-group\">\n                        <label class=\"p-col-1 control-label\" for=\"input\">Attribute</label>\n                        <div class=\"p-col-11 mln-2\">\n                            <input id=\"input\" type=\"text\" class=\"w-100-p\"\n                                [(ngModel)]=\"tcpDumpSettingData['addAttributes']\" pInputText>\n                        </div>\n                    </div>\n                </div>\n                <ng-container>\n                    <app-cav-toolbar [number]=\"'3'\" [label]=\"'Schedule Settings'\"></app-cav-toolbar>\n                    <app-cav-scheduler [cavScheduleInput]=\"inputForCavScheduler\" (responseEvent)=\"cavScheduleEventHandler($event)\"\n                        (scheduleNow)=\"handleScheduleNow($event)\"></app-cav-scheduler>\n                </ng-container>\n\n            </div>\n            <div class=\"bottom-footer\">\n                <button pButton type=\"button\" [disabled]=\"!isWritePermission\" [label]=\"scheduleNow ? 'Take TCP Dump' : 'Schedule TCP Dump'\" (click)=\"takeTCPDump()\"\n                    class='ui-btn-primary mx-3'></button>\n                <button pButton type=\"button\" label=\"Reset\" (click)=\"reset()\" class=\"mx-3 ui-button-secondary\"></button>\n                <button pButton type=\"button\" label=\"Cancel\" (click)=\"cancelTakeTcpDump()\"\n                    class=\"ui-button-secondary mx-3\"></button>\n            </div>\n        </ng-container>\n    </div>\n\n    <div class=\"loading-indicator pageLoading\" *ngIf=\"commonActionServiceObj.loading\">\n        <p-progressSpinner [style]=\"{width: '50px', height: '50px'}\" strokeWidth=\"4\" animationDuration=\".5s\">\n        </p-progressSpinner>\n    </div>\n\n    <p-dialog class=\"secondary-dialog confirmdialog\" header=\"Delete Confirmation\" [(visible)]=\"confirmationDelete\"\n        [style]=\"{'width':'40%'}\" [responsive]=\"true\">\n        <label>Are you sure you want to permanently delete the selected tcp dump?</label>\n        <p-footer>\n            <div>\n                <button pButton (click)=\"confirmationDelete = false\" type=\"button\" label=\"No\"\n                    class=' ui-button-secondary'></button>\n                <button pButton type=\"button\" (click)=\"deleteTcpDump()\" label=\"Yes\" class='mh-10 '></button>\n            </div>\n        </p-footer>\n    </p-dialog>\n\n\n    <p-dialog header=\"View Logs\" [(visible)]=\"viewLogsDialog\" [style]=\"{'width':'70%'}\" [modal]=\"true\">\n        <cav-table [value]=\"logsList\" [headerRelativePath]=\"relativePathForLogs\" [scrollable]=\"true\"\n            (clickButtonEvent)=\"tcpDumpTableEvent($event)\" [paginator]=\"true\"\n            currentPageReportTemplate=\"showing {first} to {last} of {totalRecords}\"\n            scrollHeight=\"calc(100vh - 210px)\"></cav-table>\n    </p-dialog>\n</div>";
    /***/
  },

  /***/
  "./src/app/pages/tools/actions/constant/common-action-constants.ts":
  /*!*************************************************************************!*\
    !*** ./src/app/pages/tools/actions/constant/common-action-constants.ts ***!
    \*************************************************************************/

  /*! exports provided: WARNING, SUCCESS, FAIL, ERROR, INFO, TYPE_PROCESS_DUMP, BREADCRUMB_HOME, BREADCRUMB_TAKE_PROCESS_DUMP, BREADCRUMB_PROCESS_DUMP, BREADCRUMB_DIAGNOSTIC_TOOL_ADV_SETTING, KEY_STATUS, KEY_MSG, KEY_MSTATUS, ACTION_DOWNLOAD, ACTION_DELETE, ACTION_VIEW_LOGS, STATUS_COMPLETED, STATUS_IN_PROGRESS, STATUS_ERROR, HOME_URL, SUMMARY_SUCCESS, SUMMARY_ERROR, SUMMARY_WARNING, SUMMARY_FAIL, SUMMARY_INFO, SEVERITY_SUCCESS, SEVERITY_ERROR, SEVERITY_WARNING, SEVERITY_INFO, SEVERITY_FAIL */

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

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


    __webpack_require__.d(__webpack_exports__, "WARNING", function () {
      return WARNING;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUCCESS", function () {
      return SUCCESS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FAIL", function () {
      return FAIL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ERROR", function () {
      return ERROR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "INFO", function () {
      return INFO;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TYPE_PROCESS_DUMP", function () {
      return TYPE_PROCESS_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_HOME", function () {
      return BREADCRUMB_HOME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_TAKE_PROCESS_DUMP", function () {
      return BREADCRUMB_TAKE_PROCESS_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_PROCESS_DUMP", function () {
      return BREADCRUMB_PROCESS_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_DIAGNOSTIC_TOOL_ADV_SETTING", function () {
      return BREADCRUMB_DIAGNOSTIC_TOOL_ADV_SETTING;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "KEY_STATUS", function () {
      return KEY_STATUS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "KEY_MSG", function () {
      return KEY_MSG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "KEY_MSTATUS", function () {
      return KEY_MSTATUS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ACTION_DOWNLOAD", function () {
      return ACTION_DOWNLOAD;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ACTION_DELETE", function () {
      return ACTION_DELETE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ACTION_VIEW_LOGS", function () {
      return ACTION_VIEW_LOGS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "STATUS_COMPLETED", function () {
      return STATUS_COMPLETED;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "STATUS_IN_PROGRESS", function () {
      return STATUS_IN_PROGRESS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "STATUS_ERROR", function () {
      return STATUS_ERROR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "HOME_URL", function () {
      return HOME_URL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUMMARY_SUCCESS", function () {
      return SUMMARY_SUCCESS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUMMARY_ERROR", function () {
      return SUMMARY_ERROR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUMMARY_WARNING", function () {
      return SUMMARY_WARNING;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUMMARY_FAIL", function () {
      return SUMMARY_FAIL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUMMARY_INFO", function () {
      return SUMMARY_INFO;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SEVERITY_SUCCESS", function () {
      return SEVERITY_SUCCESS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SEVERITY_ERROR", function () {
      return SEVERITY_ERROR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SEVERITY_WARNING", function () {
      return SEVERITY_WARNING;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SEVERITY_INFO", function () {
      return SEVERITY_INFO;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SEVERITY_FAIL", function () {
      return SEVERITY_FAIL;
    });

    var WARNING = "WARNING";
    var SUCCESS = "SUCCESS";
    var FAIL = "FAIL";
    var ERROR = "ERROR";
    var INFO = "INFO";
    var TYPE_PROCESS_DUMP = "ProcessDump";
    var BREADCRUMB_HOME = "Home";
    var BREADCRUMB_TAKE_PROCESS_DUMP = "Take Process Dump";
    var BREADCRUMB_PROCESS_DUMP = "Process Dump";
    var BREADCRUMB_DIAGNOSTIC_TOOL_ADV_SETTING = "Diagnostic Tools Setting";
    var KEY_STATUS = "status";
    var KEY_MSG = "msg";
    var KEY_MSTATUS = "mStatus";
    var ACTION_DOWNLOAD = "Download";
    var ACTION_DELETE = "Delete";
    var ACTION_VIEW_LOGS = "View Logs";
    var STATUS_COMPLETED = "Completed";
    var STATUS_IN_PROGRESS = "In Progress";
    var STATUS_ERROR = "Error";
    var HOME_URL = "/home/dashboard";
    var SUMMARY_SUCCESS = "SUCCESS";
    var SUMMARY_ERROR = "ERROR";
    var SUMMARY_WARNING = "WARNING";
    var SUMMARY_FAIL = "FAIL";
    var SUMMARY_INFO = "INFO";
    var SEVERITY_SUCCESS = "success";
    var SEVERITY_ERROR = "error";
    var SEVERITY_WARNING = "warn";
    var SEVERITY_INFO = "info";
    var SEVERITY_FAIL = "fail";
    /***/
  },

  /***/
  "./src/app/pages/tools/actions/tcp-dump-revamp/interface/tcp-dump-data-info.ts":
  /*!*************************************************************************************!*\
    !*** ./src/app/pages/tools/actions/tcp-dump-revamp/interface/tcp-dump-data-info.ts ***!
    \*************************************************************************************/

  /*! exports provided: TcpDumpSettings */

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

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


    __webpack_require__.d(__webpack_exports__, "TcpDumpSettings", function () {
      return TcpDumpSettings;
    });

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

      this.maxDuration = 120;
      this.memorySize = 10;
      this.numPackets = 6400;
      this.port = 80;
      this.saveFilePath = "/home/cavisson/monitors/logs";
      this.callFromAlert = false;
      this.timeUnit = "sec";
      this.sizeUnit = "mb";
    });
    /***/

  },

  /***/
  "./src/app/pages/tools/actions/tcp-dump-revamp/services/tcp-dump-revamp.service.ts":
  /*!*****************************************************************************************!*\
    !*** ./src/app/pages/tools/actions/tcp-dump-revamp/services/tcp-dump-revamp.service.ts ***!
    \*****************************************************************************************/

  /*! exports provided: TcpDumpRevampService */

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

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


    __webpack_require__.d(__webpack_exports__, "TcpDumpRevampService", function () {
      return TcpDumpRevampService;
    });
    /* 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_store_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/core/store/store */
    "./src/app/core/store/store.ts");
    /* harmony import */


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


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

    var TcpDumpRevampService = /*#__PURE__*/function (_src_app_core_store_s) {
      function TcpDumpRevampService(sessionService) {
        var _this;

        _classCallCheck(this, TcpDumpRevampService);

        _this = _callSuper(this, TcpDumpRevampService);
        _this.sessionService = sessionService;
        return _this;
      }

      _inherits(TcpDumpRevampService, _src_app_core_store_s);

      return _createClass(TcpDumpRevampService, [{
        key: "takeTcpDump",
        value: function takeTcpDump(apiData) {
          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].api.tcpDump.takeTCP.endpoint;
          return this.controller.post(url, apiData);
        }
      }, {
        key: "viewTcpDump",
        value: function viewTcpDump(apiData) {
          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].api.tcpDump.viewTCP.endpoint;
          var basePath = this.sessionService.getBasePath(true, null, null);
          return this.controller.post(url, apiData, basePath);
        }
      }, {
        key: "deleteTcpDump",
        value: function deleteTcpDump(apiData) {
          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].api.tcpDump.deleteTCP.endpoint;
          return this.controller.post(url, apiData);
        }
      }]);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_2__["Store"].AbstractService);

    TcpDumpRevampService.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"]
      }];
    };

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

  /***/
  "./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.scss":
  /*!************************************************************************************!*\
    !*** ./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.scss ***!
    \************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "";
    /***/
  },

  /***/
  "./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.ts":
  /*!**********************************************************************************!*\
    !*** ./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.ts ***!
    \**********************************************************************************/

  /*! exports provided: TYPE_TCP_DUMP, BREADCRUMB_TAKE_TCP_DUMP, BREADCRUMB_TCP_DUMP, BREADCRUMB_HOME, BREADCRUMB_SCHEDULE_TCP_DUMP, TcpDumpRevampComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "TYPE_TCP_DUMP", function () {
      return TYPE_TCP_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_TAKE_TCP_DUMP", function () {
      return BREADCRUMB_TAKE_TCP_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_TCP_DUMP", function () {
      return BREADCRUMB_TCP_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_HOME", function () {
      return BREADCRUMB_HOME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BREADCRUMB_SCHEDULE_TCP_DUMP", function () {
      return BREADCRUMB_SCHEDULE_TCP_DUMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TcpDumpRevampComponent", function () {
      return TcpDumpRevampComponent;
    });
    /* 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_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! src/app/shared/cav-nav-bar/cav-nav-bar.service */
    "./src/app/shared/cav-nav-bar/cav-nav-bar.service.ts");
    /* harmony import */


    var _interface_tcp_dump_data_info__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ./interface/tcp-dump-data-info */
    "./src/app/pages/tools/actions/tcp-dump-revamp/interface/tcp-dump-data-info.ts");
    /* harmony import */


    var _services_tcp_dump_revamp_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ./services/tcp-dump-revamp.service */
    "./src/app/pages/tools/actions/tcp-dump-revamp/services/tcp-dump-revamp.service.ts");
    /* harmony import */


    var _common_action_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ../common-action.service */
    "./src/app/pages/tools/actions/common-action.service.ts");
    /* harmony import */


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


    var src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! src/app/shared/cav-toast/service/cav-message.service */
    "./src/app/shared/cav-toast/service/cav-message.service.ts");
    /* harmony import */


    var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! rxjs */
    "./node_modules/rxjs/_esm2015/index.js");
    /* harmony import */


    var _tier_server_info_tier_server_info_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../tier-server-info/tier-server-info.component */
    "./src/app/pages/tools/actions/tier-server-info/tier-server-info.component.ts");
    /* harmony import */


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


    var _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! ../constant/common-action-constants */
    "./src/app/pages/tools/actions/constant/common-action-constants.ts");
    /* harmony import */


    var _admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ../../admin/access-control-management/services/cav-acl-util */
    "./src/app/pages/tools/admin/access-control-management/services/cav-acl-util.ts");

    var TYPE_TCP_DUMP = "TcpDump";
    var BREADCRUMB_TAKE_TCP_DUMP = "Take TCP Dump";
    var BREADCRUMB_TCP_DUMP = "TCP Dump";
    var BREADCRUMB_HOME = "Home";
    var BREADCRUMB_SCHEDULE_TCP_DUMP = "Schedule TCP Dump";

    var TcpDumpRevampComponent = /*#__PURE__*/function () {
      function TcpDumpRevampComponent(router, cavNavBarService, commonActionServiceObj, tcpServiceObj, sessionService, messageService, commonActionService, aclProperties) {
        _classCallCheck(this, TcpDumpRevampComponent);

        this.router = router;
        this.cavNavBarService = cavNavBarService;
        this.commonActionServiceObj = commonActionServiceObj;
        this.tcpServiceObj = tcpServiceObj;
        this.sessionService = sessionService;
        this.messageService = messageService;
        this.commonActionService = commonActionService;
        this.aclProperties = aclProperties;
        this.isAddTcpDumpVisible = false;
        this.relativePathForTCPDump = "diagnosticTools/tcp-dump/tcp-dump.json";
        this.tcpInfoData = {};
        this.isWritePermission = false;
        this.confirmationDelete = false;
        this.viewLogsDialog = false; // variable to display diaglog for view progress table.

        this.relativePathForLogs = "diagnosticTools/java-flight-recorder/relativePathForLogs.json";
        this.tableEnable = false;
        this.scheduleNow = false;
        this.cavNavBarService.showNavBar = false;
      }

      return _createClass(TcpDumpRevampComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this2 = this;

          this.isWritePermission = this.sessionService.isFeatureWrite(this.aclProperties.feature, this.aclProperties.subFeature);
          this.updateIntervalSubs = Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["timer"])(this.sessionService.globalUpdateInterval, this.sessionService.globalUpdateInterval).subscribe(function (val) {
            _this2.getTcpDumpList();
          });
          this.getTcpDumpList();
          this.tcpDumpSettingData = new _interface_tcp_dump_data_info__WEBPACK_IMPORTED_MODULE_4__["TcpDumpSettings"]();
          this.tableMenuItems = [{
            label: 'Download',
            icon: 'icons8 icons8-download',
            command: function command(event) {
              _this2.downloadFile(_this2.selectedTcpDumpInfo);
            }
          }, {
            label: 'View Logs',
            icon: 'icons8 icons8-eye',
            command: function command(event) {
              _this2.viewLogs(_this2.selectedTcpDumpInfo);
            }
          }, {
            label: 'Delete',
            icon: 'icons8 icons8-trash',
            disabled: !this.isWritePermission,
            command: function command(event) {
              _this2.confirmationDelete = true;
            }
          }];
          this.durationList = [{
            label: 'Second(s)',
            value: 'sec'
          }, {
            label: 'Minute(s)',
            value: 'min'
          }];
          this.sizeList = [{
            label: 'MB',
            value: 'mb'
          }, {
            label: 'GB',
            value: 'gb'
          }];
          this.breadcrumbItems = [{
            label: BREADCRUMB_HOME,
            command: function command() {
              _this2.router.navigateByUrl('/home/dashboard');
            }
          }, {
            label: BREADCRUMB_TCP_DUMP,
            command: function command() {
              _this2.tableEnable = false;
              _this2.isAddTcpDumpVisible = false;
              _this2.commonActionServiceObj.isEdit = false;

              if (_this2.breadcrumbItems[_this2.breadcrumbItems.length - 1].label === BREADCRUMB_TAKE_TCP_DUMP || _this2.breadcrumbItems[_this2.breadcrumbItems.length - 1].label === BREADCRUMB_SCHEDULE_TCP_DUMP) {
                _this2.breadcrumbItems.splice(_this2.breadcrumbItems.length - 1, 1);
              }
            }
          }];
          this.getTcpDumpList();
        }
      }, {
        key: "ngAfterViewInit",
        value: function ngAfterViewInit() {
          var me = this;

          if (this.updateIntervalSubs) {
            return;
          }

          this.updateIntervalSubs = Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["timer"])(this.sessionService.globalUpdateInterval, this.sessionService.globalUpdateInterval).subscribe(function (val) {
            me.getTcpDumpList();
          });
        }
      }, {
        key: "tcpDumpTableEvent",
        value: function tcpDumpTableEvent(event) {
          var _this3 = this;

          if (event.cavEventExt.actionConfig.action === "menuClick") {
            this.tableMenu.toggle(event);
            this.selectedTcpDumpInfo = event.cavEventExt.row;
            this.getActionMenuItems();
          }

          if (event.cavEventExt.actionConfig.action === "takeTcpDump") {
            this.inputForCavScheduler = {
              enableFor: false,
              enableNow: true,
              oneTime: true
            };
            this.isAddTcpDumpVisible = true;

            if (this.updateIntervalSubs && !this.updateIntervalSubs.closed) {
              this.updateIntervalSubs.unsubscribe();
            }

            this.breadcrumbItems.push({
              label: BREADCRUMB_TAKE_TCP_DUMP
            });
          }

          if (event.cavEventExt.actionConfig.action === "scheduleList") {
            this.breadcrumbItems.push({
              "label": BREADCRUMB_SCHEDULE_TCP_DUMP
            });
            this.isAddTcpDumpVisible = false;
            this.tableEnable = true;
            this.scheduleObj = {
              taskType: "TCPDumpTask"
            };
          }

          if (event.cavEventExt.actionConfig.action === "refresh") {
            this.getTcpDumpList();
          }

          if (event.cavEventExt.actionConfig.action === "deleteAll") {
            var rowData = event.cavEventExt.rowData;

            if (!rowData) {
              this.messageService.add({
                severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_WARNING"],
                summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_WARNING"],
                detail: "Please select rows to delete."
              });
              return;
            }

            var idList = rowData.map(function (item) {
              return item._id.$oid;
            });
            this.commonActionServiceObj.deleteAll(idList).subscribe(function (res) {
              if (res.status === "SUCCESS") {
                _this3.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_SUCCESS"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"],
                  detail: res.msg
                });
              } else _this3.messageService.add({
                severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
                summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
                detail: res.msg
              });
            });
          }
        } // Logs can be viewed only when status is "In progress", "Stopping" or  "Error" state

      }, {
        key: "viewLogs",
        value: function viewLogs(node) {
          this.viewLogsDialog = true;
          node.logs.forEach(function (obj) {
            if (obj.level === 1) {
              obj.level = 'INFO';
            } else if (obj.level === 2) {
              obj.level = 'WARNING';
            } else if (obj.level === 3) {
              obj.level = 'ERROR';
            }
          });
          this.logsList = node.logs;
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.cavNavBarService.showNavBar = true;

          if (this.updateIntervalSubs && !this.updateIntervalSubs.closed) {
            this.updateIntervalSubs.unsubscribe();
          }

          this.updateIntervalSubs = null;
        }
      }, {
        key: "goToTcpDumpHomePage",
        value: function goToTcpDumpHomePage() {
          var _this4 = this;

          this.isAddTcpDumpVisible = false;
          this.scheduleNow = false;
          this.getTcpDumpList();
          this.updateIntervalSubs = Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["timer"])(this.sessionService.globalUpdateInterval, this.sessionService.globalUpdateInterval).subscribe(function (val) {
            _this4.getTcpDumpList();
          });
          this.breadcrumbItems = [{
            label: BREADCRUMB_HOME,
            command: function command() {
              _this4.router.navigateByUrl('/home/dashboard');
            }
          }, {
            label: BREADCRUMB_TCP_DUMP,
            command: function command(event) {
              _this4.updateIntervalSubs = Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["timer"])(_this4.sessionService.globalUpdateInterval, _this4.sessionService.globalUpdateInterval).subscribe(function (val) {
                _this4.getTcpDumpList();
              });
              _this4.isAddTcpDumpVisible = true;
              _this4.commonActionServiceObj.isEdit = false;

              if (_this4.breadcrumbItems[_this4.breadcrumbItems.length - 1].label === BREADCRUMB_TAKE_TCP_DUMP || _this4.breadcrumbItems[_this4.breadcrumbItems.length - 1].label === BREADCRUMB_SCHEDULE_TCP_DUMP) {
                _this4.breadcrumbItems.splice(_this4.breadcrumbItems.length - 1, 1);
              }
            }
          }];
        }
      }, {
        key: "cavScheduleEventHandler",
        value: function cavScheduleEventHandler(event) {
          this.commonActionServiceObj.loading = false;

          if (event.code === 200) {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_SUCCESS"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"],
              detail: event.msg
            });
            this.goToTcpDumpHomePage();
          } else {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
              detail: event.msg
            });
          }
        } // Method to route back to available TCP dump table.

      }, {
        key: "cancelTakeTcpDump",
        value: function cancelTakeTcpDump() {
          this.isAddTcpDumpVisible = false;
          this.commonActionServiceObj.isEdit = false;
          this.breadcrumbItems.pop();
          this.reset();
        }
      }, {
        key: "takeTCPDump",
        value: function takeTCPDump() {
          var _this5 = this;

          var _a;

          var validateMsg = this.commonActionServiceObj.validateTarget("TCPDump");

          if (validateMsg) {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
              detail: validateMsg
            });
            return;
          }

          this.commonActionServiceObj.loading = true;
          this.tcpInfoData.tier = this.commonActionServiceObj.selectedTierVal;
          var serverIp = this.commonActionServiceObj.selectedServerVal['uiDName'].substring(this.commonActionServiceObj.selectedServerVal['uiDName'].indexOf('(') + 1, this.commonActionServiceObj.selectedServerVal['uiDName'].indexOf(')'));
          var serverDisplayName = this.commonActionServiceObj.selectedServerVal['uiDName'].substring(0, this.commonActionServiceObj.selectedServerVal['uiDName'].indexOf('('));
          this.tcpInfoData.tr = this.sessionService.session.testRun.id;
          this.tcpInfoData.serverip = serverIp;
          this.tcpInfoData.serverN = serverDisplayName;
          this.tcpInfoData.user = this.sessionService.session.cctx.u;
          this.tcpInfoData.type = TYPE_TCP_DUMP;
          this.tcpInfoData.masterTR = this.sessionService.session.testRun.id;
          this.tcpInfoData.machineType = this.commonActionServiceObj.selectedServerVal['machineType'];
          if (this.tcpDumpSettingData.timeUnit === "min") this.tcpDumpSettingData.maxDuration = this.tcpDumpSettingData.maxDuration * 60;
          if (this.tcpDumpSettingData.sizeUnit === "gb") this.tcpDumpSettingData.memorySize = this.tcpDumpSettingData.memorySize * 1000;
          this.tcpInfoData.tcpSettings = this.tcpDumpSettingData;
          var selected = this.commonActionServiceObj.selectedInterfaceVal;
          this.tcpInfoData.interfaceName = typeof selected === 'string' ? selected.trim() : (_a = selected === null || selected === void 0 ? void 0 : selected.value) === null || _a === void 0 ? void 0 : _a.trim();

          if (this.sessionService.preSession.multiDc && this.scheduleNow == true) {
            this.tcpInfoData.triggeredBy = "Now";
            this.tcpInfoData['subject'] = this.commonActionServiceObj.getPostPayloadSubject(this.tcpInfoData.tier);
            this.tcpInfoData.tr = this.commonActionServiceObj.selectedServerVal['clusters'][0]['tr'];
            var nodeName = this.commonActionServiceObj.selectedServerVal['clusters'][0]['cname'];
            this.tcpInfoData['nodeName'] = nodeName;
            var url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + "/tomcat/" + nodeName + '/DashboardServer/v2' + src_environments_environment__WEBPACK_IMPORTED_MODULE_11__["environment"].api.tcpDump.takeTCP.endpoint;
            this.commonActionServiceObj.getDataUsingPost(url, this.tcpInfoData).subscribe(function (res) {
              _this5.handleTakeResponse(res);
            }, function (err) {
              _this5.commonActionServiceObj.loading = false;

              _this5.messageService.add({
                severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
                summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
                detail: "Your request has timed out. Please try again later."
              });
            });
          } else if (this.scheduleNow == true) {
            this.tcpInfoData.triggeredBy = "Now";
            this.tcpServiceObj.takeTcpDump(this.tcpInfoData).subscribe(function (res) {
              _this5.handleTakeResponse(res);
            });
          } else if (this.scheduleNow == false) {
            this.tcpInfoData.triggeredBy = "Scheduled";
            this.tcpInfoData['subject'] = this.commonActionService.getSubject(this.tcpInfoData.tier, this.tcpInfoData.serverN, this.tcpInfoData.interfaceName);

            if (this.sessionService.preSession.multiDc) {
              this.tcpInfoData.tr = this.commonActionService.selectedServerVal['clusters'][0]['tr'];
              var _nodeName = this.commonActionService.selectedServerVal['clusters'][0]['cname'];
              this.tcpInfoData['nodeName'] = _nodeName;
            }

            var obj = {
              "taskType": "TCPDumpTask",
              "taskReq": this.tcpInfoData,
              id: this.taskId
            };
            var cavScheduleObj = {
              task: [obj],
              inputType: this.commonActionService.isEdit ? "UPDATE" : "ADD"
            };
            this.inputForCavScheduler = cavScheduleObj;
            this.commonActionServiceObj.loading = false;
          }
        }
      }, {
        key: "handleTakeResponse",
        value: function handleTakeResponse(res) {
          this.commonActionServiceObj.loading = false;

          if (res['status'] == "SUCCESS") {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_SUCCESS"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"],
              detail: res['msg']
            });
            this.goToTcpDumpHomePage();
          } else if (res['status'] == "WARNING") {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_WARNING"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_WARNING"],
              detail: res['msg']
            });
          } else if (res['status'] == "FAIL") {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
              detail: res['msg']
            });
          } else {
            this.goToTcpDumpHomePage();
          }
        } //Method called to delete tcp dump.

      }, {
        key: "deleteTcpDump",
        value: function deleteTcpDump() {
          var _this6 = this;

          this.commonActionServiceObj.loading = true;
          this.tcpInfoData.iD = this.selectedTcpDumpInfo['_id'].$oid;
          this.tcpInfoData.tr = this.sessionService.session.testRun.id;
          this.tcpInfoData.cavissonServerPath = this.selectedTcpDumpInfo['cavissonServerPath'];
          this.tcpInfoData.fileName = this.selectedTcpDumpInfo['fileName'];
          this.commonActionServiceObj.loading = false;

          if (this.sessionService.preSession.multiDc) {
            var url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + "/tomcat/" + this.selectedTcpDumpInfo['nodeName'] + '/DashboardServer/v2' + src_environments_environment__WEBPACK_IMPORTED_MODULE_11__["environment"].api.threadDump.deleteTD.endpoint;
            this.commonActionServiceObj.getDataUsingPost(url, this.tcpInfoData).subscribe(function (res) {
              if (res['status'] == _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"]) {
                _this6.confirmationDelete = false;

                _this6.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_SUCCESS"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"],
                  detail: res['msg']
                });

                _this6.getTcpDumpList(); // to go to home page of thread dump UI and get fresh available thread dump list.

              } else if (res['status'] == _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_WARNING"]) {
                _this6.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_WARNING"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_WARNING"],
                  detail: res['msg']
                });
              } else if (res['status'] == _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_FAIL"]) {
                _this6.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
                  detail: res['msg']
                });
              }
            });
          } else {
            this.tcpServiceObj.deleteTcpDump(this.tcpInfoData).subscribe(function (res) {
              if (res['status'] == _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"]) {
                _this6.confirmationDelete = false;

                _this6.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_SUCCESS"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_SUCCESS"],
                  detail: res['msg']
                });

                _this6.getTcpDumpList(); // to go to home page of thread dump UI and get fresh available thread dump list.

              } else if (res['status'] == _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_WARNING"]) {
                _this6.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_WARNING"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_WARNING"],
                  detail: res['msg']
                });
              } else if (res['status'] == _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_FAIL"]) {
                _this6.messageService.add({
                  severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
                  summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
                  detail: res['msg']
                });
              }
            });
          }
        } // Method called to get Heap dump available list.

      }, {
        key: "getTcpDumpList",
        value: function getTcpDumpList() {
          var _this7 = this;

          this.commonActionServiceObj.loading = true;
          this.tcpInfoData.tr = this.sessionService.session.testRun.id;
          this.tcpInfoData.masterTR = this.sessionService.session.testRun.id;
          this.tcpServiceObj.viewTcpDump(this.tcpInfoData).subscribe(function (res) {
            _this7.commonActionServiceObj.loading = false;
            _this7.tcpDumpTableData = _this7.commonActionServiceObj.sortTimestamp(res);
          });
        } //To download file from cavisson server path to Local machine.

      }, {
        key: "downloadFile",
        value: function downloadFile(node) {
          if (!node.cavissonServerPath) {
            this.messageService.add({
              severity: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SEVERITY_ERROR"],
              summary: _constant_common_action_constants__WEBPACK_IMPORTED_MODULE_12__["SUMMARY_ERROR"],
              detail: "No file available to download"
            });
            return;
          }

          var filepath = node.cavissonServerPath.substring(node.cavissonServerPath.indexOf("logs"), node.cavissonServerPath.length);
          var url;
          if (this.sessionService.preSession.multiDc) url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + "/tomcat/" + node.nodeName + "/" + filepath + "/" + node.fileName;else url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + '/' + filepath + "/" + node.fileName;
          this.downloadURI(url, node.fileName);
        }
      }, {
        key: "downloadURI",
        value: function downloadURI(uri, name) {
          var link = document.createElement("a");
          link.download = name;
          link.href = uri;
          var clickEvent = document.createEvent("MouseEvent");
          clickEvent.initEvent("click", true, true);
          link.dispatchEvent(clickEvent);
        }
      }, {
        key: "handleScheduleNow",
        value: function handleScheduleNow(event) {
          var me = this;
          me.scheduleNow = event;
        }
      }, {
        key: "successEventHandling",
        value: function successEventHandling() {
          var me = this;
          this.commonActionServiceObj.loading = false;
          this.getTcpDumpList();
        }
        /**
        * Method to get action items -  Download, Delete, View Logs
        * Non admin users can only view logs and download file in case status is completed.
        * Admin (admin, readwriteall) permission users can perform all actions based on status.
        */

      }, {
        key: "getActionMenuItems",
        value: function getActionMenuItems() {
          if (this.selectedTcpDumpInfo['mStatus'] == 'In Progress') {
            this.tableMenuItemsRef = this.tableMenuItems.filter(function (item) {
              return item.label !== 'Download' && item.label !== 'Delete'; // menuitem - View Logs
            });
          }

          if (this.selectedTcpDumpInfo['mStatus'] == 'Error') {
            this.tableMenuItemsRef = this.tableMenuItems.filter(function (item) {
              return item.label !== 'Download'; // menuitem - View Logs, Delete
            });
          }

          if (this.selectedTcpDumpInfo['mStatus'] == 'Completed') {
            this.tableMenuItemsRef = this.tableMenuItems; // for completed menuitem - View Logs, Download, Delete
          }
        }
      }, {
        key: "reset",
        value: function reset() {
          this.scheduleNow = false;
          this.tierChild.clearField();
          this.tcpDumpSettingData = new _interface_tcp_dump_data_info__WEBPACK_IMPORTED_MODULE_4__["TcpDumpSettings"]();
        }
      }, {
        key: "editRow",
        value: function editRow(data) {
          var me = this;
          me.commonActionServiceObj.isEdit = true;
          me.isAddTcpDumpVisible = true;
          me.tableEnable = false;
          me.taskId = data.task[0].id;
          me.tcpDumpSettingData.maxDuration = data.task.at(0).taskReq.tcpSettings.maxDuration;
          me.tcpDumpSettingData.memorySize = data.task.at(0).taskReq.tcpSettings.memorySize;
          me.tcpDumpSettingData.numPackets = data.task.at(0).taskReq.tcpSettings.numPackets;
          me.tcpDumpSettingData.port = data.task.at(0).taskReq.tcpSettings.port;
          me.tcpDumpSettingData.timeUnit = data.task.at(0).taskReq.tcpSettings.timeUnit;
          me.tcpDumpSettingData.sizeUnit = data.task.at(0).taskReq.tcpSettings.sizeUnit;
          me.tierServerVal = {
            tier: data.task[0].taskReq.tier,
            server: data.task[0].taskReq.serverN,
            "interface": data.task[0].taskReq.interfaceName
          };
          me.inputForCavScheduler = {
            schedule: data.schedule,
            enableFor: false,
            enableNow: false,
            preview: true
          };
        }
      }, {
        key: "outputEventHandler",
        value: function outputEventHandler(cavScheduleTask) {
          var me = this;

          if (cavScheduleTask) {
            me.editRow(cavScheduleTask);
          } else {
            me.addActionForTcpDump();
          }
        }
      }, {
        key: "addActionForTcpDump",
        value: function addActionForTcpDump() {
          this.inputForCavScheduler = {
            enableFor: false,
            enableNow: true,
            oneTime: true
          };
          this.isAddTcpDumpVisible = true;
          this.tableEnable = false;
          this.commonActionServiceObj.isEdit = false;
          if (this.breadcrumbItems.length > 2) this.breadcrumbItems.pop();
          this.breadcrumbItems.push({
            label: BREADCRUMB_TAKE_TCP_DUMP
          });
        }
      }]);
    }();

    TcpDumpRevampComponent.ctorParameters = function () {
      return [{
        type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
      }, {
        type: src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_3__["CavNavBarService"]
      }, {
        type: _common_action_service__WEBPACK_IMPORTED_MODULE_6__["CommonActionService"]
      }, {
        type: _services_tcp_dump_revamp_service__WEBPACK_IMPORTED_MODULE_5__["TcpDumpRevampService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_7__["SessionService"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_8__["CavMessageService"]
      }, {
        type: _common_action_service__WEBPACK_IMPORTED_MODULE_6__["CommonActionService"]
      }, {
        type: undefined,
        decorators: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
          args: [_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_13__["ACL_PROPS"]]
        }]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('tableMenuPrime')], TcpDumpRevampComponent.prototype, "tableMenu", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_tier_server_info_tier_server_info_component__WEBPACK_IMPORTED_MODULE_10__["TierServerInfoComponent"])], TcpDumpRevampComponent.prototype, "tierChild", void 0);
    TcpDumpRevampComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-tcp-dump-revamp',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./tcp-dump-revamp.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.html"))["default"],
      providers: [{
        provide: _admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_13__["ACL_PROPS"],
        useFactory: _admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_13__["getDiagnosticToolsTCPDumpACLProps"]
      }],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./tcp-dump-revamp.component.scss */
      "./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.scss"))["default"]]
    }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__param"])(7, Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"])()), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__param"])(7, Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"])(_admin_access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_13__["ACL_PROPS"]))], TcpDumpRevampComponent);
    /***/
  },

  /***/
  "./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.module.ts":
  /*!*******************************************************************************!*\
    !*** ./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.module.ts ***!
    \*******************************************************************************/

  /*! exports provided: TcpDumpRevampModule */

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

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


    __webpack_require__.d(__webpack_exports__, "TcpDumpRevampModule", function () {
      return TcpDumpRevampModule;
    });
    /* 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 primeng__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


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


    var src_app_shared_app_message_app_message_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! src/app/shared/app-message/app-message.module */
    "./src/app/shared/app-message/app-message.module.ts");
    /* harmony import */


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


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __webpack_require__(
    /*! src/app/shared/help/help.module */
    "./src/app/shared/help/help.module.ts");
    /* harmony import */


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


    var src_app_shared_ip_summary_open_box_ip_summary_open_box_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! src/app/shared/ip-summary-open-box/ip-summary-open-box.module */
    "./src/app/shared/ip-summary-open-box/ip-summary-open-box.module.ts");
    /* harmony import */


    var src_app_shared_long_value_long_value_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! src/app/shared/long-value/long-value.module */
    "./src/app/shared/long-value/long-value.module.ts");
    /* harmony import */


    var highcharts_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! highcharts-angular */
    "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
    /* harmony import */


    var _tier_server_info_tier_server_info_module__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ../tier-server-info/tier-server-info.module */
    "./src/app/pages/tools/actions/tier-server-info/tier-server-info.module.ts");
    /* harmony import */


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


    var _tcp_dump_revamp_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! ./tcp-dump-revamp.component */
    "./src/app/pages/tools/actions/tcp-dump-revamp/tcp-dump-revamp.component.ts");
    /* harmony import */


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


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


    var src_app_shared_cav_scheduler_table_cav_scheduler_table_module__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! src/app/shared/cav-scheduler-table/cav-scheduler-table.module */
    "./src/app/shared/cav-scheduler-table/cav-scheduler-table.module.ts");

    var routes = [{
      path: '',
      component: _tcp_dump_revamp_component__WEBPACK_IMPORTED_MODULE_15__["TcpDumpRevampComponent"]
    }];
    var imports = [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["CardModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["InputTextModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ProgressSpinnerModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["SpinnerModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["BreadcrumbModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["InputSwitchModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["FieldsetModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["TableModule"], src_app_shared_app_message_app_message_module__WEBPACK_IMPORTED_MODULE_5__["AppMessageModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ToastModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ReactiveFormsModule"], src_app_shared_long_value_long_value_module__WEBPACK_IMPORTED_MODULE_11__["LongValueModule"], src_app_shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_9__["PipeModule"], src_app_shared_ip_summary_open_box_ip_summary_open_box_module__WEBPACK_IMPORTED_MODULE_10__["IpSummaryOpenBoxModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["TabViewModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["FieldsetModule"], highcharts_angular__WEBPACK_IMPORTED_MODULE_12__["HighchartsChartModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["TooltipModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_8__["HelpModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ProgressBarModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_7__["CavTableModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__["MatMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["SelectButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ToggleButtonModule"], _tier_server_info_tier_server_info_module__WEBPACK_IMPORTED_MODULE_13__["TierServerInfoModule"], src_app_shared_cav_toolbar_cav_toolbar_module__WEBPACK_IMPORTED_MODULE_16__["CavToolbarModule"], src_app_shared_cav_scheduler_cav_scheduler_module__WEBPACK_IMPORTED_MODULE_17__["CavSchedulerModule"], src_app_shared_cav_scheduler_table_cav_scheduler_table_module__WEBPACK_IMPORTED_MODULE_18__["cavSchedulerTableModule"]];

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

    TcpDumpRevampModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_tcp_dump_revamp_component__WEBPACK_IMPORTED_MODULE_15__["TcpDumpRevampComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], imports, _angular_router__WEBPACK_IMPORTED_MODULE_14__["RouterModule"].forChild(routes)],
      exports: [_tcp_dump_revamp_component__WEBPACK_IMPORTED_MODULE_15__["TcpDumpRevampComponent"]]
    })], TcpDumpRevampModule);
    /***/
  }
}]);