Built motion from commit (unavailable).|2.5.27
[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 _0x4370=['util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','VoiceRecording','voice_recordings','uniqueid'];(function(_0x20a558,_0x160e0e){var _0x53d3f7=function(_0x259bd8){while(--_0x259bd8){_0x20a558['push'](_0x20a558['shift']());}};_0x53d3f7(++_0x160e0e);}(_0x4370,0x1e1));var _0x0437=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0x4370[_0x126558];return _0x1f6d14;};'use strict';var _=require('lodash');var util=require(_0x0437('0x0'));var logger=require(_0x0437('0x1'))(_0x0437('0x2'));var moment=require(_0x0437('0x3'));var BPromise=require('bluebird');var rp=require(_0x0437('0x4'));var fs=require('fs');var path=require(_0x0437('0x5'));var rimraf=require(_0x0437('0x6'));var config=require(_0x0437('0x7'));var attributes=require('./voiceRecording.attributes');module[_0x0437('0x8')]=function(_0x403797,_0x5f142c){return _0x403797[_0x0437('0x9')](_0x0437('0xa'),attributes,{'tableName':_0x0437('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x0437('0xc')]}],'timestamps':!![]});};