89b0f87e14030b44ad84853da998b140cca0da62
[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 _0x88b4=['util','../../config/logger','api','moment','request-promise','path','../../config/environment','./voiceRecording.attributes','exports','define','uniqueid'];(function(_0x270110,_0x3c910f){var _0x158e10=function(_0xab2d35){while(--_0xab2d35){_0x270110['push'](_0x270110['shift']());}};_0x158e10(++_0x3c910f);}(_0x88b4,0x1ad));var _0x488b=function(_0x128450,_0x5869ba){_0x128450=_0x128450-0x0;var _0x4d80ed=_0x88b4[_0x128450];return _0x4d80ed;};'use strict';var _=require('lodash');var util=require(_0x488b('0x0'));var logger=require(_0x488b('0x1'))(_0x488b('0x2'));var moment=require(_0x488b('0x3'));var BPromise=require('bluebird');var rp=require(_0x488b('0x4'));var fs=require('fs');var path=require(_0x488b('0x5'));var rimraf=require('rimraf');var config=require(_0x488b('0x6'));var attributes=require(_0x488b('0x7'));module[_0x488b('0x8')]=function(_0x19eeda,_0x19bdb2){return _0x19eeda[_0x488b('0x9')]('VoiceRecording',attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x488b('0xa')]}],'timestamps':!![]});};