47f4f159cfbf845a215de3f5e13ee3347cf59ed2
[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 _0x3fa7=['./mailSubstatus.attributes','exports','models','MailSubstatus','mail_substatuses','Condition','update','name','mailSubstatus','_previousDataValues','then','catch'];(function(_0x2cc5d2,_0x2e07bd){var _0x165ba1=function(_0x4340be){while(--_0x4340be){_0x2cc5d2['push'](_0x2cc5d2['shift']());}};_0x165ba1(++_0x2e07bd);}(_0x3fa7,0x198));var _0x73fa=function(_0x3dcf7d,_0x27ad77){_0x3dcf7d=_0x3dcf7d-0x0;var _0x166730=_0x3fa7[_0x3dcf7d];return _0x166730;};'use strict';var attributes=require(_0x73fa('0x0'));module[_0x73fa('0x1')]=function(_0x10b906){var _0x27513a=_0x10b906[_0x73fa('0x2')];return _0x10b906['define'](_0x73fa('0x3'),attributes,{'tableName':_0x73fa('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x4e9065,_0x168301,_0x6d4e5e){return _0x27513a[_0x73fa('0x5')][_0x73fa('0x6')]({'value':_0x4e9065[_0x73fa('0x7')]},{'where':{'field':_0x73fa('0x8'),'value':_0x4e9065[_0x73fa('0x9')][_0x73fa('0x7')]}})[_0x73fa('0xa')](function(){_0x6d4e5e();})[_0x73fa('0xb')](function(_0x459c41){_0x6d4e5e(_0x459c41);});}}});};