Built motion from commit 0900f080.|2.5.45
[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 _0x281a=['uniqueid','api','bluebird','path','rimraf','../../config/environment','exports','define','voice_recordings'];(function(_0x37949e,_0x45f853){var _0x1f8c63=function(_0x38a51c){while(--_0x38a51c){_0x37949e['push'](_0x37949e['shift']());}};_0x1f8c63(++_0x45f853);}(_0x281a,0x160));var _0xa281=function(_0x29d915,_0x54a040){_0x29d915=_0x29d915-0x0;var _0x160f86=_0x281a[_0x29d915];return _0x160f86;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xa281('0x0'));var moment=require('moment');var BPromise=require(_0xa281('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa281('0x2'));var rimraf=require(_0xa281('0x3'));var config=require(_0xa281('0x4'));var attributes=require('./voiceRecording.attributes');module[_0xa281('0x5')]=function(_0x5d9822,_0x4118b2){return _0x5d9822[_0xa281('0x6')]('VoiceRecording',attributes,{'tableName':_0xa281('0x7'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xa281('0x8')]}],'timestamps':!![]});};