Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / config / seedDB / mailAccounts.js
index 2dda332..7610408 100644 (file)
@@ -1 +1 @@
-const a864_0x46f3=['SERV','MailServerIn','info','MailAccount','service\x20motion\x20account\x20auto\x20generated','findOrCreate','Can\x27t\x20create\x20Mail\x20Accounts','../logger','password','127.0.0.1','service\x20motion\x20imap\x20auto\x20generated','then','email@xcally.com','service\x20motion\x20smtp\x20auto\x20generated','Service\x20Mail','username','../../mysqldb'];(function(_0x402cf0,_0x46f387){const _0x295236=function(_0x3ed760){while(--_0x3ed760){_0x402cf0['push'](_0x402cf0['shift']());}};_0x295236(++_0x46f387);}(a864_0x46f3,0x83));const a864_0x2952=function(_0x402cf0,_0x46f387){_0x402cf0=_0x402cf0-0x0;let _0x295236=a864_0x46f3[_0x402cf0];return _0x295236;};const _0x2d0f1b=a864_0x2952;'use strict';const db=require(_0x2d0f1b('0x4'))['db'],logger=require(_0x2d0f1b('0xc'))('app');exports['create']=function(){const _0x53de02=_0x2d0f1b;let _0x3ed760;return db[_0x53de02('0x8')]['findOrCreate']({'where':{'service':!![]},'defaults':{'name':_0x53de02('0x2'),'key':_0x53de02('0x5'),'email':_0x53de02('0x0'),'service':!![],'description':_0x53de02('0x9'),'active':![],'ListId':0x1}})[_0x53de02('0x10')](function([_0xa6a3d7,_0x162f11]){const _0x209d99=_0x53de02;return _0x162f11&&logger[_0x209d99('0x7')](_0x209d99('0x9')),_0x3ed760=_0xa6a3d7,db['MailServerOut'][_0x209d99('0xa')]({'where':{'MailAccountId':_0x3ed760['id']},'defaults':{'host':_0x209d99('0xe'),'user':_0x209d99('0x3'),'pass':_0x209d99('0xd'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x3ed760['id'],'description':_0x209d99('0x1')}});})[_0x53de02('0x10')](function([,_0x159098]){const _0x38c44b=_0x53de02;return _0x159098&&logger['info'](_0x38c44b('0x1')),db[_0x38c44b('0x6')][_0x38c44b('0xa')]({'where':{'MailAccountId':_0x3ed760['id']},'defaults':{'host':'127.0.0.1','user':_0x38c44b('0x3'),'password':_0x38c44b('0xd'),'port':0x3e1,'MailAccountId':_0x3ed760['id'],'description':_0x38c44b('0xf')}});})[_0x53de02('0x10')](function([,_0x104de9]){const _0x40d101=_0x53de02;_0x104de9&&logger[_0x40d101('0x7')]('service\x20motion\x20imap\x20auto\x20generated');})['catch'](function(){const _0x40d4d1=_0x53de02;logger['error'](_0x40d4d1('0xb'));});};
\ No newline at end of file
+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'));});};
\ No newline at end of file