Built motion from commit (unavailable).|2.5.15
[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 _0xe260=['bluebird','request-promise','rimraf','../../config/environment','define','voice_recordings','lodash','api','moment'];(function(_0x2609b0,_0x2a74a7){var _0x506ff1=function(_0x3e7407){while(--_0x3e7407){_0x2609b0['push'](_0x2609b0['shift']());}};_0x506ff1(++_0x2a74a7);}(_0xe260,0x12f));var _0x0e26=function(_0x164d2a,_0x54eca){_0x164d2a=_0x164d2a-0x0;var _0x390013=_0xe260[_0x164d2a];return _0x390013;};'use strict';var _=require(_0x0e26('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x0e26('0x1'));var moment=require(_0x0e26('0x2'));var BPromise=require(_0x0e26('0x3'));var rp=require(_0x0e26('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x0e26('0x5'));var config=require(_0x0e26('0x6'));var attributes=require('./voiceRecording.attributes');module['exports']=function(_0x579db6,_0x1904e3){return _0x579db6[_0x0e26('0x7')]('VoiceRecording',attributes,{'tableName':_0x0e26('0x8'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};