Built motion from commit da617fac.|2.6.6
[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 _0x8ba6=['MailSubstatus','mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues','then','./mailSubstatus.attributes','models','define'];(function(_0xa99e3f,_0x1333a5){var _0x3ad28e=function(_0x125dc7){while(--_0x125dc7){_0xa99e3f['push'](_0xa99e3f['shift']());}};_0x3ad28e(++_0x1333a5);}(_0x8ba6,0x11b));var _0x68ba=function(_0x1e6102,_0x17e088){_0x1e6102=_0x1e6102-0x0;var _0x130795=_0x8ba6[_0x1e6102];return _0x130795;};'use strict';var attributes=require(_0x68ba('0x0'));module['exports']=function(_0x2a5412){var _0x5e38b8=_0x2a5412[_0x68ba('0x1')];return _0x2a5412[_0x68ba('0x2')](_0x68ba('0x3'),attributes,{'tableName':_0x68ba('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x59c60c,_0x4a5138,_0x77a639){return _0x5e38b8[_0x68ba('0x5')][_0x68ba('0x6')]({'value':_0x59c60c[_0x68ba('0x7')]},{'where':{'field':_0x68ba('0x8'),'value':_0x59c60c[_0x68ba('0x9')][_0x68ba('0x7')]}})[_0x68ba('0xa')](function(){_0x77a639();})['catch'](function(_0x33891a){_0x77a639(_0x33891a);});}}});};