Built motion from commit (unavailable).|2.5.20
[motion2.git] / server / api / squareProject / squareProject.model.js
index 408f47c..983901f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x34e7=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./squareProject.attributes','exports','SquareProject','square_projects','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','changed','production','lodash','util','../../config/logger','api'];(function(_0x162ee0,_0x291661){var _0x48fc5e=function(_0x297a35){while(--_0x297a35){_0x162ee0['push'](_0x162ee0['shift']());}};_0x48fc5e(++_0x291661);}(_0x34e7,0x164));var _0x734e=function(_0x455555,_0x2147fd){_0x455555=_0x455555-0x0;var _0x3cb183=_0x34e7[_0x455555];return _0x3cb183;};'use strict';var _=require(_0x734e('0x0'));var util=require(_0x734e('0x1'));var logger=require(_0x734e('0x2'))(_0x734e('0x3'));var moment=require(_0x734e('0x4'));var BPromise=require(_0x734e('0x5'));var rp=require(_0x734e('0x6'));var fs=require('fs');var path=require(_0x734e('0x7'));var rimraf=require(_0x734e('0x8'));var config=require(_0x734e('0x9'));var attributes=require(_0x734e('0xa'));module[_0x734e('0xb')]=function(_0x3405b1,_0x192562){return _0x3405b1['define'](_0x734e('0xc'),attributes,{'tableName':_0x734e('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x444194,_0x4df479,_0x5c4e16){if(_0x444194['changed'](_0x734e('0xe'))){_0x444194[_0x734e('0xf')]=moment()[_0x734e('0x10')](_0x734e('0x11'));}if(_0x444194[_0x734e('0x12')](_0x734e('0x13'))){_0x444194['publishedAt']=moment()['format'](_0x734e('0x11'));}_0x5c4e16(null,_0x444194);}}});};
\ No newline at end of file