5a8997fe1823ec60abb2693586691c0b744fe744
[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 _0x4046=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./voiceRecording.attributes','exports','define','voice_recordings','uniqueid'];(function(_0x18ab9c,_0x424e72){var _0x46d85f=function(_0x202bd4){while(--_0x202bd4){_0x18ab9c['push'](_0x18ab9c['shift']());}};_0x46d85f(++_0x424e72);}(_0x4046,0xc4));var _0x6404=function(_0x5ae3cb,_0x233075){_0x5ae3cb=_0x5ae3cb-0x0;var _0x5d54f4=_0x4046[_0x5ae3cb];return _0x5d54f4;};'use strict';var _=require(_0x6404('0x0'));var util=require(_0x6404('0x1'));var logger=require(_0x6404('0x2'))(_0x6404('0x3'));var moment=require(_0x6404('0x4'));var BPromise=require(_0x6404('0x5'));var rp=require(_0x6404('0x6'));var fs=require('fs');var path=require(_0x6404('0x7'));var rimraf=require(_0x6404('0x8'));var config=require('../../config/environment');var attributes=require(_0x6404('0x9'));module[_0x6404('0xa')]=function(_0x5e1b16,_0x4e7edc){return _0x5e1b16[_0x6404('0xb')]('VoiceRecording',attributes,{'tableName':_0x6404('0xc'),'paranoid':![],'indexes':[{'name':_0x6404('0xd'),'fields':[_0x6404('0xd')]}],'timestamps':!![]});};