Built motion from commit ddca4d0d.|2.5.47
[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 _0x6478=['api','moment','bluebird','path','rimraf','../../config/environment','./voiceRecording.attributes','define','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger'];(function(_0x5a5f74,_0x79e26b){var _0x397c52=function(_0x38741b){while(--_0x38741b){_0x5a5f74['push'](_0x5a5f74['shift']());}};_0x397c52(++_0x79e26b);}(_0x6478,0x1e7));var _0x8647=function(_0x398828,_0x52119b){_0x398828=_0x398828-0x0;var _0x399ce8=_0x6478[_0x398828];return _0x399ce8;};'use strict';var _=require(_0x8647('0x0'));var util=require(_0x8647('0x1'));var logger=require(_0x8647('0x2'))(_0x8647('0x3'));var moment=require(_0x8647('0x4'));var BPromise=require(_0x8647('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8647('0x6'));var rimraf=require(_0x8647('0x7'));var config=require(_0x8647('0x8'));var attributes=require(_0x8647('0x9'));module['exports']=function(_0x4df3e5,_0x5308e8){return _0x4df3e5[_0x8647('0xa')](_0x8647('0xb'),attributes,{'tableName':_0x8647('0xc'),'paranoid':![],'indexes':[{'name':_0x8647('0xd'),'fields':[_0x8647('0xd')]}],'timestamps':!![]});};