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 _0xd6f2=['exports','define','VoiceRecording','uniqueid','util','../../config/logger','request-promise','path','../../config/environment'];(function(_0x16c94a,_0x552278){var _0x433626=function(_0x24db47){while(--_0x24db47){_0x16c94a['push'](_0x16c94a['shift']());}};_0x433626(++_0x552278);}(_0xd6f2,0x151));var _0x2d6f=function(_0xc11942,_0x55416b){_0xc11942=_0xc11942-0x0;var _0x4c5b44=_0xd6f2[_0xc11942];return _0x4c5b44;};'use strict';var _=require('lodash');var util=require(_0x2d6f('0x0'));var logger=require(_0x2d6f('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2d6f('0x2'));var fs=require('fs');var path=require(_0x2d6f('0x3'));var rimraf=require('rimraf');var config=require(_0x2d6f('0x4'));var attributes=require('./voiceRecording.attributes');module[_0x2d6f('0x5')]=function(_0x5c4270,_0x33288d){return _0x5c4270[_0x2d6f('0x6')](_0x2d6f('0x7'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0x2d6f('0x8'),'fields':['uniqueid']}],'timestamps':!![]});};