1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x2edf=['define','VoiceMailMessage','voice_voicemail_messages','dir','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x572944,_0xd5c0df){var _0x2f457a=function(_0x5ba3bf){while(--_0x5ba3bf){_0x572944['push'](_0x572944['shift']());}};_0x2f457a(++_0xd5c0df);}(_0x2edf,0x79));var _0xf2ed=function(_0x4945e8,_0x597c5e){_0x4945e8=_0x4945e8-0x0;var _0x4300ca=_0x2edf[_0x4945e8];return _0x4300ca;};'use strict';var _=require(_0xf2ed('0x0'));var util=require(_0xf2ed('0x1'));var logger=require(_0xf2ed('0x2'))('api');var moment=require(_0xf2ed('0x3'));var BPromise=require(_0xf2ed('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf2ed('0x5'));var rimraf=require(_0xf2ed('0x6'));var config=require(_0xf2ed('0x7'));var attributes=require('./voiceMailMessage.attributes');module[_0xf2ed('0x8')]=function(_0x24d471,_0x17f0fd){return _0x24d471[_0xf2ed('0x9')](_0xf2ed('0xa'),attributes,{'tableName':_0xf2ed('0xb'),'paranoid':![],'indexes':[{'name':_0xf2ed('0xc'),'fields':['dir']}],'timestamps':![]});};