Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / email / realtime / index.js
index 60869e2..50719d9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4fcb=['hasOwnProperty','mergeFromDatabase','prototype','initMailAccounts','length','isUndefined','merge','exports','lodash','mailAccounts'];(function(_0x95efe,_0x396e41){var _0x39cbea=function(_0x43a6d8){while(--_0x43a6d8){_0x95efe['push'](_0x95efe['shift']());}};_0x39cbea(++_0x396e41);}(_0x4fcb,0x17a));var _0xb4fc=function(_0xf7eaf9,_0x3d383d){_0xf7eaf9=_0xf7eaf9-0x0;var _0x8e5c1b=_0x4fcb[_0xf7eaf9];return _0x8e5c1b;};'use strict';var _=require(_0xb4fc('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0xb4fc('0x1')]={};};function freeIsNotKey(_0x99417,_0x591fc4,_0x5e5265){var _0x3c6f8d=_['mapKeys'](_0x99417,function(_0x1ea925,_0x9be2b1){return _0x1ea925[_0x5e5265];});for(var _0x19306c in _0x591fc4){if(_0x591fc4[_0xb4fc('0x2')](_0x19306c)){if(!_0x3c6f8d[_0x19306c]){delete _0x591fc4[_0x19306c];}}}}Realtime['prototype'][_0xb4fc('0x3')]=function(_0x5d296c,_0x559d5b){for(var _0x12b61b in _0x559d5b){if(_0x5d296c[_0xb4fc('0x2')](_0x12b61b)){_0x5d296c[_0x12b61b]=_0x559d5b[_0x12b61b];}}};Realtime[_0xb4fc('0x4')][_0xb4fc('0x5')]=function(){var _0x80400c=this;return function(_0x16fd2d){if(_0x16fd2d){freeIsNotKey(_0x16fd2d,_0x80400c[_0xb4fc('0x1')],'id');for(var _0x21d322=0x0,_0xbe9e7={},_0x2dca80={};_0x21d322<_0x16fd2d[_0xb4fc('0x6')];_0x21d322+=0x1){_0xbe9e7=_0x16fd2d[_0x21d322];if(_[_0xb4fc('0x7')](_0x80400c[_0xb4fc('0x1')][_0xbe9e7['id']])){_0x80400c['mailAccounts'][_0xbe9e7['id']]=new MailAccount(_0xbe9e7);}else{_[_0xb4fc('0x8')](_0x80400c[_0xb4fc('0x1')][_0xbe9e7['id']],_0xbe9e7);}}}return _0x80400c['mailAccounts'];};};module[_0xb4fc('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