Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / smsQueue / smsQueue.events.js
index 075c82d..4103742 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1133=['hook','exports','events','../../mysqldb','SmsQueue','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x322e98,_0x456764){var _0x3c449b=function(_0x577b99){while(--_0x577b99){_0x322e98['push'](_0x322e98['shift']());}};_0x3c449b(++_0x456764);}(_0x1133,0xf2));var _0x3113=function(_0x5eef26,_0x50c4f5){_0x5eef26=_0x5eef26-0x0;var _0x258313=_0x1133[_0x5eef26];return _0x258313;};'use strict';var EventEmitter=require(_0x3113('0x0'));var SmsQueue=require(_0x3113('0x1'))['db'][_0x3113('0x2')];var SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x3113('0x3')](0x0);var events={'afterCreate':_0x3113('0x4'),'afterUpdate':_0x3113('0x5'),'afterDestroy':'remove'};function emitEvent(_0x1d78bc){return function(_0x3fc993,_0x8af8,_0x1816e6){SmsQueueEvents[_0x3113('0x6')](_0x1d78bc+':'+_0x3fc993['id'],_0x3fc993);SmsQueueEvents[_0x3113('0x6')](_0x1d78bc,_0x3fc993);_0x1816e6(null);};}for(var e in events){if(events[_0x3113('0x7')](e)){var event=events[e];SmsQueue[_0x3113('0x8')](e,emitEvent(event));}}module[_0x3113('0x9')]=SmsQueueEvents;
\ No newline at end of file
+var _0xe30e=['../../mysqldb','setMaxListeners','update','remove','emit','hasOwnProperty','hook','exports','events'];(function(_0x1f4acf,_0x4ea06c){var _0x25ea54=function(_0x5b2c90){while(--_0x5b2c90){_0x1f4acf['push'](_0x1f4acf['shift']());}};_0x25ea54(++_0x4ea06c);}(_0xe30e,0x179));var _0xee30=function(_0x3c66e5,_0xab5ea3){_0x3c66e5=_0x3c66e5-0x0;var _0x678a=_0xe30e[_0x3c66e5];return _0x678a;};'use strict';var EventEmitter=require(_0xee30('0x0'));var SmsQueue=require(_0xee30('0x1'))['db']['SmsQueue'];var SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0xee30('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0xee30('0x3'),'afterDestroy':_0xee30('0x4')};function emitEvent(_0x5500dd){return function(_0x230253,_0x21a652,_0x4c2885){SmsQueueEvents[_0xee30('0x5')](_0x5500dd+':'+_0x230253['id'],_0x230253);SmsQueueEvents[_0xee30('0x5')](_0x5500dd,_0x230253);_0x4c2885(null);};}for(var e in events){if(events[_0xee30('0x6')](e)){var event=events[e];SmsQueue[_0xee30('0x7')](e,emitEvent(event));}}module[_0xee30('0x8')]=SmsQueueEvents;
\ No newline at end of file