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 _0x4eba=['path','./voiceRecording.attributes','exports','VoiceRecording','voice_recordings','uniqueid','../../config/logger','api','moment','request-promise'];(function(_0x23332a,_0x31364e){var _0x4af782=function(_0x3feaf9){while(--_0x3feaf9){_0x23332a['push'](_0x23332a['shift']());}};_0x4af782(++_0x31364e);}(_0x4eba,0x1be));var _0xa4eb=function(_0x3f9f32,_0x208da4){_0x3f9f32=_0x3f9f32-0x0;var _0x1f23b6=_0x4eba[_0x3f9f32];return _0x1f23b6;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xa4eb('0x0'))(_0xa4eb('0x1'));var moment=require(_0xa4eb('0x2'));var BPromise=require('bluebird');var rp=require(_0xa4eb('0x3'));var fs=require('fs');var path=require(_0xa4eb('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa4eb('0x5'));module[_0xa4eb('0x6')]=function(_0x2bab44,_0x1b6cec){return _0x2bab44['define'](_0xa4eb('0x7'),attributes,{'tableName':_0xa4eb('0x8'),'paranoid':![],'indexes':[{'name':_0xa4eb('0x9'),'fields':[_0xa4eb('0x9')]}],'timestamps':!![]});};