Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / email / realtime / index.js
index 2ca1104..3ede7d9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xab37=['merge','lodash','../model/mailAccount','mailAccounts','mapKeys','prototype','mergeFromDatabase','hasOwnProperty','initMailAccounts','length','isUndefined'];(function(_0x12b8ec,_0x1655be){var _0x21af77=function(_0xe59f){while(--_0xe59f){_0x12b8ec['push'](_0x12b8ec['shift']());}};_0x21af77(++_0x1655be);}(_0xab37,0x16c));var _0x7ab3=function(_0x158424,_0x1a7e8d){_0x158424=_0x158424-0x0;var _0x3be936=_0xab37[_0x158424];return _0x3be936;};'use strict';var _=require(_0x7ab3('0x0'));var MailAccount=require(_0x7ab3('0x1'));var Realtime=function(){this[_0x7ab3('0x2')]={};};function freeIsNotKey(_0xa510ea,_0x23226e,_0x28d1f2){var _0x2d9e67=_[_0x7ab3('0x3')](_0xa510ea,function(_0x13fc28,_0x3ab2cb){return _0x13fc28[_0x28d1f2];});for(var _0x38c6af in _0x23226e){if(_0x23226e['hasOwnProperty'](_0x38c6af)){if(!_0x2d9e67[_0x38c6af]){delete _0x23226e[_0x38c6af];}}}}Realtime[_0x7ab3('0x4')][_0x7ab3('0x5')]=function(_0x3e1c4e,_0x16537b){for(var _0x3f41cb in _0x16537b){if(_0x3e1c4e[_0x7ab3('0x6')](_0x3f41cb)){_0x3e1c4e[_0x3f41cb]=_0x16537b[_0x3f41cb];}}};Realtime['prototype'][_0x7ab3('0x7')]=function(){var _0x299576=this;return function(_0x343279){if(_0x343279){freeIsNotKey(_0x343279,_0x299576[_0x7ab3('0x2')],'id');for(var _0x2b3a96=0x0,_0x4835f2={},_0x5e835e={};_0x2b3a96<_0x343279[_0x7ab3('0x8')];_0x2b3a96+=0x1){_0x4835f2=_0x343279[_0x2b3a96];if(_[_0x7ab3('0x9')](_0x299576['mailAccounts'][_0x4835f2['id']])){_0x299576[_0x7ab3('0x2')][_0x4835f2['id']]=new MailAccount(_0x4835f2);}else{_[_0x7ab3('0xa')](_0x299576['mailAccounts'][_0x4835f2['id']],_0x4835f2);}}}return _0x299576['mailAccounts'];};};module['exports']=Realtime;
\ No newline at end of file
+var _0x591f=['isUndefined','merge','lodash','../model/mailAccount','mailAccounts','mapKeys','hasOwnProperty','prototype','initMailAccounts','length'];(function(_0x1fc80b,_0x98bfe9){var _0x28da77=function(_0x226f1e){while(--_0x226f1e){_0x1fc80b['push'](_0x1fc80b['shift']());}};_0x28da77(++_0x98bfe9);}(_0x591f,0x17e));var _0xf591=function(_0x5d8631,_0x44944b){_0x5d8631=_0x5d8631-0x0;var _0x34c15e=_0x591f[_0x5d8631];return _0x34c15e;};'use strict';var _=require(_0xf591('0x0'));var MailAccount=require(_0xf591('0x1'));var Realtime=function(){this[_0xf591('0x2')]={};};function freeIsNotKey(_0x5ecd78,_0x4372d1,_0x1e0607){var _0x39be56=_[_0xf591('0x3')](_0x5ecd78,function(_0xe84ec3,_0x1eab52){return _0xe84ec3[_0x1e0607];});for(var _0x35475b in _0x4372d1){if(_0x4372d1[_0xf591('0x4')](_0x35475b)){if(!_0x39be56[_0x35475b]){delete _0x4372d1[_0x35475b];}}}}Realtime[_0xf591('0x5')]['mergeFromDatabase']=function(_0x5abce2,_0x714793){for(var _0x271604 in _0x714793){if(_0x5abce2[_0xf591('0x4')](_0x271604)){_0x5abce2[_0x271604]=_0x714793[_0x271604];}}};Realtime['prototype'][_0xf591('0x6')]=function(){var _0x3ac8ee=this;return function(_0x19d425){if(_0x19d425){freeIsNotKey(_0x19d425,_0x3ac8ee['mailAccounts'],'id');for(var _0x459622=0x0,_0x44541a={},_0x4f4d1e={};_0x459622<_0x19d425[_0xf591('0x7')];_0x459622+=0x1){_0x44541a=_0x19d425[_0x459622];if(_[_0xf591('0x8')](_0x3ac8ee[_0xf591('0x2')][_0x44541a['id']])){_0x3ac8ee[_0xf591('0x2')][_0x44541a['id']]=new MailAccount(_0x44541a);}else{_[_0xf591('0x9')](_0x3ac8ee['mailAccounts'][_0x44541a['id']],_0x44541a);}}}return _0x3ac8ee[_0xf591('0x2')];};};module['exports']=Realtime;
\ No newline at end of file