Built motion from commit b7e79837.|2.6.29
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.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 _0x9ea8=['api','moment','bluebird','request-promise','path','rimraf','exports','define','VoiceMailMessage','dir','lodash','util','../../config/logger'];(function(_0x52a258,_0x354c0a){var _0x2f20c8=function(_0x52b10b){while(--_0x52b10b){_0x52a258['push'](_0x52a258['shift']());}};_0x2f20c8(++_0x354c0a);}(_0x9ea8,0x65));var _0x89ea=function(_0x216450,_0x5d25aa){_0x216450=_0x216450-0x0;var _0x105a05=_0x9ea8[_0x216450];return _0x105a05;};'use strict';var _=require(_0x89ea('0x0'));var util=require(_0x89ea('0x1'));var logger=require(_0x89ea('0x2'))(_0x89ea('0x3'));var moment=require(_0x89ea('0x4'));var BPromise=require(_0x89ea('0x5'));var rp=require(_0x89ea('0x6'));var fs=require('fs');var path=require(_0x89ea('0x7'));var rimraf=require(_0x89ea('0x8'));var config=require('../../config/environment');var attributes=require('./voiceMailMessage.attributes');module[_0x89ea('0x9')]=function(_0x4b8be7,_0x14d3e9){return _0x4b8be7[_0x89ea('0xa')](_0x89ea('0xb'),attributes,{'tableName':'voice_voicemail_messages','paranoid':![],'indexes':[{'name':'dir','fields':[_0x89ea('0xc')]}],'timestamps':![]});};