Built motion from commit (unavailable).|2.5.10
[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 _0xaf9c=['bluebird','request-promise','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','api'];(function(_0xcfb80e,_0x3c0c2e){var _0x388580=function(_0xd014cc){while(--_0xd014cc){_0xcfb80e['push'](_0xcfb80e['shift']());}};_0x388580(++_0x3c0c2e);}(_0xaf9c,0x6c));var _0xcaf9=function(_0x220f3f,_0x11c540){_0x220f3f=_0x220f3f-0x0;var _0x1f170e=_0xaf9c[_0x220f3f];return _0x1f170e;};'use strict';var _=require(_0xcaf9('0x0'));var util=require(_0xcaf9('0x1'));var logger=require(_0xcaf9('0x2'))(_0xcaf9('0x3'));var moment=require('moment');var BPromise=require(_0xcaf9('0x4'));var rp=require(_0xcaf9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcaf9('0x6'));var config=require(_0xcaf9('0x7'));var attributes=require(_0xcaf9('0x8'));module[_0xcaf9('0x9')]=function(_0x2647ef,_0x2e8052){return _0x2647ef[_0xcaf9('0xa')](_0xcaf9('0xb'),attributes,{'tableName':_0xcaf9('0xc'),'paranoid':![],'indexes':[{'name':_0xcaf9('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};