Built motion from commit (unavailable).|2.5.10
[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 _0x3a10=['uniqueid','util','api','bluebird','path','../../config/environment','./voiceRecording.attributes','exports','VoiceRecording','voice_recordings'];(function(_0xc1646d,_0x187bb6){var _0x1c5327=function(_0x333eb1){while(--_0x333eb1){_0xc1646d['push'](_0xc1646d['shift']());}};_0x1c5327(++_0x187bb6);}(_0x3a10,0x1eb));var _0x03a1=function(_0x54b6a5,_0x2e639d){_0x54b6a5=_0x54b6a5-0x0;var _0xe3c412=_0x3a10[_0x54b6a5];return _0xe3c412;};'use strict';var _=require('lodash');var util=require(_0x03a1('0x0'));var logger=require('../../config/logger')(_0x03a1('0x1'));var moment=require('moment');var BPromise=require(_0x03a1('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x03a1('0x3'));var rimraf=require('rimraf');var config=require(_0x03a1('0x4'));var attributes=require(_0x03a1('0x5'));module[_0x03a1('0x6')]=function(_0x49fc17,_0x28490c){return _0x49fc17['define'](_0x03a1('0x7'),attributes,{'tableName':_0x03a1('0x8'),'paranoid':![],'indexes':[{'name':_0x03a1('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};