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 _0x4e9f=['mailSubstatus','then','catch','./mailSubstatus.attributes','models','define','MailSubstatus','Condition','update','name'];(function(_0x39e438,_0x1ff236){var _0x27f588=function(_0x6e718a){while(--_0x6e718a){_0x39e438['push'](_0x39e438['shift']());}};_0x27f588(++_0x1ff236);}(_0x4e9f,0x12f));var _0xf4e9=function(_0x2390e5,_0x38f33d){_0x2390e5=_0x2390e5-0x0;var _0x5a0f08=_0x4e9f[_0x2390e5];return _0x5a0f08;};'use strict';var attributes=require(_0xf4e9('0x0'));module['exports']=function(_0x6b399c){var _0x4795f9=_0x6b399c[_0xf4e9('0x1')];return _0x6b399c[_0xf4e9('0x2')](_0xf4e9('0x3'),attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x41ae12,_0x18aeb6,_0x435c5b){return _0x4795f9[_0xf4e9('0x4')][_0xf4e9('0x5')]({'value':_0x41ae12[_0xf4e9('0x6')]},{'where':{'field':_0xf4e9('0x7'),'value':_0x41ae12['_previousDataValues'][_0xf4e9('0x6')]}})[_0xf4e9('0x8')](function(){_0x435c5b();})[_0xf4e9('0x9')](function(_0x397d93){_0x435c5b(_0x397d93);});}}});};