X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FopenchannelInteraction%2FopenchannelInteraction.model.js;h=543837c67f93ea8b48819b2b7d511bba2502abe1;hb=d2fd33d6b242a53e18c7b82fe692ff8c6c0965a8;hp=bd6adba9abafe253c058377e69bfb0c22d30e6b5;hpb=142b2b07c26fb6697bb0d2f2a4a8c0253173e8fe;p=motion2.git diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index bd6adba..543837c 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x08af=['changed','closedAt','lodash','util','api','bluebird','request-promise','path','rimraf','define','OpenchannelInteraction','openchannel_interactions','utf8mb4','utf8mb4_unicode_ci'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x08af,0x1c2));var _0xf08a=function(_0x548483,_0x5e53ab){_0x548483=_0x548483-0x0;var _0x53afbd=_0x08af[_0x548483];return _0x53afbd;};'use strict';var _=require(_0xf08a('0x0'));var util=require(_0xf08a('0x1'));var logger=require('../../config/logger')(_0xf08a('0x2'));var moment=require('moment');var BPromise=require(_0xf08a('0x3'));var rp=require(_0xf08a('0x4'));var fs=require('fs');var path=require(_0xf08a('0x5'));var rimraf=require(_0xf08a('0x6'));var config=require('../../config/environment');var attributes=require('./openchannelInteraction.attributes');module['exports']=function(_0x14ab52,_0x1671bc){return _0x14ab52[_0xf08a('0x7')](_0xf08a('0x8'),attributes,{'tableName':_0xf08a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xf08a('0xa'),'collate':_0xf08a('0xb'),'hooks':{'beforeUpdate':function(_0x50d443,_0x7aaf98,_0xeb1e64){if(_0x50d443[_0xf08a('0xc')]('closed')){_0x50d443[_0xf08a('0xd')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');}_0xeb1e64(null,_0x50d443);}}});}; \ No newline at end of file +var _0x36f3=['../../config/environment','exports','openchannel_interactions','utf8mb4','utf8mb4_unicode_ci','changed','closed','format','YYYY-MM-DD\x20HH:mm:ss','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x5a0b5d,_0x573027){var _0x583ff7=function(_0x8b2a63){while(--_0x8b2a63){_0x5a0b5d['push'](_0x5a0b5d['shift']());}};_0x583ff7(++_0x573027);}(_0x36f3,0xe6));var _0x336f=function(_0x153afb,_0x2573a2){_0x153afb=_0x153afb-0x0;var _0x28a67e=_0x36f3[_0x153afb];return _0x28a67e;};'use strict';var _=require('lodash');var util=require(_0x336f('0x0'));var logger=require(_0x336f('0x1'))(_0x336f('0x2'));var moment=require(_0x336f('0x3'));var BPromise=require(_0x336f('0x4'));var rp=require(_0x336f('0x5'));var fs=require('fs');var path=require(_0x336f('0x6'));var rimraf=require(_0x336f('0x7'));var config=require(_0x336f('0x8'));var attributes=require('./openchannelInteraction.attributes');module[_0x336f('0x9')]=function(_0x267661,_0xf85f24){return _0x267661['define']('OpenchannelInteraction',attributes,{'tableName':_0x336f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x336f('0xb'),'collate':_0x336f('0xc'),'hooks':{'beforeUpdate':function(_0xf34284,_0x3c5f5a,_0x176178){if(_0xf34284[_0x336f('0xd')](_0x336f('0xe'))){_0xf34284['closedAt']=moment()[_0x336f('0xf')](_0x336f('0x10'));}_0x176178(null,_0xf34284);}}});}; \ No newline at end of file