Built motion from commit 9d7072cc.|2.5.39
[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 _0x96ac=['name','_previousDataValues','then','catch','./mailSubstatus.attributes','exports','Condition','update'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x96ac,0x1b4));var _0xc96a=function(_0x2fb0ee,_0x4a8024){_0x2fb0ee=_0x2fb0ee-0x0;var _0x1dbc88=_0x96ac[_0x2fb0ee];return _0x1dbc88;};'use strict';var attributes=require(_0xc96a('0x0'));module[_0xc96a('0x1')]=function(_0x276e7c){var _0x2d12a0=_0x276e7c['models'];return _0x276e7c['define']('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4af80b,_0x42b530,_0x414c74){return _0x2d12a0[_0xc96a('0x2')][_0xc96a('0x3')]({'value':_0x4af80b[_0xc96a('0x4')]},{'where':{'field':'mailSubstatus','value':_0x4af80b[_0xc96a('0x5')][_0xc96a('0x4')]}})[_0xc96a('0x6')](function(){_0x414c74();})[_0xc96a('0x7')](function(_0xa9121c){_0x414c74(_0xa9121c);});}}});};