Built motion from commit (unavailable).|2.4.20
[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 _0xe463=['rimraf','../../config/environment','./voiceRecording.attributes','exports','VoiceRecording','voice_recordings','uniqueid','lodash','../../config/logger','moment'];(function(_0x3c8679,_0x2faea3){var _0x2791f8=function(_0x45b22f){while(--_0x45b22f){_0x3c8679['push'](_0x3c8679['shift']());}};_0x2791f8(++_0x2faea3);}(_0xe463,0xe3));var _0x3e46=function(_0xcb7637,_0x31a351){_0xcb7637=_0xcb7637-0x0;var _0x4b5f64=_0xe463[_0xcb7637];return _0x4b5f64;};'use strict';var _=require(_0x3e46('0x0'));var util=require('util');var logger=require(_0x3e46('0x1'))('api');var moment=require(_0x3e46('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x3e46('0x3'));var config=require(_0x3e46('0x4'));var attributes=require(_0x3e46('0x5'));module[_0x3e46('0x6')]=function(_0x2c0575,_0x66d80a){return _0x2c0575['define'](_0x3e46('0x7'),attributes,{'tableName':_0x3e46('0x8'),'paranoid':![],'indexes':[{'name':_0x3e46('0x9'),'fields':[_0x3e46('0x9')]}],'timestamps':!![]});};