Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / squareProject / squareProject.events.js
index 10234ed..162e628 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb2ae=['SquareProject','setMaxListeners','save','emit','events','../../mysqldb'];(function(_0x3fce59,_0x1f450f){var _0x55397f=function(_0x1d29ee){while(--_0x1d29ee){_0x3fce59['push'](_0x3fce59['shift']());}};_0x55397f(++_0x1f450f);}(_0xb2ae,0x15a));var _0xeb2a=function(_0x43ac05,_0x108a82){_0x43ac05=_0x43ac05-0x0;var _0x4bb858=_0xb2ae[_0x43ac05];return _0x4bb858;};'use strict';var EventEmitter=require(_0xeb2a('0x0'));var SquareProject=require(_0xeb2a('0x1'))['db'][_0xeb2a('0x2')];var SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0xeb2a('0x3')](0x0);var events={'afterCreate':_0xeb2a('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1cdd23){return function(_0xacd6a0,_0x39c664,_0x324686){SquareProjectEvents[_0xeb2a('0x5')](_0x1cdd23+':'+_0xacd6a0['id'],_0xacd6a0);SquareProjectEvents[_0xeb2a('0x5')](_0x1cdd23,_0xacd6a0);_0x324686(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];SquareProject['hook'](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