2bdf03c0bcf5c2a55de8adcecbdd0f59ea0a4772
[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 _0xbaef=['exports','define','voice_recordings','uniqueid','../../config/logger','api','bluebird','path','rimraf','../../config/environment'];(function(_0x481b94,_0x6f1988){var _0x67ab59=function(_0x56b490){while(--_0x56b490){_0x481b94['push'](_0x481b94['shift']());}};_0x67ab59(++_0x6f1988);}(_0xbaef,0xae));var _0xfbae=function(_0x5c0cf4,_0x265aa9){_0x5c0cf4=_0x5c0cf4-0x0;var _0x3d9f50=_0xbaef[_0x5c0cf4];return _0x3d9f50;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xfbae('0x0'))(_0xfbae('0x1'));var moment=require('moment');var BPromise=require(_0xfbae('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xfbae('0x3'));var rimraf=require(_0xfbae('0x4'));var config=require(_0xfbae('0x5'));var attributes=require('./voiceRecording.attributes');module[_0xfbae('0x6')]=function(_0x2c2c27,_0x4e3ed2){return _0x2c2c27[_0xfbae('0x7')]('VoiceRecording',attributes,{'tableName':_0xfbae('0x8'),'paranoid':![],'indexes':[{'name':_0xfbae('0x9'),'fields':[_0xfbae('0x9')]}],'timestamps':!![]});};