Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / smsQueue / smsQueue.events.js
index 66cf65f..435cf64 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xab44=['../../mysqldb','save','update','remove','hook','exports','events'];(function(_0x3b2a21,_0x28df4f){var _0x450202=function(_0x2e0cfc){while(--_0x2e0cfc){_0x3b2a21['push'](_0x3b2a21['shift']());}};_0x450202(++_0x28df4f);}(_0xab44,0x1aa));var _0x4ab4=function(_0x708dfd,_0x119c1e){_0x708dfd=_0x708dfd-0x0;var _0xa78a78=_0xab44[_0x708dfd];return _0xa78a78;};'use strict';var EventEmitter=require(_0x4ab4('0x0'));var SmsQueue=require(_0x4ab4('0x1'))['db']['SmsQueue'];var SmsQueueEvents=new EventEmitter();SmsQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x4ab4('0x2'),'afterUpdate':_0x4ab4('0x3'),'afterDestroy':_0x4ab4('0x4')};function emitEvent(_0x2b144b){return function(_0x315467,_0x16515,_0xe1ccdd){SmsQueueEvents['emit'](_0x2b144b+':'+_0x315467['id'],_0x315467);SmsQueueEvents['emit'](_0x2b144b,_0x315467);_0xe1ccdd(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SmsQueue[_0x4ab4('0x5')](e,emitEvent(event));}}module[_0x4ab4('0x6')]=SmsQueueEvents;
\ No newline at end of file
+var _0x5397=['exports','../../mysqldb','SmsQueue','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook'];(function(_0x5d04e4,_0x3aabdf){var _0x2140a1=function(_0x2d78e3){while(--_0x2d78e3){_0x5d04e4['push'](_0x5d04e4['shift']());}};_0x2140a1(++_0x3aabdf);}(_0x5397,0x105));var _0x7539=function(_0x2dc920,_0x5a76ac){_0x2dc920=_0x2dc920-0x0;var _0x35f176=_0x5397[_0x2dc920];return _0x35f176;};'use strict';var EventEmitter=require('events');var SmsQueue=require(_0x7539('0x0'))['db'][_0x7539('0x1')];var SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x7539('0x2')](0x0);var events={'afterCreate':_0x7539('0x3'),'afterUpdate':_0x7539('0x4'),'afterDestroy':_0x7539('0x5')};function emitEvent(_0x10983a){return function(_0x218a3a,_0x394310,_0x5b6181){SmsQueueEvents[_0x7539('0x6')](_0x10983a+':'+_0x218a3a['id'],_0x218a3a);SmsQueueEvents[_0x7539('0x6')](_0x10983a,_0x218a3a);_0x5b6181(null);};}for(var e in events){if(events[_0x7539('0x7')](e)){var event=events[e];SmsQueue[_0x7539('0x8')](e,emitEvent(event));}}module[_0x7539('0x9')]=SmsQueueEvents;
\ No newline at end of file