4fe2d53c70f45ba54d5619507ed8f0b55815ba6c
[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 _0x2f62=['../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','VoiceRecording','voice_recordings','uniqueid','lodash'];(function(_0x171cb2,_0x417d4f){var _0x519fa4=function(_0x152bd){while(--_0x152bd){_0x171cb2['push'](_0x171cb2['shift']());}};_0x519fa4(++_0x417d4f);}(_0x2f62,0xa8));var _0x22f6=function(_0x209113,_0x38c4c4){_0x209113=_0x209113-0x0;var _0x12b751=_0x2f62[_0x209113];return _0x12b751;};'use strict';var _=require(_0x22f6('0x0'));var util=require('util');var logger=require(_0x22f6('0x1'))(_0x22f6('0x2'));var moment=require('moment');var BPromise=require(_0x22f6('0x3'));var rp=require(_0x22f6('0x4'));var fs=require('fs');var path=require(_0x22f6('0x5'));var rimraf=require(_0x22f6('0x6'));var config=require(_0x22f6('0x7'));var attributes=require('./voiceRecording.attributes');module[_0x22f6('0x8')]=function(_0x183a99,_0x39ecaa){return _0x183a99[_0x22f6('0x9')](_0x22f6('0xa'),attributes,{'tableName':_0x22f6('0xb'),'paranoid':![],'indexes':[{'name':_0x22f6('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};