Built motion from commit cb845558.|2.6.34
[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 _0x3bc0=['define','MailSubstatus','mail_substatuses','Condition','name','mailSubstatus','_previousDataValues','then','./mailSubstatus.attributes','exports','models'];(function(_0x4a0e68,_0x45c08c){var _0x4fb274=function(_0x5f36b1){while(--_0x5f36b1){_0x4a0e68['push'](_0x4a0e68['shift']());}};_0x4fb274(++_0x45c08c);}(_0x3bc0,0xa2));var _0x03bc=function(_0x36ed3c,_0x44a00a){_0x36ed3c=_0x36ed3c-0x0;var _0x52a2e0=_0x3bc0[_0x36ed3c];return _0x52a2e0;};'use strict';var attributes=require(_0x03bc('0x0'));module[_0x03bc('0x1')]=function(_0x32e119){var _0x2c4013=_0x32e119[_0x03bc('0x2')];return _0x32e119[_0x03bc('0x3')](_0x03bc('0x4'),attributes,{'tableName':_0x03bc('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x3a702c,_0x62f304,_0xc99ffa){return _0x2c4013[_0x03bc('0x6')]['update']({'value':_0x3a702c[_0x03bc('0x7')]},{'where':{'field':_0x03bc('0x8'),'value':_0x3a702c[_0x03bc('0x9')][_0x03bc('0x7')]}})[_0x03bc('0xa')](function(){_0xc99ffa();})['catch'](function(_0xb103b3){_0xc99ffa(_0xb103b3);});}}});};