dashboard-core/index.js
Jonny_Bro (Nikita) b923be2d69 first commit
2023-06-19 12:35:11 +05:00

9 lines
No EOL
9.7 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Why is this obfuscated?
The index.js file is obfuscated to hide the license system.
However, this doesn't prevent you from modifying the Dashboard.
Just check files like ./Routes/* and ./ModuleExportsFunctions/*
and we assure you that they are enough to configure the module.
*/
function _0x3f31(_0x69d767,_0x157650){const _0x2d2dbe=_0x2d2d();return _0x3f31=function(_0x3f313e,_0x4a4225){_0x3f313e=_0x3f313e-0x8f;let _0x46eddb=_0x2d2dbe[_0x3f313e];return _0x46eddb;},_0x3f31(_0x69d767,_0x157650);}const _0x4d40c6=_0x3f31;(function(_0x3917a9,_0x9bc430){const _0x328fea=_0x3f31,_0x37cbb7=_0x3917a9();while(!![]){try{const _0x2239eb=parseInt(_0x328fea(0xd1))/0x1*(-parseInt(_0x328fea(0xbf))/0x2)+-parseInt(_0x328fea(0xac))/0x3+-parseInt(_0x328fea(0x91))/0x4*(parseInt(_0x328fea(0xc2))/0x5)+-parseInt(_0x328fea(0xc8))/0x6+parseInt(_0x328fea(0xae))/0x7*(-parseInt(_0x328fea(0xb0))/0x8)+-parseInt(_0x328fea(0xc5))/0x9*(parseInt(_0x328fea(0xa5))/0xa)+-parseInt(_0x328fea(0xa9))/0xb*(-parseInt(_0x328fea(0xa7))/0xc);if(_0x2239eb===_0x9bc430)break;else _0x37cbb7['push'](_0x37cbb7['shift']());}catch(_0x570953){_0x37cbb7['push'](_0x37cbb7['shift']());}}}(_0x2d2d,0xc1881));function _0x2d2d(){const _0x10bb5a=['mamma\x20mia\x20italiano','You\x20need\x20to\x20use\x20<DBD>.useLicense(\x22licenseId\x22)\x20function\x20before\x20initing\x20Dashboard.','gtfvdlicensergtfdd','writeFileSync','\x27licenseId\x27\x20not\x20defined\x20in\x20the\x20<DBD>.useLicense(\x27licenseId\x27)\x20function.','Successfully\x20signed\x20in.','Man,\x20this\x20was\x20just\x20check\x20if\x20variable\x20is\x20still\x20false\x20:oooo','4BCwWgR','man\x20stop\x20deobfuscating\x20this\x20source\x20code\x20🤷🤷🤷','http://localhost:3000/','man\x20thats\x20just\x20a\x20function\x20doing\x20nothing...','/HandlerIntegration/index','./ModuleExportsFunctions/customPagesTypes','Discord-Dashboard\x20License\x20Error:\x20','/licensedDashboardClass.js','Default\x20DBD-Dark-Dashboard\x20config.','Loading...','https://discord.gg/yYq4UgRRzz','shift','7OzWizz','6552252jCWVcp','Category',';bug\x20<bug>','38592sbLQyd','\x0amodule.exports\x20=\x20Dashboard;','lmfaooo...\x20stop.','1853400SDxfnR','11596630EzQCtz','licenseClient','Test\x20command','access_token','test','./ModuleExportsFunctions/formTypes','222VTPBta','iMidnight','notlicense','4ijVdcT','./LicenseSystem/index','gtfvrthththrtdlicensed','support@imidnight.ml','Information','error','usedLicense','279670chJqCU','./InitFunctions/initExampleDash','56033148jtsIkI','#ebdbdb','11kTpdSX','log','oto.nd\x20<arg>\x20<arg2>\x20[op]','2789085bTWQVe','Alias','100709rGYPjY','version','40drDnKp','aos!','push','No\x20aliases','u\x20aint\x20even\x20nrealy','Lorem\x20ipsum\x20dolor\x20sth','Starting\x20Up','\x20Assistants\x20will\x20sue\x20you\x20100%%%%,\x20just\x20use\x20free\x20OpenSource\x20license','gtfvdlicenhtgfdsed','This\x20bot\x20and\x20panel\x20is\x20currently\x20a\x20work\x20in\x20progress\x20so\x20contact\x20me\x20if\x20you\x20find\x20any\x20issues\x20on\x20discord.','colors','Footer','gtfvdlicensed','exports','message','584090iigBIQ','You\x20really\x20thought\x20thats\x20real\x20license\x20class?????????','lmfao...\x20stop.','345mGZBkl','text','You\x20nearly\x20got\x20it\x20:rofl:\x20Loser.','162pRMplf','./package.json','fakse;','3226776OnXxBz','All\x20helpful\x20commands'];_0x2d2d=function(){return _0x10bb5a;};return _0x2d2d();}let x_32fsfgd=![];const colors=require(_0x4d40c6(0xba)),fs=require('fs'),License=require(_0x4d40c6(0x9f)),{version}=require(_0x4d40c6(0xc6));class Dashboard{constructor(){const _0x44a370=_0x4d40c6;throw new TypeError(_0x44a370(0xcb));}}module[_0x4d40c6(0xbd)]={'default_configs':{'dbdDarkDashboard':{'information':{'createdBy':_0x4d40c6(0x9c),'websiteTitle':_0x4d40c6(0x9c),'websiteName':_0x4d40c6(0x9c),'websiteUrl':'https:/www.imidnight.ml/','dashboardUrl':_0x4d40c6(0xd3),'supporteMail':_0x4d40c6(0xa1),'supportServer':_0x4d40c6(0xdb),'imageFavicon':'https://www.imidnight.ml/assets/img/logo-circular.png','iconURL':'https://www.imidnight.ml/assets/img/logo-circular.png','loggedIn':_0x4d40c6(0xcf),'mainColor':'#2CA8FF','subColor':_0x4d40c6(0xa8),'preloader':_0x4d40c6(0xda)},'index':{'card':{'category':_0x4d40c6(0xd9),'title':'Please\x20customize\x20config\x20to\x20change\x20how\x20dashboard\x20looks\x20like.','image':'https://i.imgur.com/axnP93g.png','footer':'Footer'},'information':{'category':_0x4d40c6(0x8f),'title':'Information','description':_0x4d40c6(0xb9),'footer':'Footer'},'feeds':{'category':_0x4d40c6(0x8f),'title':_0x4d40c6(0xa2),'description':'This\x20bot\x20and\x20panel\x20is\x20currently\x20a\x20work\x20in\x20progress\x20so\x20contact\x20me\x20if\x20you\x20find\x20any\x20issues\x20on\x20discord.','footer':_0x4d40c6(0xbb)}},'commands':[{'category':_0x4d40c6(0xb6),'subTitle':_0x4d40c6(0xc9),'list':[{'commandName':'bug','commandUsage':_0x4d40c6(0x90),'commandDescription':_0x4d40c6(0x99),'commandAlias':_0x4d40c6(0xb3)},{'commandName':'2nd\x20command','commandUsage':_0x4d40c6(0xab),'commandDescription':'Lorem\x20ipsum\x20dolor\x20sth,\x20arg\x20sth\x20arg2\x20stuff','commandAlias':'Alias'},{'commandName':_0x4d40c6(0x97),'commandUsage':'prefix.test\x20<arg>\x20[op]','commandDescription':_0x4d40c6(0xb5),'commandAlias':_0x4d40c6(0xad)}]}]}},'licenseInfo':()=>{return console['log']('[Discord-Dashboard\x20Info]\x20Your\x20License\x20ID\x20has\x20been\x20fetched\x20by\x20*probably*\x20the\x20theme!'),x_32fsfgd;},'useLicense':async _0x550a87=>{const _0x3f8cd1=_0x4d40c6;if(!_0x550a87)throw new TypeError(_0x3f8cd1(0xce));const _0x4e4496=require(_0x3f8cd1(0x9f)),_0x518a4b=new _0x4e4496(_0x550a87),_0x31d1da=await _0x518a4b['ValidateLicense']();if(_0x31d1da[_0x3f8cd1(0xa3)])throw new TypeError(_0x3f8cd1(0xd7)+_0x31d1da[_0x3f8cd1(0xbe)]);x_32fsfgd=_0x31d1da;const _0x40e2f3=require(_0x3f8cd1(0xc6))['version'];let _0x19616b=await require('node-fetch')('https://licenses.assistantscenter.com/api/index/'+_0x40e2f3+'/'+_0x550a87+'/'+x_32fsfgd[_0x3f8cd1(0x98)]);return _0x19616b=await _0x19616b[_0x3f8cd1(0xc3)](),await require('fs')[_0x3f8cd1(0xcd)](__dirname+_0x3f8cd1(0xd8),'//'+_0x40e2f3+'\x0a'+_0x19616b+_0x3f8cd1(0x92)),_0x31d1da;},'UpdatedClass':()=>{const _0x17b0f9=_0x4d40c6,_0x371000=_0x17b0f9(0xbc);let _0x2641d4=![],_0x255626=![];const _0x3ba3c9=_0x17b0f9(0xbc),_0x44721e=_0x17b0f9(0xc0);let _0x1b39af=_0x17b0f9(0xc7);const _0xda87e=_0x17b0f9(0xb7);let _0x4b398c=![];_0x255626=!![];const _0x5295b7=_0x17b0f9(0xd4),_0x384866=_0x17b0f9(0xc4),_0x4c487e=_0x17b0f9(0xa0),_0x337c3b=_0x17b0f9(0xca);let _0x4d7768=_0x17b0f9(0xd2);if(!_0x255626)throw new TypeError(_0x4d7768+_0xda87e);let _0xe7882a=_0x17b0f9(0xcc),_0x1f71b0=_0x17b0f9(0xb8),_0x24e096=!![];if(x_32fsfgd){_0x24e096?_0x2641d4=![]:_0x2641d4=!![];if(x_32fsfgd==x_32fsfgd){const _0x32e7ac=_0x17b0f9(0x96),_0x5bdddc=_0x17b0f9(0xa4),_0x25d09e=_0x17b0f9(0xb1);if(_0x2641d4)throw new TypeError('Stop\x20editing\x20source\x20code,\x20that\x20will\x20give\x20you\x20an\x20brainfuck\x20moment.\x20Remember\x20that\x20Assistants\x20could\x20sue\x20you.');class _0x2f89db{constructor(){throw new TypeError('STop\x20🤣');}}if(!_0x24e096)new _0x2f89db();if(_0x24e096&&_0x2641d4)return console[_0x17b0f9(0xaa)](_0x384866);const _0x4a3d01=_0x567e15;(function(_0x5e53ad,_0x544bfe){const _0xa1e2e1=_0x17b0f9,_0x9c67c=_0x567e15,_0x53b902=_0x5e53ad();while(!![]){try{const _0x55649e=-parseInt(_0x9c67c(0x13e))/0x1*(parseInt(_0x9c67c(0x145))/0x2)+-parseInt(_0x9c67c(0x13f))/0x3+parseInt(_0x9c67c(0x143))/0x4+parseInt(_0x9c67c(0x13d))/0x5*(parseInt(_0x9c67c(0x140))/0x6)+parseInt(_0x9c67c(0x13a))/0x7*(-parseInt(_0x9c67c(0x142))/0x8)+-parseInt(_0x9c67c(0x13c))/0x9+parseInt(_0x9c67c(0x13b))/0xa;if(_0x55649e===_0x544bfe)break;else _0x53b902[_0xa1e2e1(0xb2)](_0x53b902[_0xa1e2e1(0xdc)]());}catch(_0x1ce62e){_0x53b902[_0xa1e2e1(0xb2)](_0x53b902[_0xa1e2e1(0xdc)]());}}}(_0x2c18c4,0x6dde6));function _0x567e15(_0x13f002,_0x9b0643){const _0x145cf6=_0x2c18c4();return _0x567e15=function(_0x474170,_0x98632b){_0x474170=_0x474170-0x13a;let _0x4b5a47=_0x145cf6[_0x474170];return _0x4b5a47;},_0x567e15(_0x13f002,_0x9b0643);}function _0x2c18c4(){const _0x432b5c=_0x17b0f9,_0x45da9b=['92375iWCWKi',_0x432b5c(0x9e),_0x432b5c(0x94),_0x432b5c(0x9b),'./licensedDashboardClass.js','3616112Tfevia','2509304crvKVh',_0x432b5c(0xd8),'111350xHjeKY',_0x432b5c(0xdd),_0x432b5c(0x95),_0x432b5c(0xde)];return _0x2c18c4=function(){return _0x45da9b;},_0x2c18c4();}const _0x356cc4=require(_0x4a3d01(0x141));fs[_0x17b0f9(0xcd)](__dirname+_0x4a3d01(0x144),'');return _0x356cc4;const _0x41125a='Haha\x20u\x20wont\x20get\x20this\x20working.';((()=>{const _0x6d6947=_0x17b0f9;if(_0x2641d4&&!_0x255626)return console[_0x6d6947(0xaa)](_0x5295b7);})());const _0x469f38=_0x17b0f9(0xc1),_0x32e03b=_0x17b0f9(0xb4),_0x5b9692=![];let _0x3c12c3=_0x17b0f9(0x93);const _0xe9088=_0x17b0f9(0xb4);if(!_0x3c12c3){;((()=>{const _0x550379=_0x3c12c3+_0xe9088+_0x41125a+_0xe7882a+String(_0x5b9692);throw new TypeError(_0x550379);})());}}}else{const _0x4d7ad0=_0x17b0f9(0x9d);return Dashboard;}if(_0x4b398c!=![])throw new TypeError(_0x17b0f9(0xd0));_0x255626=!![];if(_0x255626!=!![]){class _0x21910b{constructor(_0x20a4d0){const _0x3c7b54=_0x17b0f9;this['config']=_0x20a4d0,console[_0x3c7b54(0xaa)](_0x44721e);}['Gen']=()=>{return _0x1b39af;};['formTypes']=()=>{return _0x3ba3c9;};}return;}},'initDashboard':({fileName:_0x2d5863,domain:_0x9593f9,port:_0x1c094c,token:_0x593ba2,clientSecret:_0xc9184c,clientId:_0x485531})=>{const _0x3ebfde=_0x4d40c6;require(_0x3ebfde(0xa6))({'fileName':_0x2d5863,'domain':_0x9593f9,'port':_0x1c094c,'token':_0x593ba2,'clientSecret':_0xc9184c,'clientId':_0x485531});},'Handler':require(__dirname+_0x4d40c6(0xd5)),'formTypes':require(_0x4d40c6(0x9a)),'customPagesTypes':require(_0x4d40c6(0xd6)),'DISCORD_FLAGS':{'Permissions':require('./ModuleExportsFunctions/discordPermissions')},'version':require(_0x4d40c6(0xc6))[_0x4d40c6(0xaf)]};