d3e4227670bf0b7cca0ac488957b633f01edcd56
[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 _0x15a5=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','lodash','util'];(function(_0x1b7aa2,_0x570bf6){var _0x5ad2c8=function(_0x386354){while(--_0x386354){_0x1b7aa2['push'](_0x1b7aa2['shift']());}};_0x5ad2c8(++_0x570bf6);}(_0x15a5,0x148));var _0x515a=function(_0x41fcd3,_0x468007){_0x41fcd3=_0x41fcd3-0x0;var _0x144047=_0x15a5[_0x41fcd3];return _0x144047;};'use strict';var _=require(_0x515a('0x0'));var util=require(_0x515a('0x1'));var logger=require('../../config/logger')(_0x515a('0x2'));var moment=require(_0x515a('0x3'));var BPromise=require(_0x515a('0x4'));var rp=require(_0x515a('0x5'));var fs=require('fs');var path=require(_0x515a('0x6'));var rimraf=require(_0x515a('0x7'));var config=require(_0x515a('0x8'));var attributes=require(_0x515a('0x9'));module[_0x515a('0xa')]=function(_0x58da7d,_0xeec4a4){return _0x58da7d[_0x515a('0xb')](_0x515a('0xc'),attributes,{'tableName':_0x515a('0xd'),'paranoid':![],'indexes':[{'name':_0x515a('0xe'),'fields':['uniqueid']}],'timestamps':!![]});};