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 _0x8c7a=['exports','models','Condition','name','mailSubstatus','_previousDataValues','then','./mailSubstatus.attributes'];(function(_0x13b02f,_0x462a53){var _0x12e9a6=function(_0x187d57){while(--_0x187d57){_0x13b02f['push'](_0x13b02f['shift']());}};_0x12e9a6(++_0x462a53);}(_0x8c7a,0x197));var _0xa8c7=function(_0x4ed9b7,_0x4198bc){_0x4ed9b7=_0x4ed9b7-0x0;var _0x5d56da=_0x8c7a[_0x4ed9b7];return _0x5d56da;};'use strict';var attributes=require(_0xa8c7('0x0'));module[_0xa8c7('0x1')]=function(_0x21b614){var _0x27399f=_0x21b614[_0xa8c7('0x2')];return _0x21b614['define']('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x189754,_0x44d295,_0x40d483){return _0x27399f[_0xa8c7('0x3')]['update']({'value':_0x189754[_0xa8c7('0x4')]},{'where':{'field':_0xa8c7('0x5'),'value':_0x189754[_0xa8c7('0x6')][_0xa8c7('0x4')]}})[_0xa8c7('0x7')](function(){_0x40d483();})['catch'](function(_0xa2cd18){_0x40d483(_0xa2cd18);});}}});};