07bc70a8daa0729ce9ca25bf519cc27fc1144655
[motion2.git] / server / api / voiceRecording / voiceRecording.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb4be=['uniqueid','util','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./voiceRecording.attributes','define','voice_recordings'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xb4be,0x7a));var _0xeb4b=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xb4be[_0x42cae2];return _0x5f256f;};'use strict';var _=require('lodash');var util=require(_0xeb4b('0x0'));var logger=require(_0xeb4b('0x1'))(_0xeb4b('0x2'));var moment=require('moment');var BPromise=require(_0xeb4b('0x3'));var rp=require(_0xeb4b('0x4'));var fs=require('fs');var path=require(_0xeb4b('0x5'));var rimraf=require('rimraf');var config=require(_0xeb4b('0x6'));var attributes=require(_0xeb4b('0x7'));module['exports']=function(_0x385b45,_0x266b99){return _0x385b45[_0xeb4b('0x8')]('VoiceRecording',attributes,{'tableName':_0xeb4b('0x9'),'paranoid':![],'indexes':[{'name':_0xeb4b('0xa'),'fields':[_0xeb4b('0xa')]}],'timestamps':!![]});};