Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / faxAccount / faxAccount.events.js
index 6d279c6..73048fa 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 _0x0ffd=['save','update','emit','hasOwnProperty','hook','events','../../mysqldb','FaxAccount','setMaxListeners'];(function(_0x173237,_0x1df0d5){var _0x1cd581=function(_0x1c00a9){while(--_0x1c00a9){_0x173237['push'](_0x173237['shift']());}};_0x1cd581(++_0x1df0d5);}(_0x0ffd,0x19a));var _0xd0ff=function(_0x4d8ed9,_0x2ae284){_0x4d8ed9=_0x4d8ed9-0x0;var _0x1e2140=_0x0ffd[_0x4d8ed9];return _0x1e2140;};'use strict';var EventEmitter=require(_0xd0ff('0x0'));var FaxAccount=require(_0xd0ff('0x1'))['db'][_0xd0ff('0x2')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0xd0ff('0x3')](0x0);var events={'afterCreate':_0xd0ff('0x4'),'afterUpdate':_0xd0ff('0x5'),'afterDestroy':'remove'};function emitEvent(_0x1e3db3){return function(_0x599541,_0x210a13,_0x4b9b32){FaxAccountEvents[_0xd0ff('0x6')](_0x1e3db3+':'+_0x599541['id'],_0x599541);FaxAccountEvents[_0xd0ff('0x6')](_0x1e3db3,_0x599541);_0x4b9b32(null);};}for(var e in events){if(events[_0xd0ff('0x7')](e)){var event=events[e];FaxAccount[_0xd0ff('0x8')](e,emitEvent(event));}}module['exports']=FaxAccountEvents;
\ No newline at end of file