Built motion from commit 5b761a7b.|2.5.36
[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 _0x74ae=['uniqueid','lodash','util','api','moment','request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings'];(function(_0x45f575,_0x3ae51c){var _0xd8e1a1=function(_0x34867b){while(--_0x34867b){_0x45f575['push'](_0x45f575['shift']());}};_0xd8e1a1(++_0x3ae51c);}(_0x74ae,0xc5));var _0xe74a=function(_0x5686fa,_0x3e039a){_0x5686fa=_0x5686fa-0x0;var _0x2cd56b=_0x74ae[_0x5686fa];return _0x2cd56b;};'use strict';var _=require(_0xe74a('0x0'));var util=require(_0xe74a('0x1'));var logger=require('../../config/logger')(_0xe74a('0x2'));var moment=require(_0xe74a('0x3'));var BPromise=require('bluebird');var rp=require(_0xe74a('0x4'));var fs=require('fs');var path=require(_0xe74a('0x5'));var rimraf=require(_0xe74a('0x6'));var config=require(_0xe74a('0x7'));var attributes=require(_0xe74a('0x8'));module[_0xe74a('0x9')]=function(_0x4e2b8d,_0x1c09fd){return _0x4e2b8d[_0xe74a('0xa')](_0xe74a('0xb'),attributes,{'tableName':_0xe74a('0xc'),'paranoid':![],'indexes':[{'name':_0xe74a('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};