Built motion from commit a679711e.|2.6.15
[motion2.git] / server / services / email / index.js
index 0d1e5e6..e641493 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5120=['mailAccounts','listen','getSettings','loginMailFrequency','catch','error','./server','./realtime','./rpc/mailAccount','./rpc/setting','../../config/logger','email','resolve','then','getMailAccounts','initMailAccounts','refresh'];(function(_0x417fbb,_0x300917){var _0x18ab13=function(_0xf005a7){while(--_0xf005a7){_0x417fbb['push'](_0x417fbb['shift']());}};_0x18ab13(++_0x300917);}(_0x5120,0x8e));var _0x0512=function(_0x2a8cb7,_0x314d29){_0x2a8cb7=_0x2a8cb7-0x0;var _0x183a1f=_0x5120[_0x2a8cb7];return _0x183a1f;};'use strict';var server=require(_0x0512('0x0'));var Realtime=require(_0x0512('0x1'));var EmailChannel=require('./lib/email');var mailAccount=require(_0x0512('0x2'));var setting=require(_0x0512('0x3'));var logger=require(_0x0512('0x4'))(_0x0512('0x5'));var realtime=new Realtime();var email=new EmailChannel(realtime);function initRealtime(){return Promise[_0x0512('0x6')]()[_0x0512('0x7')](mailAccount[_0x0512('0x8')]())[_0x0512('0x7')](realtime[_0x0512('0x9')]())[_0x0512('0x7')](function(){email[_0x0512('0xa')](realtime[_0x0512('0xb')]);return realtime;});}function main(){return server[_0x0512('0xc')](realtime,email)[_0x0512('0x7')](function(){return initRealtime();})[_0x0512('0x7')](function(){return setting[_0x0512('0xd')]();})[_0x0512('0x7')](function(_0x36cccf){return setInterval(initRealtime,_0x36cccf[_0x0512('0xe')]*0x3e8);})[_0x0512('0xf')](function(_0x3d780e){logger[_0x0512('0x10')]('Email\x20service\x20initialization',_0x3d780e);});}main();
\ No newline at end of file
+var _0x9f52=['./server','./lib/email','./rpc/setting','resolve','then','getMailAccounts','mailAccounts','getSettings','loginMailFrequency','catch','error'];(function(_0x4e15f4,_0x5a72f2){var _0x5a9643=function(_0x26c1d6){while(--_0x26c1d6){_0x4e15f4['push'](_0x4e15f4['shift']());}};_0x5a9643(++_0x5a72f2);}(_0x9f52,0x1ce));var _0x29f5=function(_0x56fb8d,_0x3f176a){_0x56fb8d=_0x56fb8d-0x0;var _0x40d9fe=_0x9f52[_0x56fb8d];return _0x40d9fe;};'use strict';var server=require(_0x29f5('0x0'));var Realtime=require('./realtime');var EmailChannel=require(_0x29f5('0x1'));var mailAccount=require('./rpc/mailAccount');var setting=require(_0x29f5('0x2'));var logger=require('../../config/logger')('email');var realtime=new Realtime();var email=new EmailChannel(realtime);function initRealtime(){return Promise[_0x29f5('0x3')]()[_0x29f5('0x4')](mailAccount[_0x29f5('0x5')]())[_0x29f5('0x4')](realtime['initMailAccounts']())['then'](function(){email['refresh'](realtime[_0x29f5('0x6')]);return realtime;});}function main(){return server['listen'](realtime,email)[_0x29f5('0x4')](function(){return initRealtime();})[_0x29f5('0x4')](function(){return setting[_0x29f5('0x7')]();})['then'](function(_0x58cb34){return setInterval(initRealtime,_0x58cb34[_0x29f5('0x8')]*0x3e8);})[_0x29f5('0x9')](function(_0x21da0a){logger[_0x29f5('0xa')]('Email\x20service\x20initialization',_0x21da0a);});}main();
\ No newline at end of file