Built motion from commit 14588770.|2.5.38
[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 _0x8e5e=['MailSubstatus','mail_substatuses','Condition','name','mailSubstatus','then','catch','./mailSubstatus.attributes','exports','models','define'];(function(_0x3c47e9,_0x374112){var _0xc82a99=function(_0x40d7f2){while(--_0x40d7f2){_0x3c47e9['push'](_0x3c47e9['shift']());}};_0xc82a99(++_0x374112);}(_0x8e5e,0x193));var _0xe8e5=function(_0x384e1e,_0xe637b9){_0x384e1e=_0x384e1e-0x0;var _0x14d92c=_0x8e5e[_0x384e1e];return _0x14d92c;};'use strict';var attributes=require(_0xe8e5('0x0'));module[_0xe8e5('0x1')]=function(_0x1398d2){var _0x2ddd77=_0x1398d2[_0xe8e5('0x2')];return _0x1398d2[_0xe8e5('0x3')](_0xe8e5('0x4'),attributes,{'tableName':_0xe8e5('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x3b50f8,_0x49c9ba,_0x21a750){return _0x2ddd77[_0xe8e5('0x6')]['update']({'value':_0x3b50f8[_0xe8e5('0x7')]},{'where':{'field':_0xe8e5('0x8'),'value':_0x3b50f8['_previousDataValues'][_0xe8e5('0x7')]}})[_0xe8e5('0x9')](function(){_0x21a750();})[_0xe8e5('0xa')](function(_0x2da74a){_0x21a750(_0x2da74a);});}}});};