Built motion from commit da617fac.|2.6.6
[motion2.git] / server / services / email / lib / utils.js
index 83c062a..6d4ad3c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7d56=['originTo','isEmpty','originCc','includes','bcc','attach','type','attachment','filename','attachment-','format','%s-%s','now','root','server/files/attachments/','writeFileSync','from','messageId','inReplyTo','YYYY-MM-DD\x20HH:mm:ss','info','parseBuffer','first','content','BodyHTML','Attachments','Title','Data','getHost','gmail','imap.mail.yahoo.com','127.0.0.1','lodash','moment','node-tnef','../../../config/logger','email','../../../config/environment','head','value','address','anonymous','@xcally.com','name','slice','join','Anonymous','split','length','pop','html','replace','attachments','forEach','push','_SRC','_IMG','<span\x20style=font-weight:bold>\x20[Attachment:\x20','body','textAsHtml','<a\x20target=\x22_blank\x22\x20','message'];(function(_0xa8185c,_0xc72a3){var _0x23804b=function(_0x2cc53c){while(--_0x2cc53c){_0xa8185c['push'](_0xa8185c['shift']());}};_0x23804b(++_0xc72a3);}(_0x7d56,0x156));var _0x67d5=function(_0x202434,_0x1ccc96){_0x202434=_0x202434-0x0;var _0x9f27c5=_0x7d56[_0x202434];return _0x9f27c5;};'use strict';var _=require(_0x67d5('0x0'));var moment=require(_0x67d5('0x1'));var random=require('randomstring');var fs=require('fs');var path=require('path');var util=require('util');var tnef=require(_0x67d5('0x2'));var logger=require(_0x67d5('0x3'))(_0x67d5('0x4'));var config=require(_0x67d5('0x5'));function getAddress(_0x3385a4){var _0xd47b5a=_[_0x67d5('0x6')](_0x3385a4[_0x67d5('0x7')]);return _0xd47b5a&&_0xd47b5a[_0x67d5('0x8')]?_0xd47b5a['address']:_0x67d5('0x9')+random['generate'](0x6)+_0x67d5('0xa');}function getFirstName(_0x4b8e8b){var _0x12b4f6=_['head'](_0x4b8e8b[_0x67d5('0x7')]);if(_0x12b4f6&&_0x12b4f6[_0x67d5('0xb')]){var _0x4d1b05=_0x12b4f6[_0x67d5('0xb')]['split'](/\s+/);return _0x4d1b05['length']?_0x4d1b05[_0x67d5('0xc')](0x0,-0x1)[_0x67d5('0xd')]('\x20'):_0x12b4f6[_0x67d5('0xb')];}return _0x67d5('0xe');}function getLastName(_0x429df0){var _0x5ece5e=_[_0x67d5('0x6')](_0x429df0[_0x67d5('0x7')]);if(_0x5ece5e&&_0x5ece5e['name']){var _0x3a4140=_0x5ece5e[_0x67d5('0xb')][_0x67d5('0xf')](/\s+/);return _0x3a4140[_0x67d5('0x10')]>0x1?_0x3a4140[_0x67d5('0x11')]():'';}return'';}function getMails(_0x4f8921,_0x554d6d){var _0x37003='';for(var _0x372614=0x0;_0x372614<_0x554d6d[_0x67d5('0x7')][_0x67d5('0x10')];_0x372614+=0x1){if(_0x554d6d[_0x67d5('0x7')][_0x372614][_0x67d5('0x8')]!==_0x4f8921){if(!_['isEmpty'](_0x37003)){_0x37003+=',';}_0x37003+=_0x554d6d[_0x67d5('0x7')][_0x372614][_0x67d5('0xb')]||_0x554d6d[_0x67d5('0x7')][_0x372614]['address']||'';_0x37003+='\x20<';_0x37003+=_0x554d6d[_0x67d5('0x7')][_0x372614][_0x67d5('0x8')]?_0x554d6d[_0x67d5('0x7')][_0x372614][_0x67d5('0x8')]:_0x67d5('0x9')+random['generate'](0x6)+_0x67d5('0xa');_0x37003+='>';}}return _0x37003;}function parseEmail(_0x145748,_0x9ffc68,_0x30f053){if(_0x9ffc68[_0x67d5('0x12')]){var _0x3d12fe=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;while(_0x3d12fe['test'](_0x9ffc68['html'])){_0x9ffc68['html']=_0x9ffc68['html'][_0x67d5('0x13')](_0x3d12fe,'');}if(_0x9ffc68[_0x67d5('0x12')]['includes']('<img')){var _0x3e3d8c=[];_0x9ffc68[_0x67d5('0x14')][_0x67d5('0x15')](_0x10e0d2=>{_0x3e3d8c[_0x67d5('0x16')](_0x10e0d2['filename']);});var _0x304833=/<img.*? _SRC(.*?)[^\>]+>/g;var _0x2be9ec=/src=\"data:image\/([a-zA-Z]*);base64,([^\"]*)\"/g;var _0x549bdc=_0x9ffc68[_0x67d5('0x12')][_0x67d5('0x13')](_0x2be9ec,_0x67d5('0x17'));var _0xe90183=_0x549bdc['replace'](_0x304833,_0x67d5('0x18'));for(let _0x187ab4=0x0;_0x187ab4<_0x3e3d8c[_0x67d5('0x10')];_0x187ab4++){var _0x5277b4=_0xe90183[_0x67d5('0x13')](_0x67d5('0x18'),_0x67d5('0x19')+_0x3e3d8c[_0x187ab4]+'\x20]</span>');_0xe90183=_0x5277b4;}_0x9ffc68[_0x67d5('0x12')]=_0xe90183;}_0x30f053[_0x67d5('0x1a')]=_0x9ffc68[_0x67d5('0x12')];}else{_0x30f053[_0x67d5('0x1a')]=_0x9ffc68[_0x67d5('0x1b')];}if(_0x30f053[_0x67d5('0x1a')]){_0x30f053[_0x67d5('0x1a')]=_0x30f053[_0x67d5('0x1a')][_0x67d5('0x13')](/<a\s+/gi,_0x67d5('0x1c'));}if(_0x9ffc68['to']){_0x30f053[_0x67d5('0x1d')][_0x67d5('0x1e')]=getMails(null,_0x9ffc68['to']);var _0x45ec5b=getMails(_0x145748[_0x67d5('0x4')],_0x9ffc68['to']);if(!_[_0x67d5('0x1f')](_0x45ec5b)){_0x30f053[_0x67d5('0x1d')]['cc']+=_0x45ec5b;}}if(_0x9ffc68['cc']){_0x30f053['message'][_0x67d5('0x20')]=getMails(null,_0x9ffc68['cc']);var _0x36f0ae=getMails(_0x145748[_0x67d5('0x4')],_0x9ffc68['cc']);if(!_[_0x67d5('0x1f')](_0x36f0ae)){if(!_['isEmpty'](_0x30f053[_0x67d5('0x1d')]['cc'])){_0x30f053[_0x67d5('0x1d')]['cc']+=',';}_0x30f053['message']['cc']+=_0x36f0ae;}}if(!_[_0x67d5('0x21')](_0x30f053[_0x67d5('0x1d')][_0x67d5('0x1e')],_0x145748[_0x67d5('0x4')])&&!_[_0x67d5('0x21')](_0x30f053['message'][_0x67d5('0x20')],_0x145748['email'])){_0x30f053[_0x67d5('0x1d')][_0x67d5('0x22')]=_0x145748['email'];}if(_0x9ffc68[_0x67d5('0x14')]&&_0x9ffc68[_0x67d5('0x14')][_0x67d5('0x10')]){_0x30f053['message'][_0x67d5('0x23')]=_0x9ffc68['attachments']['length'];for(var _0x2e4789=0x0,_0x4a301d,_0x59579a,_0x465e37;_0x2e4789<_0x9ffc68['attachments'][_0x67d5('0x10')];_0x2e4789+=0x1){if(_0x9ffc68[_0x67d5('0x14')][_0x2e4789][_0x67d5('0x24')]===_0x67d5('0x25')){_0x465e37=_0x9ffc68[_0x67d5('0x14')][_0x2e4789][_0x67d5('0x26')]||_0x67d5('0x27')+_0x2e4789;_0x4a301d=util[_0x67d5('0x28')](_0x67d5('0x29'),Date[_0x67d5('0x2a')](),_0x465e37);_0x59579a=path[_0x67d5('0xd')](config[_0x67d5('0x2b')],_0x67d5('0x2c'),_0x4a301d);fs[_0x67d5('0x2d')](_0x59579a,_0x9ffc68['attachments'][_0x2e4789]['content']);_0x30f053['message']['attachments'][_0x67d5('0x16')]({'name':_0x465e37,'basename':_0x4a301d,'type':_0x9ffc68['attachments'][_0x2e4789]['contentType'],'filepath':_0x59579a});}}}return _0x30f053;}exports['parser']=function(_0x4f39d0,_0x1e9f80,_0x40f503){var _0x119a54={'from':getAddress(_0x1e9f80['from']),'firstName':getFirstName(_0x1e9f80[_0x67d5('0x2e')]),'lastName':getLastName(_0x1e9f80[_0x67d5('0x2e')]),'mapKey':_0x67d5('0x4'),'message':{'from':getMails(_0x4f39d0[_0x67d5('0x4')],_0x1e9f80[_0x67d5('0x2e')]),'to':_0x4f39d0[_0x67d5('0x4')],'cc':'','subject':_0x1e9f80['subject']||'','messageId':_0x1e9f80[_0x67d5('0x2f')],'inReplyTo':_0x1e9f80[_0x67d5('0x30')],'sentAt':moment(_0x1e9f80['date'])[_0x67d5('0x28')](_0x67d5('0x31')),'attach':![],'attachments':[]}};if(!_0x1e9f80[_0x67d5('0x12')]&&!_0x1e9f80[_0x67d5('0x1b')]){var _0x5954d4=_['filter'](_0x1e9f80[_0x67d5('0x14')],{'contentType':'application/ms-tnef'});if(_0x5954d4[_0x67d5('0x10')]){logger[_0x67d5('0x32')](util[_0x67d5('0x28')]('Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system',_0x1e9f80[_0x67d5('0x2f')]));tnef[_0x67d5('0x33')](_[_0x67d5('0x34')](_0x5954d4)[_0x67d5('0x35')],function(_0x1dccc8,_0x40f892){if(_0x40f892){_0x1e9f80[_0x67d5('0x12')]=_0x40f892[_0x67d5('0x36')]||'<p>Empty\x20message</p>';if(_0x40f892[_0x67d5('0x37')]){for(var _0x2f0fc2=0x0;_0x2f0fc2<_0x40f892[_0x67d5('0x37')][_0x67d5('0x10')];_0x2f0fc2++){var _0x15bb27=_0x40f892['Attachments'][_0x2f0fc2];_0x119a54[_0x67d5('0x1d')][_0x67d5('0x14')][_0x67d5('0x16')]({'filename':_0x15bb27[_0x67d5('0x38')],'content':new Buffer(_0x15bb27[_0x67d5('0x39')])});}}}_0x40f503(parseEmail(_0x4f39d0,_0x1e9f80,_0x119a54));});}else{_0x1e9f80[_0x67d5('0x12')]='<p>Empty\x20message</p>';_0x40f503(parseEmail(_0x4f39d0,_0x1e9f80,_0x119a54));}}else{_0x40f503(parseEmail(_0x4f39d0,_0x1e9f80,_0x119a54));}};exports[_0x67d5('0x3a')]=function(_0x484410){switch(_0x484410){case _0x67d5('0x3b'):return'imap.gmail.com';case'yahoo':return _0x67d5('0x3c');case'hotmail':return'imap-mail.outlook.com';case'outlook365':return'outlook.office365.com';}return _0x67d5('0x3d');};
\ No newline at end of file
+var _0xb6fd=['line','isAutoreply','parser','from','subject','messageId','inReplyTo','date','YYYY-MM-DD\x20HH:mm:ss','info','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','first','BodyHTML','<p>Empty\x20message</p>','Attachments','Data','user=','auth=Bearer\x20','utf-8','toString','base64','lodash','moment','randomstring','path','util','node-tnef','../../../config/logger','email','head','value','address','generate','@xcally.com','name','substring','indexOf','split','join','length','pop','isEmpty','anonymous','html','replace','includes','<img','forEach','filename','_SRC','<span\x20style=font-weight:bold>\x20[Attachment:\x20','body','textAsHtml','<a\x20target=\x22_blank\x22\x20','message','originCc','originTo','bcc','attachments','type','attachment','attachment-','format','%s-%s','now','root','server/files/attachments/','writeFileSync','content','push','contentType','headerLines','Auto-Submitted:\x20auto-replied','X-Auto-Response-Suppress:\x20All'];(function(_0x20ae13,_0x2a0c8e){var _0x533fd5=function(_0x3bb746){while(--_0x3bb746){_0x20ae13['push'](_0x20ae13['shift']());}};_0x533fd5(++_0x2a0c8e);}(_0xb6fd,0x13d));var _0xdb6f=function(_0x5047a1,_0x1bd26d){_0x5047a1=_0x5047a1-0x0;var _0x51d17b=_0xb6fd[_0x5047a1];return _0x51d17b;};'use strict';var _=require(_0xdb6f('0x0'));var moment=require(_0xdb6f('0x1'));var random=require(_0xdb6f('0x2'));var fs=require('fs');var path=require(_0xdb6f('0x3'));var util=require(_0xdb6f('0x4'));var tnef=require(_0xdb6f('0x5'));var logger=require(_0xdb6f('0x6'))(_0xdb6f('0x7'));var config=require('../../../config/environment');function getAddress(_0x2998a7){var _0x2fab4e=_[_0xdb6f('0x8')](_0x2998a7[_0xdb6f('0x9')]);return _0x2fab4e&&_0x2fab4e[_0xdb6f('0xa')]?_0x2fab4e[_0xdb6f('0xa')]:'anonymous'+random[_0xdb6f('0xb')](0x6)+_0xdb6f('0xc');}function getFirstName(_0x1b02d6){var _0x577f9a=_[_0xdb6f('0x8')](_0x1b02d6['value']);if(_0x577f9a&&_0x577f9a[_0xdb6f('0xd')]){if(_0x577f9a[_0xdb6f('0xd')]==_0x577f9a[_0xdb6f('0xa')]){return _0x577f9a[_0xdb6f('0xd')][_0xdb6f('0xe')](0x0,_0x577f9a[_0xdb6f('0xd')][_0xdb6f('0xf')]('@'));}var _0x5328af=_0x577f9a[_0xdb6f('0xd')][_0xdb6f('0x10')](/\s+/);return _0x5328af['length']>0x1?_0x5328af['slice'](0x0,-0x1)[_0xdb6f('0x11')]('\x20'):_0x577f9a[_0xdb6f('0xd')];}return'Anonymous';}function getLastName(_0x2c7231){var _0x3fd7b0=_[_0xdb6f('0x8')](_0x2c7231[_0xdb6f('0x9')]);if(_0x3fd7b0&&_0x3fd7b0['name']){var _0x1fc3bb=_0x3fd7b0[_0xdb6f('0xd')][_0xdb6f('0x10')](/\s+/);return _0x1fc3bb[_0xdb6f('0x12')]>0x1?_0x1fc3bb[_0xdb6f('0x13')]():'';}return'';}function getMails(_0x261a0a,_0x592506){var _0x3fda97='';for(var _0x2dbf90=0x0;_0x2dbf90<_0x592506[_0xdb6f('0x9')][_0xdb6f('0x12')];_0x2dbf90+=0x1){if(_0x592506[_0xdb6f('0x9')][_0x2dbf90][_0xdb6f('0xa')]!==_0x261a0a){if(!_[_0xdb6f('0x14')](_0x3fda97)){_0x3fda97+=',';}_0x3fda97+=_0x592506[_0xdb6f('0x9')][_0x2dbf90]['name']||_0x592506[_0xdb6f('0x9')][_0x2dbf90][_0xdb6f('0xa')]||'';_0x3fda97+='\x20<';_0x3fda97+=_0x592506[_0xdb6f('0x9')][_0x2dbf90][_0xdb6f('0xa')]?_0x592506[_0xdb6f('0x9')][_0x2dbf90][_0xdb6f('0xa')]:_0xdb6f('0x15')+random[_0xdb6f('0xb')](0x6)+_0xdb6f('0xc');_0x3fda97+='>';}}return _0x3fda97;}function parseEmail(_0x22a7fc,_0x298471,_0x5788eb){if(_0x298471[_0xdb6f('0x16')]){var _0x12c4dc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;while(_0x12c4dc['test'](_0x298471[_0xdb6f('0x16')])){_0x298471[_0xdb6f('0x16')]=_0x298471['html'][_0xdb6f('0x17')](_0x12c4dc,'');}if(_0x298471[_0xdb6f('0x16')][_0xdb6f('0x18')](_0xdb6f('0x19'))){var _0x1d8b97=[];_0x298471['attachments'][_0xdb6f('0x1a')](_0xbe4641=>{_0x1d8b97['push'](_0xbe4641[_0xdb6f('0x1b')]);});var _0x2e0546=/<img.*? _SRC(.*?)[^>]+>/g;var _0x1f71eb=/src="data:image\/([a-zA-Z]*);base64,([^"]*)"/g;var _0x47d1a6=_0x298471['html'][_0xdb6f('0x17')](_0x1f71eb,_0xdb6f('0x1c'));var _0x53769a=_0x47d1a6[_0xdb6f('0x17')](_0x2e0546,'_IMG');for(let _0x3eaf41=0x0;_0x3eaf41<_0x1d8b97[_0xdb6f('0x12')];_0x3eaf41++){var _0x186c7b=_0x53769a[_0xdb6f('0x17')]('_IMG',_0xdb6f('0x1d')+_0x1d8b97[_0x3eaf41]+'\x20]</span>');_0x53769a=_0x186c7b;}_0x298471['html']=_0x53769a;}_0x5788eb['body']=_0x298471[_0xdb6f('0x16')];}else{_0x5788eb[_0xdb6f('0x1e')]=_0x298471[_0xdb6f('0x1f')];}if(_0x5788eb['body']){_0x5788eb[_0xdb6f('0x1e')]=_0x5788eb[_0xdb6f('0x1e')]['replace'](/<a\s+/gi,_0xdb6f('0x20'));}if(_0x298471['to']){_0x5788eb[_0xdb6f('0x21')]['originTo']=getMails(null,_0x298471['to']);var _0x30fdd2=getMails(_0x22a7fc[_0xdb6f('0x7')],_0x298471['to']);if(!_[_0xdb6f('0x14')](_0x30fdd2)){_0x5788eb[_0xdb6f('0x21')]['cc']+=_0x30fdd2;}}if(_0x298471['cc']){_0x5788eb['message'][_0xdb6f('0x22')]=getMails(null,_0x298471['cc']);var _0x2423b4=getMails(_0x22a7fc[_0xdb6f('0x7')],_0x298471['cc']);if(!_[_0xdb6f('0x14')](_0x2423b4)){if(!_['isEmpty'](_0x5788eb[_0xdb6f('0x21')]['cc'])){_0x5788eb[_0xdb6f('0x21')]['cc']+=',';}_0x5788eb[_0xdb6f('0x21')]['cc']+=_0x2423b4;}}if(!_[_0xdb6f('0x18')](_0x5788eb[_0xdb6f('0x21')][_0xdb6f('0x23')],_0x22a7fc['email'])&&!_[_0xdb6f('0x18')](_0x5788eb['message'][_0xdb6f('0x22')],_0x22a7fc['email'])){_0x5788eb[_0xdb6f('0x21')][_0xdb6f('0x24')]=_0x22a7fc[_0xdb6f('0x7')];}if(_0x298471['attachments']&&_0x298471[_0xdb6f('0x25')][_0xdb6f('0x12')]){_0x5788eb[_0xdb6f('0x21')]['attach']=_0x298471[_0xdb6f('0x25')][_0xdb6f('0x12')];for(var _0x3f0bcc=0x0,_0xfd1b9b,_0x5ea172,_0x43860e;_0x3f0bcc<_0x298471[_0xdb6f('0x25')][_0xdb6f('0x12')];_0x3f0bcc+=0x1){if(_0x298471[_0xdb6f('0x25')][_0x3f0bcc][_0xdb6f('0x26')]===_0xdb6f('0x27')){_0x43860e=_0x298471[_0xdb6f('0x25')][_0x3f0bcc][_0xdb6f('0x1b')]||_0xdb6f('0x28')+_0x3f0bcc;_0xfd1b9b=util[_0xdb6f('0x29')](_0xdb6f('0x2a'),Date[_0xdb6f('0x2b')](),_0x43860e);_0x5ea172=path['join'](config[_0xdb6f('0x2c')],_0xdb6f('0x2d'),_0xfd1b9b);fs[_0xdb6f('0x2e')](_0x5ea172,_0x298471[_0xdb6f('0x25')][_0x3f0bcc][_0xdb6f('0x2f')]);_0x5788eb[_0xdb6f('0x21')][_0xdb6f('0x25')][_0xdb6f('0x30')]({'name':_0x43860e,'basename':_0xfd1b9b,'type':_0x298471[_0xdb6f('0x25')][_0x3f0bcc][_0xdb6f('0x31')],'filepath':_0x5ea172});}}}if(_0x298471[_0xdb6f('0x32')]&&_0x298471[_0xdb6f('0x32')][_0xdb6f('0x12')]>0x0){var _0x5d4c94=[_0xdb6f('0x33'),_0xdb6f('0x34'),'Precedence:\x20auto_reply'];for(var _0x10d1cd=0x0;_0x10d1cd<_0x298471[_0xdb6f('0x32')][_0xdb6f('0x12')];_0x10d1cd++){var _0x4c18f8=_['indexOf'](_0x5d4c94,_0x298471[_0xdb6f('0x32')][_0x10d1cd][_0xdb6f('0x35')]);if(_0x4c18f8>=0x0){_0x5788eb[_0xdb6f('0x36')]=!![];}}}return _0x5788eb;}exports[_0xdb6f('0x37')]=function(_0x2cd9b6,_0x24ea45,_0x2aa1db){var _0xc4bce6={'from':getAddress(_0x24ea45[_0xdb6f('0x38')]),'firstName':getFirstName(_0x24ea45[_0xdb6f('0x38')]),'lastName':getLastName(_0x24ea45[_0xdb6f('0x38')]),'mapKey':_0xdb6f('0x7'),'message':{'from':getMails(_0x2cd9b6[_0xdb6f('0x7')],_0x24ea45[_0xdb6f('0x38')]),'to':_0x2cd9b6['email'],'cc':'','subject':_0x24ea45[_0xdb6f('0x39')]||'','messageId':_0x24ea45[_0xdb6f('0x3a')],'inReplyTo':_0x24ea45[_0xdb6f('0x3b')],'sentAt':moment(_0x24ea45[_0xdb6f('0x3c')])[_0xdb6f('0x29')](_0xdb6f('0x3d')),'attach':![],'attachments':[]}};if(!_0x24ea45[_0xdb6f('0x16')]&&!_0x24ea45[_0xdb6f('0x1f')]){var _0x1da4dd=_['filter'](_0x24ea45[_0xdb6f('0x25')],{'contentType':'application/ms-tnef'});if(_0x1da4dd[_0xdb6f('0x12')]){logger[_0xdb6f('0x3e')](util[_0xdb6f('0x29')](_0xdb6f('0x3f'),_0x24ea45[_0xdb6f('0x3a')]));tnef['parseBuffer'](_[_0xdb6f('0x40')](_0x1da4dd)['content'],function(_0x27599a,_0x369058){if(_0x369058){_0x24ea45[_0xdb6f('0x16')]=_0x369058[_0xdb6f('0x41')]||_0xdb6f('0x42');if(_0x369058[_0xdb6f('0x43')]){for(var _0x38c0f4=0x0;_0x38c0f4<_0x369058['Attachments'][_0xdb6f('0x12')];_0x38c0f4++){var _0x4f82da=_0x369058['Attachments'][_0x38c0f4];_0xc4bce6['message'][_0xdb6f('0x25')][_0xdb6f('0x30')]({'filename':_0x4f82da['Title'],'content':Buffer['from'](_0x4f82da[_0xdb6f('0x44')])});}}}_0x2aa1db(parseEmail(_0x2cd9b6,_0x24ea45,_0xc4bce6));});}else{_0x24ea45[_0xdb6f('0x16')]=_0xdb6f('0x42');_0x2aa1db(parseEmail(_0x2cd9b6,_0x24ea45,_0xc4bce6));}}else{_0x2aa1db(parseEmail(_0x2cd9b6,_0x24ea45,_0xc4bce6));}};exports['generateXOAuth2Token']=function(_0x4d7060,_0x33330b){var _0x3cebef=[_0xdb6f('0x45')+(_0x33330b||''),_0xdb6f('0x46')+_0x4d7060,'',''];return Buffer[_0xdb6f('0x38')](_0x3cebef[_0xdb6f('0x11')]('\ 1'),_0xdb6f('0x47'))[_0xdb6f('0x48')](_0xdb6f('0x49'));};
\ No newline at end of file