6c375064b5d9f119a335497ef6feb859c23331b3
[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 _0x7784=['path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','util','../../config/logger','api','moment','bluebird'];(function(_0x1d79c3,_0x3992a9){var _0x5ed06c=function(_0x148fec){while(--_0x148fec){_0x1d79c3['push'](_0x1d79c3['shift']());}};_0x5ed06c(++_0x3992a9);}(_0x7784,0x1c9));var _0x4778=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x7784[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require('lodash');var util=require(_0x4778('0x0'));var logger=require(_0x4778('0x1'))(_0x4778('0x2'));var moment=require(_0x4778('0x3'));var BPromise=require(_0x4778('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4778('0x5'));var rimraf=require(_0x4778('0x6'));var config=require(_0x4778('0x7'));var attributes=require(_0x4778('0x8'));module[_0x4778('0x9')]=function(_0x441402,_0x41c3d0){return _0x441402[_0x4778('0xa')](_0x4778('0xb'),attributes,{'tableName':_0x4778('0xc'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x4778('0xd')]}],'timestamps':!![]});};