Built motion from commit (unavailable).|2.5.11
[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 _0xf843=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','lodash','../../config/logger'];(function(_0x2badee,_0x3aa936){var _0xe71a7f=function(_0x4af5f0){while(--_0x4af5f0){_0x2badee['push'](_0x2badee['shift']());}};_0xe71a7f(++_0x3aa936);}(_0xf843,0x11b));var _0x3f84=function(_0x40297b,_0x5038da){_0x40297b=_0x40297b-0x0;var _0x1aad1a=_0xf843[_0x40297b];return _0x1aad1a;};'use strict';var _=require(_0x3f84('0x0'));var util=require('util');var logger=require(_0x3f84('0x1'))(_0x3f84('0x2'));var moment=require(_0x3f84('0x3'));var BPromise=require(_0x3f84('0x4'));var rp=require(_0x3f84('0x5'));var fs=require('fs');var path=require(_0x3f84('0x6'));var rimraf=require(_0x3f84('0x7'));var config=require(_0x3f84('0x8'));var attributes=require(_0x3f84('0x9'));module[_0x3f84('0xa')]=function(_0x2dd1e9,_0x468958){return _0x2dd1e9[_0x3f84('0xb')](_0x3f84('0xc'),attributes,{'tableName':_0x3f84('0xd'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x3f84('0xe')]}],'timestamps':!![]});};