Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / email / lib / utils.js
index 03dae0e..d876563 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf14c=['textAsHtml','<a\x20target=\x22_blank\x22\x20','message','originTo','originCc','attachments','type','attachment-','%s-%s','now','server/files/attachments/','content','contentType','headerLines','Auto-Submitted:\x20auto-replied','X-Auto-Response-Suppress:\x20All','line','isAutoreply','parser','from','subject','messageId','inReplyTo','date','format','YYYY-MM-DD\x20HH:mm:ss','filter','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','first','BodyHTML','<p>Empty\x20message</p>','Attachments','Title','Data','generateXOAuth2Token','user=','utf-8','toString','base64','lodash','moment','randomstring','path','util','node-tnef','../../../config/logger','email','../../../config/environment','head','value','address','anonymous','@xcally.com','name','substring','indexOf','split','length','join','Anonymous','pop','isEmpty','generate','html','test','replace','includes','<img','push','filename','_IMG','<span\x20style=font-weight:bold>\x20[Attachment:\x20','\x20]</span>','body'];(function(_0x644ecd,_0x397f36){var _0x1c66ce=function(_0x4cf42b){while(--_0x4cf42b){_0x644ecd['push'](_0x644ecd['shift']());}};_0x1c66ce(++_0x397f36);}(_0xf14c,0x105));var _0xcf14=function(_0x4e85dc,_0x403b4e){_0x4e85dc=_0x4e85dc-0x0;var _0x298723=_0xf14c[_0x4e85dc];return _0x298723;};'use strict';var _=require(_0xcf14('0x0'));var moment=require(_0xcf14('0x1'));var random=require(_0xcf14('0x2'));var fs=require('fs');var path=require(_0xcf14('0x3'));var util=require(_0xcf14('0x4'));var tnef=require(_0xcf14('0x5'));var logger=require(_0xcf14('0x6'))(_0xcf14('0x7'));var config=require(_0xcf14('0x8'));function getAddress(_0x459c90){var _0x23321f=_[_0xcf14('0x9')](_0x459c90[_0xcf14('0xa')]);return _0x23321f&&_0x23321f[_0xcf14('0xb')]?_0x23321f['address']:_0xcf14('0xc')+random['generate'](0x6)+_0xcf14('0xd');}function getFirstName(_0x4a5cbe){var _0x5e86fb=_[_0xcf14('0x9')](_0x4a5cbe[_0xcf14('0xa')]);if(_0x5e86fb&&_0x5e86fb[_0xcf14('0xe')]){if(_0x5e86fb[_0xcf14('0xe')]==_0x5e86fb[_0xcf14('0xb')]){return _0x5e86fb[_0xcf14('0xe')][_0xcf14('0xf')](0x0,_0x5e86fb[_0xcf14('0xe')][_0xcf14('0x10')]('@'));}var _0x368e99=_0x5e86fb[_0xcf14('0xe')][_0xcf14('0x11')](/\s+/);return _0x368e99[_0xcf14('0x12')]>0x1?_0x368e99['slice'](0x0,-0x1)[_0xcf14('0x13')]('\x20'):_0x5e86fb[_0xcf14('0xe')];}return _0xcf14('0x14');}function getLastName(_0x13df4d){var _0xbcc544=_[_0xcf14('0x9')](_0x13df4d[_0xcf14('0xa')]);if(_0xbcc544&&_0xbcc544[_0xcf14('0xe')]){var _0x43b5ec=_0xbcc544[_0xcf14('0xe')]['split'](/\s+/);return _0x43b5ec['length']>0x1?_0x43b5ec[_0xcf14('0x15')]():'';}return'';}function getMails(_0x5a759a,_0x2e547d){var _0x53d252='';for(var _0x42f670=0x0;_0x42f670<_0x2e547d['value'][_0xcf14('0x12')];_0x42f670+=0x1){if(_0x2e547d[_0xcf14('0xa')][_0x42f670][_0xcf14('0xb')]!==_0x5a759a){if(!_[_0xcf14('0x16')](_0x53d252)){_0x53d252+=',';}_0x53d252+=_0x2e547d[_0xcf14('0xa')][_0x42f670][_0xcf14('0xe')]||_0x2e547d[_0xcf14('0xa')][_0x42f670][_0xcf14('0xb')]||'';_0x53d252+='\x20<';_0x53d252+=_0x2e547d[_0xcf14('0xa')][_0x42f670][_0xcf14('0xb')]?_0x2e547d[_0xcf14('0xa')][_0x42f670][_0xcf14('0xb')]:_0xcf14('0xc')+random[_0xcf14('0x17')](0x6)+'@xcally.com';_0x53d252+='>';}}return _0x53d252;}function parseEmail(_0x5890e0,_0x4c42a5,_0x21fc0c){if(_0x4c42a5[_0xcf14('0x18')]){var _0x38d6ae=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;while(_0x38d6ae[_0xcf14('0x19')](_0x4c42a5[_0xcf14('0x18')])){_0x4c42a5[_0xcf14('0x18')]=_0x4c42a5[_0xcf14('0x18')][_0xcf14('0x1a')](_0x38d6ae,'');}if(_0x4c42a5[_0xcf14('0x18')][_0xcf14('0x1b')](_0xcf14('0x1c'))){var _0x4f000c=[];_0x4c42a5['attachments']['forEach'](_0x491d25=>{_0x4f000c[_0xcf14('0x1d')](_0x491d25[_0xcf14('0x1e')]);});var _0x542a25=/<img.*? _SRC(.*?)[^>]+>/g;var _0x244ea5=/src="data:image\/([a-zA-Z]*);base64,([^"]*)"/g;var _0x5b6050=_0x4c42a5['html'][_0xcf14('0x1a')](_0x244ea5,'_SRC');var _0x172d33=_0x5b6050['replace'](_0x542a25,_0xcf14('0x1f'));for(let _0x3e5f0e=0x0;_0x3e5f0e<_0x4f000c[_0xcf14('0x12')];_0x3e5f0e++){var _0x48f003=_0x172d33['replace'](_0xcf14('0x1f'),_0xcf14('0x20')+_0x4f000c[_0x3e5f0e]+_0xcf14('0x21'));_0x172d33=_0x48f003;}_0x4c42a5[_0xcf14('0x18')]=_0x172d33;}_0x21fc0c[_0xcf14('0x22')]=_0x4c42a5[_0xcf14('0x18')];}else{_0x21fc0c[_0xcf14('0x22')]=_0x4c42a5[_0xcf14('0x23')];}if(_0x21fc0c['body']){_0x21fc0c[_0xcf14('0x22')]=_0x21fc0c[_0xcf14('0x22')][_0xcf14('0x1a')](/<a\s+/gi,_0xcf14('0x24'));}if(_0x4c42a5['to']){_0x21fc0c[_0xcf14('0x25')][_0xcf14('0x26')]=getMails(null,_0x4c42a5['to']);var _0x30f50a=getMails(_0x5890e0['email'],_0x4c42a5['to']);if(!_[_0xcf14('0x16')](_0x30f50a)){_0x21fc0c[_0xcf14('0x25')]['cc']+=_0x30f50a;}}if(_0x4c42a5['cc']){_0x21fc0c['message'][_0xcf14('0x27')]=getMails(null,_0x4c42a5['cc']);var _0x467577=getMails(_0x5890e0[_0xcf14('0x7')],_0x4c42a5['cc']);if(!_['isEmpty'](_0x467577)){if(!_[_0xcf14('0x16')](_0x21fc0c[_0xcf14('0x25')]['cc'])){_0x21fc0c[_0xcf14('0x25')]['cc']+=',';}_0x21fc0c[_0xcf14('0x25')]['cc']+=_0x467577;}}if(!_[_0xcf14('0x1b')](_0x21fc0c['message'][_0xcf14('0x26')],_0x5890e0[_0xcf14('0x7')])&&!_['includes'](_0x21fc0c[_0xcf14('0x25')]['originCc'],_0x5890e0['email'])){_0x21fc0c['message']['bcc']=_0x5890e0[_0xcf14('0x7')];}if(_0x4c42a5['attachments']&&_0x4c42a5[_0xcf14('0x28')][_0xcf14('0x12')]){_0x21fc0c['message']['attach']=_0x4c42a5[_0xcf14('0x28')][_0xcf14('0x12')];for(var _0x3ca7dc=0x0,_0x3d6d8e,_0x249b18,_0x3d1a21;_0x3ca7dc<_0x4c42a5[_0xcf14('0x28')][_0xcf14('0x12')];_0x3ca7dc+=0x1){if(_0x4c42a5[_0xcf14('0x28')][_0x3ca7dc][_0xcf14('0x29')]==='attachment'){_0x3d1a21=_0x4c42a5[_0xcf14('0x28')][_0x3ca7dc][_0xcf14('0x1e')]||_0xcf14('0x2a')+_0x3ca7dc;_0x3d6d8e=util['format'](_0xcf14('0x2b'),Date[_0xcf14('0x2c')](),_0x3d1a21);_0x249b18=path[_0xcf14('0x13')](config['root'],_0xcf14('0x2d'),_0x3d6d8e);fs['writeFileSync'](_0x249b18,_0x4c42a5[_0xcf14('0x28')][_0x3ca7dc][_0xcf14('0x2e')]);_0x21fc0c['message'][_0xcf14('0x28')][_0xcf14('0x1d')]({'name':_0x3d1a21,'basename':_0x3d6d8e,'type':_0x4c42a5['attachments'][_0x3ca7dc][_0xcf14('0x2f')],'filepath':_0x249b18});}}}if(_0x4c42a5['headerLines']&&_0x4c42a5[_0xcf14('0x30')][_0xcf14('0x12')]>0x0){var _0x1101ac=[_0xcf14('0x31'),_0xcf14('0x32'),'Precedence:\x20auto_reply'];for(var _0x540833=0x0;_0x540833<_0x4c42a5[_0xcf14('0x30')]['length'];_0x540833++){var _0x20b8f6=_[_0xcf14('0x10')](_0x1101ac,_0x4c42a5[_0xcf14('0x30')][_0x540833][_0xcf14('0x33')]);if(_0x20b8f6>=0x0){_0x21fc0c[_0xcf14('0x34')]=!![];}}}return _0x21fc0c;}exports[_0xcf14('0x35')]=function(_0x326ebc,_0x41db61,_0x4ad067){var _0xcec8cb={'from':getAddress(_0x41db61[_0xcf14('0x36')]),'firstName':getFirstName(_0x41db61[_0xcf14('0x36')]),'lastName':getLastName(_0x41db61['from']),'mapKey':'email','message':{'from':getMails(_0x326ebc[_0xcf14('0x7')],_0x41db61[_0xcf14('0x36')]),'to':_0x326ebc['email'],'cc':'','subject':_0x41db61[_0xcf14('0x37')]||'','messageId':_0x41db61[_0xcf14('0x38')],'inReplyTo':_0x41db61[_0xcf14('0x39')],'sentAt':moment(_0x41db61[_0xcf14('0x3a')])[_0xcf14('0x3b')](_0xcf14('0x3c')),'attach':![],'attachments':[]}};if(!_0x41db61['html']&&!_0x41db61[_0xcf14('0x23')]){var _0x21acc9=_[_0xcf14('0x3d')](_0x41db61[_0xcf14('0x28')],{'contentType':'application/ms-tnef'});if(_0x21acc9[_0xcf14('0x12')]){logger['info'](util[_0xcf14('0x3b')](_0xcf14('0x3e'),_0x41db61[_0xcf14('0x38')]));tnef['parseBuffer'](_[_0xcf14('0x3f')](_0x21acc9)[_0xcf14('0x2e')],function(_0x13ea75,_0x5d075a){if(_0x5d075a){_0x41db61['html']=_0x5d075a[_0xcf14('0x40')]||_0xcf14('0x41');if(_0x5d075a[_0xcf14('0x42')]){for(var _0x5c544b=0x0;_0x5c544b<_0x5d075a[_0xcf14('0x42')][_0xcf14('0x12')];_0x5c544b++){var _0x1b1fed=_0x5d075a[_0xcf14('0x42')][_0x5c544b];_0xcec8cb[_0xcf14('0x25')][_0xcf14('0x28')]['push']({'filename':_0x1b1fed[_0xcf14('0x43')],'content':Buffer[_0xcf14('0x36')](_0x1b1fed[_0xcf14('0x44')])});}}}_0x4ad067(parseEmail(_0x326ebc,_0x41db61,_0xcec8cb));});}else{_0x41db61[_0xcf14('0x18')]=_0xcf14('0x41');_0x4ad067(parseEmail(_0x326ebc,_0x41db61,_0xcec8cb));}}else{_0x4ad067(parseEmail(_0x326ebc,_0x41db61,_0xcec8cb));}};exports[_0xcf14('0x45')]=function(_0x487174,_0x5e5194){var _0x2504ad=[_0xcf14('0x46')+(_0x5e5194||''),'auth=Bearer\x20'+_0x487174,'',''];return Buffer[_0xcf14('0x36')](_0x2504ad[_0xcf14('0x13')]('\ 1'),_0xcf14('0x47'))[_0xcf14('0x48')](_0xcf14('0x49'));};
\ No newline at end of file
+var _0xd773=['slice','join','Anonymous','pop','isEmpty','html','test','replace','includes','<img','attachments','forEach','push','filename','_SRC','_IMG','<span\x20style=font-weight:bold>\x20[Attachment:\x20','\x20]</span>','body','textAsHtml','<a\x20target=\x22_blank\x22\x20','originTo','message','originCc','bcc','attach','type','attachment','attachment-','format','%s-%s','now','root','server/files/attachments/','content','contentType','headerLines','X-Auto-Response-Suppress:\x20All','indexOf','line','isAutoreply','parser','from','messageId','inReplyTo','date','YYYY-MM-DD\x20HH:mm:ss','filter','application/ms-tnef','info','first','BodyHTML','<p>Empty\x20message</p>','Attachments','Data','generateXOAuth2Token','user=','auth=Bearer\x20','toString','lodash','moment','randomstring','util','node-tnef','email','head','value','address','anonymous','generate','@xcally.com','name','substring','length'];(function(_0x17e57e,_0x3ffddb){var _0x41cbd7=function(_0x8f9f5d){while(--_0x8f9f5d){_0x17e57e['push'](_0x17e57e['shift']());}};_0x41cbd7(++_0x3ffddb);}(_0xd773,0x1ad));var _0x3d77=function(_0x14b8bc,_0x3d3d0b){_0x14b8bc=_0x14b8bc-0x0;var _0x50a454=_0xd773[_0x14b8bc];return _0x50a454;};'use strict';var _=require(_0x3d77('0x0'));var moment=require(_0x3d77('0x1'));var random=require(_0x3d77('0x2'));var fs=require('fs');var path=require('path');var util=require(_0x3d77('0x3'));var tnef=require(_0x3d77('0x4'));var logger=require('../../../config/logger')(_0x3d77('0x5'));var config=require('../../../config/environment');function getAddress(_0x238369){var _0x53a335=_[_0x3d77('0x6')](_0x238369[_0x3d77('0x7')]);return _0x53a335&&_0x53a335[_0x3d77('0x8')]?_0x53a335['address']:_0x3d77('0x9')+random[_0x3d77('0xa')](0x6)+_0x3d77('0xb');}function getFirstName(_0x2b3687){var _0x304c34=_['head'](_0x2b3687['value']);if(_0x304c34&&_0x304c34[_0x3d77('0xc')]){if(_0x304c34['name']==_0x304c34[_0x3d77('0x8')]){return _0x304c34[_0x3d77('0xc')][_0x3d77('0xd')](0x0,_0x304c34[_0x3d77('0xc')]['indexOf']('@'));}var _0x3d4d8e=_0x304c34['name']['split'](/\s+/);return _0x3d4d8e[_0x3d77('0xe')]>0x1?_0x3d4d8e[_0x3d77('0xf')](0x0,-0x1)[_0x3d77('0x10')]('\x20'):_0x304c34[_0x3d77('0xc')];}return _0x3d77('0x11');}function getLastName(_0x27eecd){var _0x58ae74=_[_0x3d77('0x6')](_0x27eecd['value']);if(_0x58ae74&&_0x58ae74[_0x3d77('0xc')]){var _0x5e74e6=_0x58ae74[_0x3d77('0xc')]['split'](/\s+/);return _0x5e74e6[_0x3d77('0xe')]>0x1?_0x5e74e6[_0x3d77('0x12')]():'';}return'';}function getMails(_0x1137bd,_0x5a69af){var _0x5d7899='';for(var _0x3c22fb=0x0;_0x3c22fb<_0x5a69af[_0x3d77('0x7')][_0x3d77('0xe')];_0x3c22fb+=0x1){if(_0x5a69af[_0x3d77('0x7')][_0x3c22fb][_0x3d77('0x8')]!==_0x1137bd){if(!_[_0x3d77('0x13')](_0x5d7899)){_0x5d7899+=',';}_0x5d7899+=_0x5a69af[_0x3d77('0x7')][_0x3c22fb][_0x3d77('0xc')]||_0x5a69af[_0x3d77('0x7')][_0x3c22fb][_0x3d77('0x8')]||'';_0x5d7899+='\x20<';_0x5d7899+=_0x5a69af[_0x3d77('0x7')][_0x3c22fb][_0x3d77('0x8')]?_0x5a69af[_0x3d77('0x7')][_0x3c22fb][_0x3d77('0x8')]:_0x3d77('0x9')+random[_0x3d77('0xa')](0x6)+_0x3d77('0xb');_0x5d7899+='>';}}return _0x5d7899;}function parseEmail(_0x3be5c0,_0x593d48,_0x3ec435){if(_0x593d48[_0x3d77('0x14')]){var _0x477a49=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;while(_0x477a49[_0x3d77('0x15')](_0x593d48[_0x3d77('0x14')])){_0x593d48['html']=_0x593d48[_0x3d77('0x14')][_0x3d77('0x16')](_0x477a49,'');}if(_0x593d48['html'][_0x3d77('0x17')](_0x3d77('0x18'))){var _0x1cc564=[];_0x593d48[_0x3d77('0x19')][_0x3d77('0x1a')](_0x27497b=>{_0x1cc564[_0x3d77('0x1b')](_0x27497b[_0x3d77('0x1c')]);});var _0x1d31ad=/<img.*? _SRC(.*?)[^>]+>/g;var _0x4d4b44=/src="data:image\/([a-zA-Z]*);base64,([^"]*)"/g;var _0x325275=_0x593d48[_0x3d77('0x14')]['replace'](_0x4d4b44,_0x3d77('0x1d'));var _0x314145=_0x325275['replace'](_0x1d31ad,'_IMG');for(let _0x359e4f=0x0;_0x359e4f<_0x1cc564[_0x3d77('0xe')];_0x359e4f++){var _0x2511b8=_0x314145[_0x3d77('0x16')](_0x3d77('0x1e'),_0x3d77('0x1f')+_0x1cc564[_0x359e4f]+_0x3d77('0x20'));_0x314145=_0x2511b8;}_0x593d48[_0x3d77('0x14')]=_0x314145;}_0x3ec435[_0x3d77('0x21')]=_0x593d48[_0x3d77('0x14')];}else{_0x3ec435[_0x3d77('0x21')]=_0x593d48[_0x3d77('0x22')];}if(_0x3ec435[_0x3d77('0x21')]){_0x3ec435[_0x3d77('0x21')]=_0x3ec435[_0x3d77('0x21')]['replace'](/<a\s+/gi,_0x3d77('0x23'));}if(_0x593d48['to']){_0x3ec435['message'][_0x3d77('0x24')]=getMails(null,_0x593d48['to']);var _0x11952b=getMails(_0x3be5c0[_0x3d77('0x5')],_0x593d48['to']);if(!_['isEmpty'](_0x11952b)){_0x3ec435[_0x3d77('0x25')]['cc']+=_0x11952b;}}if(_0x593d48['cc']){_0x3ec435[_0x3d77('0x25')][_0x3d77('0x26')]=getMails(null,_0x593d48['cc']);var _0x6eaab6=getMails(_0x3be5c0[_0x3d77('0x5')],_0x593d48['cc']);if(!_[_0x3d77('0x13')](_0x6eaab6)){if(!_[_0x3d77('0x13')](_0x3ec435[_0x3d77('0x25')]['cc'])){_0x3ec435['message']['cc']+=',';}_0x3ec435[_0x3d77('0x25')]['cc']+=_0x6eaab6;}}if(!_[_0x3d77('0x17')](_0x3ec435[_0x3d77('0x25')][_0x3d77('0x24')],_0x3be5c0[_0x3d77('0x5')])&&!_[_0x3d77('0x17')](_0x3ec435[_0x3d77('0x25')][_0x3d77('0x26')],_0x3be5c0[_0x3d77('0x5')])){_0x3ec435['message'][_0x3d77('0x27')]=_0x3be5c0['email'];}if(_0x593d48[_0x3d77('0x19')]&&_0x593d48[_0x3d77('0x19')][_0x3d77('0xe')]){_0x3ec435[_0x3d77('0x25')][_0x3d77('0x28')]=_0x593d48[_0x3d77('0x19')][_0x3d77('0xe')];for(var _0x46c085=0x0,_0x1d9426,_0x165fc2,_0x18be7f;_0x46c085<_0x593d48[_0x3d77('0x19')][_0x3d77('0xe')];_0x46c085+=0x1){if(_0x593d48[_0x3d77('0x19')][_0x46c085][_0x3d77('0x29')]===_0x3d77('0x2a')){_0x18be7f=_0x593d48[_0x3d77('0x19')][_0x46c085]['filename']||_0x3d77('0x2b')+_0x46c085;_0x1d9426=util[_0x3d77('0x2c')](_0x3d77('0x2d'),Date[_0x3d77('0x2e')](),_0x18be7f);_0x165fc2=path[_0x3d77('0x10')](config[_0x3d77('0x2f')],_0x3d77('0x30'),_0x1d9426);fs['writeFileSync'](_0x165fc2,_0x593d48[_0x3d77('0x19')][_0x46c085][_0x3d77('0x31')]);_0x3ec435[_0x3d77('0x25')][_0x3d77('0x19')][_0x3d77('0x1b')]({'name':_0x18be7f,'basename':_0x1d9426,'type':_0x593d48['attachments'][_0x46c085][_0x3d77('0x32')],'filepath':_0x165fc2});}}}if(_0x593d48['headerLines']&&_0x593d48[_0x3d77('0x33')][_0x3d77('0xe')]>0x0){var _0x19368d=['Auto-Submitted:\x20auto-replied',_0x3d77('0x34'),'Precedence:\x20auto_reply'];for(var _0xda447a=0x0;_0xda447a<_0x593d48[_0x3d77('0x33')][_0x3d77('0xe')];_0xda447a++){var _0x276b13=_[_0x3d77('0x35')](_0x19368d,_0x593d48[_0x3d77('0x33')][_0xda447a][_0x3d77('0x36')]);if(_0x276b13>=0x0){_0x3ec435[_0x3d77('0x37')]=!![];}}}return _0x3ec435;}exports[_0x3d77('0x38')]=function(_0x3268a1,_0x53bee3,_0x4d59f7){var _0x24bcfd={'from':getAddress(_0x53bee3[_0x3d77('0x39')]),'firstName':getFirstName(_0x53bee3[_0x3d77('0x39')]),'lastName':getLastName(_0x53bee3[_0x3d77('0x39')]),'mapKey':_0x3d77('0x5'),'message':{'from':getMails(_0x3268a1['email'],_0x53bee3[_0x3d77('0x39')]),'to':_0x3268a1[_0x3d77('0x5')],'cc':'','subject':_0x53bee3['subject']||'','messageId':_0x53bee3[_0x3d77('0x3a')],'inReplyTo':_0x53bee3[_0x3d77('0x3b')],'sentAt':moment(_0x53bee3[_0x3d77('0x3c')])['format'](_0x3d77('0x3d')),'attach':![],'attachments':[]}};if(!_0x53bee3[_0x3d77('0x14')]&&!_0x53bee3[_0x3d77('0x22')]){var _0x5c9816=_[_0x3d77('0x3e')](_0x53bee3[_0x3d77('0x19')],{'contentType':_0x3d77('0x3f')});if(_0x5c9816[_0x3d77('0xe')]){logger[_0x3d77('0x40')](util[_0x3d77('0x2c')]('Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system',_0x53bee3[_0x3d77('0x3a')]));tnef['parseBuffer'](_[_0x3d77('0x41')](_0x5c9816)[_0x3d77('0x31')],function(_0xbcc862,_0x7c089e){if(_0x7c089e){_0x53bee3[_0x3d77('0x14')]=_0x7c089e[_0x3d77('0x42')]||_0x3d77('0x43');if(_0x7c089e[_0x3d77('0x44')]){for(var _0x3ef848=0x0;_0x3ef848<_0x7c089e[_0x3d77('0x44')][_0x3d77('0xe')];_0x3ef848++){var _0x43bbcc=_0x7c089e[_0x3d77('0x44')][_0x3ef848];_0x24bcfd[_0x3d77('0x25')][_0x3d77('0x19')][_0x3d77('0x1b')]({'filename':_0x43bbcc['Title'],'content':Buffer[_0x3d77('0x39')](_0x43bbcc[_0x3d77('0x45')])});}}}_0x4d59f7(parseEmail(_0x3268a1,_0x53bee3,_0x24bcfd));});}else{_0x53bee3[_0x3d77('0x14')]=_0x3d77('0x43');_0x4d59f7(parseEmail(_0x3268a1,_0x53bee3,_0x24bcfd));}}else{_0x4d59f7(parseEmail(_0x3268a1,_0x53bee3,_0x24bcfd));}};exports[_0x3d77('0x46')]=function(_0x2c5881,_0x4d294a){var _0x5ec7f4=[_0x3d77('0x47')+(_0x4d294a||''),_0x3d77('0x48')+_0x2c5881,'',''];return Buffer[_0x3d77('0x39')](_0x5ec7f4[_0x3d77('0x10')]('\ 1'),'utf-8')[_0x3d77('0x49')]('base64');};
\ No newline at end of file