Built motion from commit 85328c08.|2.5.50
[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 _0xf5a2=['./mailSubstatus.attributes','exports','define','MailSubstatus','mail_substatuses','Condition','update','mailSubstatus','_previousDataValues','name','catch'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xf5a2,0xb0));var _0x2f5a=function(_0x2d2fe7,_0xfe1ead){_0x2d2fe7=_0x2d2fe7-0x0;var _0x73a810=_0xf5a2[_0x2d2fe7];return _0x73a810;};'use strict';var attributes=require(_0x2f5a('0x0'));module[_0x2f5a('0x1')]=function(_0x5d7759){var _0x34d7be=_0x5d7759['models'];return _0x5d7759[_0x2f5a('0x2')](_0x2f5a('0x3'),attributes,{'tableName':_0x2f5a('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x1bf6e0,_0x161098,_0x332c70){return _0x34d7be[_0x2f5a('0x5')][_0x2f5a('0x6')]({'value':_0x1bf6e0['name']},{'where':{'field':_0x2f5a('0x7'),'value':_0x1bf6e0[_0x2f5a('0x8')][_0x2f5a('0x9')]}})['then'](function(){_0x332c70();})[_0x2f5a('0xa')](function(_0x293eaa){_0x332c70(_0x293eaa);});}}});};