Built motion from commit (unavailable).|2.5.18
[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 _0x0052=['uniqueid','util','moment','bluebird','request-promise','rimraf','./voiceRecording.attributes','exports','VoiceRecording'];(function(_0x7777c7,_0x278b61){var _0x363a0e=function(_0x3019a8){while(--_0x3019a8){_0x7777c7['push'](_0x7777c7['shift']());}};_0x363a0e(++_0x278b61);}(_0x0052,0x76));var _0x2005=function(_0x10cd61,_0x1194a2){_0x10cd61=_0x10cd61-0x0;var _0x231c8a=_0x0052[_0x10cd61];return _0x231c8a;};'use strict';var _=require('lodash');var util=require(_0x2005('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x2005('0x1'));var BPromise=require(_0x2005('0x2'));var rp=require(_0x2005('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2005('0x4'));var config=require('../../config/environment');var attributes=require(_0x2005('0x5'));module[_0x2005('0x6')]=function(_0x2f9c3c,_0x54781f){return _0x2f9c3c['define'](_0x2005('0x7'),attributes,{'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':_0x2005('0x8'),'fields':[_0x2005('0x8')]}],'timestamps':!![]});};