Built motion from commit 10af8726.|2.6.34
[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 _0x8603=['_previousDataValues','exports','MailSubstatus','mail_substatuses','update','name','mailSubstatus'];(function(_0x49c7a8,_0x4fd8ae){var _0x48781a=function(_0xdaf421){while(--_0xdaf421){_0x49c7a8['push'](_0x49c7a8['shift']());}};_0x48781a(++_0x4fd8ae);}(_0x8603,0x190));var _0x3860=function(_0x2042a3,_0x865e62){_0x2042a3=_0x2042a3-0x0;var _0x596f0d=_0x8603[_0x2042a3];return _0x596f0d;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x3860('0x0')]=function(_0x3b9c54){var _0x96d2bc=_0x3b9c54['models'];return _0x3b9c54['define'](_0x3860('0x1'),attributes,{'tableName':_0x3860('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x2f56a3,_0x490262,_0x2fc97a){return _0x96d2bc['Condition'][_0x3860('0x3')]({'value':_0x2f56a3[_0x3860('0x4')]},{'where':{'field':_0x3860('0x5'),'value':_0x2f56a3[_0x3860('0x6')][_0x3860('0x4')]}})['then'](function(){_0x2fc97a();})['catch'](function(_0x5b1ac8){_0x2fc97a(_0x5b1ac8);});}}});};