Built motion from commit 3c2ce842.|2.6.31
[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 _0x7a6c=['define','Condition','name','mailSubstatus','_previousDataValues','then','catch','./mailSubstatus.attributes','exports','models'];(function(_0x97c519,_0x16100d){var _0x789bc0=function(_0x3cdf27){while(--_0x3cdf27){_0x97c519['push'](_0x97c519['shift']());}};_0x789bc0(++_0x16100d);}(_0x7a6c,0x197));var _0xc7a6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7a6c[_0x3dd15e];return _0x231fd0;};'use strict';var attributes=require(_0xc7a6('0x0'));module[_0xc7a6('0x1')]=function(_0x49a7c9){var _0x71d317=_0x49a7c9[_0xc7a6('0x2')];return _0x49a7c9[_0xc7a6('0x3')]('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x5db7e5,_0x446a03,_0x122ae3){return _0x71d317[_0xc7a6('0x4')]['update']({'value':_0x5db7e5[_0xc7a6('0x5')]},{'where':{'field':_0xc7a6('0x6'),'value':_0x5db7e5[_0xc7a6('0x7')][_0xc7a6('0x5')]}})[_0xc7a6('0x8')](function(){_0x122ae3();})[_0xc7a6('0x9')](function(_0x272936){_0x122ae3(_0x272936);});}}});};