Built motion from commit 9d0783e6.|2.6.13
[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 _0xc77f=['update','name','_previousDataValues','then','catch','./mailSubstatus.attributes','models','MailSubstatus','mail_substatuses'];(function(_0x216687,_0x22dc4c){var _0xd1a759=function(_0x47fa38){while(--_0x47fa38){_0x216687['push'](_0x216687['shift']());}};_0xd1a759(++_0x22dc4c);}(_0xc77f,0x1d9));var _0xfc77=function(_0x414655,_0x79d916){_0x414655=_0x414655-0x0;var _0x237884=_0xc77f[_0x414655];return _0x237884;};'use strict';var attributes=require(_0xfc77('0x0'));module['exports']=function(_0x5478f0){var _0x1a4ebc=_0x5478f0[_0xfc77('0x1')];return _0x5478f0['define'](_0xfc77('0x2'),attributes,{'tableName':_0xfc77('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x321416,_0x5e0034,_0x52a0b4){return _0x1a4ebc['Condition'][_0xfc77('0x4')]({'value':_0x321416[_0xfc77('0x5')]},{'where':{'field':'mailSubstatus','value':_0x321416[_0xfc77('0x6')][_0xfc77('0x5')]}})[_0xfc77('0x7')](function(){_0x52a0b4();})[_0xfc77('0x8')](function(_0x82ed09){_0x52a0b4(_0x82ed09);});}}});};