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 _0x6906=['mail_substatuses','Condition','update','mailSubstatus','_previousDataValues','name','then','catch','./mailSubstatus.attributes','exports','models','define'];(function(_0x1bacf4,_0x4a4184){var _0xc43993=function(_0x54849a){while(--_0x54849a){_0x1bacf4['push'](_0x1bacf4['shift']());}};_0xc43993(++_0x4a4184);}(_0x6906,0x1d0));var _0x6690=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x6906[_0x501510];return _0x1e6ee5;};'use strict';var attributes=require(_0x6690('0x0'));module[_0x6690('0x1')]=function(_0x4a08a7){var _0x542c7d=_0x4a08a7[_0x6690('0x2')];return _0x4a08a7[_0x6690('0x3')]('MailSubstatus',attributes,{'tableName':_0x6690('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x46e604,_0xc4a37,_0x27d1b2){return _0x542c7d[_0x6690('0x5')][_0x6690('0x6')]({'value':_0x46e604['name']},{'where':{'field':_0x6690('0x7'),'value':_0x46e604[_0x6690('0x8')][_0x6690('0x9')]}})[_0x6690('0xa')](function(){_0x27d1b2();})[_0x6690('0xb')](function(_0x13482d){_0x27d1b2(_0x13482d);});}}});};