Built motion from commit da24aabd.|2.6.20
[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 _0xd65a=['mailSubstatus','_previousDataValues','name','then','catch','./mailSubstatus.attributes','models','define','mail_substatuses','update'];(function(_0x457bf5,_0x4282b6){var _0x51eab9=function(_0x36a658){while(--_0x36a658){_0x457bf5['push'](_0x457bf5['shift']());}};_0x51eab9(++_0x4282b6);}(_0xd65a,0x16d));var _0xad65=function(_0x55250a,_0x4f52bb){_0x55250a=_0x55250a-0x0;var _0x27624c=_0xd65a[_0x55250a];return _0x27624c;};'use strict';var attributes=require(_0xad65('0x0'));module['exports']=function(_0x4e290b){var _0x10b311=_0x4e290b[_0xad65('0x1')];return _0x4e290b[_0xad65('0x2')]('MailSubstatus',attributes,{'tableName':_0xad65('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x1aa2c0,_0x4228ba,_0x181bc3){return _0x10b311['Condition'][_0xad65('0x4')]({'value':_0x1aa2c0['name']},{'where':{'field':_0xad65('0x5'),'value':_0x1aa2c0[_0xad65('0x6')][_0xad65('0x7')]}})[_0xad65('0x8')](function(){_0x181bc3();})[_0xad65('0x9')](function(_0x101539){_0x181bc3(_0x101539);});}}});};