1b5793a2825026a2f8d496eb022cb72d7139eb55
[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 _0x78f1=['define','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports'];(function(_0xc769ed,_0x1caa49){var _0x497086=function(_0x425e26){while(--_0x425e26){_0xc769ed['push'](_0xc769ed['shift']());}};_0x497086(++_0x1caa49);}(_0x78f1,0x9d));var _0x178f=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x78f1[_0x502c7d];return _0x30b7ed;};'use strict';var _=require(_0x178f('0x0'));var util=require('util');var logger=require(_0x178f('0x1'))(_0x178f('0x2'));var moment=require(_0x178f('0x3'));var BPromise=require(_0x178f('0x4'));var rp=require(_0x178f('0x5'));var fs=require('fs');var path=require(_0x178f('0x6'));var rimraf=require(_0x178f('0x7'));var config=require(_0x178f('0x8'));var attributes=require(_0x178f('0x9'));module[_0x178f('0xa')]=function(_0x3b291c,_0xa29048){return _0x3b291c[_0x178f('0xb')]('VoiceRecording',attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};