a13e41997e0557256470de757394f7c171f31429
[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 _0x283b=['then','catch','./mailSubstatus.attributes','exports','models','define','MailSubstatus','mail_substatuses','name','mailSubstatus'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x283b,0x188));var _0xb283=function(_0x45f5db,_0x402f83){_0x45f5db=_0x45f5db-0x0;var _0x47d91e=_0x283b[_0x45f5db];return _0x47d91e;};'use strict';var attributes=require(_0xb283('0x0'));module[_0xb283('0x1')]=function(_0xbbc7de){var _0x37c49e=_0xbbc7de[_0xb283('0x2')];return _0xbbc7de[_0xb283('0x3')](_0xb283('0x4'),attributes,{'tableName':_0xb283('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4f082e,_0x59a4ea,_0x5a2483){return _0x37c49e['Condition']['update']({'value':_0x4f082e[_0xb283('0x6')]},{'where':{'field':_0xb283('0x7'),'value':_0x4f082e['_previousDataValues']['name']}})[_0xb283('0x8')](function(){_0x5a2483();})[_0xb283('0x9')](function(_0x3338b5){_0x5a2483(_0x3338b5);});}}});};