05770340b468e8dbdc6faabd868c6222ea86e814
[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 _0x3e4c=['define','VoiceRecording','voice_recordings','uniqueid','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','./voiceRecording.attributes','exports'];(function(_0x171c0e,_0x32d9ee){var _0x616a05=function(_0x3a93b4){while(--_0x3a93b4){_0x171c0e['push'](_0x171c0e['shift']());}};_0x616a05(++_0x32d9ee);}(_0x3e4c,0x1d8));var _0xc3e4=function(_0x4a93a0,_0x3e3f64){_0x4a93a0=_0x4a93a0-0x0;var _0x584313=_0x3e4c[_0x4a93a0];return _0x584313;};'use strict';var _=require('lodash');var util=require(_0xc3e4('0x0'));var logger=require(_0xc3e4('0x1'))(_0xc3e4('0x2'));var moment=require('moment');var BPromise=require(_0xc3e4('0x3'));var rp=require(_0xc3e4('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc3e4('0x5'));var config=require(_0xc3e4('0x6'));var attributes=require(_0xc3e4('0x7'));module[_0xc3e4('0x8')]=function(_0x2bf001,_0x7ecd5f){return _0x2bf001[_0xc3e4('0x9')](_0xc3e4('0xa'),attributes,{'tableName':_0xc3e4('0xb'),'paranoid':![],'indexes':[{'name':_0xc3e4('0xc'),'fields':[_0xc3e4('0xc')]}],'timestamps':!![]});};