Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / api / squareProject / squareProject.events.js
index b4d6712..55a5d00 100644 (file)
@@ -1 +1 @@
-const a599_0x54d5=['../../mysqldb','update','exports','emit','addHook','setMaxListeners','remove','save','SquareProject'];(function(_0x2688e9,_0x54d503){const _0x41132e=function(_0x2f0611){while(--_0x2f0611){_0x2688e9['push'](_0x2688e9['shift']());}};_0x41132e(++_0x54d503);}(a599_0x54d5,0x17c));const a599_0x4113=function(_0x2688e9,_0x54d503){_0x2688e9=_0x2688e9-0x0;let _0x41132e=a599_0x54d5[_0x2688e9];return _0x41132e;};const _0x370c52=a599_0x4113;'use strict';const EventEmitter=require('events'),SquareProject=require(_0x370c52('0x7'))['db'][_0x370c52('0x6')],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x370c52('0x3')](0x0);const events={'afterCreate':_0x370c52('0x5'),'afterUpdate':_0x370c52('0x8'),'afterDestroy':_0x370c52('0x4')};function emitEvent(_0x2f0611){return function(_0x206c0b){const _0x3fea92=a599_0x4113;SquareProjectEvents[_0x3fea92('0x1')](_0x2f0611+':'+_0x206c0b['id'],_0x206c0b),SquareProjectEvents[_0x3fea92('0x1')](_0x2f0611,_0x206c0b);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SquareProject[_0x370c52('0x2')](e,emitEvent(event));}}module[_0x370c52('0x0')]=SquareProjectEvents;
\ No newline at end of file
+const a599_0x4608=['addHook','exports','emit','events','../../mysqldb','undefined','setMaxListeners','remove','update'];(function(_0x19d1c5,_0x460839){const _0x4deadd=function(_0x3607d1){while(--_0x3607d1){_0x19d1c5['push'](_0x19d1c5['shift']());}};_0x4deadd(++_0x460839);}(a599_0x4608,0x13f));const a599_0x4dea=function(_0x19d1c5,_0x460839){_0x19d1c5=_0x19d1c5-0x0;let _0x4deadd=a599_0x4608[_0x19d1c5];return _0x4deadd;};const _0x3aa334=a599_0x4dea;'use strict';const EventEmitter=require(_0x3aa334('0x8')),SquareProject=require(_0x3aa334('0x0'))['db']['SquareProject'],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x3aa334('0x2')](0x0);const events={'afterCreate':'save','afterUpdate':_0x3aa334('0x4'),'afterDestroy':_0x3aa334('0x3')};function emitEvent(_0x3607d1){return function(_0x3e0504){const _0x2c06c0=a599_0x4dea;SquareProjectEvents[_0x2c06c0('0x7')](_0x3607d1+':'+_0x3e0504['id'],_0x3e0504),SquareProjectEvents[_0x2c06c0('0x7')](_0x3607d1,_0x3e0504);};}for(const e in events){if(typeof events[e]!==_0x3aa334('0x1')){const event=events[e];SquareProject[_0x3aa334('0x5')](e,emitEvent(event));}}module[_0x3aa334('0x6')]=SquareProjectEvents;
\ No newline at end of file