Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / squareProject / squareProject.model.js
index 630b6eb..85f459d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfc5c=['YYYY-MM-DD\x20HH:mm:ss','publishedAt','../../config/logger','api','moment','path','rimraf','../../config/environment','define','SquareProject','square_projects','changed','preproduction','savedAt','format'];(function(_0x1bb161,_0x25b93c){var _0x2d4246=function(_0x1bac38){while(--_0x1bac38){_0x1bb161['push'](_0x1bb161['shift']());}};_0x2d4246(++_0x25b93c);}(_0xfc5c,0x16a));var _0xcfc5=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0xfc5c[_0x2641f9];return _0x585741;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xcfc5('0x0'))(_0xcfc5('0x1'));var moment=require(_0xcfc5('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xcfc5('0x3'));var rimraf=require(_0xcfc5('0x4'));var config=require(_0xcfc5('0x5'));var attributes=require('./squareProject.attributes');module['exports']=function(_0x5abb6a,_0x2a2181){return _0x5abb6a[_0xcfc5('0x6')](_0xcfc5('0x7'),attributes,{'tableName':_0xcfc5('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5e6215,_0x1aa947,_0x4fe46e){if(_0x5e6215[_0xcfc5('0x9')](_0xcfc5('0xa'))){_0x5e6215[_0xcfc5('0xb')]=moment()[_0xcfc5('0xc')](_0xcfc5('0xd'));}if(_0x5e6215[_0xcfc5('0x9')]('production')){_0x5e6215[_0xcfc5('0xe')]=moment()[_0xcfc5('0xc')](_0xcfc5('0xd'));}_0x4fe46e(null,_0x5e6215);}}});};
\ No newline at end of file
+var _0x2196=['YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./squareProject.attributes','exports','SquareProject','square_projects','changed','preproduction','format'];(function(_0x1ca8f1,_0x2eb0b2){var _0x3a036f=function(_0x5a5dac){while(--_0x5a5dac){_0x1ca8f1['push'](_0x1ca8f1['shift']());}};_0x3a036f(++_0x2eb0b2);}(_0x2196,0xb7));var _0x6219=function(_0x3261ed,_0x1f06ad){_0x3261ed=_0x3261ed-0x0;var _0xbea3c3=_0x2196[_0x3261ed];return _0xbea3c3;};'use strict';var _=require(_0x6219('0x0'));var util=require(_0x6219('0x1'));var logger=require(_0x6219('0x2'))(_0x6219('0x3'));var moment=require(_0x6219('0x4'));var BPromise=require(_0x6219('0x5'));var rp=require(_0x6219('0x6'));var fs=require('fs');var path=require(_0x6219('0x7'));var rimraf=require(_0x6219('0x8'));var config=require(_0x6219('0x9'));var attributes=require(_0x6219('0xa'));module[_0x6219('0xb')]=function(_0x28291e,_0x5ca123){return _0x28291e['define'](_0x6219('0xc'),attributes,{'tableName':_0x6219('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x2b12eb,_0x50cb06,_0x5d9ca9){if(_0x2b12eb[_0x6219('0xe')](_0x6219('0xf'))){_0x2b12eb['savedAt']=moment()[_0x6219('0x10')](_0x6219('0x11'));}if(_0x2b12eb[_0x6219('0xe')](_0x6219('0x12'))){_0x2b12eb[_0x6219('0x13')]=moment()[_0x6219('0x10')](_0x6219('0x11'));}_0x5d9ca9(null,_0x2b12eb);}}});};
\ No newline at end of file