Built motion from commit (unavailable).|2.6.0
[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 _0x1c5c=['VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','exports','define'];(function(_0x4ef5b7,_0x1fa483){var _0x47b2db=function(_0x20b7ab){while(--_0x20b7ab){_0x4ef5b7['push'](_0x4ef5b7['shift']());}};_0x47b2db(++_0x1fa483);}(_0x1c5c,0x148));var _0xc1c5=function(_0x27e998,_0x109116){_0x27e998=_0x27e998-0x0;var _0x1d039f=_0x1c5c[_0x27e998];return _0x1d039f;};'use strict';var _=require(_0xc1c5('0x0'));var util=require(_0xc1c5('0x1'));var logger=require(_0xc1c5('0x2'))(_0xc1c5('0x3'));var moment=require('moment');var BPromise=require(_0xc1c5('0x4'));var rp=require(_0xc1c5('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc1c5('0x6'));var config=require(_0xc1c5('0x7'));var attributes=require('./voiceRecording.attributes');module[_0xc1c5('0x8')]=function(_0x71e36a,_0x5256e4){return _0x71e36a[_0xc1c5('0x9')](_0xc1c5('0xa'),attributes,{'tableName':_0xc1c5('0xb'),'paranoid':![],'indexes':[{'name':_0xc1c5('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};