Built motion from commit e6806ed6.|2.6.0
[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 _0x5a76=['dir','lodash','api','moment','bluebird','path','../../config/environment','./voiceMailMessage.attributes','exports','VoiceMailMessage'];(function(_0x50c16c,_0x43b99e){var _0x24dc5f=function(_0x39b90f){while(--_0x39b90f){_0x50c16c['push'](_0x50c16c['shift']());}};_0x24dc5f(++_0x43b99e);}(_0x5a76,0x141));var _0x65a7=function(_0x56fcfe,_0x492c71){_0x56fcfe=_0x56fcfe-0x0;var _0x5ea7b6=_0x5a76[_0x56fcfe];return _0x5ea7b6;};'use strict';var _=require(_0x65a7('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x65a7('0x1'));var moment=require(_0x65a7('0x2'));var BPromise=require(_0x65a7('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x65a7('0x4'));var rimraf=require('rimraf');var config=require(_0x65a7('0x5'));var attributes=require(_0x65a7('0x6'));module[_0x65a7('0x7')]=function(_0x2a4240,_0x30e600){return _0x2a4240['define'](_0x65a7('0x8'),attributes,{'tableName':'voice_voicemail_messages','paranoid':![],'indexes':[{'name':_0x65a7('0x9'),'fields':[_0x65a7('0x9')]}],'timestamps':![]});};