Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / squareProject / squareProject.model.js
index bfab681..9361a2b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xee69=['request-promise','path','../../config/environment','./squareProject.attributes','define','square_projects','lodash','util','../../config/logger','moment'];(function(_0x15d19a,_0x4d6dfe){var _0x1bb9d5=function(_0x5a3a3c){while(--_0x5a3a3c){_0x15d19a['push'](_0x15d19a['shift']());}};_0x1bb9d5(++_0x4d6dfe);}(_0xee69,0x1f0));var _0x9ee6=function(_0x32db46,_0x329a3b){_0x32db46=_0x32db46-0x0;var _0x194438=_0xee69[_0x32db46];return _0x194438;};'use strict';var _=require(_0x9ee6('0x0'));var util=require(_0x9ee6('0x1'));var logger=require(_0x9ee6('0x2'))('api');var moment=require(_0x9ee6('0x3'));var BPromise=require('bluebird');var rp=require(_0x9ee6('0x4'));var fs=require('fs');var path=require(_0x9ee6('0x5'));var rimraf=require('rimraf');var config=require(_0x9ee6('0x6'));var attributes=require(_0x9ee6('0x7'));module['exports']=function(_0x5898a2,_0x317c87){return _0x5898a2[_0x9ee6('0x8')]('SquareProject',attributes,{'tableName':_0x9ee6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xeebc=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./squareProject.attributes','exports','define','SquareProject','square_projects','changed','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt'];(function(_0x558e45,_0x4f5e4f){var _0x3e9075=function(_0x289725){while(--_0x289725){_0x558e45['push'](_0x558e45['shift']());}};_0x3e9075(++_0x4f5e4f);}(_0xeebc,0xd2));var _0xceeb=function(_0x212b85,_0x1dddc5){_0x212b85=_0x212b85-0x0;var _0x1e8ac3=_0xeebc[_0x212b85];return _0x1e8ac3;};'use strict';var _=require(_0xceeb('0x0'));var util=require(_0xceeb('0x1'));var logger=require(_0xceeb('0x2'))(_0xceeb('0x3'));var moment=require(_0xceeb('0x4'));var BPromise=require(_0xceeb('0x5'));var rp=require(_0xceeb('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xceeb('0x7'));var config=require(_0xceeb('0x8'));var attributes=require(_0xceeb('0x9'));module[_0xceeb('0xa')]=function(_0x3bcaa4,_0x1a76de){return _0x3bcaa4[_0xceeb('0xb')](_0xceeb('0xc'),attributes,{'tableName':_0xceeb('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xbd338a,_0x2ee284,_0x8544a9){if(_0xbd338a[_0xceeb('0xe')](_0xceeb('0xf'))){_0xbd338a[_0xceeb('0x10')]=moment()[_0xceeb('0x11')](_0xceeb('0x12'));}if(_0xbd338a[_0xceeb('0xe')](_0xceeb('0x13'))){_0xbd338a[_0xceeb('0x14')]=moment()[_0xceeb('0x11')](_0xceeb('0x12'));}_0x8544a9(null,_0xbd338a);}}});};
\ No newline at end of file