Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / squareProject / squareProject.events.js
index a8be83a..0362317 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x37f5=['emit','hasOwnProperty','exports','../../mysqldb','setMaxListeners','save','update','remove'];(function(_0x2dd849,_0x3bd1bf){var _0x38ba4e=function(_0xd89ddc){while(--_0xd89ddc){_0x2dd849['push'](_0x2dd849['shift']());}};_0x38ba4e(++_0x3bd1bf);}(_0x37f5,0x7b));var _0x537f=function(_0x39d0ff,_0x1f59e3){_0x39d0ff=_0x39d0ff-0x0;var _0x29d57c=_0x37f5[_0x39d0ff];return _0x29d57c;};'use strict';var EventEmitter=require('events');var SquareProject=require(_0x537f('0x0'))['db']['SquareProject'];var SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x537f('0x1')](0x0);var events={'afterCreate':_0x537f('0x2'),'afterUpdate':_0x537f('0x3'),'afterDestroy':_0x537f('0x4')};function emitEvent(_0x762044){return function(_0x4f2430,_0x576cb0,_0x2c8778){SquareProjectEvents[_0x537f('0x5')](_0x762044+':'+_0x4f2430['id'],_0x4f2430);SquareProjectEvents[_0x537f('0x5')](_0x762044,_0x4f2430);_0x2c8778(null);};}for(var e in events){if(events[_0x537f('0x6')](e)){var event=events[e];SquareProject['hook'](e,emitEvent(event));}}module[_0x537f('0x7')]=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