Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / faxQueue / faxQueue.events.js
index 797b128..a72edb9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8cae=['../../mysqldb','setMaxListeners','save','update','remove','emit','hook','exports'];(function(_0x574bff,_0x1b2814){var _0x3523f9=function(_0x1b2e2e){while(--_0x1b2e2e){_0x574bff['push'](_0x574bff['shift']());}};_0x3523f9(++_0x1b2814);}(_0x8cae,0x80));var _0xe8ca=function(_0x31251e,_0x37279d){_0x31251e=_0x31251e-0x0;var _0x56df05=_0x8cae[_0x31251e];return _0x56df05;};'use strict';var EventEmitter=require('events');var FaxQueue=require(_0xe8ca('0x0'))['db']['FaxQueue'];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0xe8ca('0x1')](0x0);var events={'afterCreate':_0xe8ca('0x2'),'afterUpdate':_0xe8ca('0x3'),'afterDestroy':_0xe8ca('0x4')};function emitEvent(_0x1183e2){return function(_0x40a7ea,_0x3d3365,_0x31ecf8){FaxQueueEvents['emit'](_0x1183e2+':'+_0x40a7ea['id'],_0x40a7ea);FaxQueueEvents[_0xe8ca('0x5')](_0x1183e2,_0x40a7ea);_0x31ecf8(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];FaxQueue[_0xe8ca('0x6')](e,emitEvent(event));}}module[_0xe8ca('0x7')]=FaxQueueEvents;
\ No newline at end of file
+var _0x06d1=['exports','events','setMaxListeners','save','update','remove','emit','hasOwnProperty'];(function(_0x28509b,_0x5831ff){var _0x1e0b6=function(_0x37d8a2){while(--_0x37d8a2){_0x28509b['push'](_0x28509b['shift']());}};_0x1e0b6(++_0x5831ff);}(_0x06d1,0x161));var _0x106d=function(_0x334841,_0x2bbc4c){_0x334841=_0x334841-0x0;var _0x5beb4b=_0x06d1[_0x334841];return _0x5beb4b;};'use strict';var EventEmitter=require(_0x106d('0x0'));var FaxQueue=require('../../mysqldb')['db']['FaxQueue'];var FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x106d('0x1')](0x0);var events={'afterCreate':_0x106d('0x2'),'afterUpdate':_0x106d('0x3'),'afterDestroy':_0x106d('0x4')};function emitEvent(_0xf5192d){return function(_0x4d432e,_0x47083d,_0x2baea4){FaxQueueEvents[_0x106d('0x5')](_0xf5192d+':'+_0x4d432e['id'],_0x4d432e);FaxQueueEvents[_0x106d('0x5')](_0xf5192d,_0x4d432e);_0x2baea4(null);};}for(var e in events){if(events[_0x106d('0x6')](e)){var event=events[e];FaxQueue['hook'](e,emitEvent(event));}}module[_0x106d('0x7')]=FaxQueueEvents;
\ No newline at end of file