Built motion from commit (unavailable).|2.5.2
[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 _0xe1b6=['define','VoiceRecording','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./voiceRecording.attributes','exports'];(function(_0x2a6c23,_0x508d7c){var _0x4f6cad=function(_0x33a124){while(--_0x33a124){_0x2a6c23['push'](_0x2a6c23['shift']());}};_0x4f6cad(++_0x508d7c);}(_0xe1b6,0x1bd));var _0x6e1b=function(_0x2e5286,_0x377bff){_0x2e5286=_0x2e5286-0x0;var _0x552484=_0xe1b6[_0x2e5286];return _0x552484;};'use strict';var _=require(_0x6e1b('0x0'));var util=require(_0x6e1b('0x1'));var logger=require(_0x6e1b('0x2'))(_0x6e1b('0x3'));var moment=require('moment');var BPromise=require(_0x6e1b('0x4'));var rp=require(_0x6e1b('0x5'));var fs=require('fs');var path=require(_0x6e1b('0x6'));var rimraf=require(_0x6e1b('0x7'));var config=require('../../config/environment');var attributes=require(_0x6e1b('0x8'));module[_0x6e1b('0x9')]=function(_0x41e53e,_0x1ee298){return _0x41e53e[_0x6e1b('0xa')](_0x6e1b('0xb'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0x6e1b('0xc'),'fields':[_0x6e1b('0xc')]}],'timestamps':!![]});};