Built motion from commit ddca4d0d.|2.5.47
[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 _0xa0fe=['MailSubstatus','mail_substatuses','update','name','mailSubstatus','_previousDataValues','catch','./mailSubstatus.attributes','exports','models','define'];(function(_0xddaf6d,_0x8a7fea){var _0x52e09d=function(_0x34415d){while(--_0x34415d){_0xddaf6d['push'](_0xddaf6d['shift']());}};_0x52e09d(++_0x8a7fea);}(_0xa0fe,0xd8));var _0xea0f=function(_0x53d457,_0x53bfe8){_0x53d457=_0x53d457-0x0;var _0x40e35b=_0xa0fe[_0x53d457];return _0x40e35b;};'use strict';var attributes=require(_0xea0f('0x0'));module[_0xea0f('0x1')]=function(_0x295307){var _0x5114b8=_0x295307[_0xea0f('0x2')];return _0x295307[_0xea0f('0x3')](_0xea0f('0x4'),attributes,{'tableName':_0xea0f('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4699ca,_0x1db488,_0x54e3c6){return _0x5114b8['Condition'][_0xea0f('0x6')]({'value':_0x4699ca[_0xea0f('0x7')]},{'where':{'field':_0xea0f('0x8'),'value':_0x4699ca[_0xea0f('0x9')][_0xea0f('0x7')]}})['then'](function(){_0x54e3c6();})[_0xea0f('0xa')](function(_0x1050ad){_0x54e3c6(_0x1050ad);});}}});};