Built motion from commit a61a4a20.|2.5.46
[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 _0xd2b8=['./mailSubstatus.attributes','exports','define','MailSubstatus','mail_substatuses','update','name','mailSubstatus','_previousDataValues','then','catch'];(function(_0x1ec06d,_0xe71dfb){var _0x2a434f=function(_0x5c9127){while(--_0x5c9127){_0x1ec06d['push'](_0x1ec06d['shift']());}};_0x2a434f(++_0xe71dfb);}(_0xd2b8,0x1d9));var _0x8d2b=function(_0x4c818c,_0x2715b6){_0x4c818c=_0x4c818c-0x0;var _0x786b18=_0xd2b8[_0x4c818c];return _0x786b18;};'use strict';var attributes=require(_0x8d2b('0x0'));module[_0x8d2b('0x1')]=function(_0xe3c7a8){var _0x3264ca=_0xe3c7a8['models'];return _0xe3c7a8[_0x8d2b('0x2')](_0x8d2b('0x3'),attributes,{'tableName':_0x8d2b('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4c24fd,_0x3de1f0,_0x47368e){return _0x3264ca['Condition'][_0x8d2b('0x5')]({'value':_0x4c24fd[_0x8d2b('0x6')]},{'where':{'field':_0x8d2b('0x7'),'value':_0x4c24fd[_0x8d2b('0x8')]['name']}})[_0x8d2b('0x9')](function(){_0x47368e();})[_0x8d2b('0xa')](function(_0x616bbb){_0x47368e(_0x616bbb);});}}});};