Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / squareProject / squareProject.model.js
index 6434323..b75651e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x19ef=['path','rimraf','../../config/environment','./squareProject.attributes','exports','SquareProject','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','changed','production','publishedAt','lodash','../../config/logger','moment','bluebird','request-promise'];(function(_0x2b3c82,_0x127b8a){var _0x99a562=function(_0x2b9a3b){while(--_0x2b9a3b){_0x2b3c82['push'](_0x2b3c82['shift']());}};_0x99a562(++_0x127b8a);}(_0x19ef,0x12d));var _0xf19e=function(_0x15bff9,_0x2e49aa){_0x15bff9=_0x15bff9-0x0;var _0x15ddee=_0x19ef[_0x15bff9];return _0x15ddee;};'use strict';var _=require(_0xf19e('0x0'));var util=require('util');var logger=require(_0xf19e('0x1'))('api');var moment=require(_0xf19e('0x2'));var BPromise=require(_0xf19e('0x3'));var rp=require(_0xf19e('0x4'));var fs=require('fs');var path=require(_0xf19e('0x5'));var rimraf=require(_0xf19e('0x6'));var config=require(_0xf19e('0x7'));var attributes=require(_0xf19e('0x8'));module[_0xf19e('0x9')]=function(_0x2e5f48,_0x1a4fc9){return _0x2e5f48['define'](_0xf19e('0xa'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x3bdd96,_0x1550f6,_0x537703){if(_0x3bdd96['changed'](_0xf19e('0xb'))){_0x3bdd96[_0xf19e('0xc')]=moment()[_0xf19e('0xd')](_0xf19e('0xe'));}if(_0x3bdd96[_0xf19e('0xf')](_0xf19e('0x10'))){_0x3bdd96[_0xf19e('0x11')]=moment()[_0xf19e('0xd')](_0xf19e('0xe'));}_0x537703(null,_0x3bdd96);}}});};
\ No newline at end of file
+var _0x7d5a=['api','moment','request-promise','rimraf','../../config/environment','exports','define','SquareProject','square_projects','changed','savedAt','format','publishedAt','YYYY-MM-DD\x20HH:mm:ss','lodash','util','../../config/logger'];(function(_0x55bc6c,_0x1f7ab1){var _0x5300ec=function(_0x486f49){while(--_0x486f49){_0x55bc6c['push'](_0x55bc6c['shift']());}};_0x5300ec(++_0x1f7ab1);}(_0x7d5a,0xb8));var _0xa7d5=function(_0x2cffd7,_0x3562f4){_0x2cffd7=_0x2cffd7-0x0;var _0x137fd7=_0x7d5a[_0x2cffd7];return _0x137fd7;};'use strict';var _=require(_0xa7d5('0x0'));var util=require(_0xa7d5('0x1'));var logger=require(_0xa7d5('0x2'))(_0xa7d5('0x3'));var moment=require(_0xa7d5('0x4'));var BPromise=require('bluebird');var rp=require(_0xa7d5('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa7d5('0x6'));var config=require(_0xa7d5('0x7'));var attributes=require('./squareProject.attributes');module[_0xa7d5('0x8')]=function(_0x341a42,_0x1a003e){return _0x341a42[_0xa7d5('0x9')](_0xa7d5('0xa'),attributes,{'tableName':_0xa7d5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x2ca993,_0x97c1a9,_0x5162f6){if(_0x2ca993[_0xa7d5('0xc')]('preproduction')){_0x2ca993[_0xa7d5('0xd')]=moment()[_0xa7d5('0xe')]('YYYY-MM-DD\x20HH:mm:ss');}if(_0x2ca993[_0xa7d5('0xc')]('production')){_0x2ca993[_0xa7d5('0xf')]=moment()[_0xa7d5('0xe')](_0xa7d5('0x10'));}_0x5162f6(null,_0x2ca993);}}});};
\ No newline at end of file