Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / faxAccount / faxAccount.events.js
index f377adc..7600bf9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x765a=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','FaxAccount','setMaxListeners','save','update','remove'];(function(_0x5e548b,_0x11b798){var _0x36ad97=function(_0x399f7f){while(--_0x399f7f){_0x5e548b['push'](_0x5e548b['shift']());}};_0x36ad97(++_0x11b798);}(_0x765a,0x143));var _0xa765=function(_0x552e6a,_0x249b42){_0x552e6a=_0x552e6a-0x0;var _0x1c38bd=_0x765a[_0x552e6a];return _0x1c38bd;};'use strict';var EventEmitter=require(_0xa765('0x0'));var FaxAccount=require(_0xa765('0x1'))['db'][_0xa765('0x2')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0xa765('0x3')](0x0);var events={'afterCreate':_0xa765('0x4'),'afterUpdate':_0xa765('0x5'),'afterDestroy':_0xa765('0x6')};function emitEvent(_0xec6298){return function(_0x41da26,_0x1c5cbb,_0x17fbd0){FaxAccountEvents[_0xa765('0x7')](_0xec6298+':'+_0x41da26['id'],_0x41da26);FaxAccountEvents[_0xa765('0x7')](_0xec6298,_0x41da26);_0x17fbd0(null);};}for(var e in events){if(events[_0xa765('0x8')](e)){var event=events[e];FaxAccount[_0xa765('0x9')](e,emitEvent(event));}}module[_0xa765('0xa')]=FaxAccountEvents;
\ No newline at end of file
+var _0xcf54=['update','remove','emit','hasOwnProperty','exports','../../mysqldb','FaxAccount','setMaxListeners','save'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xcf54,0x125));var _0x4cf5=function(_0x311f44,_0x1d7f5b){_0x311f44=_0x311f44-0x0;var _0x46f1e6=_0xcf54[_0x311f44];return _0x46f1e6;};'use strict';var EventEmitter=require('events');var FaxAccount=require(_0x4cf5('0x0'))['db'][_0x4cf5('0x1')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x4cf5('0x2')](0x0);var events={'afterCreate':_0x4cf5('0x3'),'afterUpdate':_0x4cf5('0x4'),'afterDestroy':_0x4cf5('0x5')};function emitEvent(_0x46e588){return function(_0x4c5ffa,_0x28921a,_0x2d156a){FaxAccountEvents[_0x4cf5('0x6')](_0x46e588+':'+_0x4c5ffa['id'],_0x4c5ffa);FaxAccountEvents[_0x4cf5('0x6')](_0x46e588,_0x4c5ffa);_0x2d156a(null);};}for(var e in events){if(events[_0x4cf5('0x7')](e)){var event=events[e];FaxAccount['hook'](e,emitEvent(event));}}module[_0x4cf5('0x8')]=FaxAccountEvents;
\ No newline at end of file