Viewing File: /usr/local/cpanel/base/frontend/jupiter/imunify/assets/static/main.47a1b195ea47e156903b.js

!function(c){function t(t){for(var n,e,r=t[0],o=t[1],i=t[2],a=0,u=[];a<r.length;a++)l[e=r[a]]&&u.push(l[e][0]),l[e]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(c[n]=o[n]);for(d&&d(t);u.length;)u.shift()();return f.push.apply(f,i||[]),s()}function s(){for(var t,n=0;n<f.length;n++){for(var e=f[n],r=!0,o=1;o<e.length;o++)0!==l[e[o]]&&(r=!1);r&&(f.splice(n--,1),t=p(p.s=e[0]))}return t}var e={},l={22:0},f=[];function p(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return c[t].call(n.exports,n,n.exports,p),n.l=!0,n.exports}p.e=function(i){var t,n=[],e=l[i];if(0!==e)if(e)n.push(e[2]);else{var r=new Promise(function(t,n){e=l[i]=[t,n]});n.push(e[2]=r);var o,a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.charset="utf-8",u.timeout=120,p.nc&&u.setAttribute("nonce",p.nc),u.src=p.p+""+({0:"default~app-core-admin-module-ngfactory~app-core-client-module-ngfactory",1:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~ef745755",2:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~d0237743",3:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~5ca290bd",4:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~c9079874",5:"default~app-components-av-av-module-ngfactory~app-components-login-login-module-ngfactory~app-compon~c80d3259",6:"default~app-components-login-login-module-ngfactory~app-components-proactive-defense-module-ngfactor~be763585",7:"default~app-components-av-av-module-ngfactory~app-core-admin-module-ngfactory~app-core-client-module~6b720ff5",8:"default~app-components-av-av-module-ngfactory~app-core-admin-module-ngfactory",9:"app-components-av-av-module-ngfactory",10:"app-components-dashboard-dashboard-module-ngfactory",11:"app-components-eula-eula-module-ngfactory",12:"app-components-features-disabled-features-disabled-module-ngfactory",13:"app-components-installation-installation-module-ngfactory",14:"app-components-login-login-module-ngfactory",15:"app-components-proactive-defense-module-ngfactory",16:"app-components-reputation-reputation-module-ngfactory",17:"app-components-settings-notifications-settings-notification-module-ngfactory",18:"app-components-showcase-showcase-module-ngfactory",19:"app-components-support-support-module-ngfactory",20:"app-core-admin-module-ngfactory",21:"app-core-client-module-ngfactory"}[t=i]||t)+"."+{0:"6acca725b4ba52a5be28",1:"3b4ba2dec7738c13179e",2:"73ad5eb4295885aadc6f",3:"7a2cd7fe1e2a3c761bfc",4:"7e4b325d89f989ee1b33",5:"cb38abcdff154415da05",6:"b56f1cf0a434645676b6",7:"92c42f3aa2fe93b94d57",8:"b539af17a51d439588b8",9:"5ee9665ec9ee2efd0641",10:"f08dbac2aff9fb673e06",11:"04ac87915077447bd204",12:"b17195096782151261ff",13:"81a74884c6f19b44981b",14:"9ffeb745b8a57a2aae73",15:"c4ae86a2d0371d7ec8e2",16:"c18aa2b830f4a3fcc3f9",17:"3419a2ce2b2b580a5b38",18:"e36489b5b9d588f31167",19:"3ab475fc65838a074834",20:"3500beec2a1e4fb36f1f",21:"54feff1352a4353ae7c3",25:"b16790100a1f0e55372b",26:"7c73c9ce614ddfb0bbc7",27:"2e7df12a94ec8e42d262",28:"7d75ca4ea29baa64d58d",29:"5118e84658b23f7a9abb",30:"94da5674f7224bddddb2",31:"a60c08adbff5148b6b02",32:"f762bbe40c76c8975b56",33:"670aa55d991be6526e63",34:"416f16bee1f61b581c84",35:"845d0ab8fa34987de289",36:"f2505987e54174f8b724"}[t]+".js",o=function(t){u.onerror=u.onload=null,clearTimeout(c);var n=l[i];if(0!==n){if(n){var e=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src,o=new Error("Loading chunk "+i+" failed.\n("+e+": "+r+")");o.type=e,o.request=r,n[1](o)}l[i]=void 0}};var c=setTimeout(function(){o({type:"timeout",target:u})},12e4);u.onerror=u.onload=o,a.appendChild(u)}return Promise.all(n)},p.m=c,p.c=e,p.d=function(t,n,e){p.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},p.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p.t=function(n,t){if(1&t&&(n=p(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(p.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)p.d(e,r,function(t){return n[t]}.bind(null,r));return e},p.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return p.d(n,"a",n),n},p.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},p.p="",p.oe=function(t){throw t};var n=window.webpackJsonpImunify360=window.webpackJsonpImunify360||[],r=n.push.bind(n);n.push=t,n=n.slice();for(var o=0;o<n.length;o++)t(n[o]);var d=r;f.push([0,24]),s()}({0:function(t,n,e){t.exports=e("iTwO")},"1xS/":function(t,n,e){"use strict";e.d(n,"a",function(){return d}),e.d(n,"c",function(){return h}),e.d(n,"b",function(){return g});var i=e("mrSG"),r=e("A7o+"),o=e("pfGN"),u=e("+umK"),a=e("wd/R"),c=e("eDkP"),s=e("Fzqc"),l=e("67Y/"),f=e("NlKi"),p=r.k.prototype.getParsedResult,d="panelLang",h=function(){function t(t){this.value=t}return t.for=function(t){return new this(t||"")},Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.value},t}(),m=[/^One or more domains provided do not exist.*/,/^malware\.onDemand\.status.*/,/Path .* should be absolute/,/^IP [0-9a-fA-F\.\/\:]* is already in [A-Z]* list/,/^Country [A-F]* is already in [A-Z]* list/,/^[0-9]*\/[0-9]* ip\(s\) were successfully deleted/,/has host bits set$/,/^Noop: /,/^Authentication failed/,/^User name not found/,/^Feature '[a-zA-Z]*' is disabled for user/,/^\[Errno 104\] Connection reset by peer$/,/^Kernel is unsupported/,/^Can't delete KernelCare, because it's not installed$/,/^Request timeout$/,/^Empty response from socket$/,/^Request processing error$/,/^Licenses limit exceeded$/,/^On-demand scan is already running$/,/Too many open files/,/Connection refused$/,/^400 Client Error: BAD REQUEST for url/];r.k.prototype.getParsedResult=function(t,n,e){if(n instanceof h)return n.value;var r=p.call(this,t,n,e);return r!==n||m.some(function(t){return t.test(n)})||f.captureException(new Error(JSON.stringify({reason:"Can not find translation",key:n,interpolateParams:e}))),r};var g=function(){function t(t,n,e){var r=this;this.translate=t,this.panel=n,this.document=e,this.langs=[{code:"en",moment:"en",name:"English"},{code:"es",moment:"es",name:"Español"},{code:"ru",moment:"ru",name:"Русский"},{code:"ja",moment:"ja",name:"日本語"},{code:"de",moment:"de",name:"Deutsch"},{code:"fr",moment:"fr",name:"Français"},{code:"it",moment:"it",name:"Italiano"},{code:"nl",moment:"nl",name:"Nederlands"},{code:"pt-br",moment:"pt-br",name:"Português"},{code:"tr",moment:"tr",name:"Türkçe"},{code:"zh-cn",moment:"zh-cn",name:"简体中文"}],this.rtlLangs=[],this.html=this.document.querySelector("html"),this.dirContainer=this.html.getElementsByClassName("i360-app")[0],this.panelLang=this.panel.getLang(this.document),this.initLanguages();var o,i=c.c.prototype.create;Object.defineProperty(s.b.prototype,"value",{get:function(){return o},set:u.a}),Object.defineProperty(s.b.prototype,"change",{get:function(){return a},set:u.a});var a=t.onLangChange.pipe(Object(l.a)(function(t){return r.getDir(t.lang)}));a.subscribe(function(t){return o=t}),c.c.prototype.create=function(t){var n=i.call(this,t);return Object.defineProperty(n._config,"direction",{get:function(){return o},set:u.a}),n},this.translate.onLangChange.subscribe(function(t){return r.setMomentLocale(t.lang)}),this.translate.onDefaultLangChange.subscribe(function(){return r.setMomentLocale(r.currentLang)})}return t.prototype.getDir=function(t){return this.rtlLangs.includes(t)?"rtl":"ltr"},t.prototype.use=function(t){localStorage.setItem(o.a,t),(this.logicalLang=t)!==d&&t||(t=this.panelLang),this.currentLang=this.getAppropriateLang(t,this.langs.map(function(t){return t.code}),"en"),this.translate.use(this.currentLang),this.ensureRtl(this.currentLang)},t.prototype.setMomentLocale=function(n){var t=this.langs.find(function(t){return t.code===n});a.locale(n=t?t.moment:n)},t.prototype.t=function(t,n){return this.translate.get(t,n).toPromise()},t.prototype.stream=function(t,n){return this.translate.stream(t,n)},t.prototype.getAppropriateLang=function(t,n,e){if(n.includes(t))return t;var r=i.h(t.split("-"),2),o=r[0];return r[1]&&n.includes(o)?o:e},t.prototype.initLanguages=function(){var t=localStorage.getItem(o.a)||"";this.translate.addLangs(this.langs.map(function(t){return t.code})),this.translate.setDefaultLang("en"),this.use(t)},t.prototype.ensureRtl=function(t){if(this.html){var n=this.getDir(t);this.html.classList.remove("rtl","ltr"),this.html.classList.add(n),this.dirContainer&&(this.dirContainer.dir=n)}},t}()},"58Vl":function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=function(t){return!1}},"8YbO":function(t,n,e){"use strict";e.d(n,"a",function(){return i});var r=e("1xS/"),o=e("A7o+"),i=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[r.b,o.k]}},t}()},FFKa:function(t,n,e){"use strict";e.d(n,"a",function(){return r});
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var r=function(t,n,e){var r=e.value;return e.value=function(t,n){return"POST"===t.method?r.apply(this,[t,n]):n.handle(t)},e}},HASI:function(t,n,e){"use strict";e.r(n),e.d(n,"assetsPath",function(){return o});var r=e("qo03"),o=""+("undefined"==typeof adminAssets?"":"undefined"!=typeof i360role&&i360role===r.b.admin?adminAssets:clientAssets)+("undefined"==typeof staticPath?"static/":staticPath);
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/},MHfa:function(t,n,e){"use strict";e.d(n,"b",function(){return s}),e.d(n,"e",function(){return l}),e.d(n,"c",function(){return o}),e.d(n,"d",function(){return a}),e.d(n,"a",function(){return p});var r,o,i,a,u,c=e("NTVj"),s=function(){function t(){}return t.register=function(t){return new c.c(["register"],{regkey:t})},t.unregister=function(){return new c.c(["unregister"])},t.version=function(){return new c.c(["version"])},t.rstatus=function(){return new c.c(["rstatus"])},t}(),l=function(t){return t[t.imunifyAV=0]="imunifyAV",t[t.imunifyAVPlus=1]="imunifyAVPlus",t[t.imunify360=2]="imunify360",t}({});(i=o||(o={})).imunifyAV="imunifyAV",i.imunifyAVPlus="imunifyAVPlus",i.imunify360Trial="imunify360Trial",i.imunify360="imunify360",(u=a||(a={})).imunifyAV="AV",u.imunify360="360";var f=((r={})[l.imunifyAV]="ImunifyAV",r[l.imunifyAVPlus]="ImunifyAV+",r[l.imunify360]="Imunify360",r),p=function(){function t(t){
/* Effective product (e.g. what logo to use). Depends on PACKAGE and license_type. */
this.product=l.imunifyAV,this.message="",
/**
         * In case of upgrade do not propose to enter license key
         */
this.ip_license=!1,Object.assign(this,t),this.redirect_url=t.redirect_url||"",this.product=this.getProduct(),this.productName=f[this.product]}return Object.defineProperty(t.prototype,"cleanupAllowed",{get:function(){return this.product===l.imunify360||this.product===l.imunifyAVPlus&&this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"upgradeAvailable",{get:function(){return this.product<l.imunify360&&this.license_type!==o.imunify360},enumerable:!0,configurable:!0}),
/**
     * Applicable only to Package.imunify360 - we block the whole UI there
     * if the license is not sufficient.
     * While in ImunifyAV we are just forbidding cleanup actions.
     */
t.prototype.isFailed=function(){return"AV"===a.imunify360&&!this.status},t.prototype.hasMessage=function(){return!!this.message},t.prototype.isLimitExceeded=function(){return null!=this.user_count&&this.user_limit<this.user_count},t.prototype.getProduct=function(){switch("AV"){case a.imunify360:return l.imunify360;case a.imunifyAV:return this.license_type&&this.license_type!==o.imunifyAV?l.imunifyAVPlus:l.imunifyAV;default:throw new Error("Unknown package AV")}},t}()},NTVj:function(t,n,e){"use strict";e.d(n,"c",function(){return c}),e.d(n,"b",function(){return s}),e.d(n,"d",function(){return r}),e.d(n,"a",function(){return i});var r,o,i,a,u=e("mrSG"),c=function(){function t(t,n){void 0===n&&(n={}),this.method=t,this.params=n}return t.prototype.toString=function(){return JSON.stringify(this)},t}(),s=function(o){function t(t,n,e){void 0===n&&(n=[]),void 0===e&&(e={});var r=o.call(this,n,e)||this;return r.command=t,r.method=n,r.params=e,r}return u.d(t,o),t}(c);(o=r||(r={})).ERROR="error",o.WARNING="warnings",o.SUCCESS="success",(a=i||(i={})).OK="running",a.INSTALLING="installing",a.NOT_INSTALLED="not_installed",a.FAILED_TO_INSTALL="failed_to_install",a.STOPPED="stopped"},NueE:function(t,n,e){"use strict";var r=e("mrSG"),o=e("njtI"),i=function(){function t(){}return t.start=function(){return{command:"installation",method:["start"],params:{}}},t.status=function(t){return{command:"installation",method:["status"],params:{offset:t.offset,limit:t.limit}}},t}(),a=(e("NTVj"),e("dG3u"),e("CcnG")),u=e("oXuz");e.d(n,"a",function(){return c});
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var c=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.status=t.rxServiceRequest(i.status),t.start=t.serviceRequest(i.start),t}return r.d(t,n),t.prototype.getDefaultMockList=function(){return[]},t.ngInjectableDef=a.U({factory:function(){return new t(a.Y(u.a))},token:t,providedIn:"root"}),t}(o.a)},NxQh:function(t,n,e){var r={"./de.i18n.txt":["Tj6d",25],"./en.i18n.txt":["2cYC",36],"./es.i18n.txt":["SRhA",26],"./fr.i18n.txt":["WcF+",27],"./it.i18n.txt":["AZpl",28],"./ja.i18n.txt":["AQWp",29],"./nl.i18n.txt":["FHlH",30],"./pt-br.i18n.txt":["e++4",31],"./ru.i18n.txt":["d+gH",32],"./tr.i18n.txt":["DQ/Q",33],"./zh-cn.i18n.txt":["WQG/",34]};function o(n){var t=r[n];return t?e.e(t[1]).then(function(){return e.t(t[0],7)}):Promise.resolve().then(function(){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t})}o.keys=function(){return Object.keys(r)},o.id="NxQh",t.exports=o},Owoi:function(t,n,e){"use strict";e.d(n,"b",function(){return o}),e.d(n,"a",function(){return i});var r=e("NTVj"),o="INVALID_TOKEN",i=function(){function t(){}return t.login=function(t){return new r.c(["login","pam"],t)},t.get=function(t){return new r.c(["login","get"],t)},t}();
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/},Q3PY:function(t,n,e){"use strict";e.d(n,"b",function(){return o}),e.d(n,"a",function(){return i});var r=e("mrSG"),o="noSentryErrorMessage",i=function(n){function e(){var t=n.call(this,o)||this;return t.noSentry=!0,Object.setPrototypeOf(t,e.prototype),t}return r.d(e,n),e}(Error);
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/},UFdA:function(t,n,e){"use strict";e.d(n,"b",function(){return i}),e.d(n,"a",function(){return h});var d=e("mrSG"),r=e("CcnG"),o=e("1xS/"),i=function(){function t(t){this.translate=t,this.notifications=[]}return t.prototype.success=function(t,n,e){return void 0===n&&(n=null),this.add(n||"notifications.success",t,"success",e)},t.prototype.error=function(t,n,e){return void 0===n&&(n=null),this.add(n||"notifications.error",t,"error",e)},t.prototype.warning=function(t,n,e){return void 0===n&&(n=null),this.error(t,n||"notifications.warning",e)},t.prototype.remove=function(n){var e=this;this.notifications=this.notifications.filter(function(t){return!e.equal(t,n)})},t.prototype.add=function(s,l,f,p){return d.b(this,void 0,void 0,function(){var n,e,r,o,i,a,u,c;return d.e(this,function(t){switch(t.label){case 0:return o=h.bind,i={},[4,this.translate.t(s,p)];case 1:return i.title=t.sent(),[4,this.translate.t(l,p)];case 2:r=new(o.apply(h,[void 0,(i.content=t.sent(),i.type=f,i)]));try{for(a=d.j(this.notifications),u=a.next();!u.done;u=a.next())if(this.equal(c=u.value,r))return c.counter++,c.ticks=0,[2]}catch(t){n={error:t}}finally{try{u&&!u.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return r.counter=1,this.notifications.push(r),[2]}})})},t.prototype.equal=function(t,n){return t.type===n.type&&t.title===n.title&&t.content===n.content},t.ngInjectableDef=r.U({factory:function(){return new t(r.Y(o.b))},token:t,providedIn:"root"}),t}(),h=function(){return function(t){this.counter=0,this.ticks=0,this.type=t.type,this.title=t.title,this.content=t.content}}()},dG3u:function(t,n,e){"use strict";e.d(n,"a",function(){return o});var r=e("wK6y"),o=function(){function t(){}return t.add=function(t,n){return{api:t,response:n}},t.addFn=function(t,n){return{api:t,response:n}},t.defaultData=r.a,t}()},dqPF:function(t,n){function e(t){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}e.keys=function(){return[]},(t.exports=e.resolve=e).id="dqPF"},ec2V:function(t,n,e){"use strict";e.r(n),e.d(n,"LicenseService",function(){return g}),e.d(n,"ɵ0",function(){return u});var r=e("mrSG"),o=e("NTVj"),i=e("njtI"),c=e("MHfa"),s=e("26FU"),l=e("pugT"),a=e("xXU7"),f=e("58Vl"),p=e("15JJ"),d=e("Owoi"),h=e("gHFe"),m=function(){return{status:!window.i360LicenseFail,license_type:"imunify360",expiration:(Date.now()+1728e5)/1e3,user_limit:10,user_count:11,redirect_url:"https://cln.cloudlinux.com",message:"test message from CLN",upgrade_url:"https://ui-test-server:55555/test/test.html",upgrade_url_360:"https://ui-test-server:55555/test/test.html",ip_license:!1}},u=m,g=function(u){function t(t,n,e,r,o,i){var a=u.call(this,t)||this;return a.request=t,a.router=n,a.modalService=e,a.authService=r,a.configRef=o,a.maliciousCount=i,a.Product=c.e,a.licenseChange=new s.a(new c.a({status:!0})),a.register=a.serviceRequest(c.b.register),a.getToken=a.rxServiceRequest(d.a.get),a.updateTokenSubscription=l.a.EMPTY,a.updateTokenInterval=15e4,a.licenseChange.subscribe(function(t){a.license=t}),a}return r.d(t,u),Object.defineProperty(t.prototype,"cleanupBlocked",{get:function(){var t=this.configRef._configChange.getValue();return!!t&&this.authService.isAdmin&&this.maliciousCount.maliciousCount&&this.license.product===this.Product.imunifyAV&&t.PERMISSIONS.upgrade_button},enumerable:!0,configurable:!0}),t.prototype.registerViaPanel=function(){return this.xhr.post(new o.b("applyLicenseFromPanel"))},t.prototype.getLicense=function(t){return new c.a(Object(f.a)(this.constructor.name)?m():t)},t.prototype.checkLicense=function(t){return this.licenseChange.next(this.getLicense(t)),!!this.authService.isClient||(this.license.isFailed()&&"/360/admin/license"!==this.router.url?(this.router.navigate(["/","AV","admin","license"]),!1):((this.license.isFailed()||"/360/admin/license"!==this.router.url)&&(this.license.upgradeAvailable||"/AV/upgrade"!==this.router.url)||this.router.navigate(["/"]),!0))},t.prototype.canActivate=function(t,n){return!this.license.status||(this.router.navigate(["/"]),!1)},t.prototype.getDefaultMockList=function(){return[]},t.prototype.autoUpdateToken=function(){var n=this;this.updateTokenSubscription=Object(a.a)(this.updateTokenInterval).pipe(Object(p.a)(function(){return n.getToken({username:n.authService.username})})).subscribe(function(t){n.authService.setToken(t.data.items)})},t.prototype.warningCleanDialog=function(){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){switch(t.label){case 0:return[4,this.modalService.open(h.a,{data:{}})];case 1:return t.sent()?[4,this.router.navigate(["/","AV","upgrade"])]:[3,3];case 2:t.sent(),t.label=3;case 3:return[2]}})})},t}(i.a)},fGuE:function(t,n,e){"use strict";e.d(n,"a",function(){return i});var r=e("26FU"),o=e("VnD/"),i=function(){function t(){this._configChange=new r.a(null),this.configChange=this._configChange.pipe(Object(o.a)(function(t){return null!==t}))}return t.prototype.setConfig=function(t){var n=this;(this.config=t).changes.subscribe(function(t){n._configChange.next(t)})},t.prototype.p=function(t){return null!==t},t}()},gHFe:function(t,n,e){"use strict";e.d(n,"a",function(){return r});var o=e("mrSG"),i=e("MHfa"),r=function(r){function t(t,n){var e=r.call(this)||this;return e.dialogRef=t,e.maliciousCount=n,e.imunifyPackage="AV",e.Product=i.e,e}return o.d(t,r),t.prototype.manualUpgrade=function(){return o.b(this,void 0,void 0,function(){return o.e(this,function(t){return this.dialogRef.close(),window.open("https://blog.imunify360.com/manual-malware-cleanup","_blank"),[2]})})},t}(e("v5YS").a)},iTwO:function(t,n,e){"use strict";e.r(n),e("VSY+");var r=e("mrSG"),c=e("ZYjt"),o=e("CcnG"),i=[];Object(c.i)(),Object(o.V)(),i=r.i(i);var a=function(t){return t},u=(r.i(i),e("jXi5"));e("uWkI"),e("yLV6");
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var s=function(){return window},l={float:"never"},f=function(){return function(t,n,e,r){e.isPlesk&&Object(u.c)(),Object(u.e)(t,r,n)}}(),p=e("qo03"),d=function(){return function(t){(this.authService=t).parseToken(),t.role===p.b.none&&t.goToLoginPage()}}(),h=e("pMnS"),m=e("A7o+"),g=function(){return function(){}}(),b=o.qb({encapsulation:2,styles:[],data:{}});function y(t){return o.Mb(0,[(t()(),o.sb(0,0,null,null,3,"div",[["id","i360-404-page"]],null,null,null,null,null)),(t()(),o.sb(1,0,null,null,2,"h1",[["translate",""]],null,null,null,null,null)),o.rb(2,8536064,null,0,m.e,[m.k,o.k,o.h],{translate:[0,"translate"]},null),(t()(),o.Kb(-1,null,["noContent.title"]))],function(t,n){t(n,2,0,"")},null)}function v(t){return o.Mb(0,[(t()(),o.sb(0,0,null,null,1,"no-content",[],null,null,null,y,b)),o.rb(1,49152,null,0,g,[],null,null)],null,null)}var A=o.ob("no-content",g,v,{},{},[]),S=e("ZYCi"),w=o.qb({encapsulation:2,styles:[],data:{}});function j(t){return o.Mb(0,[(t()(),o.sb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),o.rb(1,212992,null,0,S.r,[S.b,o.Q,o.j,[8,null],o.h],null,null)],function(t,n){t(n,1,0)},null)}function O(t){return o.Mb(0,[(t()(),o.sb(0,0,null,null,1,"app",[],null,null,null,j,w)),o.rb(1,49152,null,0,d,[p.a],null,null)],null,null)}var P=o.ob("app",d,O,{},{},[]),k=e("Ip0R"),L=e("Wf4p"),C=e("NSYL"),x=e("wFw1"),_=e("ihYY"),N=e("t/Na"),T=e("6blF"),I=e("FFKa"),E=function(){function t(t){var n=this;this.authService=t,this.action=function(){return n.authService.isAdmin?adminAction:clientAction}}return t.prototype.intercept=function(t,n){var e=t.url.startsWith("http")?t.url:this.action()+t.url;return n.handle(t.clone({url:e}))},r.c([I.a,r.f("design:type",Function),r.f("design:paramtypes",[N.g,N.f]),r.f("design:returntype",T.a)],t.prototype,"intercept",null),t}(),F=function(){function t(){}return t.prototype.intercept=function(t,n){var e;return t.body instanceof FormData||(e=t.headers.set("Content-type","application/json; charset=utf-8")),n.handle(t.clone({headers:e}))},r.c([I.a,r.f("design:type",Function),r.f("design:paramtypes",[N.g,N.f]),r.f("design:returntype",T.a)],t.prototype,"intercept",null),t}(),R=e("wWNr"),V=e("NTVj"),D=e("G5J1"),M=e("F/XL"),U=e("9Z1F"),q=e("S1nX"),G=e("15JJ"),Y=e("MHfa"),B=e("NueE"),K="/installation/progress/log",J="/installation/progress/slides",H=function(){function t(t,n,e){this.router=t,this.injector=n,this.appState=e}return t.prototype.intercept=function(t,n){var e=this;return n.handle(t).pipe(Object(U.a)(function(t){try{if(t.error.includes("ImportError: No module named")){var n=e.updateAndCheckStatus(V.a.INSTALLING);if(n)return n}if(t.error.includes("System error 2: No such file or directory"))return e.injector.get(p.a).isClient?e.updateAndCheckStatus(V.a.INSTALLING):(e.getInstallationStatus||(e.getInstallationStatus=e.injector.get(B.a).status({offset:0,limit:1}).pipe(Object(q.a)())),e.getInstallationStatus.subscribe()),D.a}catch(t){}throw t}),Object(G.a)(function(t){if(t instanceof N.h){var n=e.updateAndCheckStatus(t.body.status||V.a.OK);if(n)return n}return Object(M.a)(t)}))},t.prototype.reload=function(){location.reload()},t.prototype.updateAndCheckStatus=function(t){switch(this.appState.imunifyStatus=t,this.appState.imunifyStatus){case V.a.OK:return void(this.router.url.startsWith("/installation")&&(this.router.navigate(["/"],{replaceUrl:!0}),this.reload()));case V.a.INSTALLING:return this.router.url.startsWith("/installation")?void 0:(this.router.navigateByUrl(J,{replaceUrl:!0}),D.a);case V.a.NOT_INSTALLED:return"/installation"!==this.router.url?(this.injector.get(p.a).isClient?this.router.navigateByUrl(J,{replaceUrl:!0}):this.router.navigateByUrl("/installation",{replaceUrl:!0}),D.a):void 0;case V.a.FAILED_TO_INSTALL:return"AV"===Y.d.imunify360&&this.router.url!==K?(this.injector.get(p.a).isClient?this.router.navigateByUrl(J,{replaceUrl:!0}):this.router.navigateByUrl(K,{replaceUrl:!0}),D.a):void 0;case V.a.STOPPED:return this.router.navigate(["installation","stopped-service"],{replaceUrl:!0}),D.a;default:return}},r.c([I.a,r.f("design:type",Function),r.f("design:paramtypes",[N.g,N.f]),r.f("design:returntype",T.a)],t.prototype,"intercept",null),t}(),X=e("lgOS"),z=e("eDkP"),W=function(n){function t(){return n.call(this,document)||this}return r.d(t,n),t.prototype._createContainer=function(){n.prototype._createContainer.call(this);var t=document.querySelector(".i360-app app");t&&t.appendChild(this._containerElement)},t}(z.e),Q=e("fGuE"),Z=e("pfGN"),$=e("oXuz"),tt=e("0/uQ"),nt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r.d(n,t),n.prototype.getTranslation=function(t){return Object(tt.a)(e("NxQh")("./"+t+".i18n.txt"))},n}(m.g),et=e("1xS/"),rt=e("4af/"),ot=e("Q3PY"),it=e("NlKi"),at=function(){function e(t,n,e,r){var o=this;this.configRef=t,this.panel=n,this.authService=e,this.translateService=r,t.configChange.subscribe(function(t){o.tryInitSentry(t)})}return e.fixPaths=function(t){return t.replace(/https?:\/\/.*\/imunify(?:360)?\/assets\/static\//g,"https://non-existing-domain-for-sentry.cloudlinux.com/").replace(/\.[\w\d]+\.js\b/,".js")},e.prototype.tryInitSentry=function(t){try{t.ERROR_REPORTING.enable?this.initSentry():this.terminateSentry()}catch(t){}},e.prototype.initSentry=function(){it.isSetup()?this.active||(this.active=!0):(it.config("https://238da7813f594a388b852c231f592b25@sentry.cloudlinux.com/27",{instrument:{tryCatch:!1},captureUnhandledRejections:!1,tags:{env:"prod",role:this.authService.role,panel:this.panel.name,lang:this.translateService.currentLang,panelLang:this.translateService.panelLang},ignoreErrors:[ot.b],dataCallback:function(t){t.culprit&&(t.culprit=e.fixPaths(t.culprit));var n=t.stacktrace||t.exception&&t.exception.values[0].stacktrace;n&&n.frames.forEach(function(t){t.filename=e.fixPaths(t.filename)})},maxBreadcrumbs:50,sanitizeKeys:["password","chunk"],autoBreadcrumbs:{xhr:!1}}).install(),rt.report.uninstall(),it.setRelease("5.11.5-1"),this.active=!0)},e.prototype.terminateSentry=function(){it.isSetup()&&(this.active=!1)},e.prototype.handleError=function(t){if(!(t.noSentry||t.rejection&&t.rejection.noSentry)){if(!this.active)throw t;var n=t.originalError;n||(t.originalStack?((n=new Error(t.message)).name=t.name||n.name,n.stack=t.originalStack):n=t),it.captureException(n)}},e}(),ut=function(){function t(t){this.router=t}return t.prototype.canActivate=function(n,t){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){return[2,this.check(n.routeConfig?n.routeConfig.path:void 0)]})})},t.prototype.canLoad=function(t,n){return this.check(t.path)},t.prototype.check=function(n){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){switch(t.label){case 0:return"AV"===n?[3,2]:[4,this.router.navigate(["/","AV"],{replaceUrl:!0})];case 1:return t.sent(),[2,!1];case 2:return[2,!0]}})})},t.ngInjectableDef=o.U({factory:function(){return new t(o.Y(S.m))},token:t,providedIn:"root"}),t}(),ct=function(){function t(t,n){this.authService=t,this.router=n}return t.prototype.canActivate=function(n,t){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){return[2,this.check(n.routeConfig?n.routeConfig.path:void 0)]})})},t.prototype.canLoad=function(t){return this.check(t.path)},t.prototype.check=function(n){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){switch(t.label){case 0:return n===this.authService.role?[3,2]:[4,this.router.navigate(["/","AV",this.authService.role],{replaceUrl:!0})];case 1:return t.sent(),[2,!1];case 2:return[2,!0]}})})},t.ngInjectableDef=o.U({factory:function(){return new t(o.Y(p.a),o.Y(S.m))},token:t,providedIn:"root"}),t}(),st=function(){return function(){}}(),lt=e("8YbO"),ft=e("vrSf"),pt=e("SMsm"),dt=o.pb(f,[d],function(t){return o.zb([o.Ab(512,o.j,o.db,[[8,[h.a,A,P]],[3,o.j],o.y]),o.Ab(5120,S.a,S.C,[S.m]),o.Ab(4608,S.e,S.e,[]),o.Ab(6144,S.g,null,[S.e]),o.Ab(135680,S.s,S.s,[S.m,o.x,o.i,o.r,S.g]),o.Ab(4608,S.f,S.f,[]),o.Ab(5120,S.G,S.y,[S.m,k.C,S.h]),o.Ab(5120,S.i,S.F,[S.D]),o.Ab(5120,o.b,function(t){return[t]},[S.i]),o.Ab(5120,o.v,o.nb,[[3,o.v]]),o.Ab(4608,k.r,k.q,[o.v,[2,k.G]]),o.Ab(5120,o.c,o.kb,[]),o.Ab(5120,o.t,o.lb,[]),o.Ab(5120,o.u,o.mb,[]),o.Ab(6144,o.I,null,[c.c]),o.Ab(4608,c.f,L.c,[[2,L.g],[2,L.l]]),o.Ab(5120,c.d,function(t,n,e,r,o,i,a,u){return[new c.k(t,n,e),new c.p(r),new c.o(o,i,a,u)]},[k.d,o.A,o.C,k.d,k.d,c.f,o.eb,[2,c.g]]),o.Ab(4608,c.e,c.e,[c.d,o.A]),o.Ab(135680,c.n,c.n,[k.d]),o.Ab(4608,c.l,c.l,[c.e,c.n]),o.Ab(5120,C.a,x.e,[]),o.Ab(5120,C.c,x.f,[]),o.Ab(4608,C.b,x.d,[k.d,C.a,C.c]),o.Ab(5120,o.G,x.g,[c.l,C.b,o.A]),o.Ab(6144,c.q,null,[c.n]),o.Ab(4608,o.O,o.O,[o.A]),o.Ab(4608,_.b,x.c,[o.G,c.b]),o.Ab(4608,N.j,N.p,[k.d,o.C,N.n]),o.Ab(4608,N.q,N.q,[N.j,N.o]),o.Ab(5120,N.a,function(t,n,e,r,o){return[t,new E(n),new F,new R.a,new H(e,r,o)]},[N.q,p.a,S.m,o.r,X.a]),o.Ab(4608,N.m,N.m,[]),o.Ab(6144,N.k,null,[N.m]),o.Ab(4608,N.i,N.i,[N.k]),o.Ab(6144,N.b,null,[N.i]),o.Ab(4608,N.f,N.l,[N.b,o.r]),o.Ab(4608,N.c,N.c,[N.f]),o.Ab(5120,"Window",s,[]),o.Ab(4608,z.e,W,[]),o.Ab(1024,S.w,S.A,[[3,S.m]]),o.Ab(512,Q.a,Q.a,[]),o.Ab(512,Z.b,Z.b,[]),o.Ab(256,S.h,{useHash:!0},[]),o.Ab(1024,k.j,S.z,[k.y,[2,k.a],S.h]),o.Ab(512,k.i,k.i,[k.j]),o.Ab(512,p.a,p.a,[$.a,k.i,o.r]),o.Ab(512,m.l,m.l,[]),o.Ab(512,m.g,nt,[]),o.Ab(512,m.c,m.f,[]),o.Ab(512,m.i,m.d,[]),o.Ab(512,m.b,m.a,[]),o.Ab(256,m.m,void 0,[]),o.Ab(256,m.n,void 0,[]),o.Ab(512,m.k,m.k,[m.l,m.g,m.c,m.i,m.b,m.m,m.n]),o.Ab(512,et.b,et.b,[m.k,Z.b,k.d]),o.Ab(512,at,at,[Q.a,Z.b,p.a,et.b]),o.Ab(2048,o.l,null,[at]),o.Ab(512,S.D,S.D,[o.r]),o.Ab(1024,o.z,function(){return[S.x()]},[]),o.Ab(1024,o.d,function(t,n){return[S.E(t),c.r(n)]},[S.D,[2,o.z]]),o.Ab(512,o.e,o.e,[[2,o.d]]),o.Ab(131584,o.g,o.g,[o.A,o.eb,o.r,o.l,o.j,o.e]),o.Ab(512,S.u,S.c,[]),o.Ab(512,S.b,S.b,[]),o.Ab(512,o.i,o.i,[]),o.Ab(512,o.x,o.L,[o.i,[2,o.M]]),o.Ab(1024,S.j,function(){return[[{path:"",pathMatch:"full",canActivate:[ut],component:g},{path:"360",canActivate:[ut],canLoad:[ut],children:[{path:"",pathMatch:"full",canActivate:[ct],component:g},{path:"admin",loadChildren:"app/core/admin.module#AdminModule",canActivate:[ct],canLoad:[ct]},{path:"client",loadChildren:"app/core/client.module#ClientModule",canActivate:[ct],canLoad:[ct]}]},{path:"installation",loadChildren:"app/components/installation/installation.module#InstallationModule"},{path:"AV",canActivate:[ut],canLoad:[ut],loadChildren:"app/components/av/av.module#AvModule"},{path:"login",loadChildren:"app/components/login/login.module#LoginModule",canLoad:[p.a]},{path:"showcase",loadChildren:"app/components/showcase/showcase.module#ShowcaseModule"},{path:"**",component:g}]]},[]),o.Ab(1024,S.m,S.B,[o.g,S.u,S.b,k.i,o.r,o.x,o.i,S.j,S.h,[2,S.t],[2,S.l]]),o.Ab(1073742336,S.q,S.q,[[2,S.w],[2,S.m]]),o.Ab(1073742336,st,st,[]),o.Ab(1073742336,k.c,k.c,[]),o.Ab(1073742336,o.f,o.f,[o.g]),o.Ab(1073742336,c.a,c.a,[[3,c.a]]),o.Ab(1073742336,x.b,x.b,[]),o.Ab(1073742336,m.h,m.h,[]),o.Ab(1073742336,lt.a,lt.a,[]),o.Ab(1073742336,N.e,N.e,[]),o.Ab(1073742336,N.d,N.d,[]),o.Ab(1073742336,ft.a,ft.a,[]),o.Ab(512,c.c,c.m,[k.d]),o.Ab(512,X.a,X.a,[]),o.Ab(1073742336,f,f,[pt.d,c.c,Z.b,X.a]),o.Ab(256,o.cb,!0,[]),o.Ab(256,x.a,"BrowserAnimations",[]),o.Ab(256,N.n,"XSRF-TOKEN",[]),o.Ab(256,N.o,"X-XSRF-TOKEN",[]),o.Ab(256,L.h,l,[])])});function ht(){return e.p=e("HASI").assetsPath,c.j().bootstrapModuleFactory(dt).then(a).catch(function(t){})}e.d(n,"main",function(){return ht}),Object(u.d)(ht)},jXi5:function(t,p,d){"use strict";(function(e){d.d(p,"d",function(){return i}),d.d(p,"e",function(){return a}),d.d(p,"a",function(){return s}),d.d(p,"b",function(){return l}),d.d(p,"c",function(){return f});var c=d("mrSG"),t=d("t/Na"),n=d("CcnG");if(e.noConflict(),"undefined"!=typeof Prototype&&Prototype.BrowserFeatures.ElementExtensions){var r=function(n,t){t.each(function(t){e(window).on(n+".bs."+t,function(t){t.target[n]=void 0,setTimeout(function(){delete t.target[n]},0)})})},o=["collapse","dropdown","modal","tooltip","popover","tab"];r("show",o),r("hide",o)}function i(n){switch(document.readyState){case"loading":document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),n()});break;case"interactive":case"complete":default:n()}}function a(t,n,e){var r,o;try{for(var i=c.j(["fish","aquarium","add-ip","ignore-all","broom","bell","atoms","done","chip","update","clock","dmc","full-access","icon-exclamation","logo-grey","ellipsis","shark","logo-imunify","new-features-management","profile","rocket","support","logo-imunifyAV","logo-imunifyAVPlus","logo-imunifyAVPlus-grey","key","icon-question","icon-delete","icon-add","icon-key","icon-bell-in-circle","icon-info","dashboard-no-data-found","read-more","events-notifications","check-circle","shield","undraw-server-down","upgrade-by-key"]),a=i.next();!a.done;a=i.next()){var u=a.value;t.addSvgIcon(u,e.bypassSecurityTrustResourceUrl(n.imagePath+"/"+u+".svg"))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}}var u=function(){function t(t){this.interceptors=t}return t.prototype.intercept=function(t,n){return(this.interceptors||[]).reduceRight(function(n,e){return{handle:function(t){return e.intercept(t,n)}}},n).handle(t)},t}();function s(t){return new u(t)}var l={provide:t.a,multi:!0,useFactory:s,deps:[[new n.K,new n.B,new n.p(t.a)]]};function f(){var i=document.getElementById("forgery_protection_token"),a=["https://api.imunify360.com","https://sentry.cloudlinux.com"],u=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){for(var n=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=!1;try{a.find(function(t){return n.__zone_symbol__xhrURL.startsWith(t)})&&(r=!0)}catch(t){}if(r&&i){i.setAttribute("id","temporary-changed-for-sentry-request");var o=u.apply(this,t);return i.setAttribute("id","forgery_protection_token"),o}return u.apply(this,t)}}}).call(this,d("EVdn"))},lgOS:function(t,n,e){"use strict";e.d(n,"a",function(){return o});var r=e("NTVj"),o=function(){return function(){this.version="5.11.5-1",this.imunifyStatus=r.a.OK,this.imagePath=e("HASI").assetsPath+"images",this.refresherEnabled=!1,this.mousePositonY=0}}()},njtI:function(t,n,e){"use strict";e.d(n,"a",function(){return o}),e("mrSG");var r=e("67Y/"),o=(e("dG3u"),e("58Vl"),function(){function t(t){this.xhr=t}return t.prototype.getMock=function(t,n){return null},t.prototype.getDefaultMock=function(t,n){return null},t.prototype.serviceRequest=function(o,i,a){var u=this;return void 0===i&&(i=!0),void 0===a&&(a=!0),function(t,n,e){void 0===n&&(n=i),void 0===e&&(e=a);var r=o(t);return u.xhr.post(r,function(){return u.getMock(r,t)},n,e).toPromise()}},t.prototype.rxServiceRequest=function(o,i,a){var u=this;return void 0===i&&(i=!0),void 0===a&&(a=!0),function(t,n,e){void 0===n&&(n=i),void 0===e&&(e=a);var r=o(t);return u.xhr.post(r,function(){return u.getMock(r,t)},n,e)}},t.prototype.wrap=function(n,o){return function(t){return n(t).pipe(Object(r.a)(function(t){var n=t.data,e=t.result,r=t.messages;return{data:{items:n.items.map(function(t){return new o(t)}),version:n.version,strategy:n.strategy,license:n.license,eula:n.eula,max_count:"max_count"in n?n.max_count:n.items.length},result:e,messages:r}}))}},t}())},oXuz:function(t,n,c){"use strict";var s=c("mrSG"),r=c("CcnG"),u=c("t/Na"),l=c("NTVj"),e=c("XlPw"),f=c("F/XL"),p=c("15JJ"),d=c("9Z1F"),h=c("67Y/"),m=c("1xS/"),o=c("UFdA");
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
function g(r){return void 0===r&&(r=0),JSON.stringify(this,function(t,n){try{return JSON.stringify(n),n}catch(t){if(3<=r)return"Circular";var e={};return Object.keys(n).forEach(function(t){e[t]=g.call(n[t],r+1)}),e}})}c.d(n,"a",function(){return i});var i=function(){function t(t,n,e){this.http=t,this.injector=n,this.notifications=e,this.loaded=new r.m}return t.prototype._throw=function(t){return Object(e.a)(t)},t.prototype.post=function(e,r,o,i){var a=this;return void 0===r&&(r=function(){return null}),void 0===o&&(o=!0),void 0===i&&(i=!0),Object(f.a)(null).pipe(Object(p.a)(function(){Date.now();var t=r();if(t){var n=a.http.handler.backend.handle;a.http.handler.backend.handle=function(){return a.http.handler.backend.handle=n,t.pipe(Object(p.a)(function(t){return Object(f.a)(new u.h({body:t}))}))}}return a.http.post("",e)})).pipe(Object(d.a)(function(n){return s.b(a,void 0,void 0,function(){return s.e(this,function(t){throw this.showResponseErrors(n),n})})}),Object(h.a)(function(t){var n=t.messages,e={data:t.data,result:t.result,messages:n?"string"==typeof n?[n]:n:[]};switch(a.loaded.emit(),e.result){case l.d.SUCCESS:return e;case l.d.WARNING:throw e.noSentry=!0,o&&a.showResponseErrors(e),e;case l.d.ERROR:throw e.noSentry=!0,i&&a.showResponseErrors(e),e;default:return e}}),Object(d.a)(function(t){return Object.defineProperty(t,"toString",{value:g,enumerable:!1}),a._throw(t)}))},t.prototype.showResponseErrors=function(t){var n,e;if("message"in t){var r=(new DOMParser).parseFromString(t.error,"text/html").body.innerText;"[object Object]"===r&&(r="System error"),this.notifications.error(m.c.for(r.trim()),"notifications."+l.d.ERROR)}else if("messages"in t){var o={};try{var i=c("ec2V").LicenseService;o=this.injector.get(i).license}catch(t){
// license service is not available in login module
}try{for(var a=s.j(t.messages),u=a.next();!u.done;u=a.next())this.notifications.error(u.value,"notifications."+t.result,o)}catch(t){n={error:t}}finally{try{u&&!u.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}}},t.ngInjectableDef=r.U({factory:function(){return new t(r.Y(u.c),r.Y(r.o),r.Y(o.b))},token:t,providedIn:"root"}),t}()},pfGN:function(t,n,e){"use strict";e.d(n,"a",function(){return r}),e.d(n,"b",function(){return u});var r="lang",o="DirectAdmin",i="noPanel",a={cPanel:window.location.href.substring(window.location.href.search("/cpsess"),window.location.href.search("cgi"))+"cgi/CloudLinux.cgi",Plesk:"/modules/plesk-lvemanager",DirectAdmin:"/CMD_PLUGINS_ADMIN/lvemanager_spa?iframe=no"},u=function(){function t(){this.defaultScanFolders={cPanel:"/home*/*",Plesk:"/var/www/vhosts/*",DirectAdmin:"/home*/*/",noPanel:"/home"},this.csfInterfaces={cPanel:"../../../cgi/configserver/csf.cgi",Plesk:null,DirectAdmin:null,noPanel:null},this.name=I360_PANEL,this.isPlesk="Plesk"===this.name,this.isCpanel="cPanel"===this.name,this.isDirectAdmin=this.name===o,this.isNoPanel=this.name===i,this.defaultScanFolder=this.defaultScanFolders[this.name],this.csfInterfaceUrl=this.csfInterfaces[this.name],this.linkToLvePhpSelector=a[this.name]+"#/selector"}return t.prototype.getLang=function(t){switch(I360_PANEL){case"Plesk":case"cPanel":return t.querySelector("html").lang;case o:return i360lang;case i:return localStorage.getItem(r)||"";default:return""}},t}()},qo03:function(t,n,e){"use strict";e.d(n,"b",function(){return o}),e.d(n,"a",function(){return y});var o,r,i=e("mrSG"),a=e("26FU"),u=e("F/XL"),c=e("G5J1"),s=e("6blF"),l=e("BOF4"),f=e("ZYCi"),p=e("pfGN"),d=e("15JJ"),h=e("t/Na"),m=e("FFKa"),g=e("Owoi"),b="I360_AUTH_TOKEN";(r=o||(o={})).admin="admin",r.client="client",r.none="none";var y=function(){function t(t,n,e){this.xhr=t,this.location=n,this.injector=e,this.loginChange=new a.a(!1)}return Object.defineProperty(t.prototype,"isAdmin",{get:function(){return this.role===o.admin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isClient",{get:function(){return this.role===o.client},enumerable:!0,configurable:!0}),t.prototype.logout=function(){this.setToken(""),this.goToLoginPage()},t.prototype.goToLoginPage=function(){var t=this.injector.get(f.m),n=this.location.path(!1),e=n.split("?")[0];t.navigate(["/","login"],{queryParams:{targetUrl:"/login"===e?t.parseUrl(n).queryParams.targetUrl:n}})},t.prototype.addTokenToRequest=function(t){if(t.body){var n=JSON.parse(JSON.stringify(t.body));n.params.jwt=this.getToken(),t=t.clone({body:n})}return t},t.prototype.intercept=function(t,n){var e=this;return this.injector.get(p.b).isNoPanel?this.role!==o.none?(t=this.addTokenToRequest(t),n.handle(t).pipe(Object(d.a)(function(t){return t instanceof h.h&&t.body.messages===g.b?(e.logout(),e.handleLogout()):Object(u.a)(t)}))):(this.goToLoginPage(),this.handleLogout()):n.handle(t)},t.prototype.handleLogout=function(){return c.a},t.prototype.getToken=function(){return localStorage.getItem(b)||""},t.prototype.setToken=function(t){localStorage.setItem(b,t),this.parseToken()},t.prototype.parseToken=function(){if("undefined"!=typeof i360role)this.role=i360role;else{var t=this.injector.get(f.m),n=t.parseUrl(this.location.path(!1)),e=n.queryParams.token;e&&(localStorage.setItem(b,e),delete n.queryParams.token,t.navigateByUrl(n||"/",{replaceUrl:!0}));var r=void 0;try{r=l(this.getToken())}catch(t){r={user_type:o.none,username:""}}this.role=r.user_type,this.username=r.username}this.loginChange.next(this.role!==o.none)},t.prototype.canActivate=function(){return this.canLoad()},t.prototype.canLoad=function(){return this.role===o.none||(this.injector.get(f.m).navigate(["/","AV",this.role],{replaceUrl:!0}),!1)},i.c([m.a,i.f("design:type",Function),i.f("design:paramtypes",[h.g,h.f]),i.f("design:returntype",s.a)],t.prototype,"intercept",null),t}()},uWkI:function(t,n,e){},v5YS:function(t,n,e){"use strict";e.d(n,"a",function(){return r});
/*

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var r=function(){return function(){}}()},vrSf:function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=function(){return function(){}}()},wK6y:function(t,n,e){"use strict";
/* unused harmony export license */e.d(n,"a",function(){return o});var r=e("mrSG"),o={strategy:"PRIMARY_IDS",version:"testing",eula:null,license:{id:"123",license_type:e("MHfa").c.imunify360,user_count:5,message:"",expiration:null,user_limit:2147483647,status:!0,redirect_url:"https://cln.cloudlinux.com/clweb/public/imconv.xhtml?id=qwertyuiop",upgrade_url_360:"upgrade_url_360_url"}};r.a({},o,{items:[]}),r.a({},o,{items:null})},wWNr:function(t,n,e){"use strict";e.d(n,"a",function(){return f});var o=e("mrSG"),r=e("t/Na"),i=e("XlPw"),a=e("xMyE"),u=e("9Z1F"),c=e("NlKi"),s=function(r){return r&&"object"==typeof r&&Object.entries(r).forEach(function(t){var n=o.h(t,2),e=n[1];"string"==typeof e&&100<e.length&&(r[n[0]]=e.slice(0,100)+"*****"),Array.isArray(e)&&5<e.length&&(e.length=5,e.push("*****")),s(e)}),r},l=function(t){var n=s(JSON.parse(JSON.stringify(t)));c.captureBreadcrumb({message:"XHR finished",category:"action",data:n})},f=function(){function t(){}return t.prototype.intercept=function(n,t){return c.captureBreadcrumb({message:"XHR started",category:"action",data:{requestBody:n.body,url:n.urlWithParams}}),t.handle(n).pipe(Object(a.a)(function(t){t instanceof r.h&&l({responseBody:t.body,requestBody:n.body,url:n.urlWithParams})}),Object(u.a)(function(t){return l(t),c.captureException(t),Object(i.a)(t)}))},t}()},zn8P:function(t,n,e){var r={"app/components/av/av.module.ngfactory":["muZe",0,1,2,3,4,5,7,8,9],"app/components/dashboard/dashboard.module.ngfactory":["efJa",0,1,2,3,4,10],"app/components/eula/eula.module.ngfactory":["nh2z",0,11],"app/components/features-disabled/features-disabled.module.ngfactory":["2AdQ",0,12],"app/components/installation/installation.module.ngfactory":["+T2a",0,1,13],"app/components/login/login.module.ngfactory":["lkoz",0,1,2,3,4,5,6,14],"app/components/proactive-defense/module.ngfactory":["TeY9",0,1,2,3,4,5,6,15],"app/components/reputation/reputation.module.ngfactory":["AELY",0,1,2,3,16],"app/components/settings/notifications/settings-notification.module.ngfactory":["2cZ1",0,1,2,3,4,5,6,17],"app/components/showcase/showcase.module.ngfactory":["KOoM",0,1,2,18],"app/components/support/support.module.ngfactory":["1QHZ",0,1,2,3,19],"app/core/admin.module.ngfactory":["n5AS",0,1,2,3,4,5,6,7,8,20],"app/core/client.module.ngfactory":["WA8r",0,1,2,3,4,5,6,7,21]};function o(n){var t=r[n];return t?Promise.all(t.slice(1).map(e.e)).then(function(){return e(t[0])}):Promise.resolve().then(function(){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t})}o.keys=function(){return Object.keys(r)},o.id="zn8P",t.exports=o}});
//# sourceMappingURL=main.47a1b195ea47e156903b.js.map
Back to Directory File Manager