Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / faxMessage / faxMessage.events.js
index a9da265..5cee931 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x34e8=['emit','hasOwnProperty','exports','events','../../mysqldb','FaxMessage','setMaxListeners','update','remove'];(function(_0x46aff0,_0x122890){var _0x9d78cf=function(_0x3f14cb){while(--_0x3f14cb){_0x46aff0['push'](_0x46aff0['shift']());}};_0x9d78cf(++_0x122890);}(_0x34e8,0x12c));var _0x834e=function(_0x23aa2c,_0x2f787b){_0x23aa2c=_0x23aa2c-0x0;var _0x98c073=_0x34e8[_0x23aa2c];return _0x98c073;};'use strict';var EventEmitter=require(_0x834e('0x0'));var FaxMessage=require(_0x834e('0x1'))['db'][_0x834e('0x2')];var FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x834e('0x3')](0x0);var events={'afterCreate':'save','afterUpdate':_0x834e('0x4'),'afterDestroy':_0x834e('0x5')};function emitEvent(_0x472111){return function(_0x31bf20,_0x289ef2,_0x19a3e0){FaxMessageEvents[_0x834e('0x6')](_0x472111+':'+_0x31bf20['id'],_0x31bf20);FaxMessageEvents['emit'](_0x472111,_0x31bf20);_0x19a3e0(null);};}for(var e in events){if(events[_0x834e('0x7')](e)){var event=events[e];FaxMessage['hook'](e,emitEvent(event));}}module[_0x834e('0x8')]=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