Built motion from commit (unavailable).|2.4.4
[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 _0xbe3a=['./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x3ce3c,_0x319337){var _0x55a2c9=function(_0x1568d0){while(--_0x1568d0){_0x3ce3c['push'](_0x3ce3c['shift']());}};_0x55a2c9(++_0x319337);}(_0xbe3a,0x102));var _0xabe3=function(_0x3ecc05,_0x195591){_0x3ecc05=_0x3ecc05-0x0;var _0xa72271=_0xbe3a[_0x3ecc05];return _0xa72271;};'use strict';var _=require(_0xabe3('0x0'));var util=require(_0xabe3('0x1'));var logger=require(_0xabe3('0x2'))('api');var moment=require(_0xabe3('0x3'));var BPromise=require(_0xabe3('0x4'));var rp=require(_0xabe3('0x5'));var fs=require('fs');var path=require(_0xabe3('0x6'));var rimraf=require(_0xabe3('0x7'));var config=require('../../config/environment');var attributes=require(_0xabe3('0x8'));module[_0xabe3('0x9')]=function(_0x4b3591,_0xf57825){return _0x4b3591[_0xabe3('0xa')](_0xabe3('0xb'),attributes,{'tableName':_0xabe3('0xc'),'paranoid':![],'indexes':[{'name':_0xabe3('0xd'),'fields':[_0xabe3('0xd')]}],'timestamps':!![]});};