Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / squareProject / squareProject.model.js
index fb56468..df8de83 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3d9c=['production','publishedAt','lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./squareProject.attributes','exports','define','SquareProject','changed','preproduction','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x3d9c,0x134));var _0xc3d9=function(_0x39cc54,_0x307f82){_0x39cc54=_0x39cc54-0x0;var _0x5d8972=_0x3d9c[_0x39cc54];return _0x5d8972;};'use strict';var _=require(_0xc3d9('0x0'));var util=require('util');var logger=require(_0xc3d9('0x1'))(_0xc3d9('0x2'));var moment=require(_0xc3d9('0x3'));var BPromise=require('bluebird');var rp=require(_0xc3d9('0x4'));var fs=require('fs');var path=require(_0xc3d9('0x5'));var rimraf=require(_0xc3d9('0x6'));var config=require(_0xc3d9('0x7'));var attributes=require(_0xc3d9('0x8'));module[_0xc3d9('0x9')]=function(_0x137aaf,_0x492577){return _0x137aaf[_0xc3d9('0xa')](_0xc3d9('0xb'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x3c0a2f,_0x50bfe8,_0x3eff61){if(_0x3c0a2f[_0xc3d9('0xc')](_0xc3d9('0xd'))){_0x3c0a2f['savedAt']=moment()[_0xc3d9('0xe')](_0xc3d9('0xf'));}if(_0x3c0a2f['changed'](_0xc3d9('0x10'))){_0x3c0a2f[_0xc3d9('0x11')]=moment()[_0xc3d9('0xe')](_0xc3d9('0xf'));}_0x3eff61(null,_0x3c0a2f);}}});};
\ No newline at end of file
+var _0xf842=['../../config/environment','exports','SquareProject','square_projects','changed','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x4cbe98,_0x576f7b){var _0x49c755=function(_0x1e0487){while(--_0x1e0487){_0x4cbe98['push'](_0x4cbe98['shift']());}};_0x49c755(++_0x576f7b);}(_0xf842,0x172));var _0x2f84=function(_0x382e89,_0x4768c0){_0x382e89=_0x382e89-0x0;var _0x3a1318=_0xf842[_0x382e89];return _0x3a1318;};'use strict';var _=require(_0x2f84('0x0'));var util=require(_0x2f84('0x1'));var logger=require(_0x2f84('0x2'))(_0x2f84('0x3'));var moment=require('moment');var BPromise=require(_0x2f84('0x4'));var rp=require(_0x2f84('0x5'));var fs=require('fs');var path=require(_0x2f84('0x6'));var rimraf=require(_0x2f84('0x7'));var config=require(_0x2f84('0x8'));var attributes=require('./squareProject.attributes');module[_0x2f84('0x9')]=function(_0x20e773,_0x88a4cb){return _0x20e773['define'](_0x2f84('0xa'),attributes,{'tableName':_0x2f84('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x3458a1,_0x319d1f,_0x186888){if(_0x3458a1[_0x2f84('0xc')](_0x2f84('0xd'))){_0x3458a1[_0x2f84('0xe')]=moment()[_0x2f84('0xf')](_0x2f84('0x10'));}if(_0x3458a1['changed'](_0x2f84('0x11'))){_0x3458a1['publishedAt']=moment()[_0x2f84('0xf')](_0x2f84('0x10'));}_0x186888(null,_0x3458a1);}}});};
\ No newline at end of file