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 _0x5cf1=['update','name','_previousDataValues','then','exports','models','Condition'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5cf1,0xba));var _0x15cf=function(_0x149db1,_0x25f28b){_0x149db1=_0x149db1-0x0;var _0x2059a8=_0x5cf1[_0x149db1];return _0x2059a8;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x15cf('0x0')]=function(_0x556f4e){var _0x309b3a=_0x556f4e[_0x15cf('0x1')];return _0x556f4e['define']('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x293890,_0x3de178,_0x5d0e49){return _0x309b3a[_0x15cf('0x2')][_0x15cf('0x3')]({'value':_0x293890[_0x15cf('0x4')]},{'where':{'field':'mailSubstatus','value':_0x293890[_0x15cf('0x5')]['name']}})[_0x15cf('0x6')](function(){_0x5d0e49();})['catch'](function(_0x34144c){_0x5d0e49(_0x34144c);});}}});};