d6d9ee02fe8ef58e63fa86a33429af6737ee96cc
[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 _0x0d3c=['api','bluebird','path','./voiceRecording.attributes','define','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger'];(function(_0x56f4ac,_0x14785b){var _0x4a7623=function(_0x241ead){while(--_0x241ead){_0x56f4ac['push'](_0x56f4ac['shift']());}};_0x4a7623(++_0x14785b);}(_0x0d3c,0x1d6));var _0xc0d3=function(_0x367c8e,_0x3a6502){_0x367c8e=_0x367c8e-0x0;var _0x1c2789=_0x0d3c[_0x367c8e];return _0x1c2789;};'use strict';var _=require(_0xc0d3('0x0'));var util=require(_0xc0d3('0x1'));var logger=require(_0xc0d3('0x2'))(_0xc0d3('0x3'));var moment=require('moment');var BPromise=require(_0xc0d3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc0d3('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xc0d3('0x6'));module['exports']=function(_0x108d98,_0x3a3884){return _0x108d98[_0xc0d3('0x7')](_0xc0d3('0x8'),attributes,{'tableName':_0xc0d3('0x9'),'paranoid':![],'indexes':[{'name':_0xc0d3('0xa'),'fields':[_0xc0d3('0xa')]}],'timestamps':!![]});};