Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / mailAccount / mailAccount.events.js
index 2791915..dbec84f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x27a3=['remove','emit','hasOwnProperty','hook','events','../../mysqldb','setMaxListeners','save','update'];(function(_0x15cdcb,_0x4340e9){var _0x37b069=function(_0x304cfb){while(--_0x304cfb){_0x15cdcb['push'](_0x15cdcb['shift']());}};_0x37b069(++_0x4340e9);}(_0x27a3,0x1ab));var _0x327a=function(_0x262d49,_0x59c4ad){_0x262d49=_0x262d49-0x0;var _0x1554c5=_0x27a3[_0x262d49];return _0x1554c5;};'use strict';var EventEmitter=require(_0x327a('0x0'));var MailAccount=require(_0x327a('0x1'))['db']['MailAccount'];var MailAccountEvents=new EventEmitter();MailAccountEvents[_0x327a('0x2')](0x0);var events={'afterCreate':_0x327a('0x3'),'afterUpdate':_0x327a('0x4'),'afterDestroy':_0x327a('0x5')};function emitEvent(_0x5df10d){return function(_0x3126d7,_0x5bfba4,_0x41c6bb){MailAccountEvents[_0x327a('0x6')](_0x5df10d+':'+_0x3126d7['id'],_0x3126d7);MailAccountEvents[_0x327a('0x6')](_0x5df10d,_0x3126d7);_0x41c6bb(null);};}for(var e in events){if(events[_0x327a('0x7')](e)){var event=events[e];MailAccount[_0x327a('0x8')](e,emitEvent(event));}}module['exports']=MailAccountEvents;
\ No newline at end of file
+var _0x175b=['exports','events','../../mysqldb','MailAccount','update','remove','emit','hasOwnProperty'];(function(_0x7b5aca,_0x2a91f2){var _0x34315e=function(_0x15d7e8){while(--_0x15d7e8){_0x7b5aca['push'](_0x7b5aca['shift']());}};_0x34315e(++_0x2a91f2);}(_0x175b,0x141));var _0xb175=function(_0x277af0,_0x1f0361){_0x277af0=_0x277af0-0x0;var _0x43bd7c=_0x175b[_0x277af0];return _0x43bd7c;};'use strict';var EventEmitter=require(_0xb175('0x0'));var MailAccount=require(_0xb175('0x1'))['db'][_0xb175('0x2')];var MailAccountEvents=new EventEmitter();MailAccountEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xb175('0x3'),'afterDestroy':_0xb175('0x4')};function emitEvent(_0x86e2d3){return function(_0x4b96ce,_0x153fb5,_0x5c48e0){MailAccountEvents['emit'](_0x86e2d3+':'+_0x4b96ce['id'],_0x4b96ce);MailAccountEvents[_0xb175('0x5')](_0x86e2d3,_0x4b96ce);_0x5c48e0(null);};}for(var e in events){if(events[_0xb175('0x6')](e)){var event=events[e];MailAccount['hook'](e,emitEvent(event));}}module[_0xb175('0x7')]=MailAccountEvents;
\ No newline at end of file