Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / faxAccount / faxAccount.events.js
index 835cb61..7600bf9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6838=['../../mysqldb','FaxAccount','setMaxListeners','save','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x40220a,_0x22feb1){var _0x3903cc=function(_0x33a296){while(--_0x33a296){_0x40220a['push'](_0x40220a['shift']());}};_0x3903cc(++_0x22feb1);}(_0x6838,0xbd));var _0x8683=function(_0x588bf2,_0xe6fb8){_0x588bf2=_0x588bf2-0x0;var _0x571db3=_0x6838[_0x588bf2];return _0x571db3;};'use strict';var EventEmitter=require(_0x8683('0x0'));var FaxAccount=require(_0x8683('0x1'))['db'][_0x8683('0x2')];var FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x8683('0x3')](0x0);var events={'afterCreate':_0x8683('0x4'),'afterUpdate':'update','afterDestroy':_0x8683('0x5')};function emitEvent(_0x163900){return function(_0x2fcced,_0x56c39a,_0x73daea){FaxAccountEvents[_0x8683('0x6')](_0x163900+':'+_0x2fcced['id'],_0x2fcced);FaxAccountEvents[_0x8683('0x6')](_0x163900,_0x2fcced);_0x73daea(null);};}for(var e in events){if(events[_0x8683('0x7')](e)){var event=events[e];FaxAccount[_0x8683('0x8')](e,emitEvent(event));}}module[_0x8683('0x9')]=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