Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / faxQueue / faxQueue.events.js
index 6129fcf..94e0719 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa73f=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','FaxQueue','setMaxListeners','save','update'];(function(_0x34ac35,_0x46f0ce){var _0x71100f=function(_0x188e2f){while(--_0x188e2f){_0x34ac35['push'](_0x34ac35['shift']());}};_0x71100f(++_0x46f0ce);}(_0xa73f,0x162));var _0xfa73=function(_0x4ab5c0,_0x52f019){_0x4ab5c0=_0x4ab5c0-0x0;var _0x111a1e=_0xa73f[_0x4ab5c0];return _0x111a1e;};'use strict';var EventEmitter=require(_0xfa73('0x0'));var FaxQueue=require(_0xfa73('0x1'))['db'][_0xfa73('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0xfa73('0x3')](0x0);var events={'afterCreate':_0xfa73('0x4'),'afterUpdate':_0xfa73('0x5'),'afterDestroy':'remove'};function emitEvent(_0x77e5c2){return function(_0x16ac5d,_0x352b07,_0x287422){FaxQueueEvents[_0xfa73('0x6')](_0x77e5c2+':'+_0x16ac5d['id'],_0x16ac5d);FaxQueueEvents[_0xfa73('0x6')](_0x77e5c2,_0x16ac5d);_0x287422(null);};}for(var e in events){if(events[_0xfa73('0x7')](e)){var event=events[e];FaxQueue[_0xfa73('0x8')](e,emitEvent(event));}}module[_0xfa73('0x9')]=FaxQueueEvents;
\ No newline at end of file
+var _0xa6d9=['emit','hasOwnProperty','exports','events','../../mysqldb','setMaxListeners','save'];(function(_0x1fe653,_0xa4e03d){var _0x15507e=function(_0x343152){while(--_0x343152){_0x1fe653['push'](_0x1fe653['shift']());}};_0x15507e(++_0xa4e03d);}(_0xa6d9,0x1a7));var _0x9a6d=function(_0xbdee4c,_0x56bad0){_0xbdee4c=_0xbdee4c-0x0;var _0x4228e1=_0xa6d9[_0xbdee4c];return _0x4228e1;};'use strict';var EventEmitter=require(_0x9a6d('0x0'));var FaxQueue=require(_0x9a6d('0x1'))['db']['FaxQueue'];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x9a6d('0x2')](0x0);var events={'afterCreate':_0x9a6d('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x55f62d){return function(_0x1c4dda,_0x3b34db,_0xa06d96){FaxQueueEvents[_0x9a6d('0x4')](_0x55f62d+':'+_0x1c4dda['id'],_0x1c4dda);FaxQueueEvents[_0x9a6d('0x4')](_0x55f62d,_0x1c4dda);_0xa06d96(null);};}for(var e in events){if(events[_0x9a6d('0x5')](e)){var event=events[e];FaxQueue['hook'](e,emitEvent(event));}}module[_0x9a6d('0x6')]=FaxQueueEvents;
\ No newline at end of file