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 _0xfb7c=['Condition','update','name','mailSubstatus','_previousDataValues','then','catch','./mailSubstatus.attributes','exports','models','MailSubstatus'];(function(_0x228a66,_0x317f48){var _0x381058=function(_0x322afe){while(--_0x322afe){_0x228a66['push'](_0x228a66['shift']());}};_0x381058(++_0x317f48);}(_0xfb7c,0x151));var _0xcfb7=function(_0x43d725,_0x48eb00){_0x43d725=_0x43d725-0x0;var _0x2a803a=_0xfb7c[_0x43d725];return _0x2a803a;};'use strict';var attributes=require(_0xcfb7('0x0'));module[_0xcfb7('0x1')]=function(_0x50d151){var _0x49e8db=_0x50d151[_0xcfb7('0x2')];return _0x50d151['define'](_0xcfb7('0x3'),attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x380700,_0x48b97f,_0x17d490){return _0x49e8db[_0xcfb7('0x4')][_0xcfb7('0x5')]({'value':_0x380700[_0xcfb7('0x6')]},{'where':{'field':_0xcfb7('0x7'),'value':_0x380700[_0xcfb7('0x8')][_0xcfb7('0x6')]}})[_0xcfb7('0x9')](function(){_0x17d490();})[_0xcfb7('0xa')](function(_0xa0c360){_0x17d490(_0xa0c360);});}}});};