2c946ac970132dc99e3117edace35b2b8a7bd1e5
[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 _0x11e5=['path','../../config/environment','define','uniqueid','lodash','../../config/logger','api','bluebird','request-promise'];(function(_0xe37207,_0x296ae3){var _0x35a422=function(_0x5552b6){while(--_0x5552b6){_0xe37207['push'](_0xe37207['shift']());}};_0x35a422(++_0x296ae3);}(_0x11e5,0x8b));var _0x511e=function(_0x3afad3,_0x5266f8){_0x3afad3=_0x3afad3-0x0;var _0x4e55c6=_0x11e5[_0x3afad3];return _0x4e55c6;};'use strict';var _=require(_0x511e('0x0'));var util=require('util');var logger=require(_0x511e('0x1'))(_0x511e('0x2'));var moment=require('moment');var BPromise=require(_0x511e('0x3'));var rp=require(_0x511e('0x4'));var fs=require('fs');var path=require(_0x511e('0x5'));var rimraf=require('rimraf');var config=require(_0x511e('0x6'));var attributes=require('./voiceRecording.attributes');module['exports']=function(_0x342539,_0x323f8c){return _0x342539[_0x511e('0x7')]('VoiceRecording',attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0x511e('0x8'),'fields':[_0x511e('0x8')]}],'timestamps':!![]});};