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 _0xbeb5=['request-promise','rimraf','../../config/environment','./voiceMail.attributes','VoiceMail','voice_voicemail','mailbox_context','util','moment','bluebird'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xbeb5,0x1c9));var _0x5beb=function(_0xfd249f,_0x1d537e){_0xfd249f=_0xfd249f-0x0;var _0xccd9d3=_0xbeb5[_0xfd249f];return _0xccd9d3;};'use strict';var _=require('lodash');var util=require(_0x5beb('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x5beb('0x1'));var BPromise=require(_0x5beb('0x2'));var rp=require(_0x5beb('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5beb('0x4'));var config=require(_0x5beb('0x5'));var attributes=require(_0x5beb('0x6'));module['exports']=function(_0x47b34c,_0x3f9651){return _0x47b34c['define'](_0x5beb('0x7'),attributes,{'tableName':_0x5beb('0x8'),'paranoid':![],'indexes':[{'name':_0x5beb('0x9'),'fields':['mailbox','context']}],'timestamps':!![]});};