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 _0xf2d8=['Condition','name','mailSubstatus','_previousDataValues','then','catch','./mailSubstatus.attributes','exports','define','MailSubstatus','mail_substatuses'];(function(_0x4b64d0,_0x56f303){var _0x259889=function(_0x56a611){while(--_0x56a611){_0x4b64d0['push'](_0x4b64d0['shift']());}};_0x259889(++_0x56f303);}(_0xf2d8,0x103));var _0x8f2d=function(_0x43b4b5,_0x3efc1b){_0x43b4b5=_0x43b4b5-0x0;var _0x2df432=_0xf2d8[_0x43b4b5];return _0x2df432;};'use strict';var attributes=require(_0x8f2d('0x0'));module[_0x8f2d('0x1')]=function(_0x4cca39){var _0x2b526e=_0x4cca39['models'];return _0x4cca39[_0x8f2d('0x2')](_0x8f2d('0x3'),attributes,{'tableName':_0x8f2d('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x3a483c,_0x1aeb09,_0x45b068){return _0x2b526e[_0x8f2d('0x5')]['update']({'value':_0x3a483c[_0x8f2d('0x6')]},{'where':{'field':_0x8f2d('0x7'),'value':_0x3a483c[_0x8f2d('0x8')][_0x8f2d('0x6')]}})[_0x8f2d('0x9')](function(){_0x45b068();})[_0x8f2d('0xa')](function(_0x22229a){_0x45b068(_0x22229a);});}}});};