Built motion from commit 85328c08.|2.5.50
[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 _0xd2f8=['../../config/environment','./voiceRecording.attributes','exports','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','api','moment','path','rimraf'];(function(_0x598f7e,_0xeb61e1){var _0x10e5fe=function(_0x16b06f){while(--_0x16b06f){_0x598f7e['push'](_0x598f7e['shift']());}};_0x10e5fe(++_0xeb61e1);}(_0xd2f8,0x95));var _0x8d2f=function(_0x19b709,_0x373b44){_0x19b709=_0x19b709-0x0;var _0x29eb28=_0xd2f8[_0x19b709];return _0x29eb28;};'use strict';var _=require(_0x8d2f('0x0'));var util=require(_0x8d2f('0x1'));var logger=require(_0x8d2f('0x2'))(_0x8d2f('0x3'));var moment=require(_0x8d2f('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x8d2f('0x5'));var rimraf=require(_0x8d2f('0x6'));var config=require(_0x8d2f('0x7'));var attributes=require(_0x8d2f('0x8'));module[_0x8d2f('0x9')]=function(_0x3ab9e0,_0x1113e1){return _0x3ab9e0['define'](_0x8d2f('0xa'),attributes,{'tableName':_0x8d2f('0xb'),'paranoid':![],'indexes':[{'name':_0x8d2f('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};