Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / squareProject / squareProject.events.js
index 41ce84d..0362317 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe035=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','SquareProject','update'];(function(_0x472837,_0x542aa2){var _0x170d2a=function(_0x478aab){while(--_0x478aab){_0x472837['push'](_0x472837['shift']());}};_0x170d2a(++_0x542aa2);}(_0xe035,0x1eb));var _0x5e03=function(_0x55a4e1,_0x117cb2){_0x55a4e1=_0x55a4e1-0x0;var _0x30b35a=_0xe035[_0x55a4e1];return _0x30b35a;};'use strict';var EventEmitter=require(_0x5e03('0x0'));var SquareProject=require(_0x5e03('0x1'))['db'][_0x5e03('0x2')];var SquareProjectEvents=new EventEmitter();SquareProjectEvents['setMaxListeners'](0x0);var events={'afterCreate':'save','afterUpdate':_0x5e03('0x3'),'afterDestroy':_0x5e03('0x4')};function emitEvent(_0x18de06){return function(_0x24f1d7,_0x41a5d4,_0x145c24){SquareProjectEvents[_0x5e03('0x5')](_0x18de06+':'+_0x24f1d7['id'],_0x24f1d7);SquareProjectEvents[_0x5e03('0x5')](_0x18de06,_0x24f1d7);_0x145c24(null);};}for(var e in events){if(events[_0x5e03('0x6')](e)){var event=events[e];SquareProject[_0x5e03('0x7')](e,emitEvent(event));}}module[_0x5e03('0x8')]=SquareProjectEvents;
\ No newline at end of file
+var _0x68ab=['update','remove','emit','hook','exports','events','SquareProject','setMaxListeners','save'];(function(_0x4565eb,_0x167f79){var _0x67832=function(_0x5322ff){while(--_0x5322ff){_0x4565eb['push'](_0x4565eb['shift']());}};_0x67832(++_0x167f79);}(_0x68ab,0xa7));var _0xb68a=function(_0xa31086,_0xdc718a){_0xa31086=_0xa31086-0x0;var _0x732df0=_0x68ab[_0xa31086];return _0x732df0;};'use strict';var EventEmitter=require(_0xb68a('0x0'));var SquareProject=require('../../mysqldb')['db'][_0xb68a('0x1')];var SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0xb68a('0x2')](0x0);var events={'afterCreate':_0xb68a('0x3'),'afterUpdate':_0xb68a('0x4'),'afterDestroy':_0xb68a('0x5')};function emitEvent(_0xc02683){return function(_0x45bbb4,_0x51f26b,_0x3b20c1){SquareProjectEvents[_0xb68a('0x6')](_0xc02683+':'+_0x45bbb4['id'],_0x45bbb4);SquareProjectEvents[_0xb68a('0x6')](_0xc02683,_0x45bbb4);_0x3b20c1(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SquareProject[_0xb68a('0x7')](e,emitEvent(event));}}module[_0xb68a('0x8')]=SquareProjectEvents;
\ No newline at end of file