8d44cb68326c0342948fc474b6367275ce3f7e3c
[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 _0x97f0=['rimraf','./voiceMailMessage.attributes','exports','define','VoiceMailMessage','voice_voicemail_messages','dir','lodash','util','bluebird','request-promise','path'];(function(_0x499c7f,_0x2d8184){var _0x433bee=function(_0xd1543a){while(--_0xd1543a){_0x499c7f['push'](_0x499c7f['shift']());}};_0x433bee(++_0x2d8184);}(_0x97f0,0x1b7));var _0x097f=function(_0x3c59fc,_0x10dbd2){_0x3c59fc=_0x3c59fc-0x0;var _0x2b78d4=_0x97f0[_0x3c59fc];return _0x2b78d4;};'use strict';var _=require(_0x097f('0x0'));var util=require(_0x097f('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x097f('0x2'));var rp=require(_0x097f('0x3'));var fs=require('fs');var path=require(_0x097f('0x4'));var rimraf=require(_0x097f('0x5'));var config=require('../../config/environment');var attributes=require(_0x097f('0x6'));module[_0x097f('0x7')]=function(_0x4b2ef3,_0x1415a3){return _0x4b2ef3[_0x097f('0x8')](_0x097f('0x9'),attributes,{'tableName':_0x097f('0xa'),'paranoid':![],'indexes':[{'name':_0x097f('0xb'),'fields':[_0x097f('0xb')]}],'timestamps':![]});};