Built motion from commit (unavailable).|2.5.31
[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 _0x0374=['define','VoiceRecording','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports'];(function(_0x4c0945,_0x339ef9){var _0x1d8012=function(_0x3dc1e8){while(--_0x3dc1e8){_0x4c0945['push'](_0x4c0945['shift']());}};_0x1d8012(++_0x339ef9);}(_0x0374,0x1a7));var _0x4037=function(_0x3bfb8a,_0x227059){_0x3bfb8a=_0x3bfb8a-0x0;var _0x51b451=_0x0374[_0x3bfb8a];return _0x51b451;};'use strict';var _=require(_0x4037('0x0'));var util=require(_0x4037('0x1'));var logger=require(_0x4037('0x2'))(_0x4037('0x3'));var moment=require(_0x4037('0x4'));var BPromise=require(_0x4037('0x5'));var rp=require(_0x4037('0x6'));var fs=require('fs');var path=require(_0x4037('0x7'));var rimraf=require(_0x4037('0x8'));var config=require(_0x4037('0x9'));var attributes=require(_0x4037('0xa'));module[_0x4037('0xb')]=function(_0x439902,_0x3b12e0){return _0x439902[_0x4037('0xc')](_0x4037('0xd'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0x4037('0xe'),'fields':['uniqueid']}],'timestamps':!![]});};