Built motion from commit 85328c08.|2.5.50
[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 _0x46b7=['uniqueid','util','../../config/logger','api','moment','request-promise','path','rimraf','./voiceRecording.attributes','exports','define','VoiceRecording'];(function(_0x12347b,_0x38a042){var _0xf92513=function(_0xc66aaf){while(--_0xc66aaf){_0x12347b['push'](_0x12347b['shift']());}};_0xf92513(++_0x38a042);}(_0x46b7,0xa9));var _0x746b=function(_0xfda00,_0x33fe78){_0xfda00=_0xfda00-0x0;var _0x86314e=_0x46b7[_0xfda00];return _0x86314e;};'use strict';var _=require('lodash');var util=require(_0x746b('0x0'));var logger=require(_0x746b('0x1'))(_0x746b('0x2'));var moment=require(_0x746b('0x3'));var BPromise=require('bluebird');var rp=require(_0x746b('0x4'));var fs=require('fs');var path=require(_0x746b('0x5'));var rimraf=require(_0x746b('0x6'));var config=require('../../config/environment');var attributes=require(_0x746b('0x7'));module[_0x746b('0x8')]=function(_0x167839,_0x50b09e){return _0x167839[_0x746b('0x9')](_0x746b('0xa'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0x746b('0xb'),'fields':[_0x746b('0xb')]}],'timestamps':!![]});};