function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }

function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }

function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }

function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }

function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }

function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }

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([["tools-admin-retention-policy-retention-policy-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.html":
  /*!**********************************************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.html ***!
    \**********************************************************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"p-grid\">\r\n    <div class=\"p-grid p-col-12\">\r\n        <div class=\"p-col-7\" style=\"padding-left:1px\">\r\n            <span>Current Directory</span>\r\n            <input #search class=\"ml-5\" type=\"text\" [(ngModel)]=\"addPath\" pInputText value={{fileAndFolderPath}} size=\"50\"\r\n            (keyup)=\"searchByName($event, search.value)\" (keypress)=\"omit_enter_key($event)\">\r\n        </div>\r\n        <div class=\"p-col-5\">\r\n            <button pButton type=\"button\" label=\"Back\" class=\"ui-button-rounded ui-button-secondary mr-5\" (click)=\"goBack($event)\"></button>\r\n            <button pButton type=\"button\" label=\"Apply\" class=\"ui-button-rounded\" (click)=\"setSelectedFiles()\" ></button>\r\n        </div>\r\n        <!-- <div class=ui-g-2>\r\n            <button mat-button class=\"btn-upload\" (click)=\"uploadFiles()\">Upload</button>\r\n        </div> -->\r\n    </div>\r\n    <div class=\"p-grid\">\r\n        <div class=\"p-5\">\r\n            <div class=\"ui-inputgroup w-100-p\">\r\n                <span class=\"ui-inputgroup-addon\">\r\n                <i class=\"ui-tree-filter-icon pi pi-search\" style=\"margin-right: 4px\"></i>\r\n                </span>\r\n                <input type=\"text\" id=\"searchFile\" #searchInput pInputText placeholder=\"Search Directories\" style=\"margin-left: -4px;\" class=\"w-100-p\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\">\r\n            </div>\r\n        </div>\r\n        <!-- <div class=\"ui-widget-header\" style=\"padding:4px 10px;border-bottom: 0 none\">\r\n            <i class=\"fa fa-search\" style=\"margin:4px 4px 0 0\"></i>\r\n            <input type=\"text\" pInputText size=\"50\" placeholder=\"Search...\" (keyup)=\"globalFilter()\"\r\n                [(ngModel)]=\"searchText\">\r\n        </div> -->\r\n    </div>\r\n    <div class=\"p-grid\">\r\n\r\n        <p-table #dt [value]=\"filesData\" [scrollable]=\"true\" [resizableColumns]=\"true\" scrollHeight=\"300px\" resizableColumns=\"true\"  [rows]=\"10\" [paginator]=\"true\" [pageLinks]=\"3\" [rowsPerPageOptions]=\"[5,10,20]\"\r\n         (sortFunction)=\"myfilesDataSort($event,filesData)\" [customSort]=\"true\"\r\n         [globalFilterFields]=\"['name', 'modified', 'mime', 'size']\">\r\n            <ng-template pTemplate=\"header\">\r\n                <tr>\r\n                    <th pResizableColumn style=\"width:40%;text-overflow:ellipsis;white-space: nowrap\" pSortableColumn=\"name\" >Name <p-sortIcon field=\"name\"></p-sortIcon></th>\r\n                    <th pResizableColumn style=\"width:30%;\" pSortableColumn=\"modified\">Modified-Date & Time<p-sortIcon field=\"modified\"></p-sortIcon></th>\r\n                    <th pResizableColumn style=\"width:15%\" pSortableColumn=\"mime\">Type <p-sortIcon field=\"mime\"></p-sortIcon></th>\r\n                    <th pResizableColumn style=\"width:16%;\" pSortableColumn=\"size\">Size(KB) <p-sortIcon field=\"size\"></p-sortIcon></th>\r\n                </tr>\r\n            </ng-template>\r\n            <ng-template pTemplate=\"body\"  let-row let-ri=\"rowIndex\">\r\n                <tr>\r\n                    <td style=\"width:40%;text-overflow:ellipsis;white-space:nowrap\">\r\n                        <i *ngIf=\"row.empty == 'none'\" (click)=\"goBack($event)\" class=\"las-arrow-circle-left-solid\" title=\"Back\" ></i>\r\n                        <span *ngIf=\"row.isDir\" (dblclick)=\"onItemClick(ri,$event)\">\r\n                            <i class=\"icons8 icons8-folder yellow\"></i> &nbsp;\r\n                            <span title=\"{{row['name']}}\">{{row['name']}}</span>\r\n                        </span>\r\n                        <span *ngIf=\"row.isFile\" (dblclick)=\"addFiles(ri, $event)\">\r\n                            <i class=\"icons8 icons8-file blue\"></i> &nbsp;&nbsp;<span\r\n                            title=\"{{row['name']}}\">{{row['name']}}</span>\r\n                        </span>\r\n                    </td>\r\n                    <td style=\"width:30%;\">{{ row['modified'] }}</td>\r\n                    <td style=\"width:15%;\">{{ row['mime'] }}</td>\r\n                    <td style=\"width:16%;\"><span title=\"{{row['size'] | number}}\">{{row['size'] | number}}</span></td>\r\n                </tr>\r\n            </ng-template>\r\n            <ng-template pTemplate=\"emptymessage\" let-columns>\r\n              <tr>\r\n                <td class=\"text-center\" [attr.colspan]=\"6\">\r\n                  <span *ngIf=\"isLoad\"><i class=\"icons8 icons8-spinner spin\"></i></span>\r\n                  <span *ngIf=\"!isLoad && (filesData == undefined || filesData.length == 0)\">No records found</span>\r\n                </td>\r\n              </tr>\r\n            </ng-template>\r\n          </p-table>\r\n        \r\n    </div>\r\n</div>\r\n\r\n<div class=\"uploadFiles\" *ngIf=\"toUploadFile\">\r\n    <p-dialog class=\"uploadFileDialog\" header=\"Upload Files\" [(visible)]=\"toUploadFile\">\r\n        <p-fileUpload name=\"myfile[]\" class=\"configBrowser\" #fileUpload [url]=\"uploadUrl\" multiple=\"multiple\"\r\n            (onUpload)=\"onUpload($event)\" (onSelect)=\"onSelect($event,fileUpload)\" [showUploadButton]=\"uploadFile\"\r\n            (onError)=\"showErrorMessage()\"></p-fileUpload>\r\n    </p-dialog>\r\n</div>";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.html":
  /*!****************************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.html ***!
    \****************************************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"main-container relative\">\r\n    <p-progressBar *ngIf=\"getRetentionData\" [style]=\"{'height': '4px'}\" mode=\"indeterminate\"></p-progressBar>\r\n    <p-toolbar class=\"ui-secondary-toolbar\">\r\n        <div class=\"p-grid p-justify-between p-align-center pl-5 pr-5\">\r\n            <a routerLink=\"/home\">\r\n                <i class=\"icons8 icons8-left toolbar-icon-color\"></i>\r\n            </a>\r\n            <div class=\"p-col ui-toolbar-text\">\r\n                Data Retention & Cleanup\r\n            </div>\r\n        </div>\r\n    </p-toolbar>\r\n    <div class=\"p-grid\">\r\n        <div class=\"p-col-12 no-padding\">\r\n            <div class=\"breadcrumbs\">\r\n                <p-breadcrumb [model]=\"breadcrumb\"></p-breadcrumb>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class=\"retentionNote\"><b>Last Cleanup Time :</b> {{startTime}} to {{endTime}}</div>\r\n    <p-tabView class=\"custom-tab\" [activeIndex]=\"this.tabIndex\" (onChange)=\"tabChange($event)\">\r\n        <p-tabPanel header=\"Global Configuration\">\r\n            <div class=\"p-10\">\r\n                <div class=\"p-grid p-align-center\">\r\n                    <p-inputSwitch [(ngModel)]=\"enableDisableRetentionPolicy\"></p-inputSwitch>\r\n                    <label class=\"ml-5 mr-20\">Enable Data Cleanup (Data Cleanup task runs 9 PM every day, as per the server time.) </label>\r\n\r\n                    <p-inputSwitch [(ngModel)]=\"enableDisableRecycleBin\" [disabled]=\"!enableDisableRetentionPolicy\" (onChange)=\"getDefaultDateRecy()\"></p-inputSwitch>\r\n                    <label class=\"ml-5 mr-20\">Enable Recycle Bin and keep deleted Test Runs in recycle bin for</label>\r\n\r\n                    <div class=\"p-grid p-align-center\">\r\n                        <label class=\"mr-10\">Time</label>\r\n                        <p-dropdown class=\"my-select\"\r\n                            [disabled]=\"!enableDisableRetentionPolicy || !enableDisableRecycleBin\"\r\n                            [style]=\"{'min-width':'172px'}\" [options]=\"recyclebinTimeOptions\"\r\n                            [(ngModel)]=\"recyclebinTime\">\r\n                        </p-dropdown>\r\n                    </div>\r\n                </div>\r\n                <div class=\"p-grid p-align-center mt-15 mb-10\">\r\n                    <label class=\"mr-18\">Disable Entire Data Cleanup</label>\r\n                    <div class=\"mr-30 cav-mt-2\">\r\n                        <p-checkbox [(ngModel)]=\"checked\"[binary]=\"true\" [disabled]=\"!enableDisableRetentionPolicy\"></p-checkbox>\r\n                        Apply Date Range\r\n                    </div>\r\n                    <div class=\"mr-10 p-grid p-align-center\" *ngIf=\"!checked\">\r\n                        <label class=\"mr-10\">For Date</label>\r\n                        <p-calendar class=\"calender\" [disabled]=\"!enableDisableRetentionPolicy\"\r\n                            [(ngModel)]=\"startDate\" title=\"Start Date\" [showIcon]=\"true\" onkeypress=\"return /[0-9/]/i.test(event.key)\"\r\n                            icon=\"icons8 icons8-calendar\" styleClass=\"p-grid\" inputStyleClass=\"width-130\" placeholder='Select Date'\r\n                            mode='portrait' format=\"YYYY/MM/DD\">\r\n                        </p-calendar>\r\n                    </div>\r\n                    <div class=\"mr-10\" style=\"display: contents;\" *ngIf=\"checked\">\r\n                        <span class=\"mr-5\"> From </span>\r\n                        <p-calendar class=\"calender\" [(ngModel)]=\"startDate\" title=\"Start Date\" onkeypress=\"return /[0-9/]/i.test(event.key)\"\r\n                            [disabled]=\"!enableDisableRetentionPolicy\" [showIcon]=\"true\" icon=\"icons8 icons8-calendar\"\r\n                            styleClass=\"p-grid\" inputStyleClass=\"width-130\" placeholder='Start Date' mode='portrait' format=\"YYYY/MM/DD\">\r\n                        </p-calendar>\r\n                    </div>\r\n                    <div class=\"mr-10 ml-10\" style=\"display: flex;\" *ngIf=\"checked\">\r\n                        <span class=\"mt-7 mr-5\"> To </span>\r\n                        <p-calendar class=\"calender\" [(ngModel)]=\"endDate\" title=\"End Date\" onkeypress=\"return /[0-9/]/i.test(event.key)\"\r\n                            [disabled]=\"!enableDisableRetentionPolicy\" placeholder='End Date' [showIcon]=\"true\"\r\n                            icon=\"icons8 icons8-calendar\" inputStyleClass=\"width-130\" styleClass=\"p-grid\" mode='portrait' format=\"YYYY/MM/DD\">\r\n                        </p-calendar>\r\n                    </div>\r\n                    <div class=\"mr-10\">\r\n                        <button class=\"ui-button-primary\" pButton type=\"button\" icon=\"icons8 icons8-plus-math\" [disabled]=\"!enableDisableRetentionPolicy\" (click)=\"callOnAddButton('negativeDate')\" title=\"Add\"></button>\r\n                    </div>\r\n                    <div class=\"cav-justify-content-end\"><b>Note : </b> Data will be cleaned up in the next scheduled run.</div>\r\n                </div>\r\n                <div class=\"p-grid p-align-center mb-10\"  *ngIf=\"chipsForNegativeDate.length !=0\">\r\n                    <p-chips [(ngModel)]=\"chipsForNegativeDate\" onkeypress=\"return false\" [disabled]=\"!enableDisableRetentionPolicy\" separator=\",\"\r\n                        class=\"input-chips w-100-p\" title=\"{{chipsForNegativeDate}}\">\r\n                    </p-chips>\r\n                </div>\r\n                <div class=\"mb-10\">\r\n                    <p-fieldset legend=\"Retain Data\" [toggleable]=\"true\" class=\"custom-fieldset\">\r\n                        <div class=\"p-grid p-align-center my-10 p-justify-between\">\r\n                            <div class=\"p-align-center p-grid mr-12 ml-2\">\r\n                                <div class=\"mr-20\">\r\n                                    <label>Select Component</label>\r\n                                    <button pButton icon=\"icons8 icons8-info\" class=\"btn-icon\" pTooltip=\"Data of specified components for a specified time will be retained\"></button>\r\n                                </div>\r\n                                <p-dropdown class=\"my-select mr-12 sync-DrpDwn\" [options]=\"cols2\"\r\n                                    [(ngModel)]=\"componentModel\" [disabled]=\"!isUpdate || !enableDisableRetentionPolicy\"\r\n                                    [style]=\"{'width':'155px'}\" appendTo=\"body\"\r\n                                    ></p-dropdown>\r\n                                <div class=\"mr-30 cav-mt-2\">\r\n                                    <p-checkbox [(ngModel)]=\"checked1\"[binary]=\"true\" [disabled]=\"!isUpdate || !enableDisableRetentionPolicy\"></p-checkbox>\r\n                                    Apply Date Range\r\n                                </div>\r\n                                <div class=\"mr-12 p-grid p-align-center\" *ngIf=\"!checked1\">\r\n                                    <label class=\"mr-12\">Start Date</label>\r\n                                    <p-calendar class=\"calender\" [disabled]=\"!enableDisableRetentionPolicy\"\r\n                                        [(ngModel)]=\"compStartDate\" title=\"Start Date\" [showIcon]=\"true\" onkeypress=\"return /[0-9/]/i.test(event.key)\"\r\n                                        icon=\"icons8 icons8-calendar\" styleClass=\"p-grid\" inputStyleClass=\"width-130\" placeholder='Start Date'\r\n                                        mode='portrait' format=\"YYYY/MM/DD\"></p-calendar>\r\n                                </div>\r\n                                <label class=\"mr-12\" *ngIf=\"checked1\">Start Date</label>\r\n                                <div *ngIf=\"checked1\" class=\"mr-12\">\r\n                                    <p-calendar class=\"calender\" [(ngModel)]=\"compStartDateBoth\" [showIcon]=\"true\" onkeypress=\"return /[0-9/]/i.test(event.key)\"\r\n                                        title=\"Start Date\" [disabled]=\"!enableDisableRetentionPolicy\"\r\n                                        icon=\"icons8 icons8-calendar\" styleClass=\"p-grid\" placeholder='Start Date'\r\n                                        mode='portrait' format=\"YYYY/MM/DD\" inputStyleClass=\"width-130\"></p-calendar>\r\n                                </div>\r\n                                <label class=\"mr-12\" *ngIf=\"checked1\">End Date</label>\r\n                                <div *ngIf=\"checked1\" class=\"mr-10\">\r\n                                    <p-calendar class=\"calender\" [(ngModel)]=\"compEndDate\" title=\"End Date\" onkeypress=\"return /[0-9/]/i.test(event.key)\"\r\n                                        [disabled]=\"!enableDisableRetentionPolicy\" [showIcon]=\"true\"\r\n                                        icon=\"icons8 icons8-calendar\" inputStyleClass=\"width-130\" styleClass=\"p-grid\" placeholder='End Date'\r\n                                        mode='portrait' format=\"YYYY/MM/DD\"></p-calendar>\r\n                                </div>\r\n                                <div style=\"align-items:flex-end\">\r\n                                    <button class=\"ui-button-primary\" pButton type=\"button\" icon=\"icons8 icons8-plus-math\" [disabled]=\"!enableDisableRetentionPolicy\" (click)=\"addToChip()\" title=\"Add\"></button>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"mb-10\"  *ngIf=\"cleanUpdates.length !=0\">\r\n                            <p-chips [(ngModel)]=\"cleanUpdates\" onkeypress=\"return false\" title=\"{{cleanUpdates}}\" value=\"\"\r\n                                [disabled]=\"!enableDisableRetentionPolicy\" separator=\",\" class=\"input-chips w-100-p\"></p-chips>\r\n                        </div>\r\n                        <div class=\"p-grid p-justify-end mb-10\">\r\n                            <button *ngIf=\"isUpdate\" class=\"ui-button-primary\" pButton type=\"button\" icon=\"icons8 icons8-plus-math\" label=\"Add\" (click)=\"addComponent()\" title=\"Add Component\" [disabled]=\"cleanUpdates.length == 0\"></button>\r\n                            <div *ngIf=\"!isUpdate\" class=\"p-grid p-align-center\">\r\n                                    <button class=\"ui-button-secondary mx-3\" pButton type=\"button\" label=\"Cancel\" (click)=\"cancelUpdate()\" title=\"Cancel\"></button>\r\n                                    <button class=\"ui-button-primary\" pButton type=\"button\" label=\"Update\"\r\n                                        (click)=\"updateComp()\" [disabled]=\"cleanUpdates.length == 0\" title=\"Update\">\r\n                                    </button>\r\n                            </div>\r\n                        </div>\r\n                        <cav-table [value]=\"ComponentData\" [headerRelativePath]=\"relativePath\" \r\n                            (clickButtonEvent)=\"clickButtonEvent($event)\"></cav-table>\r\n                    </p-fieldset>\r\n                </div>\r\n                <div class=\"mb-10\">\r\n                    <p-fieldset legend=\"Path Cleanup\" [toggleable]=\"true\" class=\"custom-fieldset\">\r\n                        <div class=\"py-10\">\r\n                            <div class=\"p-grid p-justify-between p-align-center mb-10\">\r\n                                <div class=\"p-grid p-align-center\">\r\n                                    <div class=\"mr-10\">\r\n                                        <label>Clean Path</label>\r\n                                        <button pButton icon=\"icons8 icons8-info\" class=\"btn-icon\" pTooltip=\"Mention the path for which clean up is to be done\"></button>\r\n                                    </div>\r\n                                    <div class=\"custom-upload\" style=\"width: 300px;\">\r\n                                        <input type=\"text\" pInputText [(ngModel)]=\"text1\"\r\n                                            [disabled]=\"!enableDisableRetentionPolicy || iseditComp\" title=\"{{text1}}\">\r\n                                        <div *ngIf=\"!isSecurityEnabled\" class=\"upload-btn-wrapper ml-10\">\r\n                                            <button class=\"ui-button-primary mx-1\" pButton type=\"button\" label=\"Browse\" (click)=\"browserMethod()\" [disabled]=\"!enableDisableRetentionPolicy || iseditComp\"\r\n                                                title=\"Browse\"></button>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"mr-10 ml-30\">\r\n                                        <label>Time</label>\r\n                                        <button pButton icon=\"icons8 icons8-info\" class=\"btn-icon\" pTooltip=\"Data that are older than the specified time will be cleaned up\"></button>\r\n                                    </div>\r\n                                    <div class=\"mr-10\">\r\n                                        <p-dropdown [options]=\"timeOptions\" [(ngModel)]=\"timeModel\" placeholder=\"Select Time\"\r\n                                            [style]=\"{'min-width':'130px'}\"\r\n                                            [disabled]=\"!enableDisableRetentionPolicy\">\r\n                                        </p-dropdown>\r\n                                    </div>\r\n                                    <div class=\"mr-10\">\r\n                                        <input type=\"number\" min=\"1\" [(ngModel)]=\"timeForCustomPath\"\r\n                                            onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                            title=\"Time\" pInputText class=\"width-80\"\r\n                                            [disabled]=\"!enableDisableRetentionPolicy\">\r\n                                    </div>\r\n                                </div>\r\n                                <div *ngIf=\"!iseditComp\">\r\n                                    <button class=\"ui-button-primary\" pButton type=\"button\" icon=\"icons8 icons8-plus-math\" label=\"Add\" title=\"Add Path\" [disabled]=\"!enableDisableRetentionPolicy\" (click)=\"addingPath()\"></button>\r\n                                </div>\r\n                                <div *ngIf=\"iseditComp\" class=\"p-grid p-align-center\">\r\n                                        <button class=\"ui-button-secondary mr-3\" pButton type=\"button\" label=\"Cancel\" (click)=\"cancelUpdateForP()\" title=\"Cancel\">\r\n                                        </button>\r\n                                        <button class=\"ui-button-primary\" pButton type=\"button\" label=\"Update\" title=\"Update\"\r\n                                            (click)=\"updatePath()\">\r\n                                        </button>\r\n                                </div>\r\n                            </div>\r\n                            <cav-table [value]=\"cleanPath\" [headerRelativePath]=\"relativePathforCleanup\"\r\n                            (clickButtonEvent)=\"clickButtonEventForCleanup($event)\" ></cav-table>\r\n                        </div>\r\n                    </p-fieldset>\r\n                </div>\r\n            </div>\r\n            <p-accordion class=\"custom-accord\">\r\n                <p-accordionTab header=\"Retention Manager Log Settings\">\r\n                    <div class=\"p-grid p-align-center\">\r\n                            <label class=\"mr-10\">Log File Size</label>\r\n                            <div class=\"ui-inputgroup\">\r\n                                <input type=\"number\" pInputText min=\"1\" max=\"1024\" [(ngModel)]=\"logFilesize\"\r\n                                    onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\" class=\"width-100\"\r\n                                    [disabled]=\"!enableDisableRetentionPolicy\" title=\"{{logFilesize}}\">\r\n                                <span class=\"ui-inputgroup-addon\">mb</span>\r\n                            </div>\r\n                            <label class=\"ml-30 mr-10\">Audit Logs File Size</label>\r\n                            <div class=\"ui-inputgroup\">\r\n                                <input type=\"number\" pInputText min=\"1\" max=\"1024\" [(ngModel)]=\"auditLogFile\"\r\n                                    onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\" class=\"width-100\"\r\n                                    [disabled]=\"!enableDisableRetentionPolicy\" title=\"{{auditLogFile}}\">\r\n                                <span class=\"ui-inputgroup-addon\">mb</span>\r\n                            </div>\r\n                            <label class=\"ml-30 mr-10\">Log Level</label>\r\n                            <p-dropdown class=\"my-select\" [style]=\"{'min-width':'150px'}\" [options]=\"logLevelOptions\"\r\n                                [(ngModel)]=\"loglevel\" [disabled]=\"!enableDisableRetentionPolicy\"></p-dropdown>\r\n                    </div>\r\n                </p-accordionTab>\r\n            </p-accordion>\r\n        </p-tabPanel>\r\n        <p-tabPanel [disabled]=\"!enableDisableRetentionPolicy\" header=\"Component Configuration\">\r\n            <div class=\"shadow4 p-10 ml-10 mr-10 mb-10mr-10\">\r\n                <p-accordion class=\"custom-accord\" [multiple]=\"true\">\r\n                    <p-accordionTab header=\"Common\">\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Metric Data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[0]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText  min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[0]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Metric Data is time series data used for dashboard and reporting.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Resource\r\n                                    Timing</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[1]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[1]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Resource timing data is used for waterfall analysis for RBU and user experience sessions.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Page Dumps</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[2]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\" pInputText\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[2]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Page dumps Consists of HTTP Request, Response and page dump.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Drill Down\r\n                                    Data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[3]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\" pInputText\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[3]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Drill Down Data is used for drill down reports for doing detailed diagnostics of performance test runs and business transactions.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Aggregated Drill Down\r\n                                    Data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[4]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        pInputText value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[4]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Aggregated Drill Down data is rolled up data of user experience sessions.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div *ngIf=\"isOcx\" class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">User session Replay\r\n                                    Data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[5]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        pInputText value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[5]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Contains user session replay data related to the online customer experience in NetVision.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Diagnostics\r\n                                    data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[6]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        pInputText value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[6]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Diagnostics data consist of thread dumps, head dumps, tcp dumps etc collected using diagnostic features\r\n                                        (on demand or on alert actions).For test runs, it also include scripts used in the test.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-200\">Reports</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[7]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        pInputText value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[7]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Reports consists of different types of reports generated manually by users or automatically generated by scheduler.</span>\r\n                                </div> \r\n                            </div>\r\n                        </div>\r\n                    </p-accordionTab>\r\n                    <p-accordionTab header=\"Performance Test Runs\">\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Debug Testrun</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"debugTestRunOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[8]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        pInputText value=\"20\" style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[8]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Test runs ran in debug mode.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Archived\r\n                                    Testun</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[9]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\" pInputText value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[9]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Archived Test runs.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">UnLocked Test Run</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[10]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" min=\"1\" pInputText value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[10]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Test runs that do not belong to the locked, archive or debug category.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div>\r\n                            <b>Note : </b> Locked test runs are never deleted by data cleanup task. You must unlock it to delete.\r\n                        </div>\r\n                    </p-accordionTab>\r\n                    <p-accordionTab header=\"Advanced Settings\">\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Processed Data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOption\"\r\n                                        [(ngModel)]=\"ndeForDropDown[11]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[11]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Processed data is intermediate data in form of CSV files which are uploaded in Database. Once uploaded,\r\n                                        there is no need of processed data.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Cavisson Product\r\n                                    Logs</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOption\"\r\n                                        [(ngModel)]=\"ndeForDropDown[12]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[12]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Different logs generated by Cavisson software like tomcat logs, UI logs.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Raw Data</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOption\"\r\n                                        [(ngModel)]=\"ndeForDropDown[13]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[13]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span> Raw data is data collected from different agents or generated by cavisson engine. This gets converted\r\n                                        into processed data. Once processed data is generated, there is no need of raw data.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Configuration</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOptions\"\r\n                                        [(ngModel)]=\"ndeForDropDown[14]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[14]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Currently this is only for synthetic monitors scripts.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </p-accordionTab>\r\n                    <p-accordionTab header=\"Log monitors Settings\">\r\n                        <div class=\"rowBlock p-justify-between\">\r\n                            <div class=\"p-grid p-align-center my-5\">\r\n                                <label class=\"width-170\">Logs Index (*)</label>\r\n                                <label class=\"mr-10\">Select Retention Time</label>\r\n                                <div class=\"mr-10\">\r\n                                    <p-dropdown class=\"my-select\" [style]=\"{'min-width':'120px'}\" [options]=\"timeOption\"\r\n                                        [(ngModel)]=\"ndeForDropDown[16]\"></p-dropdown>\r\n                                </div>\r\n                                <div class=\"customSpiner cav-mx-2\">\r\n                                    <input type=\"number\" pInputText min=\"1\" value=\"20\"\r\n                                        onkeypress=\"return event.charCode >= 48 && event.charCode <= 57\" step=\"1\"\r\n                                        style=\"width: 63px;\" [(ngModel)]=\"ndeForTime[16]\">\r\n                                </div>\r\n                                <div class=\"p-grid p-align-center ml-20 w-55-p flex-nowrap\">\r\n                                    <i class=\"icons8 icons8-info pr-5\"></i>\r\n                                    <span>Log Index store the logs data send by log agent.</span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </p-accordionTab>\r\n                </p-accordion>\r\n            </div>\r\n        </p-tabPanel>\r\n    </p-tabView>\r\n    <div class=\"bottom-footer\">\r\n        <button class=\"ui-button-primary mr-5\" pButton type=\"button\" label=\"Save\" [disabled]=\"!isAdminPermission\" (click)=\"saveData()\" title=\"Save Configuration\"></button>\r\n        <button class=\"ui-button-primary mr-5\" pButton type=\"button\" label=\"Set Default\" [disabled]=\"!isAdminPermission\" (click)=\"resetDefaultValues()\" title=\"Reset Data\"></button>\r\n        <a routerLink=\"/home\">\r\n            <button  class=\"btn-secondary-outline\" pButton type=\"button\" label=\"Cancel\" [disabled]=\"!enableDisableRetentionPolicy\" title=\"Cancel\"></button>\r\n        </a>\r\n    </div>\r\n    <p-confirmDialog class=\"confirmdialog\" #cd key=\"resetConfirmation\" [style]=\"{width: '30vw'}\"\r\n    [baseZIndex]=\"100000000011\">\r\n    <p-footer>\r\n        <button type=\"button\" class=\"ui-button-right\" pButton \r\n            label=\"Yes\" (click)=\"cd.accept()\"></button>\r\n        <button type=\"button\" class=\"btn-secondary-outline\" pButton \r\n            label=\"No\" (click)=\"cd.reject()\"></button>\r\n    </p-footer>\r\n</p-confirmDialog>\r\n</div>\r\n<p-dialog class=\"profile-dialog browseTopCss headerCss\" header=\"File Manager\" *ngIf=\"openFileExplorerDialog\" [(visible)]=\"openFileExplorerDialog\" modal=\"modal\" [style]=\"{'width':'65vw'}\" responsive=\"true\" [resizable]=\"false\">\r\n<app-retention-policy-file-explorer></app-retention-policy-file-explorer>\r\n</p-dialog>\r\n";
    /***/
  },

  /***/
  "./node_modules/rxjs/internal/InnerSubscriber.js":
  /*!*******************************************************!*\
    !*** ./node_modules/rxjs/internal/InnerSubscriber.js ***!
    \*******************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_InnerSubscriberJs(module, exports, __webpack_require__) {
    "use strict";

    var __extends = this && this.__extends || function () {
      var _extendStatics = function extendStatics(d, b) {
        _extendStatics = Object.setPrototypeOf || {
          __proto__: []
        } instanceof Array && function (d, b) {
          d.__proto__ = b;
        } || function (d, b) {
          for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
        };

        return _extendStatics(d, b);
      };

      return function (d, b) {
        _extendStatics(d, b);

        function __() {
          this.constructor = d;
        }

        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
    }();

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var Subscriber_1 = __webpack_require__(
    /*! ./Subscriber */
    "./node_modules/rxjs/internal/Subscriber.js");

    var InnerSubscriber = function (_super) {
      __extends(InnerSubscriber, _super);

      function InnerSubscriber(parent, outerValue, outerIndex) {
        var _this = _super.call(this) || this;

        _this.parent = parent;
        _this.outerValue = outerValue;
        _this.outerIndex = outerIndex;
        _this.index = 0;
        return _this;
      }

      InnerSubscriber.prototype._next = function (value) {
        this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
      };

      InnerSubscriber.prototype._error = function (error) {
        this.parent.notifyError(error, this);
        this.unsubscribe();
      };

      InnerSubscriber.prototype._complete = function () {
        this.parent.notifyComplete(this);
        this.unsubscribe();
      };

      return InnerSubscriber;
    }(Subscriber_1.Subscriber);

    exports.InnerSubscriber = InnerSubscriber; //# sourceMappingURL=InnerSubscriber.js.map

    /***/
  },

  /***/
  "./node_modules/rxjs/internal/OuterSubscriber.js":
  /*!*******************************************************!*\
    !*** ./node_modules/rxjs/internal/OuterSubscriber.js ***!
    \*******************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_OuterSubscriberJs(module, exports, __webpack_require__) {
    "use strict";

    var __extends = this && this.__extends || function () {
      var _extendStatics2 = function extendStatics(d, b) {
        _extendStatics2 = Object.setPrototypeOf || {
          __proto__: []
        } instanceof Array && function (d, b) {
          d.__proto__ = b;
        } || function (d, b) {
          for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
        };

        return _extendStatics2(d, b);
      };

      return function (d, b) {
        _extendStatics2(d, b);

        function __() {
          this.constructor = d;
        }

        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
    }();

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var Subscriber_1 = __webpack_require__(
    /*! ./Subscriber */
    "./node_modules/rxjs/internal/Subscriber.js");

    var OuterSubscriber = function (_super) {
      __extends(OuterSubscriber, _super);

      function OuterSubscriber() {
        return _super !== null && _super.apply(this, arguments) || this;
      }

      OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
        this.destination.next(innerValue);
      };

      OuterSubscriber.prototype.notifyError = function (error, innerSub) {
        this.destination.error(error);
      };

      OuterSubscriber.prototype.notifyComplete = function (innerSub) {
        this.destination.complete();
      };

      return OuterSubscriber;
    }(Subscriber_1.Subscriber);

    exports.OuterSubscriber = OuterSubscriber; //# sourceMappingURL=OuterSubscriber.js.map

    /***/
  },

  /***/
  "./node_modules/rxjs/internal/operators/catchError.js":
  /*!************************************************************!*\
    !*** ./node_modules/rxjs/internal/operators/catchError.js ***!
    \************************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_operators_catchErrorJs(module, exports, __webpack_require__) {
    "use strict";

    var __extends = this && this.__extends || function () {
      var _extendStatics3 = function extendStatics(d, b) {
        _extendStatics3 = Object.setPrototypeOf || {
          __proto__: []
        } instanceof Array && function (d, b) {
          d.__proto__ = b;
        } || function (d, b) {
          for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
        };

        return _extendStatics3(d, b);
      };

      return function (d, b) {
        _extendStatics3(d, b);

        function __() {
          this.constructor = d;
        }

        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
    }();

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var OuterSubscriber_1 = __webpack_require__(
    /*! ../OuterSubscriber */
    "./node_modules/rxjs/internal/OuterSubscriber.js");

    var InnerSubscriber_1 = __webpack_require__(
    /*! ../InnerSubscriber */
    "./node_modules/rxjs/internal/InnerSubscriber.js");

    var subscribeToResult_1 = __webpack_require__(
    /*! ../util/subscribeToResult */
    "./node_modules/rxjs/internal/util/subscribeToResult.js");

    function catchError(selector) {
      return function catchErrorOperatorFunction(source) {
        var operator = new CatchOperator(selector);
        var caught = source.lift(operator);
        return operator.caught = caught;
      };
    }

    exports.catchError = catchError;

    var CatchOperator = function () {
      function CatchOperator(selector) {
        this.selector = selector;
      }

      CatchOperator.prototype.call = function (subscriber, source) {
        return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));
      };

      return CatchOperator;
    }();

    var CatchSubscriber = function (_super) {
      __extends(CatchSubscriber, _super);

      function CatchSubscriber(destination, selector, caught) {
        var _this = _super.call(this, destination) || this;

        _this.selector = selector;
        _this.caught = caught;
        return _this;
      }

      CatchSubscriber.prototype.error = function (err) {
        if (!this.isStopped) {
          var result = void 0;

          try {
            result = this.selector(err, this.caught);
          } catch (err2) {
            _super.prototype.error.call(this, err2);

            return;
          }

          this._unsubscribeAndRecycle();

          var innerSubscriber = new InnerSubscriber_1.InnerSubscriber(this, undefined, undefined);
          this.add(innerSubscriber);
          var innerSubscription = subscribeToResult_1.subscribeToResult(this, result, undefined, undefined, innerSubscriber);

          if (innerSubscription !== innerSubscriber) {
            this.add(innerSubscription);
          }
        }
      };

      return CatchSubscriber;
    }(OuterSubscriber_1.OuterSubscriber); //# sourceMappingURL=catchError.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/operators/map.js":
  /*!*****************************************************!*\
    !*** ./node_modules/rxjs/internal/operators/map.js ***!
    \*****************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_operators_mapJs(module, exports, __webpack_require__) {
    "use strict";

    var __extends = this && this.__extends || function () {
      var _extendStatics4 = function extendStatics(d, b) {
        _extendStatics4 = Object.setPrototypeOf || {
          __proto__: []
        } instanceof Array && function (d, b) {
          d.__proto__ = b;
        } || function (d, b) {
          for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
        };

        return _extendStatics4(d, b);
      };

      return function (d, b) {
        _extendStatics4(d, b);

        function __() {
          this.constructor = d;
        }

        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
    }();

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var Subscriber_1 = __webpack_require__(
    /*! ../Subscriber */
    "./node_modules/rxjs/internal/Subscriber.js");

    function map(project, thisArg) {
      return function mapOperation(source) {
        if (typeof project !== 'function') {
          throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');
        }

        return source.lift(new MapOperator(project, thisArg));
      };
    }

    exports.map = map;

    var MapOperator = function () {
      function MapOperator(project, thisArg) {
        this.project = project;
        this.thisArg = thisArg;
      }

      MapOperator.prototype.call = function (subscriber, source) {
        return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));
      };

      return MapOperator;
    }();

    exports.MapOperator = MapOperator;

    var MapSubscriber = function (_super) {
      __extends(MapSubscriber, _super);

      function MapSubscriber(destination, project, thisArg) {
        var _this = _super.call(this, destination) || this;

        _this.project = project;
        _this.count = 0;
        _this.thisArg = thisArg || _this;
        return _this;
      }

      MapSubscriber.prototype._next = function (value) {
        var result;

        try {
          result = this.project.call(this.thisArg, value, this.count++);
        } catch (err) {
          this.destination.error(err);
          return;
        }

        this.destination.next(result);
      };

      return MapSubscriber;
    }(Subscriber_1.Subscriber); //# sourceMappingURL=map.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/symbol/iterator.js":
  /*!*******************************************************!*\
    !*** ./node_modules/rxjs/internal/symbol/iterator.js ***!
    \*******************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_symbol_iteratorJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    function getSymbolIterator() {
      if (typeof Symbol !== 'function' || !Symbol.iterator) {
        return '@@iterator';
      }

      return Symbol.iterator;
    }

    exports.getSymbolIterator = getSymbolIterator;
    exports.iterator = getSymbolIterator();
    exports.$$iterator = exports.iterator; //# sourceMappingURL=iterator.js.map

    /***/
  },

  /***/
  "./node_modules/rxjs/internal/util/isArrayLike.js":
  /*!********************************************************!*\
    !*** ./node_modules/rxjs/internal/util/isArrayLike.js ***!
    \********************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_isArrayLikeJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    exports.isArrayLike = function (x) {
      return x && typeof x.length === 'number' && typeof x !== 'function';
    }; //# sourceMappingURL=isArrayLike.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/util/isPromise.js":
  /*!******************************************************!*\
    !*** ./node_modules/rxjs/internal/util/isPromise.js ***!
    \******************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_isPromiseJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    function isPromise(value) {
      return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
    }

    exports.isPromise = isPromise; //# sourceMappingURL=isPromise.js.map

    /***/
  },

  /***/
  "./node_modules/rxjs/internal/util/subscribeTo.js":
  /*!********************************************************!*\
    !*** ./node_modules/rxjs/internal/util/subscribeTo.js ***!
    \********************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_subscribeToJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var subscribeToArray_1 = __webpack_require__(
    /*! ./subscribeToArray */
    "./node_modules/rxjs/internal/util/subscribeToArray.js");

    var subscribeToPromise_1 = __webpack_require__(
    /*! ./subscribeToPromise */
    "./node_modules/rxjs/internal/util/subscribeToPromise.js");

    var subscribeToIterable_1 = __webpack_require__(
    /*! ./subscribeToIterable */
    "./node_modules/rxjs/internal/util/subscribeToIterable.js");

    var subscribeToObservable_1 = __webpack_require__(
    /*! ./subscribeToObservable */
    "./node_modules/rxjs/internal/util/subscribeToObservable.js");

    var isArrayLike_1 = __webpack_require__(
    /*! ./isArrayLike */
    "./node_modules/rxjs/internal/util/isArrayLike.js");

    var isPromise_1 = __webpack_require__(
    /*! ./isPromise */
    "./node_modules/rxjs/internal/util/isPromise.js");

    var isObject_1 = __webpack_require__(
    /*! ./isObject */
    "./node_modules/rxjs/internal/util/isObject.js");

    var iterator_1 = __webpack_require__(
    /*! ../symbol/iterator */
    "./node_modules/rxjs/internal/symbol/iterator.js");

    var observable_1 = __webpack_require__(
    /*! ../symbol/observable */
    "./node_modules/rxjs/internal/symbol/observable.js");

    exports.subscribeTo = function (result) {
      if (!!result && typeof result[observable_1.observable] === 'function') {
        return subscribeToObservable_1.subscribeToObservable(result);
      } else if (isArrayLike_1.isArrayLike(result)) {
        return subscribeToArray_1.subscribeToArray(result);
      } else if (isPromise_1.isPromise(result)) {
        return subscribeToPromise_1.subscribeToPromise(result);
      } else if (!!result && typeof result[iterator_1.iterator] === 'function') {
        return subscribeToIterable_1.subscribeToIterable(result);
      } else {
        var value = isObject_1.isObject(result) ? 'an invalid object' : "'" + result + "'";
        var msg = "You provided " + value + " where a stream was expected." + ' You can provide an Observable, Promise, Array, or Iterable.';
        throw new TypeError(msg);
      }
    }; //# sourceMappingURL=subscribeTo.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/util/subscribeToArray.js":
  /*!*************************************************************!*\
    !*** ./node_modules/rxjs/internal/util/subscribeToArray.js ***!
    \*************************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_subscribeToArrayJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    exports.subscribeToArray = function (array) {
      return function (subscriber) {
        for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
          subscriber.next(array[i]);
        }

        subscriber.complete();
      };
    }; //# sourceMappingURL=subscribeToArray.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/util/subscribeToIterable.js":
  /*!****************************************************************!*\
    !*** ./node_modules/rxjs/internal/util/subscribeToIterable.js ***!
    \****************************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_subscribeToIterableJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var iterator_1 = __webpack_require__(
    /*! ../symbol/iterator */
    "./node_modules/rxjs/internal/symbol/iterator.js");

    exports.subscribeToIterable = function (iterable) {
      return function (subscriber) {
        var iterator = iterable[iterator_1.iterator]();

        do {
          var item = iterator.next();

          if (item.done) {
            subscriber.complete();
            break;
          }

          subscriber.next(item.value);

          if (subscriber.closed) {
            break;
          }
        } while (true);

        if (typeof iterator["return"] === 'function') {
          subscriber.add(function () {
            if (iterator["return"]) {
              iterator["return"]();
            }
          });
        }

        return subscriber;
      };
    }; //# sourceMappingURL=subscribeToIterable.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/util/subscribeToObservable.js":
  /*!******************************************************************!*\
    !*** ./node_modules/rxjs/internal/util/subscribeToObservable.js ***!
    \******************************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_subscribeToObservableJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var observable_1 = __webpack_require__(
    /*! ../symbol/observable */
    "./node_modules/rxjs/internal/symbol/observable.js");

    exports.subscribeToObservable = function (obj) {
      return function (subscriber) {
        var obs = obj[observable_1.observable]();

        if (typeof obs.subscribe !== 'function') {
          throw new TypeError('Provided object does not correctly implement Symbol.observable');
        } else {
          return obs.subscribe(subscriber);
        }
      };
    }; //# sourceMappingURL=subscribeToObservable.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/util/subscribeToPromise.js":
  /*!***************************************************************!*\
    !*** ./node_modules/rxjs/internal/util/subscribeToPromise.js ***!
    \***************************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_subscribeToPromiseJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var hostReportError_1 = __webpack_require__(
    /*! ./hostReportError */
    "./node_modules/rxjs/internal/util/hostReportError.js");

    exports.subscribeToPromise = function (promise) {
      return function (subscriber) {
        promise.then(function (value) {
          if (!subscriber.closed) {
            subscriber.next(value);
            subscriber.complete();
          }
        }, function (err) {
          return subscriber.error(err);
        }).then(null, hostReportError_1.hostReportError);
        return subscriber;
      };
    }; //# sourceMappingURL=subscribeToPromise.js.map

    /***/

  },

  /***/
  "./node_modules/rxjs/internal/util/subscribeToResult.js":
  /*!**************************************************************!*\
    !*** ./node_modules/rxjs/internal/util/subscribeToResult.js ***!
    \**************************************************************/

  /*! no static exports found */

  /***/
  function _node_modules_rxjs_internal_util_subscribeToResultJs(module, exports, __webpack_require__) {
    "use strict";

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var InnerSubscriber_1 = __webpack_require__(
    /*! ../InnerSubscriber */
    "./node_modules/rxjs/internal/InnerSubscriber.js");

    var subscribeTo_1 = __webpack_require__(
    /*! ./subscribeTo */
    "./node_modules/rxjs/internal/util/subscribeTo.js");

    var Observable_1 = __webpack_require__(
    /*! ../Observable */
    "./node_modules/rxjs/internal/Observable.js");

    function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {
      if (innerSubscriber === void 0) {
        innerSubscriber = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex);
      }

      if (innerSubscriber.closed) {
        return undefined;
      }

      if (result instanceof Observable_1.Observable) {
        return result.subscribe(innerSubscriber);
      }

      return subscribeTo_1.subscribeTo(result)(innerSubscriber);
    }

    exports.subscribeToResult = subscribeToResult; //# sourceMappingURL=subscribeToResult.js.map

    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.css":
  /*!*******************************************************************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.css ***!
    \*******************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "@import url(\"https://fonts.googleapis.com/css?family=Open+Sans:600\");\r\n.ui-widget {\r\n    font-size: 12px !important;\r\n    font-family: \"Open Sans\", sans-serif !important;\r\n}\r\n.btn-select,\r\n.btn-upload,\r\n.btn-add-folder {\r\n    color: #fff;\r\n    background: #4c4c4c;\r\n    font-size: 12px;\r\n    margin-left: 6px;\r\n    line-height: 24px;\r\n}\r\n.file-browser-icon {\r\n    height: 12px;\r\n    width: 17px;\r\n    color: #4b60d6;\r\n}\r\n.folder-browser-icon {\r\n    color: #ffc107;\r\n    height: 12px;\r\n    width: 17px;\r\n}\r\n.loadingClass1 {\r\n    /* position: absolute; */\r\n    position: relative;\r\n    left: 50%;\r\n    /* top: 50%; */\r\n    margin-left: -32px;\r\n    /* margin-top: -32px; */\r\n    pointer-events: none;\r\n    color: #6e6e6e;\r\n}\r\n";
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.ts":
  /*!******************************************************************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.ts ***!
    \******************************************************************************************************************************************/

  /*! exports provided: RetentionPolicyFileExplorerComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "RetentionPolicyFileExplorerComponent", function () {
      return RetentionPolicyFileExplorerComponent;
    });
    /* 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 _services_retention_policy_common_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! ../../services/retention-policy-common.service */
    "./src/app/pages/tools/admin/retention-policy/services/retention-policy-common.service.ts");
    /* harmony import */


    var src_app_pages_tools_configuration_nd_config_services_cav_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! src/app/pages/tools/configuration/nd-config/services/cav-config.service */
    "./src/app/pages/tools/configuration/nd-config/services/cav-config.service.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");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"); //import { MatDialog } from '@angular/material';
    // import { ConfigUtilityService } from '../../../nd-config/services/config-utility.service';
    // import { ConfigKeywordsService } from '../../../nd-config/services/config-keywords.service';


    var RetentionPolicyFileExplorerComponent = /*#__PURE__*/function () {
      function RetentionPolicyFileExplorerComponent( //public _api: ApiService,
      retentionService, cavConfigService, sessionService, http // private configUtilityService: ConfigUtilityService,
      // private configKeywordsService: ConfigKeywordsService,
      //,public _fileValidation: FileUploadValidationsService
      ) {
        _classCallCheck(this, RetentionPolicyFileExplorerComponent);

        this.retentionService = retentionService;
        this.cavConfigService = cavConfigService;
        this.sessionService = sessionService;
        this.http = http;
        this.files = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.msgs = [];
        this.path = [];
        this.selectedFilesList = [];
        this.filesData = [];
        this.fileAndFolderPath = '/';
        this.isSelected = false;
        this.selectAllChk = false;
        this.toUploadFile = false;
        this.isLoad = false;
        this.originalFileData = [];
        this.uploadFile = false;
        this.moduleName = '';
        this.addPath = "/home/cavisson/"; //+ this.sessionService.preSession.serverName;

        this.allBlockPath = [];
        this.ExtensionList = {
          "scenario": ['pem', 'cer', 'crt', 'p7b', 'p7r', 'p12', 'pfx'],
          "nd-config": ['txt', 'btr', 'btt', 'cd', 'err', 'mml', 'eml', 'ecf', 'hmc', 'xml', 'adr', 'conf', 'dat', 'json', 'ads', 'tar'],
          "nd-config-secure-mode": ['txt', 'btr', 'btt', 'cd', 'err', 'mml', 'eml', 'ecf', 'hmc', 'xml', 'adr', 'conf', 'dat', 'json', 'ads', 'tar'],
          "tabular-from-file-widget": ['txt', 'csv', 'xls', 'xlsx', 'text'],
          "access-log": ['log', 'txt'],
          "data dir": ['dat', 'csv', 'txt', 'xml', 'json', 'cfg', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'h', 'c', 'java', 'jar', 'js', 'zip']
        };
        this.uploadFile = false;
        this.uploadUrl = this.getSerUploadFilesPath();
        /*Getting Files based on default Path. */

        this.fileAndFolderPath = '/home/cavisson';
        /* Fetching file on load with default path. */

        this.fetchFiles();
        /*Listening Event.*/
        // this.subscription = _api.dataObservable$.subscribe(
        //   /*Getting Event Here.*/
        //   value => {
        //     this.processFiles(value);
        //     this.isLoad = false;
        //   });
        // this.processFiles(value);

        this.emptyMessage = "emptyMessage";
        this.isSecurityMode = sessionStorage.getItem('enableSecurityMode');
      }

      return _createClass(RetentionPolicyFileExplorerComponent, [{
        key: "processFiles",
        value: function processFiles(files) {
          try {
            /* Checking if data available on path/Error. */
            if (files === null || files === undefined || files === 'ERROR') {
              console.error('unable to get files from path = ' + this.fileAndFolderPath + '.');
              this.filesData = [];
            } else {
              this.filesData = files;
              /* For Back line on first row. */

              if (this.filesData.length > 0 && this.filesData[0].empty != 'none') {
                this.filesData.unshift({
                  'empty': 'none'
                });
              }

              this.checkUncheckFiles();
              this.selectAllChk = this.isAllSelectedFiles();
              this.originalFileData = this.filesData;
            }
          } catch (e) {
            console.error(e);
          }
        }
        /* This method is used to fetch files from server */

      }, {
        key: "fetchFiles",
        value: function fetchFiles() {
          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
            var files, _t;

            return _regenerator().w(function (_context) {
              while (1) switch (_context.p = _context.n) {
                case 0:
                  _context.p = 0;
                  this.isLoad = true;
                  _context.n = 1;
                  return this.listFilesByPath(this.fileAndFolderPath);

                case 1:
                  files = _context.v;

                  if (files !== undefined && files != false) {
                    this.processFiles(files);
                    this.isLoad = false;
                  }

                  if (this.moduleName = 'nd-config') {
                    /*This is used to update the url and provide the destination path where the file is to be uploaded */
                    this.uploadUrl = this.getSerUploadFilesPathForConfigUI() + "?for=fileExplorer&destination=" + this.fileAndFolderPath + '&productKey=' + this.sessionService.session.cctx.pk;
                  } else {
                    /*This is used to update the url and provide the destination path where the file is to be uploaded */
                    this.uploadUrl = this.getSerUploadFilesPath() + "?for=fileExplorer&destination=" + this.fileAndFolderPath + '&productKey=' + this.sessionService.session.cctx.pk;
                  }

                  _context.n = 3;
                  break;

                case 2:
                  _context.p = 2;
                  _t = _context.v;
                  console.error(_t);

                case 3:
                  return _context.a(2);
              }
            }, _callee, this, [[0, 2]]);
          }));
        }
        /* This method is used for search on global lavel */
        // globalFilter() {
        //   if (this.searchText.trim() == "") {
        //     this.filesData = this.originalFileData;
        //     return;
        //   }
        //   this.filesData = [];
        //   for (var i = 1; i < this.originalFileData.length; i++) {
        //     var orgFileData = this.originalFileData[i].name.trim().toUpperCase();
        //     if (orgFileData.search(this.searchText.trim().toUpperCase()) !== -1) {
        //       this.filesData.push(this.originalFileData[i]);
        //     }
        //   }
        // }

        /*This method shows the list of files inside folder when clicked*/

      }, {
        key: "onItemClick",
        value: function onItemClick(i, value) {
          //console.log("printing both value", i, value, this.filesData[i], this.filesData[i].name, this.filesData[i].path);
          if (this.filesData[i].isDir) {
            this.path = this.path.concat(this.filesData[i].name);
            this.fileAndFolderPath = this.filesData[i].path;
            this.fetchFiles();
            this.searchText = "";
          } else if (this.filesData[i].isFile) {
            if (value) {
              this.selectedFilesList = this.selectedFilesList.concat({
                path: this.filesData[i].path,
                action: ''
              }); //console.log("Print if value is true", value, this.selectedFilesList);
            } else if (!value) {
              for (var index = 0; index < this.selectedFilesList.length; index++) {
                if (this.selectedFilesList[index]["path"] == this.filesData[i]["path"]) {
                  this.selectedFilesList.splice(index, 1);
                }
              } //console.log("Print if value is false", value, this.selectedFilesList);

            }

            this.selectAllChk = this.isAllSelectedFiles();
          }

          this.checkUncheckFiles();
        }
        /*This is used to navigate one step back to the path*/

      }, {
        key: "goBack",
        value: function goBack($event) {
          try {
            // if(!this.fileAndFolderPath.startsWith('/home/cavisson/')){
            //   alert("Path must start from '/home/cavisson/'")
            //   return;
            // }
            if (this.fileAndFolderPath === '' || this.fileAndFolderPath === '/') {
              //console.log('Path is already on root level. Ignoring.');
              return;
            }
            /* Going to previous Path. */


            var arrPath = this.fileAndFolderPath.split('/');
            arrPath.pop();
            this.fileAndFolderPath = arrPath.join('/');

            if (this.fileAndFolderPath === '') {
              this.fileAndFolderPath = '/';
            }

            this.fetchFiles();
            this.checkUncheckFiles();
            this.selectAllChk = this.isAllSelectedFiles();
          } catch (e) {
            console.error(e);
          }
        }
        /*This method is used for searching files based on user input */

      }, {
        key: "searchByName",
        value: function searchByName(event, searchText) {
          try {
            //console.log(event, searchText);
            this.fileAndFolderPath = searchText;
            this.fetchFiles();
          } catch (e) {
            console.error(e);
            this.msgs = this.msgs.concat({
              severity: 'info',
              summary: 'Info Message',
              detail: 'PrimeNG rocks'
            });
          }
        }
      }, {
        key: "checkUncheckFiles",
        value: function checkUncheckFiles() {
          for (var k = 0; k < this.filesData.length; k++) {
            if (this.filesData[k].isFile) {
              this.filesData[k]["isSelected"] = false;

              if (this.filesData[k].path != null) {
                for (var j = 0; j < this.selectedFilesList.length; j++) {
                  if (this.selectedFilesList[j]["path"] == this.filesData[k]["path"]) {
                    this.filesData[k]["isSelected"] = true;
                    break;
                  }
                }
              }
            }
          }
        }
      }, {
        key: "addFiles",
        value: function addFiles(i, event) {
          this.retentionService.globalAddPath = this.filesData[i].path;
          this.retentionService.getDataBroadCasterForFileExplorer.next(this.filesData[i].path);
        }
      }, {
        key: "setSelectedFiles",
        value: function setSelectedFiles() {
          // if (!this.selectedFilesList || this.selectedFilesList.length < 1) {
          //   this.configUtilityService.errorMessage("Select a file to import");
          //   return;
          // }
          var filesWithPath = ""; //console.log("check selectd files", this.selectedFilesList)

          if (this.selectedFilesList != undefined && this.selectedFilesList.length > 0) {
            for (var i = 0; i < this.selectedFilesList.length; i++) {
              if (i == 0) filesWithPath = this.selectedFilesList[0]["path"];else filesWithPath = filesWithPath + ";" + this.selectedFilesList[i]["path"];
            } //console.log("files with path", filesWithPath);


            this.fileAndFolderPath = filesWithPath;
          }

          for (var _i = 0; _i < this.allBlockPath.length; _i++) {
            if (this.fileAndFolderPath.includes(this.allBlockPath[_i])) {
              alert("Given paths are restricted for adding in retention policy");
              return;
            }
          } // this.configKeywordsService.updateFileList(filesWithPath);
          // this.uploadFiles();
          //console.log("Printing path", this.addPath, this.fileAndFolderPath);


          this.retentionService.globalAddPath = this.fileAndFolderPath; //console.log("Printing path vglobal", this.retentionService.globalAddPath);

          this.retentionService.getDataBroadCasterForFileExplorer.next(this.fileAndFolderPath);
        }
        /***
         * This Method is used to return the index of files
         */

      }, {
        key: "getIndexForFiles",
        value: function getIndexForFiles(fileDataPath) {
          for (var indexofFiles = 0; indexofFiles < this.selectedFilesList.length; indexofFiles++) {
            if (this.selectedFilesList[indexofFiles]['path'] == fileDataPath) {
              return indexofFiles;
            }
          }

          return -1;
        }
        /***
         * This method is used to check all files are selected or not.
         */

      }, {
        key: "isAllSelectedFiles",
        value: function isAllSelectedFiles() {
          for (var l = 0; l < this.filesData.length; l++) {
            if (this.filesData[l].isFile) {
              var indexFile = this.getIndexForFiles(this.filesData[l]['path']);
              if (indexFile == -1) return false;
            }
          }

          return true;
        }
      }, {
        key: "onSelect",
        value: function onSelect(event, fileUpload) {
          var name = event.files[0].name;
          if (this.isSecurityMode == '0') this.moduleName = 'nd-config';else if (this.isSecurityMode == '1') this.moduleName = 'nd-config-secure-mode';
          /* function call for checking whether file has valid extension or not*/

          var extensionResult = this.extensionValidation(name, this.moduleName);

          if (extensionResult === 0) {
            this.uploadFile = false;
            fileUpload.clear();
            return;
          }
          /* function call for checking whether file has double dots in its name or not */


          var doubleDotValidation = this.doubleDotValidation(name, this.moduleName);

          if (doubleDotValidation === 0) {
            this.uploadFile = false;
            fileUpload.clear();
            return;
          }
          /* function call for checking that file name does not consist of invalid special characters */


          var characterResult = this.specialCharacterValidation(name, this.moduleName);

          if (characterResult === 1) {
            this.uploadFile = false;
            fileUpload.clear();
            return;
          }

          this.uploadFile = true;
        }
        /* for checking valid file extension */

      }, {
        key: "extensionValidation",
        value: function extensionValidation(filename, moduleName) {
          var finalExt = this.fileExtensions(moduleName);
          var result;
          var count = 0;
          var index = filename.lastIndexOf('.');
          var ext = filename.substring(index + 1);

          if (ext === 'gz') {
            result = this.targzValidation(filename, moduleName);

            if (result === 0) {
              return 0;
            }
          }

          if (ext !== 'gz') {
            for (var i = 0; i < finalExt.length; i++) {
              if (ext === finalExt[i]) {
                count = 1;
              }
            }

            if (count === 0) {
              var extss = this.extensionsForAlert(finalExt, moduleName);
              alert('Invalid file extension found ' + ext + ' is not a valid extension.The supported extensions are ' + extss);
              return 0;
            }
          }
        }
      }, {
        key: "fileExtensions",
        value: function fileExtensions(moduleName) {
          for (var key in this.ExtensionList) {
            if (key === moduleName) {
              return this.ExtensionList[key];
            }
          }
        }
      }, {
        key: "getSerUploadFilesPathForConfigUI",
        value: function getSerUploadFilesPathForConfigUI() {
          var hostUrl = this.cavConfigService.getINSPrefix() + '/';
          return hostUrl + 'DashboardServer/web/ImportAccessLogService/uploadfileforconfigUI';
        }
      }, {
        key: "getSerUploadFilesPath",
        value: function getSerUploadFilesPath() {
          var hostUrl = this.cavConfigService.getINSPrefix() + '/';
          return hostUrl + 'DashboardServer/web/ImportAccessLogService/upload';
        }
      }, {
        key: "listFilesByPath",
        value: function listFilesByPath(path) {
          var _this2 = this;

          try {
            this.msgs = [];
            var hostUrl = this.cavConfigService.getINSPrefix() + '/';
            var url = 'DashboardServer/web/FileManagerServices/getServerDirectoryFiles' + '?productKey=' + this.sessionService.session.cctx.pk + '&for=dirPath';
            var payload = {
              "for": 'dirPath',
              path: path
            };
            return new Promise(function (resolve, reject) {
              _this2.http.post(hostUrl + url, payload).subscribe(function (res) {
                if (res['status'] === "Error") {
                  _this2.msgs.push({
                    severity: 'error',
                    summary: '',
                    detail: res['label']
                  });

                  _this2.isLoad = false;
                  reject(false);
                } else resolve(res);
              });
            });
          } catch (e) {}
        }
        /**
        * This event is used to close the dialog and show message when upload is done.
        */

      }, {
        key: "onUpload",
        value: function onUpload(event) {
          this.toUploadFile = false;
          this.fetchFiles();
          this.msgs = []; //this.msgs.push({ severity: 'Success', summary: '', detail: 'File Uploaded Succesfully' });

          alert("File Uploaded Succesfully");
        }
        /**
        * This method is used to open the dialog for upload files.
        */

      }, {
        key: "uploadFiles",
        value: function uploadFiles() {
          this.toUploadFile = true;
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          this.getBlockPath();
        }
        /* Files Data sorting */

      }, {
        key: "myfilesDataSort",
        value: function myfilesDataSort(event, filesData) {
          var _this3 = this;

          if (event["field"] == "modified") {
            if (event.order == -1) {
              var temp = event["field"];
              event.order = 1;
              filesData = filesData.sort(function (a, b) {
                if (a[temp] == undefined || a[temp] == '') a[temp] = '1945-03-14 01:23:43';
                if (b[temp] == undefined || b[temp] == '') b[temp] = '1945-03-14 01:23:43';
                var value = Date.parse(a[temp]);
                var value2 = Date.parse(b[temp]);
                return value2 > value ? 1 : value2 < value ? -1 : 0;
              });
            } else {
              var temp = event["field"];
              event.order = -1; //asecding order

              filesData = filesData.sort(function (a, b) {
                if (a[temp] == undefined || a[temp] == '') a[temp] = '1945-03-14 01:23:43';
                if (b[temp] == undefined || b[temp] == '') b[temp] = '1945-03-14 01:23:43';
                var value = Date.parse(a[temp]);
                var value2 = Date.parse(b[temp]);
                return value > value2 ? 1 : value < value2 ? -1 : 0;
              });
            }
          } else if (event["field"] == "mime") {
            if (event.order == -1) {
              var temp = event["field"];
              event.order = 1;
              filesData = filesData.sort(function (a, b) {
                if (a[temp] == undefined) a[temp] = '';
                if (b[temp] == undefined) b[temp] = '';
                var value = a[temp];
                var value2 = b[temp];
                return value2 > value ? 1 : value2 < value ? -1 : 0;
              });
            } else {
              var temp = event["field"];
              event.order = -1; //asecding order

              filesData = filesData.sort(function (a, b) {
                if (a[temp] == undefined) a[temp] = '';
                if (b[temp] == undefined) b[temp] = '';
                var value = a[temp];
                var value2 = b[temp];
                return value > value2 ? 1 : value < value2 ? -1 : 0;
              });
            }
          } else if (event["field"] == "size") {
            if (event.order == -1) {
              var temp = event["field"];
              event.order = 1;
              filesData = filesData.sort(function (a, b) {
                if (a[temp] == undefined || a[temp] == '') a[temp] = '0';
                if (b[temp] == undefined || b[temp] == '') b[temp] = '0';
                var value = parseInt(a[temp]);
                var value2 = parseInt(b[temp]);
                return value2 > value ? 1 : value2 < value ? -1 : 0;
              });
            } else {
              var temp = event["field"];
              event.order = -1; //asecding order

              filesData = filesData.sort(function (a, b) {
                if (a[temp] == undefined || a[temp] == '') a[temp] = '0';
                if (b[temp] == undefined || b[temp] == '') b[temp] = '0';
                var value = parseInt(a[temp]);
                var value2 = parseInt(b[temp]);
                return value > value2 ? 1 : value < value2 ? -1 : 0;
              });
            }
          }

          this.filesData = [];
          filesData.forEach(function (element) {
            if (element.modified == '1945-03-14 01:23:43' && element.empty == 'none') element.modified = '';
            if (element.size == '0' && element.empty == 'none') element.size = '';
            _this3.filesData = _this3.filesData.concat(element);
          });
        }
      }, {
        key: "showErrorMessage",
        value: function showErrorMessage() {
          alert("Error while uploading file. Please provide file with valid file extension.");
        } //Omit enter key only. 

      }, {
        key: "omit_enter_key",
        value: function omit_enter_key(event) {
          var k;
          k = event.charCode;
          return k != 13;
        }
      }, {
        key: "getBlockPath",
        value: function getBlockPath() {
          var _this4 = this;

          try {
            var url = this.getHostPath() + "/ProductUI/productSummary/servicesStats/retentionBlockedPathList";
            var sub;
            this.http.get(url, {
              responseType: "json"
            }).subscribe(function (res) {
              //console.log("res --->>"+res["output"]);
              _this4.allBlockPath = [];

              if (res["output"].length > 0) {
                _this4.allBlockPath = res["output"];
              } else {
                _this4.allBlockPath = [];
              } //let optput = res["output"].split(",");

            });
          } catch (error) {
            console.error("error in getBlockPath --->>" + error);
          }
        }
        /* check for .tar.gz extension to be valid and no '.' character to be present in file name */

      }, {
        key: "targzValidation",
        value: function targzValidation(filename, moduleName) {
          var doubleExtension = ['.tar.gz'];
          var count = 0;
          /* check whether filename ends with .tar.gz */

          if (filename.endsWith(doubleExtension[0])) {
            var newFileName = filename.split('.tar.gz');
            var finalName = newFileName[0];
            /* check for multiple '.' character in file name*/

            for (var i = 0; i < finalName.length; i++) {
              if (finalName[i] === '.') {
                count++;
              }
            }

            if (count !== 0) {
              alert("Invalid filename found.The filename should not contain multiple '.' characters");
              return 0;
            }
          }
        }
        /* for getting string of extensions to be shown in alert*/

      }, {
        key: "extensionsForAlert",
        value: function extensionsForAlert(finalExt, moduleName) {
          var extString = "'" + finalExt[0] + "'" + " ";

          if (moduleName === 'access-log') {
            return extString;
          } else {
            for (var i = 1; i < finalExt.length - 1; i++) {
              extString += "'" + finalExt[i] + "'" + " ";
            }

            extString = extString + "'" + finalExt[finalExt.length - 1] + "'";
            return extString;
          }
        }
        /* check for multiple dots in file name, not ending with .tar.gz */

      }, {
        key: "doubleDotValidation",
        value: function doubleDotValidation(filename, moduleName) {
          var doubleExtension = ['.tar.gz'];
          var count = 0;
          var counts = 0;
          /* check whether filename ends with .tar.gz */

          this.targzValidation(filename, moduleName);
          /* check for multiple dots in file name, not ending with .tar.gz */

          if (!filename.endsWith(doubleExtension[0])) {
            var index = filename.lastIndexOf('.');
            var name = filename.substring(0, index);

            for (var i = 0; i < name.length; i++) {
              if (name[i] === '.') {
                counts++;
              }
            }

            if (counts !== 0) {
              alert("Invalid filename found.The filename should not contain multiple '.' characters");
              return 0;
            }
          }
        }
        /* check for valid special characters in file name */

      }, {
        key: "specialCharacterValidation",
        value: function specialCharacterValidation(filename, moduleName) {
          var specialChar = /[!"#$%&'()*+,/:;<=>?@\[\]^`{|}\\~]/;

          if (specialChar.test(filename)) {
            alert("Invalid filename found. The filename can contain characters from (0-9) and special characters like  '.'  ,  '-'  or  '_' ");
            return 1;
          }
        } //Added for Getting IP and Port

      }, {
        key: "getHostPath",
        value: function getHostPath() {
          var hostUrl;
          if (sessionStorage.getItem('isMultiDCMode') && this.cavConfigService.getActiveDC() == 'ALL') hostUrl = this.cavConfigService.getINSAggrPrefix() + "ALL";else if (sessionStorage.getItem('isMultiDCMode')) hostUrl = this.cavConfigService.getINSPrefix() + this.cavConfigService.getActiveDC();else hostUrl = this.cavConfigService.getINSPrefix();
          return hostUrl;
        }
      }]);
    }();

    RetentionPolicyFileExplorerComponent.ctorParameters = function () {
      return [{
        type: _services_retention_policy_common_service__WEBPACK_IMPORTED_MODULE_2__["RetentionPolicyCommonService"]
      }, {
        type: src_app_pages_tools_configuration_nd_config_services_cav_config_service__WEBPACK_IMPORTED_MODULE_3__["CavConfigService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"]
      }, {
        type: _angular_common_http__WEBPACK_IMPORTED_MODULE_5__["HttpClient"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()], RetentionPolicyFileExplorerComponent.prototype, "files", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('dt')], RetentionPolicyFileExplorerComponent.prototype, "dtable", void 0);
    RetentionPolicyFileExplorerComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-retention-policy-file-explorer',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./retention-policy-file-explorer.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.html"))["default"],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./retention-policy-file-explorer.component.css */
      "./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.css"))["default"]]
    })], RetentionPolicyFileExplorerComponent);
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/headerFormatPipe.ts":
  /*!*********************************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/headerFormatPipe.ts ***!
    \*********************************************************************************************************/

  /*! exports provided: headerFormatPipe */

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

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


    __webpack_require__.d(__webpack_exports__, "headerFormatPipe", function () {
      return headerFormatPipe;
    });
    /* 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");

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

      return _createClass(headerFormatPipe, [{
        key: "transform",
        value: function transform(value) {
          var getValue = value; // For each argument

          if (value == 'raw_data') {
            getValue = "Raw Data";
          } else if (value == 'csv') {
            getValue = "Processed Data";
          } else if (value == 'logs') {
            getValue = "Logs";
          } else if (value == 'db') {
            getValue = "DB";
          } else if (value == 'tr') {
            getValue = "Testrun";
          } else if (value == 'dbg_tr') {
            getValue = "Drill Down Data Testrun";
          } else if (value == 'arch_tr') {
            getValue = "Archive Testrun";
          } else if (value == 'gen_tr') {
            getValue = "Generator Testrun";
          } else if (value == 'graph_data') {
            getValue = "Metric Data";
          } else if (value == 'har_file') {
            getValue = "Resource Timing";
          } else if (value == 'pagedump') {
            getValue = "Page Dumps";
          } else if (value == 'test_data') {
            getValue = "Diagnostics Data";
          } else if (value == 'db_agg') {
            getValue = "Aggregated Drill Down Data";
          } else if (value == 'ocx') {
            getValue = "User Session Replay Data";
          } else if (value == 'na_traces') {
            getValue = "Drill Down Data";
          } else if (value == 'access_log') {
            getValue = "Cavisson Product Logs";
          } else if (value == 'reports') {
            getValue = "Reports";
          } else if (value.substr(value.length - 1) == 'w' && !value.includes('cavisson')) {
            getValue = value.substring(0, value.length - 1) + " Week";
          } else if (value.substr(value.length - 1) == 'd' && !value.includes('cavisson')) {
            getValue = value.substring(0, value.length - 1) + " Day";
          } else if (value.substr(value.length - 1) == 'm' && !value.includes('cavisson')) {
            getValue = value.substring(0, value.length - 1) + " Month";
          } else if (value.substr(value.length - 1) == 'y' && !value.includes('cavisson')) {
            getValue = value.substring(0, value.length - 1) + " Year";
          } else if (value.length > 120) {
            getValue = value.substring(0, 120) + "...";
          } // console.log("the value of headerformat is",getValue);


          return getValue;
        }
      }]);
    }();

    headerFormatPipe = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Pipe"])({
      name: "headerFormatPipe"
    })], headerFormatPipe);
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.css":
  /*!*************************************************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.css ***!
    \*************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = ".retentionNote {\r\n    position: absolute;\r\n    top: 44px;\r\n    right: 30px;\r\n    display: inline-block;\r\n}";
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.ts":
  /*!************************************************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.ts ***!
    \************************************************************************************************************************/

  /*! exports provided: RetentionPolicyMainComponent */

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

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


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


    var _services_retention_policy_common_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ../../services/retention-policy-common.service */
    "./src/app/pages/tools/admin/retention-policy/services/retention-policy-common.service.ts");
    /* harmony import */


    var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! moment */
    "./node_modules/moment/moment.js");
    /* harmony import */


    var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
    /* harmony import */


    var _home_logstab_service_nf_logs_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../../../../../home/logstab/service/nf-logs.service */
    "./src/app/pages/home/logstab/service/nf-logs.service.ts");
    /* harmony import */


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


    var src_app_shared_pipes_ellipsis_ellipsis_pipe__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! src/app/shared/pipes/ellipsis/ellipsis.pipe */
    "./src/app/shared/pipes/ellipsis/ellipsis.pipe.ts");
    /* harmony import */


    var src_app_shared_file_manager_file_manager_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! src/app/shared/file-manager/file-manager.component */
    "./src/app/shared/file-manager/file-manager.component.ts");
    /* harmony import */


    var src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_9__ = __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 src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! src/app/shared/cav-toast/service/cav-message.service */
    "./src/app/shared/cav-toast/service/cav-message.service.ts");
    /* harmony import */


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


    var _access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! ../../../access-control-management/constants/cav-acl-features.constants */
    "./src/app/pages/tools/admin/access-control-management/constants/cav-acl-features.constants.ts");

    var RetentionPolicyMainComponent = /*#__PURE__*/function () {
      function RetentionPolicyMainComponent(confirmationService, retentionService, sessionService, messageService, cavNavBarService, nfService) {
        _classCallCheck(this, RetentionPolicyMainComponent);

        this.confirmationService = confirmationService;
        this.retentionService = retentionService;
        this.sessionService = sessionService;
        this.messageService = messageService;
        this.cavNavBarService = cavNavBarService;
        this.nfService = nfService;
        this.cleanPath = [];
        this.ComponentData = [];
        this.enableDisableRecycleBin = false;
        this.logFilesize = '10';
        this.recyclebinTimeOptions = [];
        this.recyclebinTime = '';
        this.logLevelOptions = [];
        this.logLevel = '';
        this.testRunOptions = [];
        this.debugTestRunOptions = [];
        this.timeOption = [];
        this.testRun = '';
        this.timeOptions = [];
        this.timeModel = '';
        this.componentModel = '';
        this.compStartDate = '';
        this.compEndDate = '';
        this.customisedTimeModel = '';
        this.startDate = '';
        this.endDate = '';
        this.msgs = [];
        this.ndeForDropDown = [];
        this.ndeForTime = [];
        this.NonNdeForDropDown = [];
        this.NonNdeForTime = [];
        this.tabIndex = 0;
        this.cleanupDetailsName = "";
        this.cleanupDetailsTime = "";
        this.getRetentionData = true;
        this.loglevel = "";
        this.logFileSize = "";
        this.dateString = '';
        this.compName = "";
        this.compArray = [];
        this.dateAraay = [];
        this.dateName = "";
        this.cleanUpdates = [];
        this.negativeDays = '';
        this.cleanupNegativeDaysTime = "";
        this.date4 = [];
        this.date1 = '';
        this.date2 = '';
        this.date3 = '';
        this.date5 = [];
        this.date6 = [];
        this.backupPath = '';
        this.controller = '';
        this.cleanupNegativeDaysName = "";
        this.configuration = {};
        this.timeJson = {};
        this.pathJson = {};
        this.componentJson = {};
        this.componentJson1 = {};
        this.pathString = '';
        this.pathVal = '';
        this.auditLogFile = '10';
        this.auditLogFileSize = '10';
        this.cleanUpPathName = "abc";
        this.cleanupPathValue = "xyz";
        this.configurationResult = [];
        this.testrunArray = [];
        this.negativeDateArray = [];
        this.openBrowser = false;
        this.combinedDates = '';
        this.combinedDate = '';
        this.checked = false;
        this.checked1 = false;
        this.compStartDateBoth = '';
        this.timearrForJson = [];
        this.timearrjsn = '';
        this.isOcx = false;
        this.isUpdate = true;
        this.ndeDateArr = [];
        this.ndeMonthArr = [];
        this.disableEdit = false;
        this.iseditComp = false;
        this.updatedPath = false;
        this.isUpload = false;
        this.isAdminPermission = false;
        this.relativePath = 'monitors/retention-policy/RetainData.json';
        this.relativePathforCleanup = 'monitors/retention-policy/PathCleanUp.json';
        this.cavNavBarService.showNavBar = false;
        this.isSecurityEnabled = sessionService.preSession.captcha;
        this.cols = [{
          field: 'path',
          header: 'Clean Path'
        }, {
          field: 'time',
          header: 'Time'
        }];
        this.columns = [{
          field: 'col1',
          header: 'graph_data'
        }, {
          field: 'col2',
          header: 'har_file'
        }, {
          field: 'col3',
          header: 'pagedump'
        }, {
          field: 'col4',
          header: 'na_traces'
        }, {
          field: 'col5',
          header: 'db_agg'
        }, {
          field: 'col6',
          header: 'ocx'
        }, {
          field: 'col7',
          header: 'test_data'
        }, {
          field: 'col15',
          header: 'reports'
        }, {
          field: 'col8',
          header: 'dbg_tr'
        }, {
          field: 'col9',
          header: 'arch_tr'
        }, {
          field: 'col10',
          header: 'tr'
        }, {
          field: 'col11',
          header: 'csv'
        }, {
          field: 'col12',
          header: 'access_log'
        }, {
          field: 'col13',
          header: 'raw_data'
        }, {
          field: 'col16',
          header: 'configs'
        }, {
          field: 'col14',
          header: 'gen_tr'
        }, {
          field: 'col16',
          header: 'log_mon_config'
        }];
        this.columns1 = [{
          field: 'componentName',
          header: 'Component Name'
        }, {
          field: 'dates',
          header: 'Dates'
        }];
        this.cols2 = [{
          label: 'Select Component',
          value: 'Select Component'
        }, {
          label: 'Raw Data',
          value: 'raw_data'
        }, {
          label: 'Processed data',
          value: 'csv'
        }, {
          label: 'Testrun',
          value: 'tr'
        }, {
          label: 'Archive Testrun',
          value: 'arch_tr'
        }, {
          label: 'Generator Testrun',
          value: 'gen_tr'
        }, {
          label: 'Metric Data',
          value: 'graph_data'
        }, {
          label: 'Resource Timing',
          value: 'har_file'
        }, {
          label: 'Page Dumps',
          value: 'pagedump'
        }, {
          label: 'Diagnostics data',
          value: 'test_data'
        }, {
          label: 'Aggregated Drill Down Data',
          value: 'db_agg'
        }, {
          label: 'User session replay data',
          value: 'ocx'
        }, {
          label: 'Drill Down Data',
          value: 'na_traces'
        }, {
          label: 'Cavisson Product Logs',
          value: 'access_log'
        }, {
          label: 'Reports',
          value: 'reports'
        }, {
          label: 'Configs',
          value: 'configs'
        }];
      }

      return _createClass(RetentionPolicyMainComponent, [{
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          if (this.temp != undefined) this.temp.unsubscribe();
          this.cavNavBarService.showNavBar = true;
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          this.isAdminPermission = this.sessionService.isFeatureWrite(_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_12__["CAV_FEATURES"].SETTINGS.NAME, _access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_12__["CAV_FEATURES"].SETTINGS.SUB_FEATURES.RETENTION_POLICY);
          this.breadcrumb = [{
            label: 'Home',
            routerLink: '/home'
          }, {
            label: 'Admin'
          }, {
            label: 'Data Retention & Cleanup'
          }];
          this.checkForOcx();
          this.setDefaultFields();
          this.ndeConfigurationData();
          this.getConfiguration();
          this.addPathwithBroadCaster();
        }
      }, {
        key: "getDefaultDateRecy",
        value: function getDefaultDateRecy() {
          try {
            if (!this.enableDisableRecycleBin) this.recyclebinTime = '0d';else this.recyclebinTime = '7d';
          } catch (error) {
            this.showError(error);
          }
        }
      }, {
        key: "checkForOcx",
        value: function checkForOcx() {
          try {
            if (sessionStorage.getItem('product') == 'netvision') {
              this.isOcx = true;
            } else {
              this.isOcx = false;
            }
          } catch (error) {
            console.error("Error in hiding Ocx", error);
          }
        }
      }, {
        key: "browserMethod",
        value: function browserMethod() {
          this.openFileExplorerDialog = true;
        }
      }, {
        key: "addingPath",
        value: function addingPath() {
          var samePath;

          for (var i = 0; i < this.cleanPath.length; i++) {
            if (this.cleanPath[i]['path'] == this.text1) {
              samePath = true;
            }
          }

          if (this.text1 == undefined || this.text1 == '') {
            this.showWarn("Path is Empty.");
          } else if (this.timeModel == undefined || this.timeModel == '') {
            this.showWarn("Please enter time.");
          } else if (this.timeForCustomPath == 0 || this.timeForCustomPath == null) {
            this.showWarn("Time cant be zero/empty.");
          } else if (samePath) {
            this.showWarn("Path already exist.");
          } else {
            var timePush;
            var tmarr;

            for (var _i2 = 0; _i2 < this.timeOptions.length; _i2++) {
              if (this.timeModel == this.timeOptions[_i2].value) {
                timePush = this.timeOptions[_i2].value;
                tmarr = this.timeOptions[_i2].value;
              }
            }

            this.customisedTimeModel = this.timeForCustomPath + timePush;
            this.timearrjsn = this.timeForCustomPath + tmarr;
            this.timearrForJson.push(this.timearrjsn);
            this.timeJson = {
              "path": this.text1,
              "time": this.customisedTimeModel
            };
            this.cleanPath.push(this.timeJson);
            this.showSuccess("Path added Successfully.");
            this.dateString = String(this.timeForCustomPath) + this.timeModel;
            this.text1 = '';
            this.timeModel = '';
            this.timeForCustomPath = null;
          }

          this.cleanPath = _toConsumableArray(this.cleanPath);
        }
      }, {
        key: "addToChip",
        value: function addToChip() {
          try {
            var currntDate;
            currntDate = moment__WEBPACK_IMPORTED_MODULE_4__(new Date());

            if (this.checked1) {
              if (Date.parse(this.compEndDate) < Date.parse(this.compStartDateBoth)) {
                this.showWarn("Start Date can not be greater than End Date.");
              } else if (this.cleanUpdates.includes(moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.compStartDateBoth)).format('YYYY/MM/DD') + ":" + moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.compEndDate)).format('YYYY/MM/DD'), 0)) {
                this.showWarn("Specified Date already added.");
              } else if (this.compStartDateBoth == 'Invalid date' || this.compStartDateBoth == undefined || this.compStartDateBoth == '') {
                this.showWarn("Please enter start and end date.");
              } else if (this.compEndDate == 'Invalid date' || this.compEndDate == undefined || this.compEndDate == '') {
                this.showWarn("Please enter End date.");
              } else {
                this.combinedDates = moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.compStartDateBoth)).format('YYYY/MM/DD') + ":" + moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.compEndDate)).format('YYYY/MM/DD');
                this.cleanUpdates.push(this.combinedDates);
                this.compEndDate = '';
                this.compStartDateBoth = '';
              }
            }

            if (!this.checked1) {
              if (this.cleanUpdates.includes(moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.compStartDate)).format('YYYY/MM/DD'), 0)) {
                this.showWarn("Specified Date already added.");
              } else if (this.compStartDate == 'Invalid date' || this.compStartDate == undefined || this.compStartDate == '') {
                this.showWarn("Please enter start date.");
              } else {
                this.combinedDates = moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.compStartDate)).format('YYYY/MM/DD');
                this.cleanUpdates.push(this.combinedDates);
                this.compStartDate = '';
              }
            }
          } catch (error) {
            console.error("Error in adding data to the input chip");
          }
        }
      }, {
        key: "addComponent",
        value: function addComponent() {
          try {
            var newComp = true;
            var newIndex;

            for (var i = 0; i < this.ComponentData.length; i++) {
              if (this.componentModel == this.ComponentData[i]['componentName']) {
                newIndex = i;
                newComp = false;
              }
            }

            if (this.componentModel == 'Select Component' || this.componentModel == '') {
              this.showWarn("Please Choose any Component.");
            } else {
              if (!newComp) {
                for (var j = 0; j < this.cleanUpdates.length; j++) {
                  if (this.ComponentData[newIndex]['dates'].includes(this.cleanUpdates[j])) {
                    this.showWarn("Date already exist for the component.");
                    return;
                  }
                }

                this.dateName = this.ComponentData[newIndex]['dates'] + "," + this.cleanUpdates.join(",");
                this.ComponentData[newIndex]['dates'] = this.dateName;
                this.showSuccess("Component added Successfully.");
              } else {
                this.dateName = this.cleanUpdates.join(",");
                this.componentJson = {
                  "componentName": this.componentModel,
                  "dates": this.dateName
                };
                this.ComponentData.push(this.componentJson);
                this.showSuccess("Component added Successfully.");
              }

              this.componentModel = "Select Component";
              this.cleanUpdates = [];
            }

            this.compStartDate = '';
            this.compStartDateBoth = '';
            this.compEndDate = '';
          } catch (error) {
            console.error("error in adding component", error);
          }

          this.ComponentData = _toConsumableArray(this.ComponentData);
        }
      }, {
        key: "deleteInComponentTable",
        value: function deleteInComponentTable(index) {
          this.ComponentData.splice(index, 1);
        }
      }, {
        key: "editComp",
        value: function editComp(val) {
          try {
            this.disableEdit = true;
            this.isUpdate = false;
            this.index = val;
            var arr = [];
            arr = this.ComponentData[val]['dates'].split(',');
            this.componentModel = this.ComponentData[val]['componentName'];

            for (var i = 0; i < arr.length; i++) {
              this.cleanUpdates.push(arr[i]);
            }
          } catch (error) {
            console.error("error in editing component data", error);
          }
        }
      }, {
        key: "editPath",
        value: function editPath(rowIndex) {
          try {
            this.pathIndex = rowIndex;
            this.iseditComp = true;
            this.text1 = this.cleanPath[rowIndex]['path'];
            this.timeForCustomPath = this.cleanPath[rowIndex]['time'].substring(0, this.cleanPath[rowIndex]['time'].length - 1);
            this.timeModel = this.cleanPath[rowIndex]['time'].substring(this.cleanPath[rowIndex]['time'].length - 1);
          } catch (error) {
            console.error("Error in editing Path", error);
          }
        }
      }, {
        key: "updatePath",
        value: function updatePath() {
          var updatedDate = '';

          if (this.timeModel == undefined || this.timeModel == '') {
            this.showWarn("Please enter time.");
          } else if (this.timeForCustomPath == null || this.timeForCustomPath == undefined || this.timeForCustomPath == 0) {
            this.showWarn("Custom path time can not be Zero/empty.");
          } else {
            this.updatedPath = true;
            updatedDate = this.timeForCustomPath + this.timeModel;
            this.cleanPath[this.pathIndex]['time'] = updatedDate;
            this.timearrForJson[this.pathIndex] = updatedDate;
            this.iseditComp = false;
            this.text1 = "";
            this.timeForCustomPath = 0;
            this.timeModel = '';
            this.showSuccess("Path updated successfully.");
          }
        }
      }, {
        key: "cancelUpdateForP",
        value: function cancelUpdateForP() {
          this.iseditComp = false;
          this.text1 = '';
          this.timeModel = '';
          this.timeForCustomPath = 0;
        }
      }, {
        key: "updateComp",
        value: function updateComp() {
          try {
            this.disableEdit = false;
            this.ComponentData[this.index]['dates'] = this.cleanUpdates.join(',');
            this.showSuccess("Component updated successfully.");
            this.isUpdate = true;
            this.cleanUpdates = [];
            this.componentModel = "Select Component";
          } catch (error) {
            console.error("error in updating the component", error);
          }
        }
      }, {
        key: "cancelUpdate",
        value: function cancelUpdate() {
          try {
            this.disableEdit = false;
            this.isUpdate = true;
            this.componentModel = "Select Component";
            this.cleanUpdates = [];
          } catch (error) {
            console.error("error in cancelling Update", error);
          }
        }
      }, {
        key: "delete",
        value: function _delete(index) {
          this.cleanPath.splice(index, 1);
          this.timearrForJson.splice(index, 1);
        }
      }, {
        key: "saveConfiguration",
        value: function saveConfiguration() {
          var _this5 = this;

          try {
            this.getRetentionData = true;
            var json = this.configuration;
            this.nfService.storeCuratorConfig({
              unit: this.ndeForDropDown[16],
              unit_count: this.ndeForTime[16]
            });
            var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_11__["environment"].api.serviceStats.ConfigureRetentionPolicy.endpoint;
            var temp = this.retentionService.getDataFromRESTUsingPOSTReq(url, '', json).subscribe(function (result) {
              _this5.getRetentionData = false;

              if (result['status'] == "SUCCESS") {
                _this5.showSuccess(result['message']);
              }

              if (result['status'] == "Error") {
                _this5.showError(result['message']);
              }
            }, function (error) {
              _this5.getRetentionData = false;

              _this5.showError(error);

              temp.unsubscribe();
            }, function () {
              temp.unsubscribe();
            });
          } catch (error) {
            console.error('error in Saving Configuration', error);
          }
        }
      }, {
        key: "getConfiguration",
        value: function getConfiguration() {
          var _this6 = this;

          try {
            var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_11__["environment"].api.serviceStats.getRetentionPolicyConfig.endpoint;
            this.temp = this.retentionService.getDataByRESTAPI(url, '').subscribe(function (result) {
              _this6.getRetentionData = false;

              if (result != '' && result != undefined && result['status'] != 'Error') {
                _this6.configurationResult = result;
                var startTime = _this6.configurationResult['startTime'];
                var endTime = _this6.configurationResult['endTime'];
                if (startTime != 0 && startTime != "") _this6.startTime = _this6.sessionService.convertTimeToSelectedTime(parseInt(startTime));else if (startTime == 0) _this6.startTime = "-";
                if (endTime != 0 && endTime != "") _this6.endTime = _this6.sessionService.convertTimeToSelectedTime(parseInt(endTime));else if (endTime == 0) _this6.endTime = "-";
                if (_this6.configurationResult['enableRetentionPolicy'] == 'true') _this6.enableDisableRetentionPolicy = true;else _this6.enableDisableRetentionPolicy = false;
                _this6.loglevel = _this6.configurationResult['logLevel'];
                _this6.logFilesize = _this6.configurationResult['logFileSize'];

                if (_this6.configurationResult['retentionMode'] != undefined) {
                  _this6.retentionMode = _this6.configurationResult['retentionMode'];
                } else {
                  _this6.retentionMode = "";
                }

                if (_this6.configurationResult['recycleBinTime'] != undefined && _this6.configurationResult['recycleBinTime'] != null && _this6.configurationResult['recycleBinTime'] != '' && _this6.configurationResult['recycleBinTime'] != '0d') {
                  _this6.enableDisableRecycleBin = true;
                  _this6.recyclebinTime = _this6.configurationResult['recycleBinTime'];
                } else _this6.enableDisableRecycleBin = false;

                _this6.recyclebinTime = _this6.configurationResult['recycleBinTime'];
                _this6.chipsForNegativeDate = [];
                var negDateArr = [];

                if (_this6.configurationResult['negativeDays'] != "" && _this6.configurationResult['negativeDays'] != undefined && _this6.configurationResult['negativeDays'] != null) {
                  if (_this6.configurationResult['negativeDays'].includes('|')) {
                    for (var i = 0; i < _this6.configurationResult['negativeDays'].split('|').length; i++) {
                      negDateArr.push(_this6.configurationResult['negativeDays'].split('|')[i]);
                    }
                  } else {
                    negDateArr.push(_this6.configurationResult['negativeDays']);
                  }

                  for (var _i3 = 0; _i3 < negDateArr.length; _i3++) {
                    _this6.chipsForNegativeDate.push(negDateArr[_i3]);
                  }
                }

                _this6.auditLogFile = _this6.configurationResult['auditLogFileSize']; // This block is for getting component data into table.

                _this6.ComponentData = [];

                if (_this6.configurationResult['cleanupNegativeDaysTime'].length > 0) {
                  for (var _i4 = 0; _i4 < _this6.configurationResult['cleanupNegativeDaysTime'].length; _i4++) {
                    if (_this6.configurationResult['cleanupNegativeDaysName'][_i4] == 'logs' || _this6.configurationResult['cleanupNegativeDaysName'][_i4] == 'db') continue;
                    _this6.componentJson1 = {
                      "componentName": _this6.configurationResult['cleanupNegativeDaysName'][_i4],
                      "dates": _this6.configurationResult['cleanupNegativeDaysTime'][_i4]
                    };

                    _this6.ComponentData.push(_this6.componentJson1);
                  }
                } // This block is for getting path data into table.


                _this6.cleanPath = [];

                if (_this6.configurationResult['customCleanUpPath'].length > 0) {
                  for (var _i5 = 0; _i5 < _this6.configurationResult['customCleanUpPath'].length; _i5++) {
                    _this6.pathJson = {
                      "path": _this6.configurationResult['customCleanUpPath'][_i5],
                      "time": _this6.configurationResult['customCleanUpVal'][_i5]
                    };

                    _this6.cleanPath.push(_this6.pathJson);

                    _this6.timearrForJson.push(_this6.configurationResult['customCleanUpVal'][_i5]);
                  }
                }

                if (_this6.configurationResult['cleanupmap']) _this6.setNDEForTime(_this6.configurationResult['cleanupmap']);
              } else {
                _this6.showError(result['message']);
              }
            }, function (error) {
              _this6.getRetentionData = false;

              _this6.showError(error);

              if (_this6.temp != undefined) _this6.temp.unsubscribe();
            }, function () {
              if (_this6.temp != undefined) _this6.temp.unsubscribe();
            });
          } catch (error) {
            this.showError(error);
          }
        }
      }, {
        key: "setNDEForTime",
        value: function setNDEForTime(cleanupmap) {
          for (var i = 0; i < Object.keys(cleanupmap).length; i++) {
            if (i == 0) {
              this.ndeForTime[i] = cleanupmap['graph_data'].substring(0, cleanupmap['graph_data'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['graph_data'].substring(cleanupmap['graph_data'].length - 1);
            }

            if (i == 1) {
              this.ndeForTime[i] = cleanupmap['har_file'].substring(0, cleanupmap['har_file'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['har_file'].substring(cleanupmap['har_file'].length - 1);
            }

            if (i == 2) {
              this.ndeForTime[i] = cleanupmap['pagedump'].substring(0, cleanupmap['pagedump'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['pagedump'].substring(cleanupmap['pagedump'].length - 1);
            }

            if (i == 3) {
              this.ndeForTime[i] = cleanupmap['na_traces'].substring(0, cleanupmap['na_traces'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['na_traces'].substring(cleanupmap['na_traces'].length - 1);
            }

            if (i == 4) {
              this.ndeForTime[i] = cleanupmap['db_agg'].substring(0, cleanupmap['db_agg'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['db_agg'].substring(cleanupmap['db_agg'].length - 1);
            }

            if (i == 6) {
              this.ndeForTime[i] = cleanupmap['test_data'].substring(0, cleanupmap['test_data'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['test_data'].substring(cleanupmap['test_data'].length - 1);
            }

            if (i == 7) {
              this.ndeForTime[i] = cleanupmap['reports'].substring(0, cleanupmap['reports'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['reports'].substring(cleanupmap['reports'].length - 1);
            }

            if (i == 8) {
              this.ndeForTime[i] = cleanupmap['dbg_tr'].substring(0, cleanupmap['dbg_tr'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['dbg_tr'].substring(cleanupmap['dbg_tr'].length - 1);
            }

            if (i == 9) {
              this.ndeForTime[i] = cleanupmap['arch_tr'].substring(0, cleanupmap['arch_tr'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['arch_tr'].substring(cleanupmap['arch_tr'].length - 1);
            }

            if (i == 10) {
              this.ndeForTime[i] = cleanupmap['tr'].substring(0, cleanupmap['tr'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['tr'].substring(cleanupmap['tr'].length - 1);
            }

            if (i == 11) {
              this.ndeForTime[i] = cleanupmap['csv'].substring(0, cleanupmap['csv'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['csv'].substring(cleanupmap['csv'].length - 1);
            }

            if (i == 12) {
              this.ndeForTime[i] = cleanupmap['access_log'].substring(0, cleanupmap['access_log'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['access_log'].substring(cleanupmap['access_log'].length - 1);
            }

            if (i == 13) {
              this.ndeForTime[i] = cleanupmap['raw_data'].substring(0, cleanupmap['raw_data'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['raw_data'].substring(cleanupmap['raw_data'].length - 1);
            }

            if (i == 14) {
              this.ndeForTime[i] = cleanupmap['configs'].substring(0, cleanupmap['configs'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['configs'].substring(cleanupmap['configs'].length - 1);
            }

            if (i == 16) {
              this.ndeForTime[i] = cleanupmap['log_mon_config'].substring(0, cleanupmap['log_mon_config'].length - 1);
              this.ndeForDropDown[i] = cleanupmap['log_mon_config'].substring(cleanupmap['log_mon_config'].length - 1);
            }
          }
        }
        /**For dialog when reset button clicked */

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

          this.confirmationService.confirm({
            message: 'All configurations will reset to default values. Do you want to proceed?' + '\n <b>Note:</b>' + ' Save configurations after reset.',
            header: 'Reset Confirmation',
            icon: 'pi pi-info-circle',
            key: 'resetConfirmation',
            accept: function accept() {
              _this7.setDefaultFields();
            },
            reject: function reject() {}
          });
        }
        /**For Initialising Default Fields in Dropdown */

      }, {
        key: "setDefaultFields",
        value: function setDefaultFields() {
          try {
            this.backupPath = '/home/cavisson/backup';
            this.controller = 'work';
            this.logFilesize = '10';
            this.enableDisableRecycleBin = true;
            this.recyclebinTimeOptions.push({
              'label': '--Select Time--',
              'value': 'Select Time'
            });
            this.recyclebinTimeOptions.push({
              'label': '1 Day',
              'value': '1d'
            });
            this.recyclebinTimeOptions.push({
              'label': '2 Day',
              'value': '2d'
            });
            this.recyclebinTimeOptions.push({
              'label': '3 Day',
              'value': '3d'
            });
            this.recyclebinTimeOptions.push({
              'label': '4 Day',
              'value': '4d'
            });
            this.recyclebinTimeOptions.push({
              'label': '5 Day',
              'value': '5d'
            });
            this.recyclebinTimeOptions.push({
              'label': '6 Day',
              'value': '6d'
            });
            this.recyclebinTimeOptions.push({
              'label': '7 Day',
              'value': '7d'
            });
            this.recyclebinTime = '7d';
            this.logLevelOptions.push({
              'label': 'Errors and Warnings',
              'value': '1'
            });
            this.logLevelOptions.push({
              'label': 'Information',
              'value': '2'
            });
            this.logLevelOptions.push({
              'label': 'Details',
              'value': '3'
            });
            this.logLevelOptions.push({
              'label': 'Detailed Data',
              'value': '4'
            });
            this.timeOptions.push({
              'label': 'Year',
              'value': 'y'
            });
            this.timeOptions.push({
              'label': 'Month',
              'value': 'm'
            });
            this.timeOptions.push({
              'label': 'Week',
              'value': 'w'
            });
            this.timeOptions.push({
              'label': 'Day',
              'value': 'd'
            });
            this.debugTestRunOptions = [{
              label: 'Week',
              value: 'w'
            }, {
              label: 'Day',
              value: 'd'
            }];
            this.timeOption = [{
              label: 'Month',
              value: 'm'
            }, {
              label: 'Week',
              value: 'w'
            }, {
              label: 'Day',
              value: 'd'
            }];
            this.timeModel = '';
            this.logLevel = '1';
            this.testRunOptions.push({
              'label': '--Select Test Run--',
              'value': 'select Test Run'
            });
            this.testRun = 'select Test Run';
            this.chipsForTestRun = [];
            this.startDate = '';
            this.endDate = '';
            this.timeForCustomPath = 0;
            this.chipsForNegativeDate = [];
            this.retentionMode = "";
            this.ndeForDropDown = ['m', 'm', 'm', 'm', 'y', 'w', 'm', 'm', 'd', 'm', 'm', 'm', 'm', 'w', 'm', 'd', 'w'];
            this.ndeForTime = [3, 1, 1, 1, 3, 2, 1, 2, 1, 3, 1, 1, 1, 2, 1, 1, 2];
            this.ndeDateArr = ['3', '1', '1', '1', '1', '2', '1', '2', '1', '3', '1', '1', '1', '2', '1', '1', '2'];
            this.ndeMonthArr = ['m', 'm', 'm', 'm', 'y', 'w', 'm', 'm', 'd', 'd', 'm', 'm', 'm', 'w', 'm', 'd', 'w'];
            this.cleanPath = [];
            this.ComponentData = [];
            this.logFilesize = '10';
            this.auditLogFile = '10';
            this.loglevel = "";
            this.componentModel = "";
            this.compStartDate = '';
            this.compStartDateBoth = '';
            this.compEndDate = '';
            this.cleanUpdates = [];
          } catch (error) {
            console.error("error in initialising default value in array", error);
          }
        }
      }, {
        key: "checkUpperLimit",
        value: function checkUpperLimit() {
          try {
            this.ndeConfigurationData();
            var limitArr = [];
            var nameArr = [];
            limitArr = [1095, 365, 365, 365, 1095, 90, 365, 365, 28, 1095, 365, 180, 90, 30, 365];
            var showLimitArr = ['3 Year', '1 Year', '1 Year', '1 Year', '3 Year', '3 Month', '1 Year', '1 Year', '4 Weeks', '3 Year', '1 Year', '6 Month', '3 Month', '1 Month', '1 Year'];
            nameArr = ['Metric Data', ' Resource Timing', 'Page Dumps', 'Drill Down Data', 'Aggregated Drill Down Data', 'User Session Replay Data', 'Diagnostics Data', 'Reports', 'Debug Testrun', 'Archive Testrun', 'TR', 'Processed Data', 'Cavisson Product Logs', 'Raw Data', 'Configs'];
            var multiplier;

            for (var i = 0; i < 16; i++) {
              if (this.ndeForDropDown[i] == 'd') {
                multiplier = this.ndeForTime[i];
              } else if (this.ndeForDropDown[i] == 'm') {
                multiplier = this.ndeForTime[i] * 30;
              } else if (this.ndeForDropDown[i] == 'w') {
                multiplier = this.ndeForTime[i] * 7;
              } else {
                multiplier = this.ndeForTime[i] * 365;
              }

              if (multiplier > limitArr[i]) {
                this.showError("The upper limit for ".concat(nameArr[i], " is ").concat(showLimitArr[i], "."));
                return;
              }
            }

            this.saveConfiguration();
          } catch (error) {
            console.error("error in matching upper Limit", error);
          }
        }
        /**For adding data on p-chips array */

      }, {
        key: "callOnAddButton",
        value: function callOnAddButton(val) {
          try {
            if (this.checked) {
              if (val == 'negativeDate') {
                var currentDate;
                currentDate = moment__WEBPACK_IMPORTED_MODULE_4__(new Date());

                if (this.startDate == "" && this.endDate == "") {
                  this.showWarn("Please enter start and end date.");
                } else if (this.startDate != "" && this.endDate == "") {
                  this.showWarn("End  Date can not be Blank.");
                } else if (this.startDate == "" && this.endDate != "") {
                  this.showWarn("Start Date can not be Blank.");
                } else if (Date.parse(this.endDate) < Date.parse(this.startDate)) {
                  this.showWarn("Start Date can not be greater than End Date.");
                } else if (Date.parse(this.startDate) + 75600000 < Date.parse(currentDate)) {
                  this.showWarn("Start Date can not be less than Current Date.");
                } else if (Date.parse(this.endDate) < Date.parse(currentDate)) {
                  this.showWarn("End Date can not be less than Current Date.");
                } else {
                  var startDate = moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.startDate)).format('YYYY/MM/DD');
                  var endDate = moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.endDate)).format('YYYY/MM/DD');
                  var negDateToShow = '';

                  if (startDate != endDate) {
                    negDateToShow = startDate + ":" + endDate;
                  }

                  if (startDate == endDate && startDate != undefined && endDate != undefined) {
                    negDateToShow = startDate;
                  }

                  if (this.chipsForNegativeDate.includes(negDateToShow)) {
                    this.showWarn("Date already exist.");
                  } else {
                    this.chipsForNegativeDate.push(negDateToShow);
                    this.startDate = '';
                    this.endDate = '';
                  }
                }
              }
            }

            if (!this.checked) {
              var _currentDate;

              _currentDate = moment__WEBPACK_IMPORTED_MODULE_4__(new Date());

              if (this.chipsForNegativeDate.includes(moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.startDate)).format('YYYY/MM/DD'), 0)) {
                this.showWarn("Specified Date already added.");
              } else if (Date.parse(this.startDate) + 75600000 < Date.parse(_currentDate)) {
                this.showWarn("Start Date can not be less than Current Date.");
              } else if (this.startDate == 'Invalid date' || this.startDate == undefined || this.startDate == '') {
                this.showWarn("Please enter start date.");
              } else {
                var _negDateToShow = '';
                _negDateToShow = moment__WEBPACK_IMPORTED_MODULE_4__(new Date(this.startDate)).format('YYYY/MM/DD');
                this.chipsForNegativeDate.push(_negDateToShow);
                this.startDate = '';
                this.endDate = '';
              }
            }
          } catch (error) {}
        }
      }, {
        key: "saveData",
        value: function saveData() {
          try {
            //below checks added for bug 134310
            var logfilesize = +this.logFilesize;
            var auditfilesize = +this.auditLogFile;

            if (logfilesize > 1024) {
              this.showError("Maximum Log File size can be 1024 MB");
              return;
            }

            if (auditfilesize > 1024) {
              this.showError("Maximum Audit Logs File size can be 1024 MB");
              return;
            }

            this.checkUpperLimit();
          } catch (error) {
            console.error("eror in saveData ------->>>", error);
          }
        }
      }, {
        key: "tabChange",
        value: function tabChange(event) {
          try {
            this.tabIndex = event.index;
          } catch (error) {
            console.error("error in tabChange ----->>>>>", error);
          }
        }
      }, {
        key: "validateAllFields",
        value: function validateAllFields() {
          try {
            if (this.ndeForDropDown[0] == "" || this.ndeForDropDown[0] == null || this.ndeForDropDown[0] == undefined) {
              this.showError("Row data is blank");
              return false;
            }

            if (this.ndeForDropDown[1] == "" || this.ndeForDropDown[1] == null || this.ndeForDropDown[1] == undefined) {
              this.showError("Csv Data is blank");
              return false;
            }

            if (this.ndeForDropDown[2] == "" || this.ndeForDropDown[2] == null || this.ndeForDropDown[2] == undefined) {
              this.showError("Logs is blank");
              return false;
            }

            if (this.ndeForDropDown[3] == "" || this.ndeForDropDown[3] == null || this.ndeForDropDown[3] == undefined) {
              this.showError("DB is blank");
              return false;
            }

            if (this.ndeForDropDown[4] == "" || this.ndeForDropDown[4] == null || this.ndeForDropDown[4] == undefined) {
              this.showError("Graph Data is blank");
              return false;
            }

            if (this.ndeForDropDown[5] == "" || this.ndeForDropDown[5] == null || this.ndeForDropDown[5] == undefined) {
              this.showError("Har File is blank");
              return false;
            }

            if (this.ndeForDropDown[6] == "" || this.ndeForDropDown[6] == null || this.ndeForDropDown[6] == undefined) {
              this.showError("Page Dump is blank");
              return false;
            }

            if (this.ndeForTime[0] == "0" || this.ndeForTime[0] == "" || this.ndeForTime[0] == undefined || this.ndeForTime[0] == null) {
              this.showError("Row data value is blank");
              return false;
            }

            if (this.ndeForTime[1] == "0" || this.ndeForTime[1] == "" || this.ndeForTime[1] == undefined || this.ndeForTime[1] == null) {
              this.showError("Csv Data value is blank");
              return false;
            }

            if (this.ndeForTime[2] == "0" || this.ndeForTime[2] == "" || this.ndeForTime[2] == undefined || this.ndeForTime[2] == null) {
              this.showError("Logs value is blank");
              return false;
            }

            if (this.ndeForTime[3] == "0" || this.ndeForTime[3] == "" || this.ndeForTime[3] == undefined || this.ndeForTime[3] == null) {
              this.showError("DB value is blank");
              return false;
            }

            if (this.ndeForTime[4] == "0" || this.ndeForTime[4] == "" || this.ndeForTime[4] == undefined || this.ndeForTime[4] == null) {
              this.showError("Graph Data value is blank");
              return false;
            }

            if (this.ndeForTime[5] == "0" || this.ndeForTime[5] == "" || this.ndeForTime[5] == undefined || this.ndeForTime[5] == null) {
              this.showError("Har File value is blank");
              return false;
            }

            if (this.ndeForTime[6] == "0" || this.ndeForTime[6] == "" || this.ndeForTime[6] == undefined || this.ndeForTime[6] == null) {
              this.showError("Page Dump value is blank");
              return false;
            }

            return true;
          } catch (error) {
            console.error("error in  validateAllFields -------->>>>", error);
          }
        }
      }, {
        key: "showErrorMsg",
        value: function showErrorMsg(message) {
          message = message.replace(/\\n/g, "\n");
          this.msgs = [{
            severity: 'error',
            summary: 'Error',
            detail: message
          }];
        }
      }, {
        key: "createJson",
        value: function createJson() {
          try {
            var json = {
              "raw_data_time": this.ndeForTime[0],
              "csv_time": this.ndeForTime[1],
              "logs_time": this.ndeForTime[2],
              "db_time": this.ndeForTime[3],
              "Graph_Data_time": this.ndeForTime[4],
              "Har_File_time": this.ndeForTime[5],
              "Page_Dump_time": this.ndeForTime[6]
            };
            return json;
          } catch (error) {
            console.error("error in createJson ------>>>>", error);
          }
        }
      }, {
        key: "addPathwithBroadCaster",
        value: function addPathwithBroadCaster() {
          var _this8 = this;

          try {
            this.sub3 = this.retentionService.getDataObserverForRetention$.subscribe(function (result) {
              _this8.text1 = result;
              _this8.openFileExplorerDialog = false;
            }, function (error) {
              _this8.sub3.unsubscribe();

              console.error('error in gettng a result', error);
            }, function () {
              _this8.sub3.unsubscribe();
            });
          } catch (error) {
            console.error(error);
          }

          ;
        }
      }, {
        key: "ndeConfigurationData",
        value: function ndeConfigurationData() {
          try {
            var arr = [];
            var arr2 = [];
            var arr3 = [];
            var arr4 = [];
            var arr5 = [];
            this.enableRetentionPolicy = this.enableDisableRetentionPolicy;

            for (var i = 0; i < this.columns.length; i++) {
              arr.push(this.columns[i].header);

              if (this.ndeForTime[i] == null || this.ndeForTime[i] == undefined || this.ndeForTime[i] == '') {
                this.ndeForTime[i] = this.ndeDateArr[i];
                this.ndeForDropDown[i] = this.ndeMonthArr[i];
              }

              arr2.push(this.ndeForTime[i] + this.ndeForDropDown[i]);
            }

            arr.push('db', 'logs');
            arr2.push(this.ndeForTime[3] + this.ndeForDropDown[3], this.ndeForTime[12] + this.ndeForDropDown[12]);
            this.logLevel = this.loglevel;
            this.logFileSize = String(this.logFilesize);
            this.cleanupDetailsName = arr.join("|");
            this.cleanupDetailsTime = arr2.join("|");
            this.testRun = this.chipsForTestRun.join("|");

            if (this.enableDisableRecycleBin == false) {
              this.recycleBinTime = "0d";
            } else {
              this.recycleBinTime = this.recyclebinTime;
            }

            this.negativeDays = this.chipsForNegativeDate.join("|");

            if (this.text1 != undefined || this.text1 != null) {
              this.globalColumns = this.text1;
            } else {
              this.customCleanUpPath = "";
            }

            for (var _i6 = 0; _i6 < this.ComponentData.length; _i6++) {
              arr3.push(this.ComponentData[_i6]['dates']);
              arr4.push(this.ComponentData[_i6]['componentName']);

              if (this.ComponentData[_i6]['componentName'] == 'access_log') {
                arr3.push(this.ComponentData[_i6]['dates']);
                arr4.push('logs');
              }

              if (this.ComponentData[_i6]['componentName'] == 'na_traces') {
                arr3.push(this.ComponentData[_i6]['dates']);
                arr4.push('db');
              }
            }

            this.pathString = "";

            for (var _i7 = 0; _i7 < this.cleanPath.length; _i7++) {
              arr5.push(this.cleanPath[_i7]['path']);
              this.pathString = arr5.join('|');
            }

            this.pathVal = this.timearrForJson.join('|');
            this.dateName = arr3.join("|");
            this.compName = arr4.join("|");
            this.controller = this.sessionService.preSession.controllerName;

            if (this.loglevel == '' || this.loglevel == undefined) {
              this.loglevel = "1";
            }

            if (this.logFilesize == '0' || this.logFilesize == undefined) {
              this.logFileSize = "10";
            }

            if (this.auditLogFile == '0' || this.auditLogFile == undefined) {
              this.auditLogFile = "10";
            }

            if (this.recyclebinTime == 'Select Time' || this.recyclebinTime == undefined) {
              this.recycleBinTime = "0d";
            }

            this.configuration = {
              "enableRetentionPolicy": this.enableDisableRetentionPolicy,
              "logLevel": this.loglevel,
              "logFileSize": this.logFileSize,
              "retentionMode": this.retentionMode,
              "cleanupDetailsName": this.cleanupDetailsName,
              "cleanupDetailsTime": this.cleanupDetailsTime,
              "backupPath": this.backupPath,
              "controller": this.controller,
              "recycleBinTime": this.recycleBinTime,
              "negativeDays": this.negativeDays,
              "cleanupNegativeDaysName": this.compName,
              "cleanupNegativeDaysTime": this.dateName,
              "customCleanUpPath": this.pathString,
              "customCleanUpVal": this.pathVal,
              "auditLogFileSize": this.auditLogFile
            };
          } catch (error) {
            console.error("Error in printing configuration data", error);
          }
        }
      }, {
        key: "showSuccess",
        value: function showSuccess(msg) {
          this.messageService.add({
            severity: 'success',
            summary: 'Success Message',
            detail: msg
          });
        }
      }, {
        key: "showError",
        value: function showError(msg) {
          this.messageService.add({
            severity: 'error',
            summary: 'Error Message',
            detail: msg
          });
        }
      }, {
        key: "showWarn",
        value: function showWarn(msg) {
          this.messageService.add({
            severity: 'warn',
            summary: 'Warning',
            detail: msg
          });
        }
      }, {
        key: "pathBind",
        value: function pathBind(path) {
          this.fileAndFolderPath = path + "";
          if (!path) this.showError("Please select a file, not a folder.");
          this.text1 = path;
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b, _c, _d;

          var rowData = event.cavEventExt.rowIndex;

          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) == "edit") {
            this.editComp(rowData);
          }

          if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.actionConfig) === null || _d === void 0 ? void 0 : _d.action) == "deleteRow") {
            this.deleteInComponentTable(rowData);
          }
        }
      }, {
        key: "clickButtonEventForCleanup",
        value: function clickButtonEventForCleanup(event) {
          var _a, _b, _c, _d;

          var rowData = event.cavEventExt.rowIndex;

          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) == "edit") {
            this.editPath(rowData);
          }

          if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.actionConfig) === null || _d === void 0 ? void 0 : _d.action) == "deleteRow") {
            this["delete"](rowData);
          }
        }
      }]);
    }();

    RetentionPolicyMainComponent.ROUTE_DATA_BREADCRUMB = 'breadcrumb';

    RetentionPolicyMainComponent.ctorParameters = function () {
      return [{
        type: primeng_api__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]
      }, {
        type: _services_retention_policy_common_service__WEBPACK_IMPORTED_MODULE_3__["RetentionPolicyCommonService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_6__["SessionService"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_10__["CavMessageService"]
      }, {
        type: src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_9__["CavNavBarService"]
      }, {
        type: _home_logstab_service_nf_logs_service__WEBPACK_IMPORTED_MODULE_5__["NfLogsService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('fileManager', {
      read: src_app_shared_file_manager_file_manager_component__WEBPACK_IMPORTED_MODULE_8__["FileManagerComponent"]
    })], RetentionPolicyMainComponent.prototype, "fileManager", void 0);
    RetentionPolicyMainComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-retention-policy-main',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./retention-policy-main.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.html"))["default"],
      providers: [src_app_shared_pipes_ellipsis_ellipsis_pipe__WEBPACK_IMPORTED_MODULE_7__["EllipsisPipe"]],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./retention-policy-main.component.css */
      "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.css"))["default"]]
    })], RetentionPolicyMainComponent);
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/retention-policy.module.ts":
  /*!*******************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/retention-policy.module.ts ***!
    \*******************************************************************************/

  /*! exports provided: RetentionPolicyModule */

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

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


    __webpack_require__.d(__webpack_exports__, "RetentionPolicyModule", function () {
      return RetentionPolicyModule;
    });
    /* 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 _routes_retention_policy_route__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./routes/retention-policy-route */
    "./src/app/pages/tools/admin/retention-policy/routes/retention-policy-route.ts");
    /* harmony import */


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


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.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 _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! @angular/common */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
    /* harmony import */


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


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


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


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


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


    var _components_retention_policy_main_retention_policy_main_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ./components/retention-policy-main/retention-policy-main.component */
    "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.ts");
    /* harmony import */


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


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


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


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


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


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


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


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


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


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


    var _components_retention_policy_main_headerFormatPipe__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
    /*! ./components/retention-policy-main/headerFormatPipe */
    "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/headerFormatPipe.ts");
    /* harmony import */


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


    var src_app_shared_file_manager_file_manager_module__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
    /*! src/app/shared/file-manager/file-manager.module */
    "./src/app/shared/file-manager/file-manager.module.ts");
    /* harmony import */


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


    var _services_retention_policy_common_service__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
    /*! ./services/retention-policy-common.service */
    "./src/app/pages/tools/admin/retention-policy/services/retention-policy-common.service.ts");
    /* harmony import */


    var _components_retention_policy_file_explorer_retention_policy_file_explorer_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
    /*! ./components/retention-policy-file-explorer/retention-policy-file-explorer.component */
    "./src/app/pages/tools/admin/retention-policy/components/retention-policy-file-explorer/retention-policy-file-explorer.component.ts");
    /* harmony import */


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


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


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

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

    RetentionPolicyModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_components_retention_policy_main_retention_policy_main_component__WEBPACK_IMPORTED_MODULE_13__["RetentionPolicyMainComponent"], _components_retention_policy_file_explorer_retention_policy_file_explorer_component__WEBPACK_IMPORTED_MODULE_29__["RetentionPolicyFileExplorerComponent"], _components_retention_policy_main_headerFormatPipe__WEBPACK_IMPORTED_MODULE_24__["headerFormatPipe"]],
      entryComponents: [],
      imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(_routes_retention_policy_route__WEBPACK_IMPORTED_MODULE_3__["RETENTIONPOLICY_ROUTES"]), _angular_common_http__WEBPACK_IMPORTED_MODULE_5__["HttpClientModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["CommonModule"], primeng_table__WEBPACK_IMPORTED_MODULE_4__["TableModule"], primeng_radiobutton__WEBPACK_IMPORTED_MODULE_15__["RadioButtonModule"], primeng_listbox__WEBPACK_IMPORTED_MODULE_16__["ListboxModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_17__["DropdownModule"], primeng_multiselect__WEBPACK_IMPORTED_MODULE_18__["MultiSelectModule"], primeng_panel__WEBPACK_IMPORTED_MODULE_19__["PanelModule"], primeng_toast__WEBPACK_IMPORTED_MODULE_20__["ToastModule"], primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_22__["ConfirmDialogModule"], primeng_inputswitch__WEBPACK_IMPORTED_MODULE_14__["InputSwitchModule"], primeng_tabview__WEBPACK_IMPORTED_MODULE_8__["TabViewModule"], primeng_calendar__WEBPACK_IMPORTED_MODULE_9__["CalendarModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_10__["FieldsetModule"], primeng_accordion__WEBPACK_IMPORTED_MODULE_11__["AccordionModule"], primeng_dialog__WEBPACK_IMPORTED_MODULE_12__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_23__["BreadcrumbModule"], src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_25__["HeaderModule"], primeng__WEBPACK_IMPORTED_MODULE_23__["ToolbarModule"], src_app_shared_file_manager_file_manager_module__WEBPACK_IMPORTED_MODULE_26__["FileManagerModule"], primeng_chips__WEBPACK_IMPORTED_MODULE_27__["ChipsModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_30__["FileUploadModule"], primeng__WEBPACK_IMPORTED_MODULE_23__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_23__["TooltipModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_31__["CavTableModule"]],
      providers: [primeng_api__WEBPACK_IMPORTED_MODULE_21__["ConfirmationService"], primeng_api__WEBPACK_IMPORTED_MODULE_21__["MessageService"], _services_retention_policy_common_service__WEBPACK_IMPORTED_MODULE_28__["RetentionPolicyCommonService"], {
        provide: _access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_32__["ACL_PROPS"],
        useFactory: _access_control_management_services_cav_acl_util__WEBPACK_IMPORTED_MODULE_32__["getSettingsRetentionPolicyACLProps"]
      }],
      bootstrap: []
    })], RetentionPolicyModule);
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/routes/retention-policy-route.ts":
  /*!*************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/routes/retention-policy-route.ts ***!
    \*************************************************************************************/

  /*! exports provided: RETENTIONPOLICY_ROUTES */

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

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


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


    var _components_retention_policy_main_retention_policy_main_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! ../components/retention-policy-main/retention-policy-main.component */
    "./src/app/pages/tools/admin/retention-policy/components/retention-policy-main/retention-policy-main.component.ts");

    var RETENTIONPOLICY_ROUTES = [{
      path: '',
      component: _components_retention_policy_main_retention_policy_main_component__WEBPACK_IMPORTED_MODULE_0__["RetentionPolicyMainComponent"]
    }];
    /***/
  },

  /***/
  "./src/app/pages/tools/admin/retention-policy/services/retention-policy-common.service.ts":
  /*!************************************************************************************************!*\
    !*** ./src/app/pages/tools/admin/retention-policy/services/retention-policy-common.service.ts ***!
    \************************************************************************************************/

  /*! exports provided: RetentionPolicyCommonService */

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

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


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


    var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! rxjs */
    "./node_modules/rxjs/_esm2015/index.js");
    /* 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");
    /* harmony import */


    var rxjs_internal_operators_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! rxjs/internal/operators/map */
    "./node_modules/rxjs/internal/operators/map.js");
    /* harmony import */


    var rxjs_internal_operators_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_map__WEBPACK_IMPORTED_MODULE_5__);
    /* harmony import */


    var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! rxjs/internal/operators/catchError */
    "./node_modules/rxjs/internal/operators/catchError.js");
    /* harmony import */


    var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__);

    var RetentionPolicyCommonService = /*#__PURE__*/function () {
      function RetentionPolicyCommonService(sessionService, http) {
        _classCallCheck(this, RetentionPolicyCommonService);

        this.sessionService = sessionService;
        this.http = http;
        /** action to identify call */

        this.action = '';
        this.globalAddPath = '';
        /**Observable tier name string for middle component */

        this.retentionPolicyInfo = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
        this.getDataBroadCasterForFileExplorer = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
        this.getDataObserverForRetention$ = this.getDataBroadCasterForFileExplorer.asObservable();
        /*Service Observable for getting Tier name*/

        this.retentionPolicyProvider$ = this.retentionPolicyInfo.asObservable();
        this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]();
      }

      return _createClass(RetentionPolicyCommonService, [{
        key: "getDataFromRESTUsingPOSTReq",
        value: function getDataFromRESTUsingPOSTReq(url, param, data) {
          try {
            if (url.indexOf('=') != -1) {
              url = url + '&productkey=' + this.sessionService.session.cctx.pk;
            } else {
              url = url + '?productkey=' + this.sessionService.session.cctx.pk;
            }

            if (url.indexOf('?')) return this.http.post(url + param, data).map(function (response) {
              return response;
            })["catch"](function (e) {
              return e;
            });
          } catch (e) {}
        }
      }, {
        key: "getDataByRESTAPI",
        value: function getDataByRESTAPI(url, param) {
          try {
            this.headers = this.headers.append('cctx', localStorage.getItem('cctx'));
            return this.http.get(url + param, {
              'headers': this.headers
            }).pipe(Object(rxjs_internal_operators_map__WEBPACK_IMPORTED_MODULE_5__["map"])(function (response) {
              return response;
            }), Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__["catchError"])(function (e) {
              if (e.status == 400) {}

              return rxjs__WEBPACK_IMPORTED_MODULE_3__["Observable"]["throw"](new Error("".concat(e.status, " ").concat(e.statusText)));
            }));
          } catch (e) {}
        }
      }]);
    }();

    RetentionPolicyCommonService.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"]
      }, {
        type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]
      }];
    };

    RetentionPolicyCommonService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])()], RetentionPolicyCommonService);
    /***/
  }
}]);