Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / chatQueue / chatQueue.events.js
index aceed5c..037b5ef 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3e6d=['remove','emit','hasOwnProperty','hook','exports','../../mysqldb','ChatQueue','setMaxListeners','save'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x3e6d,0x15b));var _0xd3e6=function(_0x32e73c,_0x24c424){_0x32e73c=_0x32e73c-0x0;var _0x215cda=_0x3e6d[_0x32e73c];return _0x215cda;};'use strict';var EventEmitter=require('events');var ChatQueue=require(_0xd3e6('0x0'))['db'][_0xd3e6('0x1')];var ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0xd3e6('0x2')](0x0);var events={'afterCreate':_0xd3e6('0x3'),'afterUpdate':'update','afterDestroy':_0xd3e6('0x4')};function emitEvent(_0x21d633){return function(_0x3441b2,_0x15898e,_0x1768df){ChatQueueEvents[_0xd3e6('0x5')](_0x21d633+':'+_0x3441b2['id'],_0x3441b2);ChatQueueEvents[_0xd3e6('0x5')](_0x21d633,_0x3441b2);_0x1768df(null);};}for(var e in events){if(events[_0xd3e6('0x6')](e)){var event=events[e];ChatQueue[_0xd3e6('0x7')](e,emitEvent(event));}}module[_0xd3e6('0x8')]=ChatQueueEvents;
\ No newline at end of file
+var _0xb0c3=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatQueue','setMaxListeners','save','update'];(function(_0x2a40ce,_0x1cebaa){var _0x134442=function(_0x43c8ab){while(--_0x43c8ab){_0x2a40ce['push'](_0x2a40ce['shift']());}};_0x134442(++_0x1cebaa);}(_0xb0c3,0x12e));var _0x3b0c=function(_0x44148f,_0x1d1769){_0x44148f=_0x44148f-0x0;var _0x28eef3=_0xb0c3[_0x44148f];return _0x28eef3;};'use strict';var EventEmitter=require(_0x3b0c('0x0'));var ChatQueue=require(_0x3b0c('0x1'))['db'][_0x3b0c('0x2')];var ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x3b0c('0x3')](0x0);var events={'afterCreate':_0x3b0c('0x4'),'afterUpdate':_0x3b0c('0x5'),'afterDestroy':_0x3b0c('0x6')};function emitEvent(_0x4ef5c3){return function(_0x1d4b43,_0x4d1866,_0x212503){ChatQueueEvents[_0x3b0c('0x7')](_0x4ef5c3+':'+_0x1d4b43['id'],_0x1d4b43);ChatQueueEvents[_0x3b0c('0x7')](_0x4ef5c3,_0x1d4b43);_0x212503(null);};}for(var e in events){if(events[_0x3b0c('0x8')](e)){var event=events[e];ChatQueue[_0x3b0c('0x9')](e,emitEvent(event));}}module[_0x3b0c('0xa')]=ChatQueueEvents;
\ No newline at end of file