Built motion from commit (unavailable).|2.5.13
[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 _0x2f20=['util','../../config/logger','api','request-promise','path','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid'];(function(_0x59b9d3,_0x384472){var _0x171163=function(_0x251233){while(--_0x251233){_0x59b9d3['push'](_0x59b9d3['shift']());}};_0x171163(++_0x384472);}(_0x2f20,0xf0));var _0x02f2=function(_0x5f309e,_0x66e31){_0x5f309e=_0x5f309e-0x0;var _0x487b5e=_0x2f20[_0x5f309e];return _0x487b5e;};'use strict';var _=require('lodash');var util=require(_0x02f2('0x0'));var logger=require(_0x02f2('0x1'))(_0x02f2('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x02f2('0x3'));var fs=require('fs');var path=require(_0x02f2('0x4'));var rimraf=require('rimraf');var config=require(_0x02f2('0x5'));var attributes=require(_0x02f2('0x6'));module[_0x02f2('0x7')]=function(_0x2a5741,_0xe7510d){return _0x2a5741[_0x02f2('0x8')](_0x02f2('0x9'),attributes,{'tableName':_0x02f2('0xa'),'paranoid':![],'indexes':[{'name':_0x02f2('0xb'),'fields':[_0x02f2('0xb')]}],'timestamps':!![]});};