Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / services / email / realtime / index.js
index a8ff950..e67b08b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x729c=['mapKeys','prototype','mergeFromDatabase','hasOwnProperty','initMailAccounts','mailAccounts','merge','exports','lodash','../model/mailAccount'];(function(_0x485e1d,_0x452c88){var _0x376f1d=function(_0x2f24d8){while(--_0x2f24d8){_0x485e1d['push'](_0x485e1d['shift']());}};_0x376f1d(++_0x452c88);}(_0x729c,0x6c));var _0xc729=function(_0x40e99f,_0x16974e){_0x40e99f=_0x40e99f-0x0;var _0x536f70=_0x729c[_0x40e99f];return _0x536f70;};'use strict';var _=require(_0xc729('0x0'));var MailAccount=require(_0xc729('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x2594f8,_0x3dc5a9,_0xa46d4b){var _0x3c5538=_[_0xc729('0x2')](_0x2594f8,function(_0x2e87fd,_0x1636f6){return _0x2e87fd[_0xa46d4b];});for(var _0x26d025 in _0x3dc5a9){if(_0x3dc5a9['hasOwnProperty'](_0x26d025)){if(!_0x3c5538[_0x26d025]){delete _0x3dc5a9[_0x26d025];}}}}Realtime[_0xc729('0x3')][_0xc729('0x4')]=function(_0x4472be,_0xa058da){for(var _0x435326 in _0xa058da){if(_0x4472be[_0xc729('0x5')](_0x435326)){_0x4472be[_0x435326]=_0xa058da[_0x435326];}}};Realtime[_0xc729('0x3')][_0xc729('0x6')]=function(){var _0x4a0f4f=this;return function(_0x74f718){if(_0x74f718){freeIsNotKey(_0x74f718,_0x4a0f4f['mailAccounts'],'id');for(var _0x37efab=0x0,_0x52aa61={},_0x324dc8={};_0x37efab<_0x74f718['length'];_0x37efab+=0x1){_0x52aa61=_0x74f718[_0x37efab];if(_['isUndefined'](_0x4a0f4f['mailAccounts'][_0x52aa61['id']])){_0x4a0f4f[_0xc729('0x7')][_0x52aa61['id']]=new MailAccount(_0x52aa61);}else{_[_0xc729('0x8')](_0x4a0f4f['mailAccounts'][_0x52aa61['id']],_0x52aa61);}}}return _0x4a0f4f[_0xc729('0x7')];};};module[_0xc729('0x9')]=Realtime;
\ No newline at end of file
+var _0xea8f=['length','isUndefined','merge','exports','../model/mailAccount','mailAccounts','mapKeys','hasOwnProperty','mergeFromDatabase','prototype'];(function(_0x209efa,_0x2d846a){var _0x4b270a=function(_0x224ca9){while(--_0x224ca9){_0x209efa['push'](_0x209efa['shift']());}};_0x4b270a(++_0x2d846a);}(_0xea8f,0xa4));var _0xfea8=function(_0xc69d59,_0x1d655c){_0xc69d59=_0xc69d59-0x0;var _0x379559=_0xea8f[_0xc69d59];return _0x379559;};'use strict';var _=require('lodash');var MailAccount=require(_0xfea8('0x0'));var Realtime=function(){this[_0xfea8('0x1')]={};};function freeIsNotKey(_0x1592d1,_0x491d54,_0x2625f1){var _0x573490=_[_0xfea8('0x2')](_0x1592d1,function(_0x9dc1ec,_0x358f94){return _0x9dc1ec[_0x2625f1];});for(var _0x24d351 in _0x491d54){if(_0x491d54[_0xfea8('0x3')](_0x24d351)){if(!_0x573490[_0x24d351]){delete _0x491d54[_0x24d351];}}}}Realtime['prototype'][_0xfea8('0x4')]=function(_0x23b84e,_0x329dd3){for(var _0x2e987a in _0x329dd3){if(_0x23b84e['hasOwnProperty'](_0x2e987a)){_0x23b84e[_0x2e987a]=_0x329dd3[_0x2e987a];}}};Realtime[_0xfea8('0x5')]['initMailAccounts']=function(){var _0x5909df=this;return function(_0x1f2abb){if(_0x1f2abb){freeIsNotKey(_0x1f2abb,_0x5909df[_0xfea8('0x1')],'id');for(var _0x4a8ba1=0x0,_0x3fb342={},_0x3cffb8={};_0x4a8ba1<_0x1f2abb[_0xfea8('0x6')];_0x4a8ba1+=0x1){_0x3fb342=_0x1f2abb[_0x4a8ba1];if(_[_0xfea8('0x7')](_0x5909df[_0xfea8('0x1')][_0x3fb342['id']])){_0x5909df[_0xfea8('0x1')][_0x3fb342['id']]=new MailAccount(_0x3fb342);}else{_[_0xfea8('0x8')](_0x5909df[_0xfea8('0x1')][_0x3fb342['id']],_0x3fb342);}}}return _0x5909df['mailAccounts'];};};module[_0xfea8('0x9')]=Realtime;
\ No newline at end of file