Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / email / realtime / index.js
index 12ec2b3..50719d9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfcb2=['mergeFromDatabase','initMailAccounts','length','isUndefined','merge','exports','mailAccounts','mapKeys','hasOwnProperty','prototype'];(function(_0xbebe13,_0x2974a3){var _0x230505=function(_0x45e8c6){while(--_0x45e8c6){_0xbebe13['push'](_0xbebe13['shift']());}};_0x230505(++_0x2974a3);}(_0xfcb2,0x1d2));var _0x2fcb=function(_0x3c3a12,_0x164bc3){_0x3c3a12=_0x3c3a12-0x0;var _0xad13e5=_0xfcb2[_0x3c3a12];return _0xad13e5;};'use strict';var _=require('lodash');var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0x2fcb('0x0')]={};};function freeIsNotKey(_0x5d8f17,_0x2f5bff,_0x1a6e2e){var _0x56fd96=_[_0x2fcb('0x1')](_0x5d8f17,function(_0x2cc864,_0x265af1){return _0x2cc864[_0x1a6e2e];});for(var _0x46e445 in _0x2f5bff){if(_0x2f5bff[_0x2fcb('0x2')](_0x46e445)){if(!_0x56fd96[_0x46e445]){delete _0x2f5bff[_0x46e445];}}}}Realtime[_0x2fcb('0x3')][_0x2fcb('0x4')]=function(_0x29668f,_0x4693b0){for(var _0x1fbfed in _0x4693b0){if(_0x29668f[_0x2fcb('0x2')](_0x1fbfed)){_0x29668f[_0x1fbfed]=_0x4693b0[_0x1fbfed];}}};Realtime[_0x2fcb('0x3')][_0x2fcb('0x5')]=function(){var _0x54d7e2=this;return function(_0x3464e2){if(_0x3464e2){freeIsNotKey(_0x3464e2,_0x54d7e2[_0x2fcb('0x0')],'id');for(var _0xae8a83=0x0,_0x1c3e02={},_0x6fec07={};_0xae8a83<_0x3464e2[_0x2fcb('0x6')];_0xae8a83+=0x1){_0x1c3e02=_0x3464e2[_0xae8a83];if(_[_0x2fcb('0x7')](_0x54d7e2['mailAccounts'][_0x1c3e02['id']])){_0x54d7e2['mailAccounts'][_0x1c3e02['id']]=new MailAccount(_0x1c3e02);}else{_[_0x2fcb('0x8')](_0x54d7e2[_0x2fcb('0x0')][_0x1c3e02['id']],_0x1c3e02);}}}return _0x54d7e2[_0x2fcb('0x0')];};};module[_0x2fcb('0x9')]=Realtime;
\ No newline at end of file
+var _0xfc32=['mergeFromDatabase','initMailAccounts','isUndefined','merge','exports','lodash','mailAccounts','mapKeys','hasOwnProperty','prototype'];(function(_0x411017,_0x4a8117){var _0x2adeea=function(_0x545222){while(--_0x545222){_0x411017['push'](_0x411017['shift']());}};_0x2adeea(++_0x4a8117);}(_0xfc32,0x13b));var _0x2fc3=function(_0x411017,_0x4a8117){_0x411017=_0x411017-0x0;var _0x2adeea=_0xfc32[_0x411017];return _0x2adeea;};'use strict';var _=require(_0x2fc3('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0x2fc3('0x1')]={};};function freeIsNotKey(_0x311250,_0x1871f9,_0x254292){var _0x1b0c80=_[_0x2fc3('0x2')](_0x311250,function(_0x1bef90,_0x3050c9){return _0x1bef90[_0x254292];});for(var _0x3a5b9c in _0x1871f9){if(_0x1871f9[_0x2fc3('0x3')](_0x3a5b9c)){if(!_0x1b0c80[_0x3a5b9c]){delete _0x1871f9[_0x3a5b9c];}}}}Realtime[_0x2fc3('0x4')][_0x2fc3('0x5')]=function(_0x250a1b,_0xb7d135){for(var _0x541be2 in _0xb7d135){if(_0x250a1b[_0x2fc3('0x3')](_0x541be2)){_0x250a1b[_0x541be2]=_0xb7d135[_0x541be2];}}};Realtime['prototype'][_0x2fc3('0x6')]=function(){var _0x2c89b7=this;return function(_0x1488e7){if(_0x1488e7){freeIsNotKey(_0x1488e7,_0x2c89b7['mailAccounts'],'id');for(var _0x1847c1=0x0,_0x9c6e0f={},_0xe7041e={};_0x1847c1<_0x1488e7['length'];_0x1847c1+=0x1){_0x9c6e0f=_0x1488e7[_0x1847c1];if(_[_0x2fc3('0x7')](_0x2c89b7[_0x2fc3('0x1')][_0x9c6e0f['id']])){_0x2c89b7[_0x2fc3('0x1')][_0x9c6e0f['id']]=new MailAccount(_0x9c6e0f);}else{_[_0x2fc3('0x8')](_0x2c89b7['mailAccounts'][_0x9c6e0f['id']],_0x9c6e0f);}}}return _0x2c89b7[_0x2fc3('0x1')];};};module[_0x2fc3('0x9')]=Realtime;
\ No newline at end of file