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 _0x46a8=['models','mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues','then','catch','exports'];(function(_0x2bd88d,_0x2d5dc3){var _0x5516d4=function(_0x1272c8){while(--_0x1272c8){_0x2bd88d['push'](_0x2bd88d['shift']());}};_0x5516d4(++_0x2d5dc3);}(_0x46a8,0x185));var _0x846a=function(_0x543bd7,_0x569bf1){_0x543bd7=_0x543bd7-0x0;var _0x2f612e=_0x46a8[_0x543bd7];return _0x2f612e;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x846a('0x0')]=function(_0x3850d0){var _0x364c6b=_0x3850d0[_0x846a('0x1')];return _0x3850d0['define']('MailSubstatus',attributes,{'tableName':_0x846a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x112404,_0x9e5358,_0x58666a){return _0x364c6b[_0x846a('0x3')][_0x846a('0x4')]({'value':_0x112404[_0x846a('0x5')]},{'where':{'field':_0x846a('0x6'),'value':_0x112404[_0x846a('0x7')]['name']}})[_0x846a('0x8')](function(){_0x58666a();})[_0x846a('0x9')](function(_0x629c3b){_0x58666a(_0x629c3b);});}}});};