Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / api / mailSubstatus / mailSubstatus.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x3869=['mailSubstatus','_previousDataValues','then','catch','./mailSubstatus.attributes','exports','models','define','MailSubstatus','mail_substatuses','Condition','update','name'];(function(_0x1589dd,_0x2b9d22){var _0x1bddd1=function(_0x3687f8){while(--_0x3687f8){_0x1589dd['push'](_0x1589dd['shift']());}};_0x1bddd1(++_0x2b9d22);}(_0x3869,0x115));var _0x9386=function(_0x250960,_0xdf40d8){_0x250960=_0x250960-0x0;var _0x4af2ef=_0x3869[_0x250960];return _0x4af2ef;};'use strict';var attributes=require(_0x9386('0x0'));module[_0x9386('0x1')]=function(_0x2e0e71){var _0x22d291=_0x2e0e71[_0x9386('0x2')];return _0x2e0e71[_0x9386('0x3')](_0x9386('0x4'),attributes,{'tableName':_0x9386('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x410ff8,_0x2afb08,_0x2f739a){return _0x22d291[_0x9386('0x6')][_0x9386('0x7')]({'value':_0x410ff8[_0x9386('0x8')]},{'where':{'field':_0x9386('0x9'),'value':_0x410ff8[_0x9386('0xa')][_0x9386('0x8')]}})[_0x9386('0xb')](function(){_0x2f739a();})[_0x9386('0xc')](function(_0x40c6e8){_0x2f739a(_0x40c6e8);});}}});};