Discord_API_Bot/helpers/interaction.js
2024-04-01 18:59:09 -08:00

1 line
No EOL
20 KiB
JavaScript

const a4_0x158584=a4_0x16f0;(function(_0x545c88,_0x198897){const _0x3f385d=a4_0x16f0,_0x4e48cc=_0x545c88();while(!![]){try{const _0x5456cf=parseInt(_0x3f385d(0x17b))/0x1*(-parseInt(_0x3f385d(0x195))/0x2)+-parseInt(_0x3f385d(0x21e))/0x3+-parseInt(_0x3f385d(0x1fb))/0x4+-parseInt(_0x3f385d(0x232))/0x5*(-parseInt(_0x3f385d(0x1f1))/0x6)+parseInt(_0x3f385d(0x21a))/0x7*(-parseInt(_0x3f385d(0x235))/0x8)+parseInt(_0x3f385d(0x1ec))/0x9*(-parseInt(_0x3f385d(0x205))/0xa)+parseInt(_0x3f385d(0x1ce))/0xb;if(_0x5456cf===_0x198897)break;else _0x4e48cc['push'](_0x4e48cc['shift']());}catch(_0x4baef6){_0x4e48cc['push'](_0x4e48cc['shift']());}}}(a4_0x106e,0x59324));const a4_0x1098bc=(function(){let _0x4cdd23=!![];return function(_0x5a2b99,_0x1fff96){const _0xf78eda=a4_0x16f0;if('hPPUS'===_0xf78eda(0x20d)){const _0x20e364=_0x4cdd23?function(){const _0x12feef=_0xf78eda;if(_0x1fff96){const _0x2898c0=_0x1fff96[_0x12feef(0x1ac)](_0x5a2b99,arguments);return _0x1fff96=null,_0x2898c0;}}:function(){};return _0x4cdd23=![],_0x20e364;}else{const _0x2761a8=_0x111e81[_0xf78eda(0x1ac)](_0x16747a,arguments);return _0x714812=null,_0x2761a8;}};}()),a4_0x26ceb5=a4_0x1098bc(this,function(){const _0x5679d3=a4_0x16f0;return a4_0x26ceb5[_0x5679d3(0x16c)]()[_0x5679d3(0x1dd)](_0x5679d3(0x1ca)+'+$')[_0x5679d3(0x16c)]()[_0x5679d3(0x1d0)+'r'](a4_0x26ceb5)[_0x5679d3(0x1dd)]('(((.+)+)+)'+'+$');});a4_0x26ceb5();const a4_0x443623=(function(){let _0x5056d8=!![];return function(_0x333acb,_0x2a720f){const _0x53b83c=a4_0x16f0;if(_0x53b83c(0x1d1)!==_0x53b83c(0x1d1))return!![];else{const _0x38feb6=_0x5056d8?function(){const _0x1a7a9e=_0x53b83c;if(_0x2a720f){if('SlGir'==='SlGir'){const _0x1125b4=_0x2a720f[_0x1a7a9e(0x1ac)](_0x333acb,arguments);return _0x2a720f=null,_0x1125b4;}else{_0x30b11d=_0x20e4b4[_0x1a7a9e(0x16c)]();while(_0x18da49['length']<_0x303625)_0x470738='0'+_0x287c67;return _0x380256;}}}:function(){};return _0x5056d8=![],_0x38feb6;}};}());(function(){a4_0x443623(this,function(){const _0x1868cf=a4_0x16f0;if(_0x1868cf(0x19c)!==_0x1868cf(0x19c))return _0x46a961;else{const _0x144279=new RegExp(_0x1868cf(0x209)+_0x1868cf(0x197)),_0x286410=new RegExp(_0x1868cf(0x170)+'a-zA-Z_$]['+_0x1868cf(0x234)+_0x1868cf(0x1d8),'i'),_0x1c198d=a4_0x671e8d(_0x1868cf(0x228));!_0x144279[_0x1868cf(0x1dc)](_0x1c198d+'chain')||!_0x286410['test'](_0x1c198d+_0x1868cf(0x1b3))?_0x1c198d('0'):_0x1868cf(0x1b0)===_0x1868cf(0x1b0)?a4_0x671e8d():_0x515125();}})();}());function a4_0x16f0(_0x7a084,_0xf9f9eb){const _0x2cf74d=a4_0x106e();return a4_0x16f0=function(_0x671e8d,_0x443623){_0x671e8d=_0x671e8d-0x168;let _0x2d87b7=_0x2cf74d[_0x671e8d];return _0x2d87b7;},a4_0x16f0(_0x7a084,_0xf9f9eb);}const {query,queryMulti}=require(a4_0x158584(0x1f0)),{ticket_settings}=require(a4_0x158584(0x1e0)),discordTranscripts=require(a4_0x158584(0x188)+a4_0x158584(0x17a)+a4_0x158584(0x1f8)),{EmbedBuilder,ButtonBuilder,ActionRowBuilder,ModalBuilder,TextInputBuilder}=require('discord.js');function a4_0x106e(){const _0x47c6d2=['ID=\x27','ons\x20WHERE\x20','#Ticket\x20|\x20','cache','UPDATE\x20set','create','channels','dID=\x27','VgAVv','customId','2237865iSEqzQ','while\x20(tru','ROM\x20option','t_counter+','579087zGYkvd','sage','newTicket','split','addFields','ROM\x20ticket','getTextInp','et_form','icket!\x20Ple','send','init','replace','fields','users','catch','\x27\x20AND\x20chan','tion','call','Close\x20mess','{user}','12105twKxPm','gger','0-9a-zA-Z_','8SemNyg','get','channel','script','\x20channelID','nelID=\x27','s\x20WHERE\x20id','poweredBy','toString','TArug','guildId','the\x20','\x5c+\x5c+\x20*(?:[','tatus=\x27clo','saveImages','utValue','fMbrS','Reason','setPlaceho','leID','ticket_mes','From\x20','ml-transcr','1tMzVXv','content','nCreate','s,\x20userID,','counter','startsWith','debu','SELECT\x20*\x20F','tag','ildID=\x27','embeds','sfully\x20cre','avatarURL','discord-ht','<@&','setFooter','mit','guild','ROM\x20settin','age','interactio','uboeZ','Ticket\x20For','delete','user','deferReply','1069476trvlHh','s\x20WHERE\x20st','\x5c(\x20*\x5c)','required','(id,\x20statu','You\x20alread','UPDATE\x20tic','qFUfs','\x20guildID,\x20','setRequire','showModal','setTimesta','setTitle','ber}\x20messa','kets\x20SET\x20s','inline','\x27\x20AND\x20user','setEmoji','action','setColor','nts','forEach','1\x20WHERE\x20gu','apply','support_ro','\x20VALUES\x20(?','hor','HbRJx','eemoji','O\x20tickets\x20','input','embed_colo','\x27\x20AND\x20guil','length','footerText','atus=\x27open','setStyle','channelID','channelID)','values','place_hold','uildID=\x27','```','gs\x20WHERE\x20g','newTicket_','question','userID','ket!\x20Pleas','Server','sizCz','ticket-','setLabel','allow','(((.+)+)+)','editReply','lder','nter','22071511cxMWWx','name','constructo','oGKoU','ase\x20check\x20','log_channe','components','buttonclos','Saved\x20{num','tings\x20SET\x20','$]*)','open','setCustomI','ticket_','test','search','ge{s}','exports','../config','isModalSub','ROM\x20questi','e\x20check\x20th','files','query',',\x20?,\x20?,\x20?,','ticket_cou','setAuthor','yJIAq','estyle','setDescrip','3363021RCOcfy','y\x20have\x20a\x20t','answer_typ','member','./helper','282BXszcg','input_','mbnail','You\x20succes','string','ephemeral','e)\x20{}','ipts','nter=ticke','lID','1335236hfmzrW','SendMessag','close_tick','\x20been\x20clos','username','ed!','\x20?)','id=\x27','value','Paragraph','10iAgkmp','sfully\x20clo','elabel','ViewChanne','function\x20*','INSERT\x20INT','addCompone','categoryID','hPPUS','TWtpl','Close\x20Tick'];a4_0x106e=function(){return _0x47c6d2;};return a4_0x106e();}module[a4_0x158584(0x1df)]=async(_0x2c1e71,_0x1ccdb4)=>{const _0x3cb99a=a4_0x158584;_0x2c1e71['on'](_0x3cb99a(0x18f)+_0x3cb99a(0x17d),async _0x141f56=>{const _0xd25dbf=_0x3cb99a;if(!_0x141f56[_0xd25dbf(0x219)])return;if(_0x141f56['customId']==_0xd25dbf(0x220)){let _0x354ecf=_0x141f56[_0xd25dbf(0x1bc)][0x0][_0xd25dbf(0x221)](_0xd25dbf(0x1c1))[0x1],_0x10b5fd=await query(_0x1ccdb4,_0xd25dbf(0x182)+'ROM\x20option'+'s\x20WHERE\x20id'+'=\x27'+_0x354ecf+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x53924f=await queryMulti(_0x1ccdb4,'SELECT\x20*\x20F'+_0xd25dbf(0x1e2)+_0xd25dbf(0x211)+'optionID=\x27'+_0x354ecf+(_0xd25dbf(0x1b5)+'dID=\x27')+_0x141f56['guildId']+'\x27');if(_0x53924f){let _0x14a5b=new ModalBuilder()['setTitle'](_0xd25dbf(0x191)+'m')[_0xd25dbf(0x1da)+'d'](_0xd25dbf(0x1db)+_0x354ecf);return _0x53924f['forEach']((_0x43d021,_0x316ee2)=>{const _0x7def91=_0xd25dbf;let _0x1da782=new TextInputBuilder()[_0x7def91(0x1c8)](_0x43d021[_0x7def91(0x1c2)])[_0x7def91(0x1b9)](_0x43d021[_0x7def91(0x1ee)+'e'])[_0x7def91(0x19e)+'d'](_0x43d021[_0x7def91(0x198)])[_0x7def91(0x1da)+'d']('input_'+_0x43d021['id'])[_0x7def91(0x176)+_0x7def91(0x1cc)](_0x43d021[_0x7def91(0x1bd)+'er']),_0x5123ac=new ActionRowBuilder()[_0x7def91(0x20b)+_0x7def91(0x1a9)](_0x1da782);_0x14a5b[_0x7def91(0x20b)+_0x7def91(0x1a9)](_0x5123ac);}),_0x141f56[_0xd25dbf(0x19f)](_0x14a5b);}else{if(_0xd25dbf(0x16d)===_0xd25dbf(0x16d)){const _0x3bd581={};_0x3bd581['ephemeral']=!![],await _0x141f56[_0xd25dbf(0x194)](_0x3bd581);let _0x15dd4e=new EmbedBuilder()[_0xd25dbf(0x1a0)+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x1eb)+_0xd25dbf(0x22e)](ticket_settings[_0xd25dbf(0x178)+_0xd25dbf(0x21f)][_0xd25dbf(0x229)](_0xd25dbf(0x231),_0x141f56[_0xd25dbf(0x193)]))['setThumbna'+'il'](ticket_settings['ticket_thu'+_0xd25dbf(0x1f3)])[_0xd25dbf(0x1e8)]({'name':_0x141f56['user'][_0xd25dbf(0x183)],'iconURL':_0x141f56[_0xd25dbf(0x193)]['avatarURL']()}),_0x2e971f=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x223)+_0xd25dbf(0x196)+_0xd25dbf(0x1b8)+_0xd25dbf(0x1a5)+'ID=\x27'+_0x141f56['user']['id']+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x1a5e22=_0x2c1e71[_0xd25dbf(0x216)]['cache'][_0xd25dbf(0x236)](_0x2e971f?.[_0xd25dbf(0x1ba)]);if(_0x2e971f&&_0x1a5e22)return _0x141f56[_0xd25dbf(0x1cb)]({'content':_0xd25dbf(0x19a)+'y\x20have\x20a\x20t'+_0xd25dbf(0x226)+_0xd25dbf(0x1d2)+_0xd25dbf(0x16f)+_0x1a5e22,'ephemeral':!![]});let _0x21f8a3=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x18d)+'gs\x20WHERE\x20g'+_0xd25dbf(0x1be)+_0x141f56[_0xd25dbf(0x16e)]+'\x27');_0x1ccdb4[_0xd25dbf(0x1e5)](_0xd25dbf(0x214)+'tings\x20SET\x20'+_0xd25dbf(0x1e7)+'nter=ticke'+_0xd25dbf(0x21d)+_0xd25dbf(0x1ab)+_0xd25dbf(0x184)+_0x141f56[_0xd25dbf(0x16e)]+'\x27');const _0x2997c8={};_0x2997c8['id']=_0x2c1e71['user']['id'],_0x2997c8['allow']=[_0xd25dbf(0x208)+'l',_0xd25dbf(0x1fc)+'es'],_0x1a5e22=await _0x141f56[_0xd25dbf(0x18c)]['channels'][_0xd25dbf(0x215)]({'parent':_0x10b5fd?.[_0xd25dbf(0x20c)],'name':'ticket-'+pad(_0x21f8a3[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),'topic':_0xd25dbf(0x212)+_0xd25dbf(0x179)+_0x141f56['user'][_0xd25dbf(0x1ff)],'permissionOverwrites':[{'id':_0x141f56[_0xd25dbf(0x16e)],'deny':[_0xd25dbf(0x208)+'l',_0xd25dbf(0x1fc)+'es']},{'id':_0x141f56[_0xd25dbf(0x1ef)]['id'],'allow':[_0xd25dbf(0x208)+'l','SendMessag'+'es']},_0x2997c8,{'id':_0x21f8a3?.[_0xd25dbf(0x1ad)+'leID'],'allow':['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es']}]});let _0x563af4=new ButtonBuilder()[_0xd25dbf(0x1a6)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1b1)])[_0xd25dbf(0x1c8)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x207)])[_0xd25dbf(0x1b9)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1ea)])[_0xd25dbf(0x1da)+'d'](_0xd25dbf(0x1fd)+'et'),_0x1dbe1b=new ActionRowBuilder()[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x563af4);const _0x296f4a={};_0x296f4a['content']='<@&'+_0x21f8a3?.['support_ro'+_0xd25dbf(0x177)]+'>',_0x296f4a[_0xd25dbf(0x185)]=[_0x15dd4e],_0x296f4a[_0xd25dbf(0x1d4)]=[_0x1dbe1b],await _0x1a5e22['send'](_0x296f4a);const _0x3b5a1c={};_0x3b5a1c['content']='You\x20succes'+_0xd25dbf(0x186)+'ated\x20a\x20tic'+_0xd25dbf(0x1c4)+_0xd25dbf(0x1e3)+'e\x20'+_0x1a5e22,_0x3b5a1c[_0xd25dbf(0x1f6)]=!![],await _0x141f56[_0xd25dbf(0x1cb)](_0x3b5a1c),_0x1ccdb4[_0xd25dbf(0x1e5)](_0xd25dbf(0x20a)+_0xd25dbf(0x1b2)+'(id,\x20statu'+_0xd25dbf(0x17e)+_0xd25dbf(0x19d)+'channelID)'+_0xd25dbf(0x1ae)+_0xd25dbf(0x1e6)+_0xd25dbf(0x201),[pad(_0x21f8a3[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),_0xd25dbf(0x1d9),_0x141f56['user']['id'],_0x141f56[_0xd25dbf(0x16e)],_0x1a5e22['id']]);}else return function(_0xb4f146){}[_0xd25dbf(0x1d0)+'r'](_0xd25dbf(0x21b)+_0xd25dbf(0x1f7))[_0xd25dbf(0x1ac)]('counter');}}else{if(_0x141f56[_0xd25dbf(0x219)][_0xd25dbf(0x180)](_0xd25dbf(0x1db))){if(!_0x141f56[_0xd25dbf(0x1e1)+_0xd25dbf(0x18b)]())return;const _0x1b88f8={};_0x1b88f8[_0xd25dbf(0x1f6)]=!![],await _0x141f56[_0xd25dbf(0x194)](_0x1b88f8);let _0x46f77c=_0x141f56['customId']['split'](_0xd25dbf(0x1db))[0x1],_0x30497f=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x21c)+_0xd25dbf(0x16a)+'=\x27'+_0x46f77c+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x50c5ec=new EmbedBuilder()['setTimesta'+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x1eb)+_0xd25dbf(0x22e)](ticket_settings[_0xd25dbf(0x178)+_0xd25dbf(0x21f)]['replace'](_0xd25dbf(0x231),_0x141f56['user']))[_0xd25dbf(0x1e8)]({'name':_0x141f56[_0xd25dbf(0x193)]['tag'],'iconURL':_0x141f56['user'][_0xd25dbf(0x187)]()}),_0x5de644=new EmbedBuilder()[_0xd25dbf(0x1a0)+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x1e8)]({'name':_0x141f56[_0xd25dbf(0x193)][_0xd25dbf(0x183)],'iconURL':_0x141f56[_0xd25dbf(0x193)][_0xd25dbf(0x187)]()});_0x141f56[_0xd25dbf(0x22a)][_0xd25dbf(0x22a)][_0xd25dbf(0x1aa)](async _0x3937cc=>{const _0x5c81a9=_0xd25dbf;let _0x4b647e=await query(_0x1ccdb4,_0x5c81a9(0x182)+_0x5c81a9(0x1e2)+_0x5c81a9(0x211)+_0x5c81a9(0x202)+_0x3937cc[_0x5c81a9(0x219)][_0x5c81a9(0x221)](_0x5c81a9(0x1f2))[0x1]+('\x27\x20AND\x20guil'+_0x5c81a9(0x217))+_0x141f56[_0x5c81a9(0x16e)]+'\x27');const _0xf70e70={};_0xf70e70[_0x5c81a9(0x1cf)]=_0x4b647e['question'],_0xf70e70['value']='```'+_0x3937cc[_0x5c81a9(0x203)]+_0x5c81a9(0x1bf),_0xf70e70[_0x5c81a9(0x1a4)]=![],_0x5de644[_0x5c81a9(0x222)](_0xf70e70);});let _0x3ce2f7=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x223)+'s\x20WHERE\x20st'+_0xd25dbf(0x1b8)+_0xd25dbf(0x1a5)+_0xd25dbf(0x210)+_0x141f56[_0xd25dbf(0x193)]['id']+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56['guildId']+'\x27'),_0x5a9bd5=_0x2c1e71[_0xd25dbf(0x216)][_0xd25dbf(0x213)]['get'](_0x3ce2f7?.[_0xd25dbf(0x1ba)]);if(_0x3ce2f7&&_0x5a9bd5)return _0x141f56[_0xd25dbf(0x1cb)]({'content':_0xd25dbf(0x19a)+_0xd25dbf(0x1ed)+_0xd25dbf(0x226)+_0xd25dbf(0x1d2)+_0xd25dbf(0x16f)+_0x5a9bd5,'ephemeral':!![]});let _0x27ebcb=await query(_0x1ccdb4,'SELECT\x20*\x20F'+_0xd25dbf(0x18d)+_0xd25dbf(0x1c0)+_0xd25dbf(0x1be)+_0x141f56[_0xd25dbf(0x16e)]+'\x27');_0x1ccdb4[_0xd25dbf(0x1e5)]('UPDATE\x20set'+_0xd25dbf(0x1d7)+_0xd25dbf(0x1e7)+_0xd25dbf(0x1f9)+_0xd25dbf(0x21d)+_0xd25dbf(0x1ab)+_0xd25dbf(0x184)+_0x141f56['guildId']+'\x27');const _0x518b83={};_0x518b83['id']=_0x2c1e71[_0xd25dbf(0x193)]['id'],_0x518b83[_0xd25dbf(0x1c9)]=['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es'],_0x5a9bd5=await _0x141f56[_0xd25dbf(0x18c)][_0xd25dbf(0x216)][_0xd25dbf(0x215)]({'parent':_0x30497f?.[_0xd25dbf(0x20c)],'name':_0xd25dbf(0x1c7)+pad(_0x27ebcb[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),'topic':'#Ticket\x20|\x20'+_0xd25dbf(0x179)+_0x141f56[_0xd25dbf(0x193)][_0xd25dbf(0x1ff)],'permissionOverwrites':[{'id':_0x141f56[_0xd25dbf(0x16e)],'deny':['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es']},{'id':_0x141f56['member']['id'],'allow':['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es']},_0x518b83,{'id':_0x27ebcb?.[_0xd25dbf(0x1ad)+_0xd25dbf(0x177)],'allow':[_0xd25dbf(0x208)+'l',_0xd25dbf(0x1fc)+'es']}]});let _0x57cf4a=new ButtonBuilder()[_0xd25dbf(0x1a6)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1b1)])[_0xd25dbf(0x1c8)](ticket_settings[_0xd25dbf(0x1d5)+'elabel'])[_0xd25dbf(0x1b9)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1ea)])['setCustomI'+'d']('close_tick'+'et'),_0x4c6d76=new ActionRowBuilder()[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x57cf4a);const _0x1fe060={};_0x1fe060['content']=_0xd25dbf(0x189)+_0x27ebcb?.[_0xd25dbf(0x1ad)+'leID']+'>',_0x1fe060[_0xd25dbf(0x185)]=[_0x50c5ec,_0x5de644],_0x1fe060[_0xd25dbf(0x1d4)]=[_0x4c6d76],await _0x5a9bd5[_0xd25dbf(0x227)](_0x1fe060);const _0x3a2617={};_0x3a2617[_0xd25dbf(0x17c)]=_0xd25dbf(0x1f4)+_0xd25dbf(0x186)+'ated\x20a\x20tic'+_0xd25dbf(0x1c4)+_0xd25dbf(0x1e3)+'e\x20'+_0x5a9bd5,_0x3a2617[_0xd25dbf(0x1f6)]=!![],await _0x141f56[_0xd25dbf(0x1cb)](_0x3a2617),_0x1ccdb4[_0xd25dbf(0x1e5)](_0xd25dbf(0x20a)+_0xd25dbf(0x1b2)+_0xd25dbf(0x199)+_0xd25dbf(0x17e)+_0xd25dbf(0x19d)+_0xd25dbf(0x1bb)+_0xd25dbf(0x1ae)+_0xd25dbf(0x1e6)+_0xd25dbf(0x201),[pad(_0x27ebcb[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),_0xd25dbf(0x1d9),_0x141f56[_0xd25dbf(0x193)]['id'],_0x141f56[_0xd25dbf(0x16e)],_0x5a9bd5['id']]);}else{if(_0x141f56['customId']==_0xd25dbf(0x1fd)+'et'){let _0x89d221=new ModalBuilder()[_0xd25dbf(0x1a1)](_0xd25dbf(0x20f)+'et')[_0xd25dbf(0x1da)+'d'](_0xd25dbf(0x1fd)+_0xd25dbf(0x225)),_0x26437c=new TextInputBuilder()[_0xd25dbf(0x19e)+'d'](![])[_0xd25dbf(0x1da)+'d']('input')['setStyle'](_0xd25dbf(0x204))[_0xd25dbf(0x1c8)](_0xd25dbf(0x230)+_0xd25dbf(0x18e)),_0x87597d=new ActionRowBuilder()[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x26437c);return _0x89d221[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x87597d),_0x141f56[_0xd25dbf(0x19f)](_0x89d221);}else{if(_0x141f56[_0xd25dbf(0x219)]=='close_tick'+_0xd25dbf(0x225)){if(_0xd25dbf(0x1c6)!==_0xd25dbf(0x1c6)){const _0x3b1aa0=_0x298d14?function(){if(_0x1442ca){const _0x42bf3f=_0x860a91['apply'](_0x411b5c,arguments);return _0x3a7675=null,_0x42bf3f;}}:function(){};return _0x11f9a0=![],_0x3b1aa0;}else{if(!_0x141f56[_0xd25dbf(0x1e1)+_0xd25dbf(0x18b)]())return;const _0x1326cd={};_0x1326cd['ephemeral']=!![],await _0x141f56['deferReply'](_0x1326cd);let _0x3d23ca=_0x141f56['fields'][_0xd25dbf(0x224)+_0xd25dbf(0x173)](_0xd25dbf(0x1b3));const _0x42aa3f={};_0x42aa3f[_0xd25dbf(0x172)]=!![],_0x42aa3f[_0xd25dbf(0x1b7)]=_0xd25dbf(0x1d6)+_0xd25dbf(0x1a2)+_0xd25dbf(0x1de),_0x42aa3f[_0xd25dbf(0x16b)]=![];let _0x1d26e5=await discordTranscripts['createTran'+_0xd25dbf(0x238)](_0x141f56[_0xd25dbf(0x237)],_0x42aa3f);const _0x17e607={};_0x17e607[_0xd25dbf(0x17c)]=_0xd25dbf(0x1f4)+_0xd25dbf(0x206)+'sed\x20the\x20ti'+'cket!',_0x17e607[_0xd25dbf(0x1f6)]=!![],await _0x141f56['editReply'](_0x17e607);let _0xbb9286=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x223)+_0xd25dbf(0x196)+_0xd25dbf(0x1b8)+_0xd25dbf(0x22d)+_0xd25dbf(0x169)+_0x141f56[_0xd25dbf(0x237)]['id']+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x53073f=await query(_0x1ccdb4,_0xd25dbf(0x182)+'ROM\x20settin'+_0xd25dbf(0x1c0)+_0xd25dbf(0x1be)+_0x141f56['guildId']+'\x27'),_0x2d2787=_0x53073f?.[_0xd25dbf(0x1d3)+_0xd25dbf(0x1fa)],_0xb49309=_0x2c1e71['channels'][_0xd25dbf(0x213)]['get'](_0x2d2787),_0x4f074e=_0x2c1e71[_0xd25dbf(0x22b)][_0xd25dbf(0x213)]['get'](_0xbb9286[_0xd25dbf(0x1c3)]);const _0x4be551={};_0x4be551['text']=_0x141f56['guild'][_0xd25dbf(0x1cf)];const _0x1094be={};_0x1094be['name']='Ticket\x20has'+_0xd25dbf(0x1fe)+_0xd25dbf(0x200);const _0x2feef0={};_0x2feef0['name']='Ticket',_0x2feef0[_0xd25dbf(0x203)]=_0xd25dbf(0x1bf)+_0x141f56[_0xd25dbf(0x237)]['name']+_0xd25dbf(0x1bf),_0x2feef0['inline']=!![];const _0x48208d={};_0x48208d[_0xd25dbf(0x1cf)]='Ticket\x20Aut'+_0xd25dbf(0x1af),_0x48208d[_0xd25dbf(0x203)]=_0xd25dbf(0x1bf)+_0x4f074e[_0xd25dbf(0x183)]+_0xd25dbf(0x1bf),_0x48208d[_0xd25dbf(0x1a4)]=!![];const _0x2a2fc5={};_0x2a2fc5['name']=_0xd25dbf(0x1c5),_0x2a2fc5['value']=_0xd25dbf(0x1bf)+_0x141f56[_0xd25dbf(0x18c)]['name']+_0xd25dbf(0x1bf),_0x2a2fc5[_0xd25dbf(0x1a4)]=!![];const _0xe99989={};_0xe99989[_0xd25dbf(0x1cf)]=_0xd25dbf(0x175),_0xe99989[_0xd25dbf(0x203)]=_0xd25dbf(0x1bf)+_0x3d23ca+'```',_0xe99989['inline']=![];let _0x3bfb03=new EmbedBuilder()['setTimesta'+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x18a)](_0x4be551)[_0xd25dbf(0x1e8)](_0x1094be)[_0xd25dbf(0x222)](_0x2feef0,_0x48208d,_0x2a2fc5,_0xe99989);const _0x4417a0={};_0x4417a0[_0xd25dbf(0x185)]=[_0x3bfb03],_0x4417a0['files']=[_0x1d26e5],await _0x4f074e?.[_0xd25dbf(0x227)](_0x4417a0)[_0xd25dbf(0x22c)](_0x3f4c75=>{});const _0x532f42={};return _0x532f42[_0xd25dbf(0x185)]=[_0x3bfb03],_0x532f42[_0xd25dbf(0x1e4)]=[_0x1d26e5],await _0xb49309?.[_0xd25dbf(0x227)](_0x532f42)[_0xd25dbf(0x22c)](_0x35f8d8=>{}),await query(_0x1ccdb4,_0xd25dbf(0x19b)+_0xd25dbf(0x1a3)+_0xd25dbf(0x171)+'sed\x27\x20WHERE'+_0xd25dbf(0x168)+'=\x27'+_0x2d2787+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x141f56['channel'][_0xd25dbf(0x192)]();}}}}}});};function pad(_0x48a0b8,_0x5ca8b2){const _0x22f5f1=a4_0x158584;_0x48a0b8=_0x48a0b8[_0x22f5f1(0x16c)]();while(_0x48a0b8['length']<_0x5ca8b2)_0x48a0b8='0'+_0x48a0b8;return _0x48a0b8;}function a4_0x671e8d(_0x218198){const _0xd833d0=a4_0x158584;function _0x4cd39c(_0x114fc8){const _0x2a9656=a4_0x16f0;if(typeof _0x114fc8===_0x2a9656(0x1f5)){if(_0x2a9656(0x1e9)!==_0x2a9656(0x174))return function(_0x231b18){}[_0x2a9656(0x1d0)+'r']('while\x20(tru'+'e)\x20{}')['apply'](_0x2a9656(0x17f));else{if(_0x444dac){const _0x127d1e=_0x1f9ec1[_0x2a9656(0x1ac)](_0x28c07c,arguments);return _0x1788de=null,_0x127d1e;}}}else{if((''+_0x114fc8/_0x114fc8)[_0x2a9656(0x1b6)]!==0x1||_0x114fc8%0x14===0x0)(function(){return!![];}[_0x2a9656(0x1d0)+'r']('debu'+_0x2a9656(0x233))[_0x2a9656(0x22f)](_0x2a9656(0x1a7)));else{if(_0x2a9656(0x190)!==_0x2a9656(0x190)){if(_0x528986)return _0x564d9a;else _0x570b01(0x0);}else(function(){const _0x1c459c=_0x2a9656;if(_0x1c459c(0x20e)!==_0x1c459c(0x20e)){let _0x5dd093=new _0x26f4cb()[_0x1c459c(0x1a1)](_0x1c459c(0x20f)+'et')['setCustomI'+'d'](_0x1c459c(0x1fd)+_0x1c459c(0x225)),_0x2d764b=new _0x7c0d1a()['setRequire'+'d'](![])[_0x1c459c(0x1da)+'d'](_0x1c459c(0x1b3))[_0x1c459c(0x1b9)](_0x1c459c(0x204))['setLabel']('Close\x20mess'+'age'),_0x4f4daa=new _0x2fa683()['addCompone'+_0x1c459c(0x1a9)](_0x2d764b);return _0x5dd093[_0x1c459c(0x20b)+_0x1c459c(0x1a9)](_0x4f4daa),_0x3a5b1a[_0x1c459c(0x19f)](_0x5dd093);}else return![];}[_0x2a9656(0x1d0)+'r'](_0x2a9656(0x181)+_0x2a9656(0x233))[_0x2a9656(0x1ac)]('stateObjec'+'t'));}}_0x4cd39c(++_0x114fc8);}try{if(_0x218198){if(_0xd833d0(0x218)!==_0xd833d0(0x218)){const _0x114b11=_0x3f5baa?function(){const _0x2a197c=_0xd833d0;if(_0x201105){const _0x4801fb=_0x2b89f7[_0x2a197c(0x1ac)](_0x424408,arguments);return _0x4e757e=null,_0x4801fb;}}:function(){};return _0x156210=![],_0x114b11;}else return _0x4cd39c;}else _0x4cd39c(0x0);}catch(_0x176c7b){}}