mirror of https://github.com/KingRan/KR.git
8 lines
14 KiB
JavaScript
8 lines
14 KiB
JavaScript
|
/*
|
|||
|
一个自定义的推送通知库,主要用于发送多账号的汇总消息推送通知,也支持单消息推送,推送通知业务调用自sendNotify.js,可引用此模块来平替引用sendNotify.js
|
|||
|
账号消息支持关键词过滤,定义环境变量 JD_NOTIFY_FILTER_KEYWORDS 即可,多个关键词用@分割
|
|||
|
例:export JD_NOTIFY_FILTER_KEYWORDS="空气@会员"
|
|||
|
|
|||
|
new Env('sendJDNotify');
|
|||
|
*/
|
|||
|
var version_='jsjiami.com.v7';const li1i11=iii1II;function iii1II(_0x828da9,_0x200068){const _0x5c2057=Iii11l();return iii1II=function(_0x8d0946,_0x35ef48){_0x8d0946=_0x8d0946-0x8e;let _0x333796=_0x5c2057[_0x8d0946];if(iii1II['sEgErl']===undefined){var _0xe639b5=function(_0x283ea6){const _0x5e8984='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x113fde='',_0x320c2f='';for(let _0x192240=0x0,_0x72a717,_0x484782,_0x5660b1=0x0;_0x484782=_0x283ea6['charAt'](_0x5660b1++);~_0x484782&&(_0x72a717=_0x192240%0x4?_0x72a717*0x40+_0x484782:_0x484782,_0x192240++%0x4)?_0x113fde+=String['fromCharCode'](0xff&_0x72a717>>(-0x2*_0x192240&0x6)):0x0){_0x484782=_0x5e8984['indexOf'](_0x484782);}for(let _0x493036=0x0,_0x51f627=_0x113fde['length'];_0x493036<_0x51f627;_0x493036++){_0x320c2f+='%'+('00'+_0x113fde['charCodeAt'](_0x493036)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x320c2f);};const _0x21b4e5=function(_0xc1bb4e,_0x41f7a7){let _0x4e10ee=[],_0x1d252f=0x0,_0x742b0e,_0x39cca0='';_0xc1bb4e=_0xe639b5(_0xc1bb4e);let _0x382525;for(_0x382525=0x0;_0x382525<0x100;_0x382525++){_0x4e10ee[_0x382525]=_0x382525;}for(_0x382525=0x0;_0x382525<0x100;_0x382525++){_0x1d252f=(_0x1d252f+_0x4e10ee[_0x382525]+_0x41f7a7['charCodeAt'](_0x382525%_0x41f7a7['length']))%0x100,_0x742b0e=_0x4e10ee[_0x382525],_0x4e10ee[_0x382525]=_0x4e10ee[_0x1d252f],_0x4e10ee[_0x1d252f]=_0x742b0e;}_0x382525=0x0,_0x1d252f=0x0;for(let _0x5dcb1b=0x0;_0x5dcb1b<_0xc1bb4e['length'];_0x5dcb1b++){_0x382525=(_0x382525+0x1)%0x100,_0x1d252f=(_0x1d252f+_0x4e10ee[_0x382525])%0x100,_0x742b0e=_0x4e10ee[_0x382525],_0x4e10ee[_0x382525]=_0x4e10ee[_0x1d252f],_0x4e10ee[_0x1d252f]=_0x742b0e,_0x39cca0+=String['fromCharCode'](_0xc1bb4e['charCodeAt'](_0x5dcb1b)^_0x4e10ee[(_0x4e10ee[_0x382525]+_0x4e10ee[_0x1d252f])%0x100]);}return _0x39cca0;};iii1II['MrePtb']=_0x21b4e5,_0x828da9=arguments,iii1II['sEgErl']=!![];}const _0x19adc9=_0x5c2057[0x0],_0x190c63=_0x8d0946+_0x19adc9,_0x1918bc=_0x828da9[_0x190c63];return!_0x1918bc?(iii1II['rAcDdG']===undefined&&(iii1II['rAcDdG']=!![]),_0x333796=iii1II['MrePtb'](_0x333796,_0x35ef48),_0x828da9[_0x190c63]=_0x333796):_0x333796=_0x1918bc,_0x333796;},iii1II(_0x828da9,_0x200068);}(function(ilil1l,illlIi,I1lIii,IiI1I,illlIl,i11ill,IIIIIi){return ilil1l=ilil1l>>0x1,i11ill='hs',IIIIIi='hs',function(IIIIIl,I1lIil,IIIl1i,liiII1,IIIl1l){const lllili=iii1II;liiII1='tfi',i11ill=liiII1+i11ill,IIIl1l='up',IIIIIi+=IIIl1l,i11ill=IIIl1i(i11ill),IIIIIi=IIIl1i(IIIIIi),IIIl1i=0x0;const lllll=IIIIIl();while(!![]&&--IiI1I+I1lIil){try{liiII1=-parseInt(lllili(0xbf,'nXSY'))/0x1*(-parseInt(lllili(0xd2,'S@L4'))/0x2)+parseInt(lllili(0x119,'LUIf'))/0x3+parseInt(lllili(0xb0,'DKJ%'))/0x4+parseInt(lllili(0xd6,'cg3X'))/0x5*(parseInt(lllili(0xc0,'SDhN'))/0x6)+parseInt(lllili(0xb1,'fH9@'))/0x7+parseInt(lllili(0xe4,'KuG9'))/0x8*(-parseInt(lllili(0x101,'E7%g'))/0x9)+parseInt(lllili(0x110,'LUIf'))/0xa*(-parseInt(lllili(0xb5,'#SB8'))/0xb);}catch(i11ili){liiII1=IIIl1i;}finally{IIIl1l=lllll[i11ill]();if(ilil1l<=IiI1I)IIIl1i?illlIl?liiII1=IIIl1l:illlIl=IIIl1l:IIIl1i=IIIl1l;else{if(IIIl1i==illlIl['replace'](/[GLnyKxbPHNOpetDAWEQRd=]/g,'')){if(liiII1===I1lIil){lllll['un'+i11ill](IIIl1l);break;}lllll[IIIIIi](IIIl1l);}}}}}(I1lIii,illlIi,function(iil1l1,lllli,iiili1,ill11i,lllill,ill11l,I1lIiI){return lllli='\x73\x70\x6c\x69\x74',iil1l1=arguments[0x0],iil1l1=iil1l1[lllli](''),iiili1='\x72\x65\x76\x65\x72\x73\x65',iil1l1=iil1l1[iiili1]('\x76'),ill11i='\x6a\x6f\x69\x6e',(0x1372f4,iil1l1[ill11i](''));});}(0x186,0x784ee,Iii11l,0xc5),Iii11l)&&(version_=Iii11l);class l1il1I{constructor(){const IliiiI=iii1II,Iiili={'qCbCd':function(illIl1,l1llII){return illIl1(l1llII);}},IilIli=IliiiI(0xd7,'nXSY')['split']('|');let li1=0x0;while(!![]){switch(IilIli[li1++]){case'0':this['sendNotify']=Iiili[IliiiI(0xc3,'Vqbn')](require,'../sendNotify')[IliiiI(0xb6,'hg[x')];continue;case'1':this['messageDelimiter']=',';continue;case'2':this[IliiiI(0xb4,'j7)1')]=[];continue;case'3':this['parseMessageFilterKeywords']();continue;case'4':this[IliiiI(0x94,'*b6R')]='';continue;case'5':this[IliiiI(0xe1,'S@L4
|