Built motion from commit 0900f080.|2.5.45
[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 _0xe643=['./mailSubstatus.attributes','exports','define','MailSubstatus','mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues','catch'];(function(_0x1d79c3,_0x3992a9){var _0x5ed06c=function(_0x148fec){while(--_0x148fec){_0x1d79c3['push'](_0x1d79c3['shift']());}};_0x5ed06c(++_0x3992a9);}(_0xe643,0x84));var _0x3e64=function(_0x138adb,_0x193fee){_0x138adb=_0x138adb-0x0;var _0x1b27f2=_0xe643[_0x138adb];return _0x1b27f2;};'use strict';var attributes=require(_0x3e64('0x0'));module[_0x3e64('0x1')]=function(_0x5f2e9d){var _0x328a0f=_0x5f2e9d['models'];return _0x5f2e9d[_0x3e64('0x2')](_0x3e64('0x3'),attributes,{'tableName':_0x3e64('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x12eb74,_0x13b250,_0x5d4a4e){return _0x328a0f[_0x3e64('0x5')][_0x3e64('0x6')]({'value':_0x12eb74[_0x3e64('0x7')]},{'where':{'field':_0x3e64('0x8'),'value':_0x12eb74[_0x3e64('0x9')][_0x3e64('0x7')]}})['then'](function(){_0x5d4a4e();})[_0x3e64('0xa')](function(_0x2ddf0e){_0x5d4a4e(_0x2ddf0e);});}}});};