Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / faxQueue / faxQueue.events.js
index 440b431..be411b3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x86ae=['setMaxListeners','save','update','emit','hook','exports','events','../../mysqldb','FaxQueue'];(function(_0x461d50,_0x2adb3c){var _0x47547a=function(_0x5b4d58){while(--_0x5b4d58){_0x461d50['push'](_0x461d50['shift']());}};_0x47547a(++_0x2adb3c);}(_0x86ae,0xe7));var _0xe86a=function(_0x50d9d5,_0x363c39){_0x50d9d5=_0x50d9d5-0x0;var _0xc578db=_0x86ae[_0x50d9d5];return _0xc578db;};'use strict';var EventEmitter=require(_0xe86a('0x0'));var FaxQueue=require(_0xe86a('0x1'))['db'][_0xe86a('0x2')];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0xe86a('0x3')](0x0);var events={'afterCreate':_0xe86a('0x4'),'afterUpdate':_0xe86a('0x5'),'afterDestroy':'remove'};function emitEvent(_0x4c43cf){return function(_0x3cad83,_0x43ba80,_0x346694){FaxQueueEvents[_0xe86a('0x6')](_0x4c43cf+':'+_0x3cad83['id'],_0x3cad83);FaxQueueEvents[_0xe86a('0x6')](_0x4c43cf,_0x3cad83);_0x346694(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxQueue[_0xe86a('0x7')](e,emitEvent(event));}}module[_0xe86a('0x8')]=FaxQueueEvents;
\ No newline at end of file
+var _0x1fa8=['exports','events','../../mysqldb','update','emit'];(function(_0x2aa22d,_0x375edf){var _0x683fa5=function(_0x4b9643){while(--_0x4b9643){_0x2aa22d['push'](_0x2aa22d['shift']());}};_0x683fa5(++_0x375edf);}(_0x1fa8,0x10f));var _0x81fa=function(_0x35790b,_0x4652c3){_0x35790b=_0x35790b-0x0;var _0x1ebbf9=_0x1fa8[_0x35790b];return _0x1ebbf9;};'use strict';var EventEmitter=require(_0x81fa('0x0'));var FaxQueue=require(_0x81fa('0x1'))['db']['FaxQueue'];var FaxQueueEvents=new EventEmitter();FaxQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x81fa('0x2'),'afterDestroy':'remove'};function emitEvent(_0x33477f){return function(_0x231a12,_0x385324,_0x27d62d){FaxQueueEvents[_0x81fa('0x3')](_0x33477f+':'+_0x231a12['id'],_0x231a12);FaxQueueEvents[_0x81fa('0x3')](_0x33477f,_0x231a12);_0x27d62d(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxQueue['hook'](e,emitEvent(event));}}module[_0x81fa('0x4')]=FaxQueueEvents;
\ No newline at end of file