Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / email / lib / utils.js
index 48000c6..d876563 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x163f=['anonymous','@xcally.com','name','indexOf','split','length','join','pop','isEmpty','generate','html','test','replace','includes','attachments','forEach','push','filename','_SRC','_IMG','\x20]</span>','body','textAsHtml','<a\x20target=\x22_blank\x22\x20','message','originTo','originCc','bcc','attach','type','attachment','attachment-','format','%s-%s','now','root','server/files/attachments/','writeFileSync','content','contentType','headerLines','Auto-Submitted:\x20auto-replied','X-Auto-Response-Suppress:\x20All','Precedence:\x20auto_reply','parser','from','subject','messageId','inReplyTo','date','YYYY-MM-DD\x20HH:mm:ss','filter','application/ms-tnef','info','parseBuffer','first','<p>Empty\x20message</p>','Attachments','generateXOAuth2Token','user=','utf-8','toString','base64','lodash','randomstring','util','node-tnef','../../../config/logger','email','head','value','address'];(function(_0x5b55fd,_0xae1e83){var _0xd03c51=function(_0x2ade2f){while(--_0x2ade2f){_0x5b55fd['push'](_0x5b55fd['shift']());}};_0xd03c51(++_0xae1e83);}(_0x163f,0xcf));var _0xf163=function(_0x4d8ed9,_0x2ae284){_0x4d8ed9=_0x4d8ed9-0x0;var _0x1e2140=_0x163f[_0x4d8ed9];return _0x1e2140;};'use strict';var _=require(_0xf163('0x0'));var moment=require('moment');var random=require(_0xf163('0x1'));var fs=require('fs');var path=require('path');var util=require(_0xf163('0x2'));var tnef=require(_0xf163('0x3'));var logger=require(_0xf163('0x4'))(_0xf163('0x5'));var config=require('../../../config/environment');function getAddress(_0x5184d7){var _0x3244b6=_[_0xf163('0x6')](_0x5184d7[_0xf163('0x7')]);return _0x3244b6&&_0x3244b6[_0xf163('0x8')]?_0x3244b6[_0xf163('0x8')]:_0xf163('0x9')+random['generate'](0x6)+_0xf163('0xa');}function getFirstName(_0x547248){var _0x42547f=_[_0xf163('0x6')](_0x547248[_0xf163('0x7')]);if(_0x42547f&&_0x42547f[_0xf163('0xb')]){if(_0x42547f[_0xf163('0xb')]==_0x42547f[_0xf163('0x8')]){return _0x42547f[_0xf163('0xb')]['substring'](0x0,_0x42547f['name'][_0xf163('0xc')]('@'));}var _0x5cbe75=_0x42547f[_0xf163('0xb')][_0xf163('0xd')](/\s+/);return _0x5cbe75[_0xf163('0xe')]>0x1?_0x5cbe75['slice'](0x0,-0x1)[_0xf163('0xf')]('\x20'):_0x42547f[_0xf163('0xb')];}return'Anonymous';}function getLastName(_0xbba78a){var _0x891282=_['head'](_0xbba78a['value']);if(_0x891282&&_0x891282[_0xf163('0xb')]){var _0x178c41=_0x891282[_0xf163('0xb')]['split'](/\s+/);return _0x178c41['length']>0x1?_0x178c41[_0xf163('0x10')]():'';}return'';}function getMails(_0x1a41f0,_0x59617c){var _0x59bf8c='';for(var _0x3cd5a4=0x0;_0x3cd5a4<_0x59617c[_0xf163('0x7')]['length'];_0x3cd5a4+=0x1){if(_0x59617c[_0xf163('0x7')][_0x3cd5a4][_0xf163('0x8')]!==_0x1a41f0){if(!_[_0xf163('0x11')](_0x59bf8c)){_0x59bf8c+=',';}_0x59bf8c+=_0x59617c[_0xf163('0x7')][_0x3cd5a4][_0xf163('0xb')]||_0x59617c['value'][_0x3cd5a4][_0xf163('0x8')]||'';_0x59bf8c+='\x20<';_0x59bf8c+=_0x59617c['value'][_0x3cd5a4][_0xf163('0x8')]?_0x59617c['value'][_0x3cd5a4][_0xf163('0x8')]:'anonymous'+random[_0xf163('0x12')](0x6)+'@xcally.com';_0x59bf8c+='>';}}return _0x59bf8c;}function parseEmail(_0x4f0275,_0x2e650c,_0x3893df){if(_0x2e650c[_0xf163('0x13')]){var _0x2aa5f9=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;while(_0x2aa5f9[_0xf163('0x14')](_0x2e650c[_0xf163('0x13')])){_0x2e650c[_0xf163('0x13')]=_0x2e650c[_0xf163('0x13')][_0xf163('0x15')](_0x2aa5f9,'');}if(_0x2e650c[_0xf163('0x13')][_0xf163('0x16')]('<img')){var _0x44f13b=[];_0x2e650c[_0xf163('0x17')][_0xf163('0x18')](_0x1953d1=>{_0x44f13b[_0xf163('0x19')](_0x1953d1[_0xf163('0x1a')]);});var _0x5025e8=/<img.*? _SRC(.*?)[^>]+>/g;var _0x20c49b=/src="data:image\/([a-zA-Z]*);base64,([^"]*)"/g;var _0x3ebab8=_0x2e650c[_0xf163('0x13')]['replace'](_0x20c49b,_0xf163('0x1b'));var _0x20315d=_0x3ebab8['replace'](_0x5025e8,_0xf163('0x1c'));for(let _0x25086b=0x0;_0x25086b<_0x44f13b[_0xf163('0xe')];_0x25086b++){var _0x12ba3f=_0x20315d[_0xf163('0x15')]('_IMG','<span\x20style=font-weight:bold>\x20[Attachment:\x20'+_0x44f13b[_0x25086b]+_0xf163('0x1d'));_0x20315d=_0x12ba3f;}_0x2e650c[_0xf163('0x13')]=_0x20315d;}_0x3893df['body']=_0x2e650c['html'];}else{_0x3893df[_0xf163('0x1e')]=_0x2e650c[_0xf163('0x1f')];}if(_0x3893df['body']){_0x3893df[_0xf163('0x1e')]=_0x3893df[_0xf163('0x1e')][_0xf163('0x15')](/<a\s+/gi,_0xf163('0x20'));}if(_0x2e650c['to']){_0x3893df[_0xf163('0x21')][_0xf163('0x22')]=getMails(null,_0x2e650c['to']);var _0x5b6271=getMails(_0x4f0275[_0xf163('0x5')],_0x2e650c['to']);if(!_[_0xf163('0x11')](_0x5b6271)){_0x3893df[_0xf163('0x21')]['cc']+=_0x5b6271;}}if(_0x2e650c['cc']){_0x3893df['message']['originCc']=getMails(null,_0x2e650c['cc']);var _0x4e897a=getMails(_0x4f0275[_0xf163('0x5')],_0x2e650c['cc']);if(!_[_0xf163('0x11')](_0x4e897a)){if(!_[_0xf163('0x11')](_0x3893df['message']['cc'])){_0x3893df[_0xf163('0x21')]['cc']+=',';}_0x3893df['message']['cc']+=_0x4e897a;}}if(!_[_0xf163('0x16')](_0x3893df[_0xf163('0x21')][_0xf163('0x22')],_0x4f0275[_0xf163('0x5')])&&!_[_0xf163('0x16')](_0x3893df[_0xf163('0x21')][_0xf163('0x23')],_0x4f0275[_0xf163('0x5')])){_0x3893df[_0xf163('0x21')][_0xf163('0x24')]=_0x4f0275['email'];}if(_0x2e650c[_0xf163('0x17')]&&_0x2e650c['attachments'][_0xf163('0xe')]){_0x3893df[_0xf163('0x21')][_0xf163('0x25')]=_0x2e650c[_0xf163('0x17')][_0xf163('0xe')];for(var _0x3d24bb=0x0,_0x5c7851,_0x4804c0,_0x5e9df4;_0x3d24bb<_0x2e650c['attachments'][_0xf163('0xe')];_0x3d24bb+=0x1){if(_0x2e650c[_0xf163('0x17')][_0x3d24bb][_0xf163('0x26')]===_0xf163('0x27')){_0x5e9df4=_0x2e650c[_0xf163('0x17')][_0x3d24bb][_0xf163('0x1a')]||_0xf163('0x28')+_0x3d24bb;_0x5c7851=util[_0xf163('0x29')](_0xf163('0x2a'),Date[_0xf163('0x2b')](),_0x5e9df4);_0x4804c0=path['join'](config[_0xf163('0x2c')],_0xf163('0x2d'),_0x5c7851);fs[_0xf163('0x2e')](_0x4804c0,_0x2e650c['attachments'][_0x3d24bb][_0xf163('0x2f')]);_0x3893df['message'][_0xf163('0x17')][_0xf163('0x19')]({'name':_0x5e9df4,'basename':_0x5c7851,'type':_0x2e650c[_0xf163('0x17')][_0x3d24bb][_0xf163('0x30')],'filepath':_0x4804c0});}}}if(_0x2e650c['headerLines']&&_0x2e650c[_0xf163('0x31')][_0xf163('0xe')]>0x0){var _0x2a0fcb=[_0xf163('0x32'),_0xf163('0x33'),_0xf163('0x34')];for(var _0x4d908f=0x0;_0x4d908f<_0x2e650c['headerLines'][_0xf163('0xe')];_0x4d908f++){var _0x71c302=_[_0xf163('0xc')](_0x2a0fcb,_0x2e650c['headerLines'][_0x4d908f]['line']);if(_0x71c302>=0x0){_0x3893df['isAutoreply']=!![];}}}return _0x3893df;}exports[_0xf163('0x35')]=function(_0x1c2e33,_0x22e14d,_0x2e842c){var _0x4875f4={'from':getAddress(_0x22e14d[_0xf163('0x36')]),'firstName':getFirstName(_0x22e14d[_0xf163('0x36')]),'lastName':getLastName(_0x22e14d[_0xf163('0x36')]),'mapKey':_0xf163('0x5'),'message':{'from':getMails(_0x1c2e33[_0xf163('0x5')],_0x22e14d[_0xf163('0x36')]),'to':_0x1c2e33[_0xf163('0x5')],'cc':'','subject':_0x22e14d[_0xf163('0x37')]||'','messageId':_0x22e14d[_0xf163('0x38')],'inReplyTo':_0x22e14d[_0xf163('0x39')],'sentAt':moment(_0x22e14d[_0xf163('0x3a')])[_0xf163('0x29')](_0xf163('0x3b')),'attach':![],'attachments':[]}};if(!_0x22e14d[_0xf163('0x13')]&&!_0x22e14d['textAsHtml']){var _0x57c0d4=_[_0xf163('0x3c')](_0x22e14d[_0xf163('0x17')],{'contentType':_0xf163('0x3d')});if(_0x57c0d4[_0xf163('0xe')]){logger[_0xf163('0x3e')](util['format']('Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system',_0x22e14d[_0xf163('0x38')]));tnef[_0xf163('0x3f')](_[_0xf163('0x40')](_0x57c0d4)[_0xf163('0x2f')],function(_0x2aa0c9,_0x475892){if(_0x475892){_0x22e14d['html']=_0x475892['BodyHTML']||_0xf163('0x41');if(_0x475892[_0xf163('0x42')]){for(var _0x332d38=0x0;_0x332d38<_0x475892[_0xf163('0x42')]['length'];_0x332d38++){var _0x2434d8=_0x475892[_0xf163('0x42')][_0x332d38];_0x4875f4['message'][_0xf163('0x17')][_0xf163('0x19')]({'filename':_0x2434d8['Title'],'content':Buffer[_0xf163('0x36')](_0x2434d8['Data'])});}}}_0x2e842c(parseEmail(_0x1c2e33,_0x22e14d,_0x4875f4));});}else{_0x22e14d['html']=_0xf163('0x41');_0x2e842c(parseEmail(_0x1c2e33,_0x22e14d,_0x4875f4));}}else{_0x2e842c(parseEmail(_0x1c2e33,_0x22e14d,_0x4875f4));}};exports[_0xf163('0x43')]=function(_0x37a44b,_0x244bea){var _0x3106c5=[_0xf163('0x44')+(_0x244bea||''),'auth=Bearer\x20'+_0x37a44b,'',''];return Buffer[_0xf163('0x36')](_0x3106c5[_0xf163('0xf')]('\ 1'),_0xf163('0x45'))[_0xf163('0x46')](_0xf163('0x47'));};
\ 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