Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / faxQueue / faxQueue.events.js
index d6c5034..7471e61 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa46=['hook','events','../../mysqldb','FaxQueue','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x127795,_0x4f7c02){var _0x2782aa=function(_0x10ffd2){while(--_0x10ffd2){_0x127795['push'](_0x127795['shift']());}};_0x2782aa(++_0x4f7c02);}(_0xfa46,0x191));var _0x6fa4=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0xfa46[_0x21a9d9];return _0x46adce;};'use strict';var EventEmitter=require(_0x6fa4('0x0'));var FaxQueue=require(_0x6fa4('0x1'))['db'][_0x6fa4('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x6fa4('0x3')](0x0);var events={'afterCreate':_0x6fa4('0x4'),'afterUpdate':_0x6fa4('0x5'),'afterDestroy':_0x6fa4('0x6')};function emitEvent(_0x103d69){return function(_0x2cfd43,_0x1c9a05,_0x2cc889){FaxQueueEvents['emit'](_0x103d69+':'+_0x2cfd43['id'],_0x2cfd43);FaxQueueEvents[_0x6fa4('0x7')](_0x103d69,_0x2cfd43);_0x2cc889(null);};}for(var e in events){if(events[_0x6fa4('0x8')](e)){var event=events[e];FaxQueue[_0x6fa4('0x9')](e,emitEvent(event));}}module['exports']=FaxQueueEvents;
\ No newline at end of file
+var _0xf5b9=['hasOwnProperty','exports','events','../../mysqldb','FaxQueue','save','remove','emit'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0xf5b9,0x10a));var _0x9f5b=function(_0x44a593,_0x2e7a9f){_0x44a593=_0x44a593-0x0;var _0x10ffe0=_0xf5b9[_0x44a593];return _0x10ffe0;};'use strict';var EventEmitter=require(_0x9f5b('0x0'));var FaxQueue=require(_0x9f5b('0x1'))['db'][_0x9f5b('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x9f5b('0x3'),'afterUpdate':'update','afterDestroy':_0x9f5b('0x4')};function emitEvent(_0x321df7){return function(_0x13c571,_0x466b93,_0xb78e5d){FaxQueueEvents[_0x9f5b('0x5')](_0x321df7+':'+_0x13c571['id'],_0x13c571);FaxQueueEvents[_0x9f5b('0x5')](_0x321df7,_0x13c571);_0xb78e5d(null);};}for(var e in events){if(events[_0x9f5b('0x6')](e)){var event=events[e];FaxQueue['hook'](e,emitEvent(event));}}module[_0x9f5b('0x7')]=FaxQueueEvents;
\ No newline at end of file