Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / faxAccount / faxAccount.events.js
index 6d279c6..4b5691d 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 _0xeb54=['save','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','FaxAccount','setMaxListeners'];(function(_0x361c3c,_0x34e495){var _0x1a68e7=function(_0x1eeba5){while(--_0x1eeba5){_0x361c3c['push'](_0x361c3c['shift']());}};_0x1a68e7(++_0x34e495);}(_0xeb54,0xb7));var _0x4eb5=function(_0x236570,_0x25aabf){_0x236570=_0x236570-0x0;var _0x24266b=_0xeb54[_0x236570];return _0x24266b;};'use strict';var EventEmitter=require(_0x4eb5('0x0'));var FaxAccount=require(_0x4eb5('0x1'))['db'][_0x4eb5('0x2')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x4eb5('0x3')](0x0);var events={'afterCreate':_0x4eb5('0x4'),'afterUpdate':_0x4eb5('0x5'),'afterDestroy':_0x4eb5('0x6')};function emitEvent(_0x4b1538){return function(_0x4eb456,_0x2b8c34,_0xb9897){FaxAccountEvents['emit'](_0x4b1538+':'+_0x4eb456['id'],_0x4eb456);FaxAccountEvents[_0x4eb5('0x7')](_0x4b1538,_0x4eb456);_0xb9897(null);};}for(var e in events){if(events[_0x4eb5('0x8')](e)){var event=events[e];FaxAccount[_0x4eb5('0x9')](e,emitEvent(event));}}module[_0x4eb5('0xa')]=FaxAccountEvents;
\ No newline at end of file