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 _0xa373=['Condition','update','name','then','catch','./mailSubstatus.attributes','define'];(function(_0x218715,_0x1dee81){var _0x203013=function(_0x41a91c){while(--_0x41a91c){_0x218715['push'](_0x218715['shift']());}};_0x203013(++_0x1dee81);}(_0xa373,0xd0));var _0x3a37=function(_0x37c6bb,_0x287c7c){_0x37c6bb=_0x37c6bb-0x0;var _0x3d93fd=_0xa373[_0x37c6bb];return _0x3d93fd;};'use strict';var attributes=require(_0x3a37('0x0'));module['exports']=function(_0x196d6e){var _0x4af852=_0x196d6e['models'];return _0x196d6e[_0x3a37('0x1')]('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x5e1733,_0x5ce6d4,_0x5b3354){return _0x4af852[_0x3a37('0x2')][_0x3a37('0x3')]({'value':_0x5e1733['name']},{'where':{'field':'mailSubstatus','value':_0x5e1733['_previousDataValues'][_0x3a37('0x4')]}})[_0x3a37('0x5')](function(){_0x5b3354();})[_0x3a37('0x6')](function(_0x3b0757){_0x5b3354(_0x3b0757);});}}});};