Built motion from commit (unavailable).|2.4.17
[motion2.git] / server / api / voiceMail / voiceMail.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 _0xdebe=['../../config/logger','api','bluebird','path','rimraf','./voiceMail.attributes','exports','VoiceMail','voice_voicemail','mailbox','lodash','util'];(function(_0x39c6b0,_0x3e2751){var _0x4b3139=function(_0x465a28){while(--_0x465a28){_0x39c6b0['push'](_0x39c6b0['shift']());}};_0x4b3139(++_0x3e2751);}(_0xdebe,0x142));var _0xedeb=function(_0x2796f1,_0x379f38){_0x2796f1=_0x2796f1-0x0;var _0x12544b=_0xdebe[_0x2796f1];return _0x12544b;};'use strict';var _=require(_0xedeb('0x0'));var util=require(_0xedeb('0x1'));var logger=require(_0xedeb('0x2'))(_0xedeb('0x3'));var moment=require('moment');var BPromise=require(_0xedeb('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xedeb('0x5'));var rimraf=require(_0xedeb('0x6'));var config=require('../../config/environment');var attributes=require(_0xedeb('0x7'));module[_0xedeb('0x8')]=function(_0x4b3965,_0x5c788e){return _0x4b3965['define'](_0xedeb('0x9'),attributes,{'tableName':_0xedeb('0xa'),'paranoid':![],'indexes':[{'name':'mailbox_context','fields':[_0xedeb('0xb'),'context']}],'timestamps':!![]});};