X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FsquareProject%2FsquareProject.model.js;h=408f47c90246fe401eb5c98c2d28c3456d01ff09;hb=868a31873a4f5d6a45b7a9cfef882f2e311d37fa;hp=41fac349bc88acf60ca0eab09113382d63ea5438;hpb=08f6e0b86d261e0f7c3417afd107d7f774257198;p=motion2.git diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index 41fac34..408f47c 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x4c73=['./squareProject.attributes','exports','SquareProject','square_projects','lodash','../../config/logger','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x58e4b5,_0x3f7e2b){var _0x359ee0=function(_0x1610ea){while(--_0x1610ea){_0x58e4b5['push'](_0x58e4b5['shift']());}};_0x359ee0(++_0x3f7e2b);}(_0x4c73,0xe0));var _0x34c7=function(_0x1ddafa,_0x186d89){_0x1ddafa=_0x1ddafa-0x0;var _0x3ede07=_0x4c73[_0x1ddafa];return _0x3ede07;};'use strict';var _=require(_0x34c7('0x0'));var util=require('util');var logger=require(_0x34c7('0x1'))('api');var moment=require(_0x34c7('0x2'));var BPromise=require(_0x34c7('0x3'));var rp=require(_0x34c7('0x4'));var fs=require('fs');var path=require(_0x34c7('0x5'));var rimraf=require('rimraf');var config=require(_0x34c7('0x6'));var attributes=require(_0x34c7('0x7'));module[_0x34c7('0x8')]=function(_0x701f7b,_0x40e02b){return _0x701f7b['define'](_0x34c7('0x9'),attributes,{'tableName':_0x34c7('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});}; \ No newline at end of file +var _0xaf93=['production','lodash','util','moment','bluebird','path','rimraf','../../config/environment','./squareProject.attributes','exports','SquareProject','changed','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x29ae80,_0x3579f1){var _0x5d6d71=function(_0xfaffe2){while(--_0xfaffe2){_0x29ae80['push'](_0x29ae80['shift']());}};_0x5d6d71(++_0x3579f1);}(_0xaf93,0x151));var _0x3af9=function(_0x5394bb,_0x3727d2){_0x5394bb=_0x5394bb-0x0;var _0x501ffa=_0xaf93[_0x5394bb];return _0x501ffa;};'use strict';var _=require(_0x3af9('0x0'));var util=require(_0x3af9('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x3af9('0x2'));var BPromise=require(_0x3af9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3af9('0x4'));var rimraf=require(_0x3af9('0x5'));var config=require(_0x3af9('0x6'));var attributes=require(_0x3af9('0x7'));module[_0x3af9('0x8')]=function(_0x1ad446,_0x333abb){return _0x1ad446['define'](_0x3af9('0x9'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x133672,_0x53b5ba,_0x5325b1){if(_0x133672[_0x3af9('0xa')]('preproduction')){_0x133672['savedAt']=moment()[_0x3af9('0xb')](_0x3af9('0xc'));}if(_0x133672[_0x3af9('0xa')](_0x3af9('0xd'))){_0x133672['publishedAt']=moment()[_0x3af9('0xb')](_0x3af9('0xc'));}_0x5325b1(null,_0x133672);}}});}; \ No newline at end of file