Built motion from commit e02f907f.|2.6.14
[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 _0x93f4=['catch','./mailSubstatus.attributes','exports','models','define','MailSubstatus','mail_substatuses','Condition','update','mailSubstatus','_previousDataValues','then'];(function(_0x614dc5,_0x3dd98e){var _0x571e07=function(_0x1dae24){while(--_0x1dae24){_0x614dc5['push'](_0x614dc5['shift']());}};_0x571e07(++_0x3dd98e);}(_0x93f4,0x79));var _0x493f=function(_0x406a08,_0x17428a){_0x406a08=_0x406a08-0x0;var _0x588f3b=_0x93f4[_0x406a08];return _0x588f3b;};'use strict';var attributes=require(_0x493f('0x0'));module[_0x493f('0x1')]=function(_0x54af6c){var _0x14c0df=_0x54af6c[_0x493f('0x2')];return _0x54af6c[_0x493f('0x3')](_0x493f('0x4'),attributes,{'tableName':_0x493f('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x2ef9d5,_0x23e482,_0x8fa813){return _0x14c0df[_0x493f('0x6')][_0x493f('0x7')]({'value':_0x2ef9d5['name']},{'where':{'field':_0x493f('0x8'),'value':_0x2ef9d5[_0x493f('0x9')]['name']}})[_0x493f('0xa')](function(){_0x8fa813();})[_0x493f('0xb')](function(_0x3f74be){_0x8fa813(_0x3f74be);});}}});};