Built motion from commit (unavailable).|2.5.29
[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 _0x073c=['request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','uniqueid','lodash','util','../../config/logger','moment','bluebird'];(function(_0x135565,_0x219ee8){var _0x2b03b4=function(_0x1d457d){while(--_0x1d457d){_0x135565['push'](_0x135565['shift']());}};_0x2b03b4(++_0x219ee8);}(_0x073c,0x191));var _0xc073=function(_0x35e361,_0x93be6b){_0x35e361=_0x35e361-0x0;var _0x38d9be=_0x073c[_0x35e361];return _0x38d9be;};'use strict';var _=require(_0xc073('0x0'));var util=require(_0xc073('0x1'));var logger=require(_0xc073('0x2'))('api');var moment=require(_0xc073('0x3'));var BPromise=require(_0xc073('0x4'));var rp=require(_0xc073('0x5'));var fs=require('fs');var path=require(_0xc073('0x6'));var rimraf=require(_0xc073('0x7'));var config=require(_0xc073('0x8'));var attributes=require(_0xc073('0x9'));module[_0xc073('0xa')]=function(_0x5bc23d,_0x1ef417){return _0x5bc23d[_0xc073('0xb')](_0xc073('0xc'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xc073('0xd')]}],'timestamps':!![]});};