4f3d96efb55f204c685222341fed99ed9fbb1012
[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 _0x0324=['_previousDataValues','then','./mailSubstatus.attributes','exports','models','define','MailSubstatus','mail_substatuses','update','name','mailSubstatus'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x0324,0xd3));var _0x4032=function(_0x13ea64,_0x717c19){_0x13ea64=_0x13ea64-0x0;var _0xd35ca1=_0x0324[_0x13ea64];return _0xd35ca1;};'use strict';var attributes=require(_0x4032('0x0'));module[_0x4032('0x1')]=function(_0x552f31){var _0x10a05d=_0x552f31[_0x4032('0x2')];return _0x552f31[_0x4032('0x3')](_0x4032('0x4'),attributes,{'tableName':_0x4032('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4cf280,_0x2c4aff,_0x2b11fd){return _0x10a05d['Condition'][_0x4032('0x6')]({'value':_0x4cf280[_0x4032('0x7')]},{'where':{'field':_0x4032('0x8'),'value':_0x4cf280[_0x4032('0x9')][_0x4032('0x7')]}})[_0x4032('0xa')](function(){_0x2b11fd();})['catch'](function(_0x1f1405){_0x2b11fd(_0x1f1405);});}}});};