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 _0x4953=['MailSubstatus','name','_previousDataValues','then','catch','./mailSubstatus.attributes','models','define'];(function(_0x469918,_0x37fe81){var _0x386e31=function(_0x13f0e7){while(--_0x13f0e7){_0x469918['push'](_0x469918['shift']());}};_0x386e31(++_0x37fe81);}(_0x4953,0x115));var _0x3495=function(_0x25dd78,_0xaa48ef){_0x25dd78=_0x25dd78-0x0;var _0x4889b6=_0x4953[_0x25dd78];return _0x4889b6;};'use strict';var attributes=require(_0x3495('0x0'));module['exports']=function(_0x3be05a){var _0x386988=_0x3be05a[_0x3495('0x1')];return _0x3be05a[_0x3495('0x2')](_0x3495('0x3'),attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x2c66e7,_0x4565cc,_0x9ebaf3){return _0x386988['Condition']['update']({'value':_0x2c66e7[_0x3495('0x4')]},{'where':{'field':'mailSubstatus','value':_0x2c66e7[_0x3495('0x5')]['name']}})[_0x3495('0x6')](function(){_0x9ebaf3();})[_0x3495('0x7')](function(_0x499a80){_0x9ebaf3(_0x499a80);});}}});};