Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / squareProject / squareProject.model.js
index dc23dd3..dca001a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf2cd=['../../config/logger','moment','request-promise','path','rimraf','../../config/environment','./squareProject.attributes','exports','define','SquareProject','square_projects','changed','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','util'];(function(_0x4e65d6,_0x44a8cf){var _0x1c7317=function(_0x16bb2d){while(--_0x16bb2d){_0x4e65d6['push'](_0x4e65d6['shift']());}};_0x1c7317(++_0x44a8cf);}(_0xf2cd,0xd7));var _0xdf2c=function(_0x4843f9,_0x4af459){_0x4843f9=_0x4843f9-0x0;var _0x193c6a=_0xf2cd[_0x4843f9];return _0x193c6a;};'use strict';var _=require('lodash');var util=require(_0xdf2c('0x0'));var logger=require(_0xdf2c('0x1'))('api');var moment=require(_0xdf2c('0x2'));var BPromise=require('bluebird');var rp=require(_0xdf2c('0x3'));var fs=require('fs');var path=require(_0xdf2c('0x4'));var rimraf=require(_0xdf2c('0x5'));var config=require(_0xdf2c('0x6'));var attributes=require(_0xdf2c('0x7'));module[_0xdf2c('0x8')]=function(_0x3705b9,_0x576268){return _0x3705b9[_0xdf2c('0x9')](_0xdf2c('0xa'),attributes,{'tableName':_0xdf2c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x6c9782,_0x200de8,_0x522965){if(_0x6c9782[_0xdf2c('0xc')]('preproduction')){_0x6c9782[_0xdf2c('0xd')]=moment()[_0xdf2c('0xe')](_0xdf2c('0xf'));}if(_0x6c9782['changed'](_0xdf2c('0x10'))){_0x6c9782[_0xdf2c('0x11')]=moment()[_0xdf2c('0xe')](_0xdf2c('0xf'));}_0x522965(null,_0x6c9782);}}});};
\ No newline at end of file
+var _0xf4e5=['rimraf','../../config/environment','define','SquareProject','square_projects','changed','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','lodash','util','../../config/logger','api','bluebird','request-promise','path'];(function(_0x41b9df,_0x13ffa3){var _0x31c181=function(_0x5cfe7b){while(--_0x5cfe7b){_0x41b9df['push'](_0x41b9df['shift']());}};_0x31c181(++_0x13ffa3);}(_0xf4e5,0xad));var _0x5f4e=function(_0x445729,_0x5c537a){_0x445729=_0x445729-0x0;var _0x15a3d0=_0xf4e5[_0x445729];return _0x15a3d0;};'use strict';var _=require(_0x5f4e('0x0'));var util=require(_0x5f4e('0x1'));var logger=require(_0x5f4e('0x2'))(_0x5f4e('0x3'));var moment=require('moment');var BPromise=require(_0x5f4e('0x4'));var rp=require(_0x5f4e('0x5'));var fs=require('fs');var path=require(_0x5f4e('0x6'));var rimraf=require(_0x5f4e('0x7'));var config=require(_0x5f4e('0x8'));var attributes=require('./squareProject.attributes');module['exports']=function(_0x5953ce,_0x38772c){return _0x5953ce[_0x5f4e('0x9')](_0x5f4e('0xa'),attributes,{'tableName':_0x5f4e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x21a432,_0x278036,_0x138a11){if(_0x21a432[_0x5f4e('0xc')](_0x5f4e('0xd'))){_0x21a432[_0x5f4e('0xe')]=moment()[_0x5f4e('0xf')](_0x5f4e('0x10'));}if(_0x21a432[_0x5f4e('0xc')](_0x5f4e('0x11'))){_0x21a432['publishedAt']=moment()[_0x5f4e('0xf')](_0x5f4e('0x10'));}_0x138a11(null,_0x21a432);}}});};
\ No newline at end of file