Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / faxAccount / faxAccount.events.js
index 6d279c6..9b8101d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc6dd=['save','remove','hasOwnProperty','hook','exports','events','../../mysqldb','FaxAccount','setMaxListeners'];(function(_0x1d9aa0,_0x272488){var _0x226868=function(_0x17127c){while(--_0x17127c){_0x1d9aa0['push'](_0x1d9aa0['shift']());}};_0x226868(++_0x272488);}(_0xc6dd,0xdd));var _0xdc6d=function(_0x278013,_0x55c88d){_0x278013=_0x278013-0x0;var _0x5c96bf=_0xc6dd[_0x278013];return _0x5c96bf;};'use strict';var EventEmitter=require(_0xdc6d('0x0'));var FaxAccount=require(_0xdc6d('0x1'))['db'][_0xdc6d('0x2')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0xdc6d('0x3')](0x0);var events={'afterCreate':_0xdc6d('0x4'),'afterUpdate':'update','afterDestroy':_0xdc6d('0x5')};function emitEvent(_0x4ab4bb){return function(_0x50b822,_0x46e0d3,_0x136a40){FaxAccountEvents['emit'](_0x4ab4bb+':'+_0x50b822['id'],_0x50b822);FaxAccountEvents['emit'](_0x4ab4bb,_0x50b822);_0x136a40(null);};}for(var e in events){if(events[_0xdc6d('0x6')](e)){var event=events[e];FaxAccount[_0xdc6d('0x7')](e,emitEvent(event));}}module[_0xdc6d('0x8')]=FaxAccountEvents;
\ No newline at end of file
+var _0x8768=['exports','events','../../mysqldb','FaxAccount','setMaxListeners','save','update','remove','emit','hook'];(function(_0x4ce35c,_0x1cf5cd){var _0x554eaa=function(_0xc1ff26){while(--_0xc1ff26){_0x4ce35c['push'](_0x4ce35c['shift']());}};_0x554eaa(++_0x1cf5cd);}(_0x8768,0xa1));var _0x8876=function(_0x14dba5,_0x47d8ac){_0x14dba5=_0x14dba5-0x0;var _0x10cbc6=_0x8768[_0x14dba5];return _0x10cbc6;};'use strict';var EventEmitter=require(_0x8876('0x0'));var FaxAccount=require(_0x8876('0x1'))['db'][_0x8876('0x2')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x8876('0x3')](0x0);var events={'afterCreate':_0x8876('0x4'),'afterUpdate':_0x8876('0x5'),'afterDestroy':_0x8876('0x6')};function emitEvent(_0x1225be){return function(_0x281226,_0x3b436f,_0x270336){FaxAccountEvents[_0x8876('0x7')](_0x1225be+':'+_0x281226['id'],_0x281226);FaxAccountEvents[_0x8876('0x7')](_0x1225be,_0x281226);_0x270336(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxAccount[_0x8876('0x8')](e,emitEvent(event));}}module[_0x8876('0x9')]=FaxAccountEvents;
\ No newline at end of file