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 _0xafc7=['Condition','update','mailSubstatus','_previousDataValues','name','catch','exports','models','define','mail_substatuses'];(function(_0x1d9aa0,_0x272488){var _0x226868=function(_0x17127c){while(--_0x17127c){_0x1d9aa0['push'](_0x1d9aa0['shift']());}};_0x226868(++_0x272488);}(_0xafc7,0xd8));var _0x7afc=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xafc7[_0x2dafbe];return _0x58a45a;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x7afc('0x0')]=function(_0x50ea67){var _0x4f5c2e=_0x50ea67[_0x7afc('0x1')];return _0x50ea67[_0x7afc('0x2')]('MailSubstatus',attributes,{'tableName':_0x7afc('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x57516f,_0xf085dd,_0x35949f){return _0x4f5c2e[_0x7afc('0x4')][_0x7afc('0x5')]({'value':_0x57516f['name']},{'where':{'field':_0x7afc('0x6'),'value':_0x57516f[_0x7afc('0x7')][_0x7afc('0x8')]}})['then'](function(){_0x35949f();})[_0x7afc('0x9')](function(_0x2a7897){_0x35949f(_0x2a7897);});}}});};