Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / squareProject / squareProject.model.js
index 7ee5b2e..4ed646c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8ff9=['bluebird','request-promise','path','rimraf','../../config/environment','./squareProject.attributes','define','SquareProject','changed','preproduction','savedAt','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','lodash','util','../../config/logger','moment'];(function(_0x22bb7f,_0x348ea6){var _0x542b2a=function(_0x487cca){while(--_0x487cca){_0x22bb7f['push'](_0x22bb7f['shift']());}};_0x542b2a(++_0x348ea6);}(_0x8ff9,0x188));var _0x98ff=function(_0x286b58,_0x22dbd1){_0x286b58=_0x286b58-0x0;var _0x49c8cf=_0x8ff9[_0x286b58];return _0x49c8cf;};'use strict';var _=require(_0x98ff('0x0'));var util=require(_0x98ff('0x1'));var logger=require(_0x98ff('0x2'))('api');var moment=require(_0x98ff('0x3'));var BPromise=require(_0x98ff('0x4'));var rp=require(_0x98ff('0x5'));var fs=require('fs');var path=require(_0x98ff('0x6'));var rimraf=require(_0x98ff('0x7'));var config=require(_0x98ff('0x8'));var attributes=require(_0x98ff('0x9'));module['exports']=function(_0xe3db15,_0x4e61db){return _0xe3db15[_0x98ff('0xa')](_0x98ff('0xb'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x421d77,_0x339612,_0x1632ce){if(_0x421d77[_0x98ff('0xc')](_0x98ff('0xd'))){_0x421d77[_0x98ff('0xe')]=moment()['format'](_0x98ff('0xf'));}if(_0x421d77[_0x98ff('0xc')](_0x98ff('0x10'))){_0x421d77[_0x98ff('0x11')]=moment()['format'](_0x98ff('0xf'));}_0x1632ce(null,_0x421d77);}}});};
\ No newline at end of file
+var _0xcd56=['SquareProject','square_projects','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','changed','production','publishedAt','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','./squareProject.attributes','exports','define'];(function(_0x4e5182,_0x1805a1){var _0x1c10ec=function(_0x20b3fa){while(--_0x20b3fa){_0x4e5182['push'](_0x4e5182['shift']());}};_0x1c10ec(++_0x1805a1);}(_0xcd56,0x8e));var _0x6cd5=function(_0x2716ea,_0x1690c4){_0x2716ea=_0x2716ea-0x0;var _0x579539=_0xcd56[_0x2716ea];return _0x579539;};'use strict';var _=require('lodash');var util=require(_0x6cd5('0x0'));var logger=require(_0x6cd5('0x1'))(_0x6cd5('0x2'));var moment=require(_0x6cd5('0x3'));var BPromise=require(_0x6cd5('0x4'));var rp=require(_0x6cd5('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x6cd5('0x6'));var config=require('../../config/environment');var attributes=require(_0x6cd5('0x7'));module[_0x6cd5('0x8')]=function(_0x12b02b,_0x346287){return _0x12b02b[_0x6cd5('0x9')](_0x6cd5('0xa'),attributes,{'tableName':_0x6cd5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x184d5f,_0x19e85d,_0x201858){if(_0x184d5f['changed'](_0x6cd5('0xc'))){_0x184d5f[_0x6cd5('0xd')]=moment()[_0x6cd5('0xe')](_0x6cd5('0xf'));}if(_0x184d5f[_0x6cd5('0x10')](_0x6cd5('0x11'))){_0x184d5f[_0x6cd5('0x12')]=moment()[_0x6cd5('0xe')]('YYYY-MM-DD\x20HH:mm:ss');}_0x201858(null,_0x184d5f);}}});};
\ No newline at end of file