Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / smsQueue / smsQueue.events.js
index 13c67ce..9e2f01f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa186=['emit','hook','exports','../../mysqldb','SmsQueue','save','update'];(function(_0x2e37af,_0x5576ff){var _0x2e4ab9=function(_0x2a1a83){while(--_0x2a1a83){_0x2e37af['push'](_0x2e37af['shift']());}};_0x2e4ab9(++_0x5576ff);}(_0xa186,0xf1));var _0x6a18=function(_0x244ec1,_0x52ed61){_0x244ec1=_0x244ec1-0x0;var _0x40940e=_0xa186[_0x244ec1];return _0x40940e;};'use strict';var EventEmitter=require('events');var SmsQueue=require(_0x6a18('0x0'))['db'][_0x6a18('0x1')];var SmsQueueEvents=new EventEmitter();SmsQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x6a18('0x2'),'afterUpdate':_0x6a18('0x3'),'afterDestroy':'remove'};function emitEvent(_0x388d38){return function(_0x29131e,_0x196a3b,_0x3fad95){SmsQueueEvents[_0x6a18('0x4')](_0x388d38+':'+_0x29131e['id'],_0x29131e);SmsQueueEvents['emit'](_0x388d38,_0x29131e);_0x3fad95(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsQueue[_0x6a18('0x5')](e,emitEvent(event));}}module[_0x6a18('0x6')]=SmsQueueEvents;
\ No newline at end of file
+var _0xe501=['hasOwnProperty','hook','exports','../../mysqldb','setMaxListeners','update','remove'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xe501,0x1e6));var _0x1e50=function(_0x156a0d,_0x3946ce){_0x156a0d=_0x156a0d-0x0;var _0x98a9ba=_0xe501[_0x156a0d];return _0x98a9ba;};'use strict';var EventEmitter=require('events');var SmsQueue=require(_0x1e50('0x0'))['db']['SmsQueue'];var SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x1e50('0x1')](0x0);var events={'afterCreate':'save','afterUpdate':_0x1e50('0x2'),'afterDestroy':_0x1e50('0x3')};function emitEvent(_0x369ee8){return function(_0x2b0c54,_0x598477,_0x96c0a){SmsQueueEvents['emit'](_0x369ee8+':'+_0x2b0c54['id'],_0x2b0c54);SmsQueueEvents['emit'](_0x369ee8,_0x2b0c54);_0x96c0a(null);};}for(var e in events){if(events[_0x1e50('0x4')](e)){var event=events[e];SmsQueue[_0x1e50('0x5')](e,emitEvent(event));}}module[_0x1e50('0x6')]=SmsQueueEvents;
\ No newline at end of file