Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / email / realtime / index.js
index 7221204..50719d9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x65de=['prototype','mergeFromDatabase','initMailAccounts','length','merge','lodash','../model/mailAccount','mailAccounts','mapKeys','hasOwnProperty'];(function(_0x5e9c00,_0x32bf2d){var _0x193f17=function(_0x3723e2){while(--_0x3723e2){_0x5e9c00['push'](_0x5e9c00['shift']());}};_0x193f17(++_0x32bf2d);}(_0x65de,0x13b));var _0xe65d=function(_0x59767a,_0x3f659f){_0x59767a=_0x59767a-0x0;var _0x21d0ab=_0x65de[_0x59767a];return _0x21d0ab;};'use strict';var _=require(_0xe65d('0x0'));var MailAccount=require(_0xe65d('0x1'));var Realtime=function(){this[_0xe65d('0x2')]={};};function freeIsNotKey(_0x4e1999,_0xea38e9,_0x41a88f){var _0x480915=_[_0xe65d('0x3')](_0x4e1999,function(_0x428c3d,_0x5a14d8){return _0x428c3d[_0x41a88f];});for(var _0x3b7cbf in _0xea38e9){if(_0xea38e9[_0xe65d('0x4')](_0x3b7cbf)){if(!_0x480915[_0x3b7cbf]){delete _0xea38e9[_0x3b7cbf];}}}}Realtime[_0xe65d('0x5')][_0xe65d('0x6')]=function(_0x28dbff,_0x414b69){for(var _0x20b151 in _0x414b69){if(_0x28dbff[_0xe65d('0x4')](_0x20b151)){_0x28dbff[_0x20b151]=_0x414b69[_0x20b151];}}};Realtime[_0xe65d('0x5')][_0xe65d('0x7')]=function(){var _0x1bb31a=this;return function(_0x1b8345){if(_0x1b8345){freeIsNotKey(_0x1b8345,_0x1bb31a[_0xe65d('0x2')],'id');for(var _0x1d8d76=0x0,_0x5157e5={},_0x2a900a={};_0x1d8d76<_0x1b8345[_0xe65d('0x8')];_0x1d8d76+=0x1){_0x5157e5=_0x1b8345[_0x1d8d76];if(_['isUndefined'](_0x1bb31a[_0xe65d('0x2')][_0x5157e5['id']])){_0x1bb31a[_0xe65d('0x2')][_0x5157e5['id']]=new MailAccount(_0x5157e5);}else{_[_0xe65d('0x9')](_0x1bb31a[_0xe65d('0x2')][_0x5157e5['id']],_0x5157e5);}}}return _0x1bb31a[_0xe65d('0x2')];};};module['exports']=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