Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / faxInteraction / faxInteraction.model.js
1 const a200_0x4c3c=['fax_interactions','YYYY-MM-DD\x20HH:mm:ss','changed','define','format','exports','closed','FaxInteraction'];(function(_0x4ec6c4,_0x4c3cdc){const _0x2d6c4e=function(_0x19be4c){while(--_0x19be4c){_0x4ec6c4['push'](_0x4ec6c4['shift']());}};_0x2d6c4e(++_0x4c3cdc);}(a200_0x4c3c,0x1ce));const a200_0x2d6c=function(_0x4ec6c4,_0x4c3cdc){_0x4ec6c4=_0x4ec6c4-0x0;let _0x2d6c4e=a200_0x4c3c[_0x4ec6c4];return _0x2d6c4e;};const _0xe42635=a200_0x2d6c;'use strict';const moment=require('moment'),attributes=require('./faxInteraction.attributes');module[_0xe42635('0x7')]=function(_0x19be4c){const _0x4e69cf=_0xe42635,_0x3cd84d=_0x19be4c[_0x4e69cf('0x5')](_0x4e69cf('0x1'),attributes,{'tableName':_0x4e69cf('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4002b9){const _0x37bcc9=_0x4e69cf;_0x4002b9[_0x37bcc9('0x4')](_0x37bcc9('0x0'))&&(_0x4002b9['closedAt']=moment()[_0x37bcc9('0x6')](_0x37bcc9('0x3')));}}});return _0x3cd84d;};