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 _0xcf99=['exports','models','define','MailSubstatus','mail_substatuses','Condition','update','name','then','catch','./mailSubstatus.attributes'];(function(_0x37305f,_0x669351){var _0x34fc06=function(_0x542f64){while(--_0x542f64){_0x37305f['push'](_0x37305f['shift']());}};_0x34fc06(++_0x669351);}(_0xcf99,0x18b));var _0x9cf9=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xcf99[_0x321bb2];return _0x9c12ed;};'use strict';var attributes=require(_0x9cf9('0x0'));module[_0x9cf9('0x1')]=function(_0x28bd0f){var _0x5754be=_0x28bd0f[_0x9cf9('0x2')];return _0x28bd0f[_0x9cf9('0x3')](_0x9cf9('0x4'),attributes,{'tableName':_0x9cf9('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x1a6011,_0x2288fd,_0x17653c){return _0x5754be[_0x9cf9('0x6')][_0x9cf9('0x7')]({'value':_0x1a6011[_0x9cf9('0x8')]},{'where':{'field':'mailSubstatus','value':_0x1a6011['_previousDataValues'][_0x9cf9('0x8')]}})[_0x9cf9('0x9')](function(){_0x17653c();})[_0x9cf9('0xa')](function(_0x10b543){_0x17653c(_0x10b543);});}}});};