Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / squareProject / squareProject.model.js
index dc23dd3..c468189 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 _0xbf2c=['./squareProject.attributes','exports','square_projects','changed','preproduction','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','lodash','util','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x266e80,_0xc5183a){var _0x26cbaa=function(_0x59c43a){while(--_0x59c43a){_0x266e80['push'](_0x266e80['shift']());}};_0x26cbaa(++_0xc5183a);}(_0xbf2c,0x1d4));var _0xcbf2=function(_0x34bf69,_0x46a0e6){_0x34bf69=_0x34bf69-0x0;var _0x216a60=_0xbf2c[_0x34bf69];return _0x216a60;};'use strict';var _=require(_0xcbf2('0x0'));var util=require(_0xcbf2('0x1'));var logger=require('../../config/logger')(_0xcbf2('0x2'));var moment=require(_0xcbf2('0x3'));var BPromise=require(_0xcbf2('0x4'));var rp=require(_0xcbf2('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcbf2('0x6'));var config=require(_0xcbf2('0x7'));var attributes=require(_0xcbf2('0x8'));module[_0xcbf2('0x9')]=function(_0x11f5b8,_0x2b561f){return _0x11f5b8['define']('SquareProject',attributes,{'tableName':_0xcbf2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x48658c,_0x2ac371,_0x233693){if(_0x48658c[_0xcbf2('0xb')](_0xcbf2('0xc'))){_0x48658c['savedAt']=moment()[_0xcbf2('0xd')](_0xcbf2('0xe'));}if(_0x48658c['changed'](_0xcbf2('0xf'))){_0x48658c[_0xcbf2('0x10')]=moment()[_0xcbf2('0xd')](_0xcbf2('0xe'));}_0x233693(null,_0x48658c);}}});};
\ No newline at end of file