Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / services / email / realtime / index.js
index 1e7ca12..57ea80f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xccce=['initMailAccounts','mailAccounts','length','isUndefined','merge','../model/mailAccount','mapKeys','hasOwnProperty','prototype','mergeFromDatabase'];(function(_0x4392af,_0xec5afe){var _0x9fa8eb=function(_0x41d7a4){while(--_0x41d7a4){_0x4392af['push'](_0x4392af['shift']());}};_0x9fa8eb(++_0xec5afe);}(_0xccce,0x1d1));var _0xeccc=function(_0x2b5645,_0x1ff5a1){_0x2b5645=_0x2b5645-0x0;var _0x1db6d1=_0xccce[_0x2b5645];return _0x1db6d1;};'use strict';var _=require('lodash');var MailAccount=require(_0xeccc('0x0'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x3ffc1b,_0x48c5ee,_0x191770){var _0x46bacc=_[_0xeccc('0x1')](_0x3ffc1b,function(_0x53920e,_0x5be7a5){return _0x53920e[_0x191770];});for(var _0x1616b9 in _0x48c5ee){if(_0x48c5ee[_0xeccc('0x2')](_0x1616b9)){if(!_0x46bacc[_0x1616b9]){delete _0x48c5ee[_0x1616b9];}}}}Realtime[_0xeccc('0x3')][_0xeccc('0x4')]=function(_0x37c4bc,_0x466550){for(var _0x36b186 in _0x466550){if(_0x37c4bc[_0xeccc('0x2')](_0x36b186)){_0x37c4bc[_0x36b186]=_0x466550[_0x36b186];}}};Realtime[_0xeccc('0x3')][_0xeccc('0x5')]=function(){var _0x50e764=this;return function(_0x304c2f){if(_0x304c2f){freeIsNotKey(_0x304c2f,_0x50e764[_0xeccc('0x6')],'id');for(var _0x828617=0x0,_0x36467f={},_0x20bb08={};_0x828617<_0x304c2f[_0xeccc('0x7')];_0x828617+=0x1){_0x36467f=_0x304c2f[_0x828617];if(_[_0xeccc('0x8')](_0x50e764[_0xeccc('0x6')][_0x36467f['id']])){_0x50e764[_0xeccc('0x6')][_0x36467f['id']]=new MailAccount(_0x36467f);}else{_[_0xeccc('0x9')](_0x50e764['mailAccounts'][_0x36467f['id']],_0x36467f);}}}return _0x50e764[_0xeccc('0x6')];};};module['exports']=Realtime;
\ No newline at end of file
+var _0x568a=['hasOwnProperty','initMailAccounts','length','merge','exports','lodash','../model/mailAccount','mailAccounts','prototype','mergeFromDatabase'];(function(_0x439a59,_0x17962c){var _0x196b8b=function(_0x3de02b){while(--_0x3de02b){_0x439a59['push'](_0x439a59['shift']());}};_0x196b8b(++_0x17962c);}(_0x568a,0xcd));var _0xa568=function(_0xc67528,_0x24e2fb){_0xc67528=_0xc67528-0x0;var _0x38e26d=_0x568a[_0xc67528];return _0x38e26d;};'use strict';var _=require(_0xa568('0x0'));var MailAccount=require(_0xa568('0x1'));var Realtime=function(){this[_0xa568('0x2')]={};};function freeIsNotKey(_0x3af254,_0x1b4e0a,_0x484b48){var _0x51c3b8=_['mapKeys'](_0x3af254,function(_0x3ff32d,_0x4d18f9){return _0x3ff32d[_0x484b48];});for(var _0x4ca084 in _0x1b4e0a){if(_0x1b4e0a['hasOwnProperty'](_0x4ca084)){if(!_0x51c3b8[_0x4ca084]){delete _0x1b4e0a[_0x4ca084];}}}}Realtime[_0xa568('0x3')][_0xa568('0x4')]=function(_0x12160d,_0x1cf69c){for(var _0x4ae3ee in _0x1cf69c){if(_0x12160d[_0xa568('0x5')](_0x4ae3ee)){_0x12160d[_0x4ae3ee]=_0x1cf69c[_0x4ae3ee];}}};Realtime[_0xa568('0x3')][_0xa568('0x6')]=function(){var _0x1cb0c8=this;return function(_0x1aabf7){if(_0x1aabf7){freeIsNotKey(_0x1aabf7,_0x1cb0c8['mailAccounts'],'id');for(var _0x3e2cfd=0x0,_0x472727={},_0x678c1a={};_0x3e2cfd<_0x1aabf7[_0xa568('0x7')];_0x3e2cfd+=0x1){_0x472727=_0x1aabf7[_0x3e2cfd];if(_['isUndefined'](_0x1cb0c8[_0xa568('0x2')][_0x472727['id']])){_0x1cb0c8[_0xa568('0x2')][_0x472727['id']]=new MailAccount(_0x472727);}else{_[_0xa568('0x8')](_0x1cb0c8[_0xa568('0x2')][_0x472727['id']],_0x472727);}}}return _0x1cb0c8[_0xa568('0x2')];};};module[_0xa568('0x9')]=Realtime;
\ No newline at end of file