Built motion from commit 14588770.|2.5.38
[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 _0xa1c4=['util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','lodash'];(function(_0x58adea,_0x5c2569){var _0x4895a8=function(_0x52f97c){while(--_0x52f97c){_0x58adea['push'](_0x58adea['shift']());}};_0x4895a8(++_0x5c2569);}(_0xa1c4,0xdf));var _0x4a1c=function(_0x3bafe6,_0x3432b7){_0x3bafe6=_0x3bafe6-0x0;var _0x30bc43=_0xa1c4[_0x3bafe6];return _0x30bc43;};'use strict';var _=require(_0x4a1c('0x0'));var util=require(_0x4a1c('0x1'));var logger=require(_0x4a1c('0x2'))('api');var moment=require('moment');var BPromise=require(_0x4a1c('0x3'));var rp=require(_0x4a1c('0x4'));var fs=require('fs');var path=require(_0x4a1c('0x5'));var rimraf=require(_0x4a1c('0x6'));var config=require(_0x4a1c('0x7'));var attributes=require(_0x4a1c('0x8'));module[_0x4a1c('0x9')]=function(_0x256237,_0x49bf92){return _0x256237[_0x4a1c('0xa')](_0x4a1c('0xb'),attributes,{'tableName':_0x4a1c('0xc'),'paranoid':![],'indexes':[{'name':_0x4a1c('0xd'),'fields':[_0x4a1c('0xd')]}],'timestamps':!![]});};