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 _0xcc8f=['moment','request-promise','../../config/environment','exports','VoiceRecording','uniqueid','../../config/logger','api'];(function(_0x5c87d9,_0x540543){var _0x13cf5c=function(_0x44a07e){while(--_0x44a07e){_0x5c87d9['push'](_0x5c87d9['shift']());}};_0x13cf5c(++_0x540543);}(_0xcc8f,0x1a6));var _0xfcc8=function(_0x4ef23d,_0x4210be){_0x4ef23d=_0x4ef23d-0x0;var _0x1b8f20=_0xcc8f[_0x4ef23d];return _0x1b8f20;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xfcc8('0x0'))(_0xfcc8('0x1'));var moment=require(_0xfcc8('0x2'));var BPromise=require('bluebird');var rp=require(_0xfcc8('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xfcc8('0x4'));var attributes=require('./voiceRecording.attributes');module[_0xfcc8('0x5')]=function(_0x2adf22,_0x1f2364){return _0x2adf22['define'](_0xfcc8('0x6'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0xfcc8('0x7'),'fields':[_0xfcc8('0x7')]}],'timestamps':!![]});};