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 _0x3d81=['_previousDataValues','then','catch','./mailSubstatus.attributes','exports','define','mail_substatuses','Condition','update','name','mailSubstatus'];(function(_0x4b2fdd,_0x55aa85){var _0x44598f=function(_0x486db4){while(--_0x486db4){_0x4b2fdd['push'](_0x4b2fdd['shift']());}};_0x44598f(++_0x55aa85);}(_0x3d81,0x1dc));var _0x13d8=function(_0x961430,_0x5936f0){_0x961430=_0x961430-0x0;var _0x31ec70=_0x3d81[_0x961430];return _0x31ec70;};'use strict';var attributes=require(_0x13d8('0x0'));module[_0x13d8('0x1')]=function(_0x2958c4){var _0x2131f9=_0x2958c4['models'];return _0x2958c4[_0x13d8('0x2')]('MailSubstatus',attributes,{'tableName':_0x13d8('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x127967,_0x5a55a3,_0x39d04f){return _0x2131f9[_0x13d8('0x4')][_0x13d8('0x5')]({'value':_0x127967[_0x13d8('0x6')]},{'where':{'field':_0x13d8('0x7'),'value':_0x127967[_0x13d8('0x8')][_0x13d8('0x6')]}})[_0x13d8('0x9')](function(){_0x39d04f();})[_0x13d8('0xa')](function(_0x3d8838){_0x39d04f(_0x3d8838);});}}});};