Built motion from commit eddce310.|2.6.12
[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 _0x3363=['_previousDataValues','then','./mailSubstatus.attributes','models','define','mail_substatuses','Condition','update','name','mailSubstatus'];(function(_0x55593b,_0x5ef210){var _0x25b8d0=function(_0x631836){while(--_0x631836){_0x55593b['push'](_0x55593b['shift']());}};_0x25b8d0(++_0x5ef210);}(_0x3363,0x156));var _0x3336=function(_0x2ec4dd,_0x376ed0){_0x2ec4dd=_0x2ec4dd-0x0;var _0x2b9e16=_0x3363[_0x2ec4dd];return _0x2b9e16;};'use strict';var attributes=require(_0x3336('0x0'));module['exports']=function(_0x415475){var _0x23b59c=_0x415475[_0x3336('0x1')];return _0x415475[_0x3336('0x2')]('MailSubstatus',attributes,{'tableName':_0x3336('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x3b5185,_0x55312b,_0x439acc){return _0x23b59c[_0x3336('0x4')][_0x3336('0x5')]({'value':_0x3b5185[_0x3336('0x6')]},{'where':{'field':_0x3336('0x7'),'value':_0x3b5185[_0x3336('0x8')][_0x3336('0x6')]}})[_0x3336('0x9')](function(){_0x439acc();})['catch'](function(_0x3dc6d1){_0x439acc(_0x3dc6d1);});}}});};