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 _0xe8dd=['rimraf','./voiceRecording.attributes','exports','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xe8dd,0x1c0));var _0xde8d=function(_0x1ea567,_0xf0ccfc){_0x1ea567=_0x1ea567-0x0;var _0x6c1b56=_0xe8dd[_0x1ea567];return _0x6c1b56;};'use strict';var _=require(_0xde8d('0x0'));var util=require(_0xde8d('0x1'));var logger=require(_0xde8d('0x2'))('api');var moment=require(_0xde8d('0x3'));var BPromise=require(_0xde8d('0x4'));var rp=require(_0xde8d('0x5'));var fs=require('fs');var path=require(_0xde8d('0x6'));var rimraf=require(_0xde8d('0x7'));var config=require('../../config/environment');var attributes=require(_0xde8d('0x8'));module[_0xde8d('0x9')]=function(_0x28574c,_0x472a4d){return _0x28574c['define'](_0xde8d('0xa'),attributes,{'tableName':_0xde8d('0xb'),'paranoid':![],'indexes':[{'name':_0xde8d('0xc'),'fields':[_0xde8d('0xc')]}],'timestamps':!![]});};