Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / email / realtime / index.js
index ef1b8ee..9b2668b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf49a=['../model/mailAccount','hasOwnProperty','mailAccounts','length','merge','exports','lodash'];(function(_0x4b4704,_0x53cbf5){var _0x59b812=function(_0x2857e5){while(--_0x2857e5){_0x4b4704['push'](_0x4b4704['shift']());}};_0x59b812(++_0x53cbf5);}(_0xf49a,0x1bf));var _0xaf49=function(_0x908eb6,_0x59199b){_0x908eb6=_0x908eb6-0x0;var _0x511a09=_0xf49a[_0x908eb6];return _0x511a09;};'use strict';var _=require(_0xaf49('0x0'));var MailAccount=require(_0xaf49('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x5ccde6,_0x3000fa,_0x435661){var _0x363449=_['mapKeys'](_0x5ccde6,function(_0x55ef8d,_0x4be90d){return _0x55ef8d[_0x435661];});for(var _0x14e531 in _0x3000fa){if(_0x3000fa[_0xaf49('0x2')](_0x14e531)){if(!_0x363449[_0x14e531]){delete _0x3000fa[_0x14e531];}}}}Realtime['prototype']['mergeFromDatabase']=function(_0x1e7261,_0x552435){for(var _0x5d0798 in _0x552435){if(_0x1e7261[_0xaf49('0x2')](_0x5d0798)){_0x1e7261[_0x5d0798]=_0x552435[_0x5d0798];}}};Realtime['prototype']['initMailAccounts']=function(){var _0x138bda=this;return function(_0x4c14b1){if(_0x4c14b1){freeIsNotKey(_0x4c14b1,_0x138bda[_0xaf49('0x3')],'id');for(var _0x57e0d0=0x0,_0x579d30={},_0x505494={};_0x57e0d0<_0x4c14b1[_0xaf49('0x4')];_0x57e0d0+=0x1){_0x579d30=_0x4c14b1[_0x57e0d0];if(_['isUndefined'](_0x138bda[_0xaf49('0x3')][_0x579d30['id']])){_0x138bda[_0xaf49('0x3')][_0x579d30['id']]=new MailAccount(_0x579d30);}else{_[_0xaf49('0x5')](_0x138bda[_0xaf49('0x3')][_0x579d30['id']],_0x579d30);}}}return _0x138bda[_0xaf49('0x3')];};};module[_0xaf49('0x6')]=Realtime;
\ No newline at end of file
+var _0x7226=['mailAccounts','mapKeys','hasOwnProperty','prototype','mergeFromDatabase','length','isUndefined'];(function(_0x3e8c3d,_0x37629a){var _0x1d5201=function(_0x2f33c0){while(--_0x2f33c0){_0x3e8c3d['push'](_0x3e8c3d['shift']());}};_0x1d5201(++_0x37629a);}(_0x7226,0xa9));var _0x6722=function(_0x374d5a,_0x42a75){_0x374d5a=_0x374d5a-0x0;var _0x4cf62a=_0x7226[_0x374d5a];return _0x4cf62a;};'use strict';var _=require('lodash');var MailAccount=require('../model/mailAccount');var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0xa1a6b8,_0x4077b7,_0x4a1ed2){var _0x41284e=_[_0x6722('0x0')](_0xa1a6b8,function(_0x1fe5f3,_0x2eedff){return _0x1fe5f3[_0x4a1ed2];});for(var _0x36a92c in _0x4077b7){if(_0x4077b7[_0x6722('0x1')](_0x36a92c)){if(!_0x41284e[_0x36a92c]){delete _0x4077b7[_0x36a92c];}}}}Realtime[_0x6722('0x2')][_0x6722('0x3')]=function(_0x3a876a,_0x580b9d){for(var _0x20c25c in _0x580b9d){if(_0x3a876a[_0x6722('0x1')](_0x20c25c)){_0x3a876a[_0x20c25c]=_0x580b9d[_0x20c25c];}}};Realtime[_0x6722('0x2')]['initMailAccounts']=function(){var _0x3a13e6=this;return function(_0x1fd77e){if(_0x1fd77e){freeIsNotKey(_0x1fd77e,_0x3a13e6['mailAccounts'],'id');for(var _0x49a61a=0x0,_0xc71294={},_0x1aa00e={};_0x49a61a<_0x1fd77e[_0x6722('0x4')];_0x49a61a+=0x1){_0xc71294=_0x1fd77e[_0x49a61a];if(_[_0x6722('0x5')](_0x3a13e6[_0x6722('0x6')][_0xc71294['id']])){_0x3a13e6['mailAccounts'][_0xc71294['id']]=new MailAccount(_0xc71294);}else{_['merge'](_0x3a13e6['mailAccounts'][_0xc71294['id']],_0xc71294);}}}return _0x3a13e6[_0x6722('0x6')];};};module['exports']=Realtime;
\ No newline at end of file