Built motion from commit (unavailable).|2.5.12
[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 _0xf8ed=['exports','define','VoiceRecording','uniqueid','util','api','moment','bluebird','request-promise','rimraf','../../config/environment','./voiceRecording.attributes'];(function(_0x4d8ed9,_0x2ae284){var _0x1e2140=function(_0x9cca89){while(--_0x9cca89){_0x4d8ed9['push'](_0x4d8ed9['shift']());}};_0x1e2140(++_0x2ae284);}(_0xf8ed,0xdc));var _0xdf8e=function(_0x1c65a4,_0x3f1b44){_0x1c65a4=_0x1c65a4-0x0;var _0x3ee816=_0xf8ed[_0x1c65a4];return _0x3ee816;};'use strict';var _=require('lodash');var util=require(_0xdf8e('0x0'));var logger=require('../../config/logger')(_0xdf8e('0x1'));var moment=require(_0xdf8e('0x2'));var BPromise=require(_0xdf8e('0x3'));var rp=require(_0xdf8e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xdf8e('0x5'));var config=require(_0xdf8e('0x6'));var attributes=require(_0xdf8e('0x7'));module[_0xdf8e('0x8')]=function(_0x2c334f,_0x92a57e){return _0x2c334f[_0xdf8e('0x9')](_0xdf8e('0xa'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0xdf8e('0xb'),'fields':[_0xdf8e('0xb')]}],'timestamps':!![]});};