Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / squareProject / squareProject.model.js
index 998d89b..b6fcd33 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x63b6=['square_projects','changed','preproduction','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','lodash','util','../../config/logger','moment','request-promise','rimraf','../../config/environment','./squareProject.attributes','define'];(function(_0x1f8675,_0x272ee8){var _0x2d384e=function(_0x4d9185){while(--_0x4d9185){_0x1f8675['push'](_0x1f8675['shift']());}};_0x2d384e(++_0x272ee8);}(_0x63b6,0x127));var _0x663b=function(_0x31374c,_0x3ffe47){_0x31374c=_0x31374c-0x0;var _0x2156cc=_0x63b6[_0x31374c];return _0x2156cc;};'use strict';var _=require(_0x663b('0x0'));var util=require(_0x663b('0x1'));var logger=require(_0x663b('0x2'))('api');var moment=require(_0x663b('0x3'));var BPromise=require('bluebird');var rp=require(_0x663b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x663b('0x5'));var config=require(_0x663b('0x6'));var attributes=require(_0x663b('0x7'));module['exports']=function(_0x4486b1,_0x57e43e){return _0x4486b1[_0x663b('0x8')]('SquareProject',attributes,{'tableName':_0x663b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x2976ff,_0xf8f3ff,_0x3ed933){if(_0x2976ff[_0x663b('0xa')](_0x663b('0xb'))){_0x2976ff['savedAt']=moment()[_0x663b('0xc')](_0x663b('0xd'));}if(_0x2976ff[_0x663b('0xa')](_0x663b('0xe'))){_0x2976ff[_0x663b('0xf')]=moment()[_0x663b('0xc')](_0x663b('0xd'));}_0x3ed933(null,_0x2976ff);}}});};
\ No newline at end of file
+var _0xf7d0=['lodash','moment','request-promise','path','../../config/environment','./squareProject.attributes','define','SquareProject','square_projects','changed','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt'];(function(_0x2673c1,_0x489c00){var _0x46bde=function(_0x3c7b08){while(--_0x3c7b08){_0x2673c1['push'](_0x2673c1['shift']());}};_0x46bde(++_0x489c00);}(_0xf7d0,0x177));var _0x0f7d=function(_0xf6e75d,_0xc70967){_0xf6e75d=_0xf6e75d-0x0;var _0x27514d=_0xf7d0[_0xf6e75d];return _0x27514d;};'use strict';var _=require(_0x0f7d('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x0f7d('0x1'));var BPromise=require('bluebird');var rp=require(_0x0f7d('0x2'));var fs=require('fs');var path=require(_0x0f7d('0x3'));var rimraf=require('rimraf');var config=require(_0x0f7d('0x4'));var attributes=require(_0x0f7d('0x5'));module['exports']=function(_0x13b009,_0x1fa158){return _0x13b009[_0x0f7d('0x6')](_0x0f7d('0x7'),attributes,{'tableName':_0x0f7d('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x11d898,_0x48e438,_0x56f0c3){if(_0x11d898[_0x0f7d('0x9')]('preproduction')){_0x11d898[_0x0f7d('0xa')]=moment()[_0x0f7d('0xb')](_0x0f7d('0xc'));}if(_0x11d898[_0x0f7d('0x9')](_0x0f7d('0xd'))){_0x11d898[_0x0f7d('0xe')]=moment()[_0x0f7d('0xb')](_0x0f7d('0xc'));}_0x56f0c3(null,_0x11d898);}}});};
\ No newline at end of file