Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / whatsappInteraction / whatsappInteraction.model.js
1 const a796_0x10a7=['moment','./whatsappInteraction.attributes','closed','YYYY-MM-DD\x20HH:mm:ss','define','changed','WhatsappInteraction'];(function(_0x532e4e,_0x10a7a0){const _0x41cb43=function(_0x21b1cb){while(--_0x21b1cb){_0x532e4e['push'](_0x532e4e['shift']());}};_0x41cb43(++_0x10a7a0);}(a796_0x10a7,0xb8));const a796_0x41cb=function(_0x532e4e,_0x10a7a0){_0x532e4e=_0x532e4e-0x0;let _0x41cb43=a796_0x10a7[_0x532e4e];return _0x41cb43;};const _0x367e68=a796_0x41cb;'use strict';const moment=require(_0x367e68('0x5')),attributes=require(_0x367e68('0x6'));module['exports']=function(_0x21b1cb){const _0x20dd70=_0x367e68,_0x1ae9f8=_0x21b1cb[_0x20dd70('0x2')](_0x20dd70('0x4'),attributes,{'tableName':'whatsapp_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x54dc73){const _0x289d53=_0x20dd70;_0x54dc73[_0x289d53('0x3')](_0x289d53('0x0'))&&(_0x54dc73['closedAt']=moment()['format'](_0x289d53('0x1')));}}});return _0x1ae9f8;};