Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / config / seedDB / mailAccounts.js
1 const a864_0x199c=['email@xcally.com','create','../logger','service\x20motion\x20imap\x20auto\x20generated','Can\x27t\x20create\x20Mail\x20Accounts','info','Service\x20Mail','../../mysqldb','app','username','MailServerOut','SERV','catch','service\x20motion\x20smtp\x20auto\x20generated','then','127.0.0.1','error','service\x20motion\x20account\x20auto\x20generated','findOrCreate','password'];(function(_0x1971bb,_0x199ca1){const _0x268753=function(_0x4e661a){while(--_0x4e661a){_0x1971bb['push'](_0x1971bb['shift']());}};_0x268753(++_0x199ca1);}(a864_0x199c,0x14d));const a864_0x2687=function(_0x1971bb,_0x199ca1){_0x1971bb=_0x1971bb-0x0;let _0x268753=a864_0x199c[_0x1971bb];return _0x268753;};const _0x30764b=a864_0x2687;'use strict';const db=require(_0x30764b('0xe'))['db'],logger=require(_0x30764b('0x9'))(_0x30764b('0xf'));exports[_0x30764b('0x8')]=function(){const _0x479c4c=_0x30764b;let _0x4e661a;return db['MailAccount'][_0x479c4c('0x5')]({'where':{'service':!![]},'defaults':{'name':_0x479c4c('0xd'),'key':_0x479c4c('0x12'),'email':_0x479c4c('0x7'),'service':!![],'description':_0x479c4c('0x4'),'active':![],'ListId':0x1}})[_0x479c4c('0x1')](function([_0x2dbecc,_0x1f8013]){const _0x35fc8d=_0x479c4c;return _0x1f8013&&logger['info']('service\x20motion\x20account\x20auto\x20generated'),_0x4e661a=_0x2dbecc,db[_0x35fc8d('0x11')][_0x35fc8d('0x5')]({'where':{'MailAccountId':_0x4e661a['id']},'defaults':{'host':_0x35fc8d('0x2'),'user':_0x35fc8d('0x10'),'pass':_0x35fc8d('0x6'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x4e661a['id'],'description':_0x35fc8d('0x0')}});})['then'](function([,_0x1a7560]){const _0x9af38d=_0x479c4c;return _0x1a7560&&logger[_0x9af38d('0xc')](_0x9af38d('0x0')),db['MailServerIn'][_0x9af38d('0x5')]({'where':{'MailAccountId':_0x4e661a['id']},'defaults':{'host':'127.0.0.1','user':_0x9af38d('0x10'),'password':_0x9af38d('0x6'),'port':0x3e1,'MailAccountId':_0x4e661a['id'],'description':_0x9af38d('0xa')}});})[_0x479c4c('0x1')](function([,_0x4c656a]){const _0x399218=_0x479c4c;_0x4c656a&&logger[_0x399218('0xc')]('service\x20motion\x20imap\x20auto\x20generated');})[_0x479c4c('0x13')](function(){const _0x51b1b9=_0x479c4c;logger[_0x51b1b9('0x3')](_0x51b1b9('0xb'));});};