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 _0xd5a2=['then','exports','models','define','mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues'];(function(_0x5e3d2c,_0x21cfc0){var _0x313722=function(_0x2d4594){while(--_0x2d4594){_0x5e3d2c['push'](_0x5e3d2c['shift']());}};_0x313722(++_0x21cfc0);}(_0xd5a2,0x1eb));var _0x2d5a=function(_0x258589,_0xf6a3cb){_0x258589=_0x258589-0x0;var _0x3e05c3=_0xd5a2[_0x258589];return _0x3e05c3;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x2d5a('0x0')]=function(_0x217b8c){var _0x75b00=_0x217b8c[_0x2d5a('0x1')];return _0x217b8c[_0x2d5a('0x2')]('MailSubstatus',attributes,{'tableName':_0x2d5a('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0xaeebb3,_0x18590d,_0x42947b){return _0x75b00[_0x2d5a('0x4')][_0x2d5a('0x5')]({'value':_0xaeebb3[_0x2d5a('0x6')]},{'where':{'field':_0x2d5a('0x7'),'value':_0xaeebb3[_0x2d5a('0x8')][_0x2d5a('0x6')]}})[_0x2d5a('0x9')](function(){_0x42947b();})['catch'](function(_0x5054c8){_0x42947b(_0x5054c8);});}}});};