Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / faxQueue / faxQueue.events.js
index 56e7d4a..f77d5ec 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd0ff=['FaxQueue','update','remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x1b3372,_0x5edc80){var _0x1c26a3=function(_0x400be5){while(--_0x400be5){_0x1b3372['push'](_0x1b3372['shift']());}};_0x1c26a3(++_0x5edc80);}(_0xd0ff,0xa9));var _0xfd0f=function(_0x544de5,_0x252485){_0x544de5=_0x544de5-0x0;var _0xbfc9ba=_0xd0ff[_0x544de5];return _0xbfc9ba;};'use strict';var EventEmitter=require(_0xfd0f('0x0'));var FaxQueue=require(_0xfd0f('0x1'))['db'][_0xfd0f('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xfd0f('0x3'),'afterDestroy':_0xfd0f('0x4')};function emitEvent(_0x2daab0){return function(_0x58d0d1,_0x4c5e5e,_0x2d1d25){FaxQueueEvents[_0xfd0f('0x5')](_0x2daab0+':'+_0x58d0d1['id'],_0x58d0d1);FaxQueueEvents[_0xfd0f('0x5')](_0x2daab0,_0x58d0d1);_0x2d1d25(null);};}for(var e in events){if(events[_0xfd0f('0x6')](e)){var event=events[e];FaxQueue[_0xfd0f('0x7')](e,emitEvent(event));}}module[_0xfd0f('0x8')]=FaxQueueEvents;
\ No newline at end of file
+var _0xa1e2=['remove','emit','hook','exports','FaxQueue','setMaxListeners','save','update'];(function(_0x5c3980,_0x1e4747){var _0xc32349=function(_0x308bce){while(--_0x308bce){_0x5c3980['push'](_0x5c3980['shift']());}};_0xc32349(++_0x1e4747);}(_0xa1e2,0x1e4));var _0x2a1e=function(_0x5076f3,_0x3d4dc6){_0x5076f3=_0x5076f3-0x0;var _0x59fbfc=_0xa1e2[_0x5076f3];return _0x59fbfc;};'use strict';var EventEmitter=require('events');var FaxQueue=require('../../mysqldb')['db'][_0x2a1e('0x0')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x2a1e('0x1')](0x0);var events={'afterCreate':_0x2a1e('0x2'),'afterUpdate':_0x2a1e('0x3'),'afterDestroy':_0x2a1e('0x4')};function emitEvent(_0x8cdf82){return function(_0x377b87,_0x103c28,_0x51b61c){FaxQueueEvents[_0x2a1e('0x5')](_0x8cdf82+':'+_0x377b87['id'],_0x377b87);FaxQueueEvents[_0x2a1e('0x5')](_0x8cdf82,_0x377b87);_0x51b61c(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxQueue[_0x2a1e('0x6')](e,emitEvent(event));}}module[_0x2a1e('0x7')]=FaxQueueEvents;
\ No newline at end of file