Built motion from commit 9e1ec266.|2.6.28
[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 _0x3c11=['exports','models','MailSubstatus','mail_substatuses','Condition','name','mailSubstatus','_previousDataValues','then','catch','./mailSubstatus.attributes'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3c11,0x196));var _0x13c1=function(_0x448061,_0x2debfd){_0x448061=_0x448061-0x0;var _0x3a9247=_0x3c11[_0x448061];return _0x3a9247;};'use strict';var attributes=require(_0x13c1('0x0'));module[_0x13c1('0x1')]=function(_0x1a8dea){var _0x28c218=_0x1a8dea[_0x13c1('0x2')];return _0x1a8dea['define'](_0x13c1('0x3'),attributes,{'tableName':_0x13c1('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x35d589,_0x5e78fc,_0x494e3e){return _0x28c218[_0x13c1('0x5')]['update']({'value':_0x35d589[_0x13c1('0x6')]},{'where':{'field':_0x13c1('0x7'),'value':_0x35d589[_0x13c1('0x8')][_0x13c1('0x6')]}})[_0x13c1('0x9')](function(){_0x494e3e();})[_0x13c1('0xa')](function(_0x4e692d){_0x494e3e(_0x4e692d);});}}});};