1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x222a=['exports','models','MailSubstatus','mail_substatuses','Condition','update','name','then','catch','./mailSubstatus.attributes'];(function(_0x1328c5,_0x191c67){var _0x16d639=function(_0x208198){while(--_0x208198){_0x1328c5['push'](_0x1328c5['shift']());}};_0x16d639(++_0x191c67);}(_0x222a,0xb3));var _0xa222=function(_0x2ebedc,_0x2f1711){_0x2ebedc=_0x2ebedc-0x0;var _0x16f026=_0x222a[_0x2ebedc];return _0x16f026;};'use strict';var attributes=require(_0xa222('0x0'));module[_0xa222('0x1')]=function(_0x22c006){var _0x18a10d=_0x22c006[_0xa222('0x2')];return _0x22c006['define'](_0xa222('0x3'),attributes,{'tableName':_0xa222('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x3af606,_0x52c8c8,_0xe0f254){return _0x18a10d[_0xa222('0x5')][_0xa222('0x6')]({'value':_0x3af606[_0xa222('0x7')]},{'where':{'field':'mailSubstatus','value':_0x3af606['_previousDataValues'][_0xa222('0x7')]}})[_0xa222('0x8')](function(){_0xe0f254();})[_0xa222('0x9')](function(_0x2f90f2){_0xe0f254(_0x2f90f2);});}}});};