Built motion from commit 52c8a02d.|2.6.29
[motion2.git] / server / api / squareProject / squareProject.model.js
index 1ec9491..f4fff8d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xebe2=['publishedAt','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','SquareProject','square_projects','changed','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production'];(function(_0x140357,_0x6670bd){var _0x4fdf00=function(_0x527977){while(--_0x527977){_0x140357['push'](_0x140357['shift']());}};_0x4fdf00(++_0x6670bd);}(_0xebe2,0x133));var _0x2ebe=function(_0x2ae2ad,_0xac5b0c){_0x2ae2ad=_0x2ae2ad-0x0;var _0x26dbd7=_0xebe2[_0x2ae2ad];return _0x26dbd7;};'use strict';var _=require('lodash');var util=require(_0x2ebe('0x0'));var logger=require(_0x2ebe('0x1'))(_0x2ebe('0x2'));var moment=require(_0x2ebe('0x3'));var BPromise=require('bluebird');var rp=require(_0x2ebe('0x4'));var fs=require('fs');var path=require(_0x2ebe('0x5'));var rimraf=require(_0x2ebe('0x6'));var config=require(_0x2ebe('0x7'));var attributes=require('./squareProject.attributes');module['exports']=function(_0x11c45a,_0x166b4c){return _0x11c45a['define'](_0x2ebe('0x8'),attributes,{'tableName':_0x2ebe('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x56f0f8,_0x4f3ea3,_0x55512d){if(_0x56f0f8[_0x2ebe('0xa')](_0x2ebe('0xb'))){_0x56f0f8[_0x2ebe('0xc')]=moment()[_0x2ebe('0xd')](_0x2ebe('0xe'));}if(_0x56f0f8[_0x2ebe('0xa')](_0x2ebe('0xf'))){_0x56f0f8[_0x2ebe('0x10')]=moment()[_0x2ebe('0xd')](_0x2ebe('0xe'));}_0x55512d(null,_0x56f0f8);}}});};
\ No newline at end of file
+var _0x1c03=['../../config/environment','./squareProject.attributes','exports','define','SquareProject','changed','preproduction','savedAt','format','YYYY-MM-DD\x20HH:mm:ss','production','publishedAt','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf'];(function(_0xe2bb9e,_0x2629a9){var _0x43ba10=function(_0x21a370){while(--_0x21a370){_0xe2bb9e['push'](_0xe2bb9e['shift']());}};_0x43ba10(++_0x2629a9);}(_0x1c03,0xca));var _0x31c0=function(_0x367336,_0x18c229){_0x367336=_0x367336-0x0;var _0x3423a7=_0x1c03[_0x367336];return _0x3423a7;};'use strict';var _=require(_0x31c0('0x0'));var util=require(_0x31c0('0x1'));var logger=require(_0x31c0('0x2'))('api');var moment=require(_0x31c0('0x3'));var BPromise=require(_0x31c0('0x4'));var rp=require(_0x31c0('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x31c0('0x6'));var config=require(_0x31c0('0x7'));var attributes=require(_0x31c0('0x8'));module[_0x31c0('0x9')]=function(_0x248932,_0x423fb1){return _0x248932[_0x31c0('0xa')](_0x31c0('0xb'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1cd81c,_0x41fd87,_0x895a25){if(_0x1cd81c[_0x31c0('0xc')](_0x31c0('0xd'))){_0x1cd81c[_0x31c0('0xe')]=moment()[_0x31c0('0xf')](_0x31c0('0x10'));}if(_0x1cd81c[_0x31c0('0xc')](_0x31c0('0x11'))){_0x1cd81c[_0x31c0('0x12')]=moment()[_0x31c0('0xf')]('YYYY-MM-DD\x20HH:mm:ss');}_0x895a25(null,_0x1cd81c);}}});};
\ No newline at end of file