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 _0x26cb=['then','./mailSubstatus.attributes','exports','define','MailSubstatus','mail_substatuses','Condition','update','name','_previousDataValues'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0x26cb,0x19b));var _0xb26c=function(_0x6de365,_0x3ada32){_0x6de365=_0x6de365-0x0;var _0x104012=_0x26cb[_0x6de365];return _0x104012;};'use strict';var attributes=require(_0xb26c('0x0'));module[_0xb26c('0x1')]=function(_0x49ed7b){var _0x12a9bb=_0x49ed7b['models'];return _0x49ed7b[_0xb26c('0x2')](_0xb26c('0x3'),attributes,{'tableName':_0xb26c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4f7163,_0x2c3955,_0x5869f6){return _0x12a9bb[_0xb26c('0x5')][_0xb26c('0x6')]({'value':_0x4f7163[_0xb26c('0x7')]},{'where':{'field':'mailSubstatus','value':_0x4f7163[_0xb26c('0x8')]['name']}})[_0xb26c('0x9')](function(){_0x5869f6();})['catch'](function(_0x34aa3d){_0x5869f6(_0x34aa3d);});}}});};