Built motion from commit efa66e19.|2.6.22
[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 _0x29ca=['./mailSubstatus.attributes','exports','models','define','mail_substatuses','update','name','mailSubstatus','_previousDataValues','catch'];(function(_0x3a574b,_0x2c4f1d){var _0x445031=function(_0x559747){while(--_0x559747){_0x3a574b['push'](_0x3a574b['shift']());}};_0x445031(++_0x2c4f1d);}(_0x29ca,0x122));var _0xa29c=function(_0x45283b,_0xe68902){_0x45283b=_0x45283b-0x0;var _0x1b23f9=_0x29ca[_0x45283b];return _0x1b23f9;};'use strict';var attributes=require(_0xa29c('0x0'));module[_0xa29c('0x1')]=function(_0x38d60c){var _0xa1c404=_0x38d60c[_0xa29c('0x2')];return _0x38d60c[_0xa29c('0x3')]('MailSubstatus',attributes,{'tableName':_0xa29c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x1c7e82,_0x3e8045,_0x22b0a4){return _0xa1c404['Condition'][_0xa29c('0x5')]({'value':_0x1c7e82[_0xa29c('0x6')]},{'where':{'field':_0xa29c('0x7'),'value':_0x1c7e82[_0xa29c('0x8')]['name']}})['then'](function(){_0x22b0a4();})[_0xa29c('0x9')](function(_0x391b61){_0x22b0a4(_0x391b61);});}}});};