Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / config / seedDB / mailAccounts.js
1 const a864_0x3d84=['service\x20motion\x20account\x20auto\x20generated','../../mysqldb','service\x20motion\x20imap\x20auto\x20generated','../logger','username','error','Service\x20Mail','then','info','127.0.0.1','create','password','Can\x27t\x20create\x20Mail\x20Accounts','service\x20motion\x20smtp\x20auto\x20generated','email@xcally.com','findOrCreate','catch'];(function(_0x535f07,_0x3d84c0){const _0x253124=function(_0x221ee8){while(--_0x221ee8){_0x535f07['push'](_0x535f07['shift']());}};_0x253124(++_0x3d84c0);}(a864_0x3d84,0x1c3));const a864_0x2531=function(_0x535f07,_0x3d84c0){_0x535f07=_0x535f07-0x0;let _0x253124=a864_0x3d84[_0x535f07];return _0x253124;};const _0x184860=a864_0x2531;'use strict';const db=require(_0x184860('0x9'))['db'],logger=require(_0x184860('0xb'))('app');exports[_0x184860('0x1')]=function(){const _0x5300e7=_0x184860;let _0x221ee8;return db['MailAccount']['findOrCreate']({'where':{'service':!![]},'defaults':{'name':_0x5300e7('0xe'),'key':'SERV','email':_0x5300e7('0x5'),'service':!![],'description':_0x5300e7('0x8'),'active':![],'ListId':0x1}})[_0x5300e7('0xf')](function([_0x10e07e,_0x176dd1]){const _0x122a74=_0x5300e7;return _0x176dd1&&logger['info'](_0x122a74('0x8')),_0x221ee8=_0x10e07e,db['MailServerOut'][_0x122a74('0x6')]({'where':{'MailAccountId':_0x221ee8['id']},'defaults':{'host':_0x122a74('0x0'),'user':_0x122a74('0xc'),'pass':'password','port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x221ee8['id'],'description':_0x122a74('0x4')}});})[_0x5300e7('0xf')](function([,_0x42a38c]){const _0x3e6083=_0x5300e7;return _0x42a38c&&logger[_0x3e6083('0x10')]('service\x20motion\x20smtp\x20auto\x20generated'),db['MailServerIn'][_0x3e6083('0x6')]({'where':{'MailAccountId':_0x221ee8['id']},'defaults':{'host':_0x3e6083('0x0'),'user':_0x3e6083('0xc'),'password':_0x3e6083('0x2'),'port':0x3e1,'MailAccountId':_0x221ee8['id'],'description':'service\x20motion\x20imap\x20auto\x20generated'}});})[_0x5300e7('0xf')](function([,_0x67d943]){const _0x7c1338=_0x5300e7;_0x67d943&&logger[_0x7c1338('0x10')](_0x7c1338('0xa'));})[_0x5300e7('0x7')](function(){const _0x40c8d3=_0x5300e7;logger[_0x40c8d3('0xd')](_0x40c8d3('0x3'));});};