33e101237674e6e10da5c6d96de04bb96a1902df
[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 _0x11e3=['VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','define'];(function(_0x3a8ff0,_0x49fc6e){var _0x46d6ba=function(_0xc73be8){while(--_0xc73be8){_0x3a8ff0['push'](_0x3a8ff0['shift']());}};_0x46d6ba(++_0x49fc6e);}(_0x11e3,0x6f));var _0x311e=function(_0xe51299,_0x1f1a98){_0xe51299=_0xe51299-0x0;var _0x2efed7=_0x11e3[_0xe51299];return _0x2efed7;};'use strict';var _=require(_0x311e('0x0'));var util=require(_0x311e('0x1'));var logger=require(_0x311e('0x2'))(_0x311e('0x3'));var moment=require('moment');var BPromise=require(_0x311e('0x4'));var rp=require(_0x311e('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x311e('0x6'));var config=require(_0x311e('0x7'));var attributes=require('./voiceRecording.attributes');module['exports']=function(_0xe46ee6,_0xd18f09){return _0xe46ee6[_0x311e('0x8')](_0x311e('0x9'),attributes,{'tableName':_0x311e('0xa'),'paranoid':![],'indexes':[{'name':_0x311e('0xb'),'fields':[_0x311e('0xb')]}],'timestamps':!![]});};