Built motion from commit ede67897.|2.6.29
[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 _0x8292=['mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues','then','catch','exports','models','define','MailSubstatus'];(function(_0x23ed26,_0x1d2ff4){var _0x545502=function(_0x5bd921){while(--_0x5bd921){_0x23ed26['push'](_0x23ed26['shift']());}};_0x545502(++_0x1d2ff4);}(_0x8292,0x14c));var _0x2829=function(_0xadd855,_0x313dd0){_0xadd855=_0xadd855-0x0;var _0x16a09f=_0x8292[_0xadd855];return _0x16a09f;};'use strict';var attributes=require('./mailSubstatus.attributes');module[_0x2829('0x0')]=function(_0x2d7b7f){var _0x5b8713=_0x2d7b7f[_0x2829('0x1')];return _0x2d7b7f[_0x2829('0x2')](_0x2829('0x3'),attributes,{'tableName':_0x2829('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x160c78,_0xbae49a,_0x47b425){return _0x5b8713[_0x2829('0x5')][_0x2829('0x6')]({'value':_0x160c78[_0x2829('0x7')]},{'where':{'field':_0x2829('0x8'),'value':_0x160c78[_0x2829('0x9')]['name']}})[_0x2829('0xa')](function(){_0x47b425();})[_0x2829('0xb')](function(_0x3ae278){_0x47b425(_0x3ae278);});}}});};