Built motion from commit 47436d59.|2.6.7
[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 _0x969e=['mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues','catch','./mailSubstatus.attributes','models','define','MailSubstatus'];(function(_0x155af3,_0x4b7f9a){var _0x15a675=function(_0xec0188){while(--_0xec0188){_0x155af3['push'](_0x155af3['shift']());}};_0x15a675(++_0x4b7f9a);}(_0x969e,0x17d));var _0xe969=function(_0x3def52,_0x2a1522){_0x3def52=_0x3def52-0x0;var _0x3b4466=_0x969e[_0x3def52];return _0x3b4466;};'use strict';var attributes=require(_0xe969('0x0'));module['exports']=function(_0x17fdd8){var _0x4195f9=_0x17fdd8[_0xe969('0x1')];return _0x17fdd8[_0xe969('0x2')](_0xe969('0x3'),attributes,{'tableName':_0xe969('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x53284a,_0x1eb747,_0x3d8352){return _0x4195f9[_0xe969('0x5')][_0xe969('0x6')]({'value':_0x53284a[_0xe969('0x7')]},{'where':{'field':_0xe969('0x8'),'value':_0x53284a[_0xe969('0x9')][_0xe969('0x7')]}})['then'](function(){_0x3d8352();})[_0xe969('0xa')](function(_0x51caad){_0x3d8352(_0x51caad);});}}});};