Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / squareProject / squareProject.model.js
index bfab681..00bd348 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 _0xb5b1=['preproduction','format','YYYY-MM-DD\x20HH:mm:ss','changed','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','exports','define','SquareProject','square_projects'];(function(_0x156489,_0x2bbaf2){var _0x4d2814=function(_0x405381){while(--_0x405381){_0x156489['push'](_0x156489['shift']());}};_0x4d2814(++_0x2bbaf2);}(_0xb5b1,0x7c));var _0x1b5b=function(_0x7634c1,_0x520e9e){_0x7634c1=_0x7634c1-0x0;var _0x228414=_0xb5b1[_0x7634c1];return _0x228414;};'use strict';var _=require('lodash');var util=require(_0x1b5b('0x0'));var logger=require(_0x1b5b('0x1'))(_0x1b5b('0x2'));var moment=require(_0x1b5b('0x3'));var BPromise=require('bluebird');var rp=require(_0x1b5b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1b5b('0x5'));var config=require(_0x1b5b('0x6'));var attributes=require('./squareProject.attributes');module[_0x1b5b('0x7')]=function(_0x21c0fc,_0x5a9ac7){return _0x21c0fc[_0x1b5b('0x8')](_0x1b5b('0x9'),attributes,{'tableName':_0x1b5b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x373381,_0x29b1e9,_0x1ac0fe){if(_0x373381['changed'](_0x1b5b('0xb'))){_0x373381['savedAt']=moment()[_0x1b5b('0xc')](_0x1b5b('0xd'));}if(_0x373381[_0x1b5b('0xe')]('production')){_0x373381['publishedAt']=moment()[_0x1b5b('0xc')](_0x1b5b('0xd'));}_0x1ac0fe(null,_0x373381);}}});};
\ No newline at end of file