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 _0x41ca=['name','mailSubstatus','_previousDataValues','then','catch','./mailSubstatus.attributes','models','define','mail_substatuses','Condition','update'];(function(_0x12ee8f,_0x417edd){var _0x3e75f7=function(_0x44f552){while(--_0x44f552){_0x12ee8f['push'](_0x12ee8f['shift']());}};_0x3e75f7(++_0x417edd);}(_0x41ca,0x1de));var _0xa41c=function(_0x446f3b,_0xf02b77){_0x446f3b=_0x446f3b-0x0;var _0x9d909f=_0x41ca[_0x446f3b];return _0x9d909f;};'use strict';var attributes=require(_0xa41c('0x0'));module['exports']=function(_0x1577d8){var _0x14b503=_0x1577d8[_0xa41c('0x1')];return _0x1577d8[_0xa41c('0x2')]('MailSubstatus',attributes,{'tableName':_0xa41c('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0xdcd159,_0x5c4139,_0x3954d6){return _0x14b503[_0xa41c('0x4')][_0xa41c('0x5')]({'value':_0xdcd159[_0xa41c('0x6')]},{'where':{'field':_0xa41c('0x7'),'value':_0xdcd159[_0xa41c('0x8')][_0xa41c('0x6')]}})[_0xa41c('0x9')](function(){_0x3954d6();})[_0xa41c('0xa')](function(_0x2fc910){_0x3954d6(_0x2fc910);});}}});};