Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / squareProject / squareProject.events.js
index 330d8a6..162e628 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xec8b=['../../mysqldb','setMaxListeners','save','remove','hook','events'];(function(_0x2b0f81,_0x3917f0){var _0x5ce74c=function(_0x12dc0d){while(--_0x12dc0d){_0x2b0f81['push'](_0x2b0f81['shift']());}};_0x5ce74c(++_0x3917f0);}(_0xec8b,0x15b));var _0xbec8=function(_0x550d12,_0x5384bd){_0x550d12=_0x550d12-0x0;var _0x12103d=_0xec8b[_0x550d12];return _0x12103d;};'use strict';var EventEmitter=require(_0xbec8('0x0'));var SquareProject=require(_0xbec8('0x1'))['db']['SquareProject'];var SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0xbec8('0x2')](0x0);var events={'afterCreate':_0xbec8('0x3'),'afterUpdate':'update','afterDestroy':_0xbec8('0x4')};function emitEvent(_0x28f853){return function(_0x503abc,_0x578868,_0x232387){SquareProjectEvents['emit'](_0x28f853+':'+_0x503abc['id'],_0x503abc);SquareProjectEvents['emit'](_0x28f853,_0x503abc);_0x232387(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SquareProject[_0xbec8('0x5')](e,emitEvent(event));}}module['exports']=SquareProjectEvents;
\ No newline at end of file
+var _0x3b84=['setMaxListeners','emit','hasOwnProperty','hook','events','SquareProject'];(function(_0x451ee7,_0x45c553){var _0x123ee7=function(_0x3c57d3){while(--_0x3c57d3){_0x451ee7['push'](_0x451ee7['shift']());}};_0x123ee7(++_0x45c553);}(_0x3b84,0x130));var _0x43b8=function(_0xf7344,_0x2e82b){_0xf7344=_0xf7344-0x0;var _0x330729=_0x3b84[_0xf7344];return _0x330729;};'use strict';var EventEmitter=require(_0x43b8('0x0'));var SquareProject=require('../../mysqldb')['db'][_0x43b8('0x1')];var SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x43b8('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x402b07){return function(_0x2c7466,_0x4ec7e3,_0x4b70e2){SquareProjectEvents[_0x43b8('0x3')](_0x402b07+':'+_0x2c7466['id'],_0x2c7466);SquareProjectEvents[_0x43b8('0x3')](_0x402b07,_0x2c7466);_0x4b70e2(null);};}for(var e in events){if(events[_0x43b8('0x4')](e)){var event=events[e];SquareProject[_0x43b8('0x5')](e,emitEvent(event));}}module['exports']=SquareProjectEvents;
\ No newline at end of file