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 _0xce0d=['./mailSubstatus.attributes','exports','models','define','update','name','mailSubstatus','_previousDataValues','then'];(function(_0x35885a,_0x42fed7){var _0xe86249=function(_0x98edb3){while(--_0x98edb3){_0x35885a['push'](_0x35885a['shift']());}};_0xe86249(++_0x42fed7);}(_0xce0d,0x1e6));var _0xdce0=function(_0x189d3c,_0x5efebf){_0x189d3c=_0x189d3c-0x0;var _0x485959=_0xce0d[_0x189d3c];return _0x485959;};'use strict';var attributes=require(_0xdce0('0x0'));module[_0xdce0('0x1')]=function(_0x334aea){var _0x4fb712=_0x334aea[_0xdce0('0x2')];return _0x334aea[_0xdce0('0x3')]('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x252cec,_0x3609ea,_0x5b226c){return _0x4fb712['Condition'][_0xdce0('0x4')]({'value':_0x252cec[_0xdce0('0x5')]},{'where':{'field':_0xdce0('0x6'),'value':_0x252cec[_0xdce0('0x7')]['name']}})[_0xdce0('0x8')](function(){_0x5b226c();})['catch'](function(_0x214198){_0x5b226c(_0x214198);});}}});};