Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / faxMessage / faxMessage.events.js
index 1da3d07..939febb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x573a=['update','remove','emit','exports','events','../../mysqldb','setMaxListeners','save'];(function(_0x1fc75f,_0x456d7c){var _0x40b5ab=function(_0x584934){while(--_0x584934){_0x1fc75f['push'](_0x1fc75f['shift']());}};_0x40b5ab(++_0x456d7c);}(_0x573a,0x124));var _0xa573=function(_0x2932cf,_0x362fd9){_0x2932cf=_0x2932cf-0x0;var _0x1711dd=_0x573a[_0x2932cf];return _0x1711dd;};'use strict';var EventEmitter=require(_0xa573('0x0'));var FaxMessage=require(_0xa573('0x1'))['db']['FaxMessage'];var FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0xa573('0x2')](0x0);var events={'afterCreate':_0xa573('0x3'),'afterUpdate':_0xa573('0x4'),'afterDestroy':_0xa573('0x5')};function emitEvent(_0x19bca6){return function(_0x59a1d5,_0x41fbd3,_0x4b7f7c){FaxMessageEvents[_0xa573('0x6')](_0x19bca6+':'+_0x59a1d5['id'],_0x59a1d5);FaxMessageEvents[_0xa573('0x6')](_0x19bca6,_0x59a1d5);_0x4b7f7c(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxMessage['hook'](e,emitEvent(event));}}module[_0xa573('0x7')]=FaxMessageEvents;
\ No newline at end of file
+var _0x5d17=['update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','save'];(function(_0x1762b4,_0x33d836){var _0x29beda=function(_0x31c2fa){while(--_0x31c2fa){_0x1762b4['push'](_0x1762b4['shift']());}};_0x29beda(++_0x33d836);}(_0x5d17,0x114));var _0x75d1=function(_0x3f3b97,_0x395d93){_0x3f3b97=_0x3f3b97-0x0;var _0xb6ab0c=_0x5d17[_0x3f3b97];return _0xb6ab0c;};'use strict';var EventEmitter=require(_0x75d1('0x0'));var FaxMessage=require(_0x75d1('0x1'))['db']['FaxMessage'];var FaxMessageEvents=new EventEmitter();FaxMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x75d1('0x2'),'afterUpdate':_0x75d1('0x3'),'afterDestroy':_0x75d1('0x4')};function emitEvent(_0x5b3267){return function(_0x177460,_0x45d03a,_0x387e35){FaxMessageEvents[_0x75d1('0x5')](_0x5b3267+':'+_0x177460['id'],_0x177460);FaxMessageEvents['emit'](_0x5b3267,_0x177460);_0x387e35(null);};}for(var e in events){if(events[_0x75d1('0x6')](e)){var event=events[e];FaxMessage[_0x75d1('0x7')](e,emitEvent(event));}}module[_0x75d1('0x8')]=FaxMessageEvents;
\ No newline at end of file