X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FsquareProject%2FsquareProject.model.js;h=f4fff8d95162b0851a3e63189cbfce8b39e1af7d;hb=795c8454f12f8a41fb2cd31a1270c087e5e59e94;hp=eb07474a5f957cf474b3c7050ca557671e413bbe;hpb=1a8d267e76bee6a69bd79c66b9e5eb5d9e44c796;p=motion2.git diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index eb07474..f4fff8d 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 _0xfaa9=['publishedAt','format','YYYY-MM-DD\x20HH:mm:ss','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','define','SquareProject','square_projects','changed','preproduction','savedAt'];(function(_0x593a74,_0x2f99e4){var _0x42bdcc=function(_0x2a1a90){while(--_0x2a1a90){_0x593a74['push'](_0x593a74['shift']());}};_0x42bdcc(++_0x2f99e4);}(_0xfaa9,0xdb));var _0x9faa=function(_0x48ebb6,_0xfaa9c){_0x48ebb6=_0x48ebb6-0x0;var _0x1b1ed4=_0xfaa9[_0x48ebb6];return _0x1b1ed4;};'use strict';var _=require(_0x9faa('0x0'));var util=require(_0x9faa('0x1'));var logger=require(_0x9faa('0x2'))(_0x9faa('0x3'));var moment=require(_0x9faa('0x4'));var BPromise=require(_0x9faa('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9faa('0x6'));var rimraf=require(_0x9faa('0x7'));var config=require(_0x9faa('0x8'));var attributes=require('./squareProject.attributes');module['exports']=function(_0x234729,_0x4237b8){return _0x234729[_0x9faa('0x9')](_0x9faa('0xa'),attributes,{'tableName':_0x9faa('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x22fa5e,_0x1fc191,_0x481f2d){if(_0x22fa5e[_0x9faa('0xc')](_0x9faa('0xd'))){_0x22fa5e[_0x9faa('0xe')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');}if(_0x22fa5e['changed']('production')){_0x22fa5e[_0x9faa('0xf')]=moment()[_0x9faa('0x10')](_0x9faa('0x11'));}_0x481f2d(null,_0x22fa5e);}}});}; \ No newline at end of file +var _0x1c03=['../../config/environment','./squareProject.attributes','exports','define','SquareProject','changed','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf'];(function(_0xe2bb9e,_0x2629a9){var _0x43ba10=function(_0x21a370){while(--_0x21a370){_0xe2bb9e['push'](_0xe2bb9e['shift']());}};_0x43ba10(++_0x2629a9);}(_0x1c03,0xca));var _0x31c0=function(_0x367336,_0x18c229){_0x367336=_0x367336-0x0;var _0x3423a7=_0x1c03[_0x367336];return _0x3423a7;};'use strict';var _=require(_0x31c0('0x0'));var util=require(_0x31c0('0x1'));var logger=require(_0x31c0('0x2'))('api');var moment=require(_0x31c0('0x3'));var BPromise=require(_0x31c0('0x4'));var rp=require(_0x31c0('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x31c0('0x6'));var config=require(_0x31c0('0x7'));var attributes=require(_0x31c0('0x8'));module[_0x31c0('0x9')]=function(_0x248932,_0x423fb1){return _0x248932[_0x31c0('0xa')](_0x31c0('0xb'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1cd81c,_0x41fd87,_0x895a25){if(_0x1cd81c[_0x31c0('0xc')](_0x31c0('0xd'))){_0x1cd81c[_0x31c0('0xe')]=moment()[_0x31c0('0xf')](_0x31c0('0x10'));}if(_0x1cd81c[_0x31c0('0xc')](_0x31c0('0x11'))){_0x1cd81c[_0x31c0('0x12')]=moment()[_0x31c0('0xf')]('YYYY-MM-DD\x20HH:mm:ss');}_0x895a25(null,_0x1cd81c);}}});}; \ No newline at end of file