Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / faxMessage / faxMessage.events.js
index 0596b69..5cee931 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6657=['FaxMessage','setMaxListeners','save','update','emit','hasOwnProperty','hook','events'];(function(_0x36ece9,_0x29872c){var _0x202fdb=function(_0x232aae){while(--_0x232aae){_0x36ece9['push'](_0x36ece9['shift']());}};_0x202fdb(++_0x29872c);}(_0x6657,0x17f));var _0x7665=function(_0x529ebb,_0x55bab4){_0x529ebb=_0x529ebb-0x0;var _0x2bd160=_0x6657[_0x529ebb];return _0x2bd160;};'use strict';var EventEmitter=require(_0x7665('0x0'));var FaxMessage=require('../../mysqldb')['db'][_0x7665('0x1')];var FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x7665('0x2')](0x0);var events={'afterCreate':_0x7665('0x3'),'afterUpdate':_0x7665('0x4'),'afterDestroy':'remove'};function emitEvent(_0x386ca9){return function(_0x2ed8cb,_0x26acc4,_0x1c33b1){FaxMessageEvents[_0x7665('0x5')](_0x386ca9+':'+_0x2ed8cb['id'],_0x2ed8cb);FaxMessageEvents[_0x7665('0x5')](_0x386ca9,_0x2ed8cb);_0x1c33b1(null);};}for(var e in events){if(events[_0x7665('0x6')](e)){var event=events[e];FaxMessage[_0x7665('0x7')](e,emitEvent(event));}}module['exports']=FaxMessageEvents;
\ No newline at end of file
+var _0xa647=['../../mysqldb','FaxMessage','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook','events'];(function(_0x342359,_0x159fcc){var _0x22d408=function(_0x2bddb6){while(--_0x2bddb6){_0x342359['push'](_0x342359['shift']());}};_0x22d408(++_0x159fcc);}(_0xa647,0x81));var _0x7a64=function(_0x304353,_0x7bd7b3){_0x304353=_0x304353-0x0;var _0x11365b=_0xa647[_0x304353];return _0x11365b;};'use strict';var EventEmitter=require(_0x7a64('0x0'));var FaxMessage=require(_0x7a64('0x1'))['db'][_0x7a64('0x2')];var FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x7a64('0x3')](0x0);var events={'afterCreate':_0x7a64('0x4'),'afterUpdate':_0x7a64('0x5'),'afterDestroy':_0x7a64('0x6')};function emitEvent(_0x30b8b7){return function(_0x1c7a04,_0x2e1029,_0x46b8b0){FaxMessageEvents[_0x7a64('0x7')](_0x30b8b7+':'+_0x1c7a04['id'],_0x1c7a04);FaxMessageEvents['emit'](_0x30b8b7,_0x1c7a04);_0x46b8b0(null);};}for(var e in events){if(events[_0x7a64('0x8')](e)){var event=events[e];FaxMessage[_0x7a64('0x9')](e,emitEvent(event));}}module['exports']=FaxMessageEvents;
\ No newline at end of file