Built motion from commit 00bf23f6.|2.6.16
[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 _0xf4d3=['update','_previousDataValues','name','then','catch','exports','define','mail_substatuses','Condition'];(function(_0x3fd8e5,_0x3b1b2f){var _0x13c5b8=function(_0x6ef246){while(--_0x6ef246){_0x3fd8e5['push'](_0x3fd8e5['shift']());}};_0x13c5b8(++_0x3b1b2f);}(_0xf4d3,0x140));var _0x3f4d=function(_0x827f3a,_0x3ee6f5){_0x827f3a=_0x827f3a-0x0;var _0x1cd993=_0xf4d3[_0x827f3a];return _0x1cd993;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x3f4d('0x0')]=function(_0x29dace){var _0x5606ba=_0x29dace['models'];return _0x29dace[_0x3f4d('0x1')]('MailSubstatus',attributes,{'tableName':_0x3f4d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x3be0b0,_0x5cae5b,_0x5ef273){return _0x5606ba[_0x3f4d('0x3')][_0x3f4d('0x4')]({'value':_0x3be0b0['name']},{'where':{'field':'mailSubstatus','value':_0x3be0b0[_0x3f4d('0x5')][_0x3f4d('0x6')]}})[_0x3f4d('0x7')](function(){_0x5ef273();})[_0x3f4d('0x8')](function(_0x5435f0){_0x5ef273(_0x5435f0);});}}});};