Built motion from commit (unavailable).|2.4.9
[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 _0xfe83=['VoiceRecording','voice_recordings','uniqueid','util','../../config/logger','api','bluebird','path','../../config/environment','./voiceRecording.attributes','exports','define'];(function(_0x4cf594,_0xa3215d){var _0x170969=function(_0x31e3d9){while(--_0x31e3d9){_0x4cf594['push'](_0x4cf594['shift']());}};_0x170969(++_0xa3215d);}(_0xfe83,0xf3));var _0x3fe8=function(_0x128e62,_0x2ae3ef){_0x128e62=_0x128e62-0x0;var _0x55328f=_0xfe83[_0x128e62];return _0x55328f;};'use strict';var _=require('lodash');var util=require(_0x3fe8('0x0'));var logger=require(_0x3fe8('0x1'))(_0x3fe8('0x2'));var moment=require('moment');var BPromise=require(_0x3fe8('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3fe8('0x4'));var rimraf=require('rimraf');var config=require(_0x3fe8('0x5'));var attributes=require(_0x3fe8('0x6'));module[_0x3fe8('0x7')]=function(_0x5a6db2,_0xd44ecd){return _0x5a6db2[_0x3fe8('0x8')](_0x3fe8('0x9'),attributes,{'tableName':_0x3fe8('0xa'),'paranoid':![],'indexes':[{'name':_0x3fe8('0xb'),'fields':[_0x3fe8('0xb')]}],'timestamps':!![]});};