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 _0x70b4=['./mailSubstatus.attributes','exports','define','mail_substatuses','update','mailSubstatus','name','then','catch'];(function(_0x5c4391,_0x5abe5b){var _0x449307=function(_0x5a8b23){while(--_0x5a8b23){_0x5c4391['push'](_0x5c4391['shift']());}};_0x449307(++_0x5abe5b);}(_0x70b4,0xd8));var _0x470b=function(_0xc69530,_0x57c174){_0xc69530=_0xc69530-0x0;var _0x148a92=_0x70b4[_0xc69530];return _0x148a92;};'use strict';var attributes=require(_0x470b('0x0'));module[_0x470b('0x1')]=function(_0x163efb){var _0x350465=_0x163efb['models'];return _0x163efb[_0x470b('0x2')]('MailSubstatus',attributes,{'tableName':_0x470b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x40815c,_0x39df20,_0x18b82d){return _0x350465['Condition'][_0x470b('0x4')]({'value':_0x40815c['name']},{'where':{'field':_0x470b('0x5'),'value':_0x40815c['_previousDataValues'][_0x470b('0x6')]}})[_0x470b('0x7')](function(){_0x18b82d();})[_0x470b('0x8')](function(_0x599355){_0x18b82d(_0x599355);});}}});};