592b1a529f739b1c8d3a01975e38fb3bd9249632
[motion-next.git] / server / api / openchannelInteraction / openchannelInteraction.model.js
1 const a482_0x7804=['moment','OpenchannelInteraction','closedAt','YYYY-MM-DD\x20HH:mm:ss','changed','define','exports','openchannel_interactions'];(function(_0x467f65,_0x78045f){const _0x20c922=function(_0x26af74){while(--_0x26af74){_0x467f65['push'](_0x467f65['shift']());}};_0x20c922(++_0x78045f);}(a482_0x7804,0xb4));const a482_0x20c9=function(_0x467f65,_0x78045f){_0x467f65=_0x467f65-0x0;let _0x20c922=a482_0x7804[_0x467f65];return _0x20c922;};const _0x3cefe7=a482_0x20c9;'use strict';const moment=require(_0x3cefe7('0x4')),attributes=require('./openchannelInteraction.attributes');module[_0x3cefe7('0x2')]=function(_0x26af74){const _0x28c95d=_0x3cefe7,_0x3d5540=_0x26af74[_0x28c95d('0x1')](_0x28c95d('0x5'),attributes,{'tableName':_0x28c95d('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x415361){const _0x1488fa=_0x28c95d;_0x415361[_0x1488fa('0x0')]('closed')&&(_0x415361[_0x1488fa('0x6')]=moment()['format'](_0x1488fa('0x7')));}}});return _0x3d5540;};