Built motion from commit 7a4eb044.|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 _0xc97a=['./voiceRecording.attributes','exports','define','voice_recordings','uniqueid','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x564393,_0xd07e96){var _0x5aaa14=function(_0x538de0){while(--_0x538de0){_0x564393['push'](_0x564393['shift']());}};_0x5aaa14(++_0xd07e96);}(_0xc97a,0x1d9));var _0xac97=function(_0x51bd76,_0x25183c){_0x51bd76=_0x51bd76-0x0;var _0x5c1410=_0xc97a[_0x51bd76];return _0x5c1410;};'use strict';var _=require(_0xac97('0x0'));var util=require(_0xac97('0x1'));var logger=require(_0xac97('0x2'))('api');var moment=require(_0xac97('0x3'));var BPromise=require(_0xac97('0x4'));var rp=require(_0xac97('0x5'));var fs=require('fs');var path=require(_0xac97('0x6'));var rimraf=require(_0xac97('0x7'));var config=require('../../config/environment');var attributes=require(_0xac97('0x8'));module[_0xac97('0x9')]=function(_0x3cffcc,_0x20ea48){return _0x3cffcc[_0xac97('0xa')]('VoiceRecording',attributes,{'tableName':_0xac97('0xb'),'paranoid':![],'indexes':[{'name':_0xac97('0xc'),'fields':[_0xac97('0xc')]}],'timestamps':!![]});};