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 _0xab18=['voice_voicemail','mailbox_context','mailbox','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./voiceMail.attributes','exports','define','VoiceMail'];(function(_0x283b55,_0x279bee){var _0x192e58=function(_0x535c7c){while(--_0x535c7c){_0x283b55['push'](_0x283b55['shift']());}};_0x192e58(++_0x279bee);}(_0xab18,0x153));var _0x8ab1=function(_0xe521b0,_0x25e2d9){_0xe521b0=_0xe521b0-0x0;var _0x16c725=_0xab18[_0xe521b0];return _0x16c725;};'use strict';var _=require('lodash');var util=require(_0x8ab1('0x0'));var logger=require(_0x8ab1('0x1'))('api');var moment=require(_0x8ab1('0x2'));var BPromise=require(_0x8ab1('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8ab1('0x4'));var rimraf=require(_0x8ab1('0x5'));var config=require(_0x8ab1('0x6'));var attributes=require(_0x8ab1('0x7'));module[_0x8ab1('0x8')]=function(_0x2d0ff6,_0x499ab5){return _0x2d0ff6[_0x8ab1('0x9')](_0x8ab1('0xa'),attributes,{'tableName':_0x8ab1('0xb'),'paranoid':![],'indexes':[{'name':_0x8ab1('0xc'),'fields':[_0x8ab1('0xd'),'context']}],'timestamps':!![]});};