Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / squareProject / squareProject.events.js
index 4dda4ff..0362317 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x010a=['events','../../mysqldb','SquareProject','setMaxListeners','save','update','remove','emit','hasOwnProperty','hook'];(function(_0x2279fd,_0x555b21){var _0x5f53ae=function(_0x4614b8){while(--_0x4614b8){_0x2279fd['push'](_0x2279fd['shift']());}};_0x5f53ae(++_0x555b21);}(_0x010a,0x136));var _0xa010=function(_0x49a134,_0x1bc32f){_0x49a134=_0x49a134-0x0;var _0x4eb02c=_0x010a[_0x49a134];return _0x4eb02c;};'use strict';var EventEmitter=require(_0xa010('0x0'));var SquareProject=require(_0xa010('0x1'))['db'][_0xa010('0x2')];var SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0xa010('0x3')](0x0);var events={'afterCreate':_0xa010('0x4'),'afterUpdate':_0xa010('0x5'),'afterDestroy':_0xa010('0x6')};function emitEvent(_0x4e37dc){return function(_0xc13472,_0x1039c3,_0x4be918){SquareProjectEvents[_0xa010('0x7')](_0x4e37dc+':'+_0xc13472['id'],_0xc13472);SquareProjectEvents[_0xa010('0x7')](_0x4e37dc,_0xc13472);_0x4be918(null);};}for(var e in events){if(events[_0xa010('0x8')](e)){var event=events[e];SquareProject[_0xa010('0x9')](e,emitEvent(event));}}module['exports']=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