Built motion from commit e1760111.|2.6.18
[motion2.git] / server / services / email / realtime / index.js
index f758253..828bf8e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7bf1=['merge','exports','lodash','../model/mailAccount','mapKeys','hasOwnProperty','prototype','initMailAccounts','mailAccounts','length','isUndefined'];(function(_0x241714,_0x2fdfcf){var _0x406279=function(_0x5d4319){while(--_0x5d4319){_0x241714['push'](_0x241714['shift']());}};_0x406279(++_0x2fdfcf);}(_0x7bf1,0x65));var _0x17bf=function(_0xe7ab3,_0x1ac24a){_0xe7ab3=_0xe7ab3-0x0;var _0x3e484a=_0x7bf1[_0xe7ab3];return _0x3e484a;};'use strict';var _=require(_0x17bf('0x0'));var MailAccount=require(_0x17bf('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x35269b,_0x2fd8ea,_0x233a14){var _0x5c59a6=_[_0x17bf('0x2')](_0x35269b,function(_0x41290e,_0x230c00){return _0x41290e[_0x233a14];});for(var _0x34dca8 in _0x2fd8ea){if(_0x2fd8ea[_0x17bf('0x3')](_0x34dca8)){if(!_0x5c59a6[_0x34dca8]){delete _0x2fd8ea[_0x34dca8];}}}}Realtime[_0x17bf('0x4')]['mergeFromDatabase']=function(_0x16533f,_0xf55b40){for(var _0x3f87fe in _0xf55b40){if(_0x16533f[_0x17bf('0x3')](_0x3f87fe)){_0x16533f[_0x3f87fe]=_0xf55b40[_0x3f87fe];}}};Realtime[_0x17bf('0x4')][_0x17bf('0x5')]=function(){var _0x198a6d=this;return function(_0x4b2a4a){if(_0x4b2a4a){freeIsNotKey(_0x4b2a4a,_0x198a6d[_0x17bf('0x6')],'id');for(var _0x5861b3=0x0,_0xaa2550={},_0x287583={};_0x5861b3<_0x4b2a4a[_0x17bf('0x7')];_0x5861b3+=0x1){_0xaa2550=_0x4b2a4a[_0x5861b3];if(_[_0x17bf('0x8')](_0x198a6d[_0x17bf('0x6')][_0xaa2550['id']])){_0x198a6d[_0x17bf('0x6')][_0xaa2550['id']]=new MailAccount(_0xaa2550);}else{_[_0x17bf('0x9')](_0x198a6d['mailAccounts'][_0xaa2550['id']],_0xaa2550);}}}return _0x198a6d[_0x17bf('0x6')];};};module[_0x17bf('0xa')]=Realtime;
\ No newline at end of file
+var _0x2f69=['merge','exports','../model/mailAccount','mapKeys','mergeFromDatabase','hasOwnProperty','prototype','initMailAccounts','length','mailAccounts'];(function(_0x58381c,_0x3b9374){var _0x1a7440=function(_0x2bc7f1){while(--_0x2bc7f1){_0x58381c['push'](_0x58381c['shift']());}};_0x1a7440(++_0x3b9374);}(_0x2f69,0x16a));var _0x92f6=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x2f69[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require('lodash');var MailAccount=require(_0x92f6('0x0'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x9bf874,_0x49aea6,_0x588850){var _0x123b68=_[_0x92f6('0x1')](_0x9bf874,function(_0x723064,_0x495956){return _0x723064[_0x588850];});for(var _0x22fd04 in _0x49aea6){if(_0x49aea6['hasOwnProperty'](_0x22fd04)){if(!_0x123b68[_0x22fd04]){delete _0x49aea6[_0x22fd04];}}}}Realtime['prototype'][_0x92f6('0x2')]=function(_0x4832e1,_0x16d41a){for(var _0xf643b6 in _0x16d41a){if(_0x4832e1[_0x92f6('0x3')](_0xf643b6)){_0x4832e1[_0xf643b6]=_0x16d41a[_0xf643b6];}}};Realtime[_0x92f6('0x4')][_0x92f6('0x5')]=function(){var _0x4b99be=this;return function(_0x14a023){if(_0x14a023){freeIsNotKey(_0x14a023,_0x4b99be['mailAccounts'],'id');for(var _0x1ce72b=0x0,_0xcb27df={},_0x6314f9={};_0x1ce72b<_0x14a023[_0x92f6('0x6')];_0x1ce72b+=0x1){_0xcb27df=_0x14a023[_0x1ce72b];if(_['isUndefined'](_0x4b99be[_0x92f6('0x7')][_0xcb27df['id']])){_0x4b99be[_0x92f6('0x7')][_0xcb27df['id']]=new MailAccount(_0xcb27df);}else{_[_0x92f6('0x8')](_0x4b99be[_0x92f6('0x7')][_0xcb27df['id']],_0xcb27df);}}}return _0x4b99be[_0x92f6('0x7')];};};module[_0x92f6('0x9')]=Realtime;
\ No newline at end of file