Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / smsQueue / smsQueue.events.js
index e78f0df..04bf3e6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x138a=['emit','hasOwnProperty','hook','exports','events','SmsQueue','setMaxListeners','save','remove'];(function(_0x2caa80,_0x4d2a9){var _0x5acb63=function(_0x3fe9c5){while(--_0x3fe9c5){_0x2caa80['push'](_0x2caa80['shift']());}};_0x5acb63(++_0x4d2a9);}(_0x138a,0xb8));var _0xa138=function(_0x52f139,_0x51c99b){_0x52f139=_0x52f139-0x0;var _0x34b6a6=_0x138a[_0x52f139];return _0x34b6a6;};'use strict';var EventEmitter=require(_0xa138('0x0'));var SmsQueue=require('../../mysqldb')['db'][_0xa138('0x1')];var SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0xa138('0x2')](0x0);var events={'afterCreate':_0xa138('0x3'),'afterUpdate':'update','afterDestroy':_0xa138('0x4')};function emitEvent(_0x537c5a){return function(_0x1647aa,_0x4ecd70,_0x2ff2b4){SmsQueueEvents[_0xa138('0x5')](_0x537c5a+':'+_0x1647aa['id'],_0x1647aa);SmsQueueEvents[_0xa138('0x5')](_0x537c5a,_0x1647aa);_0x2ff2b4(null);};}for(var e in events){if(events[_0xa138('0x6')](e)){var event=events[e];SmsQueue[_0xa138('0x7')](e,emitEvent(event));}}module[_0xa138('0x8')]=SmsQueueEvents;
\ No newline at end of file
+var _0x66d6=['emit','hasOwnProperty','exports','events','../../mysqldb','SmsQueue','setMaxListeners','save','update','remove'];(function(_0x28813d,_0x2f3eb3){var _0x3869d1=function(_0x302fc2){while(--_0x302fc2){_0x28813d['push'](_0x28813d['shift']());}};_0x3869d1(++_0x2f3eb3);}(_0x66d6,0x67));var _0x666d=function(_0x3c2576,_0x10994b){_0x3c2576=_0x3c2576-0x0;var _0x3435d0=_0x66d6[_0x3c2576];return _0x3435d0;};'use strict';var EventEmitter=require(_0x666d('0x0'));var SmsQueue=require(_0x666d('0x1'))['db'][_0x666d('0x2')];var SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x666d('0x3')](0x0);var events={'afterCreate':_0x666d('0x4'),'afterUpdate':_0x666d('0x5'),'afterDestroy':_0x666d('0x6')};function emitEvent(_0xe2b2e3){return function(_0x453ace,_0x213404,_0x466cae){SmsQueueEvents[_0x666d('0x7')](_0xe2b2e3+':'+_0x453ace['id'],_0x453ace);SmsQueueEvents[_0x666d('0x7')](_0xe2b2e3,_0x453ace);_0x466cae(null);};}for(var e in events){if(events[_0x666d('0x8')](e)){var event=events[e];SmsQueue['hook'](e,emitEvent(event));}}module[_0x666d('0x9')]=SmsQueueEvents;
\ No newline at end of file