Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / faxQueue / faxQueue.events.js
index 0648c1e..96fe436 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xda3c=['FaxQueue','update','remove','emit','hook','exports','events','../../mysqldb'];(function(_0x118128,_0x386510){var _0x409438=function(_0x156e29){while(--_0x156e29){_0x118128['push'](_0x118128['shift']());}};_0x409438(++_0x386510);}(_0xda3c,0x106));var _0xcda3=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0xda3c[_0x4a9fb1];return _0x348672;};'use strict';var EventEmitter=require(_0xcda3('0x0'));var FaxQueue=require(_0xcda3('0x1'))['db'][_0xcda3('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0xcda3('0x3'),'afterDestroy':_0xcda3('0x4')};function emitEvent(_0xdc6e4d){return function(_0x26ba14,_0x61ca90,_0x3f283f){FaxQueueEvents['emit'](_0xdc6e4d+':'+_0x26ba14['id'],_0x26ba14);FaxQueueEvents[_0xcda3('0x5')](_0xdc6e4d,_0x26ba14);_0x3f283f(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxQueue[_0xcda3('0x6')](e,emitEvent(event));}}module[_0xcda3('0x7')]=FaxQueueEvents;
\ No newline at end of file
+var _0x8d91=['exports','events','../../mysqldb','FaxQueue','setMaxListeners','save','remove','emit','hasOwnProperty'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0x8d91,0x10f));var _0x18d9=function(_0x4c669d,_0x12cb18){_0x4c669d=_0x4c669d-0x0;var _0x4e26a2=_0x8d91[_0x4c669d];return _0x4e26a2;};'use strict';var EventEmitter=require(_0x18d9('0x0'));var FaxQueue=require(_0x18d9('0x1'))['db'][_0x18d9('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x18d9('0x3')](0x0);var events={'afterCreate':_0x18d9('0x4'),'afterUpdate':'update','afterDestroy':_0x18d9('0x5')};function emitEvent(_0x51744e){return function(_0x2fbeb3,_0x3d91c7,_0x44c146){FaxQueueEvents['emit'](_0x51744e+':'+_0x2fbeb3['id'],_0x2fbeb3);FaxQueueEvents[_0x18d9('0x6')](_0x51744e,_0x2fbeb3);_0x44c146(null);};}for(var e in events){if(events[_0x18d9('0x7')](e)){var event=events[e];FaxQueue['hook'](e,emitEvent(event));}}module[_0x18d9('0x8')]=FaxQueueEvents;
\ No newline at end of file