ec71a69fd0bf18c1e2755ce2887ce6442e2c11b4
[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 _0x2905=['bluebird','request-promise','path','rimraf','./voiceRecording.attributes','exports','VoiceRecording','voice_recordings','uniqueid','lodash','util','../../config/logger','moment'];(function(_0x592e81,_0x2275fa){var _0x598d54=function(_0x2dc794){while(--_0x2dc794){_0x592e81['push'](_0x592e81['shift']());}};_0x598d54(++_0x2275fa);}(_0x2905,0x19c));var _0x5290=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x2905[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0x5290('0x0'));var util=require(_0x5290('0x1'));var logger=require(_0x5290('0x2'))('api');var moment=require(_0x5290('0x3'));var BPromise=require(_0x5290('0x4'));var rp=require(_0x5290('0x5'));var fs=require('fs');var path=require(_0x5290('0x6'));var rimraf=require(_0x5290('0x7'));var config=require('../../config/environment');var attributes=require(_0x5290('0x8'));module[_0x5290('0x9')]=function(_0x339ff1,_0x55808a){return _0x339ff1['define'](_0x5290('0xa'),attributes,{'tableName':_0x5290('0xb'),'paranoid':![],'indexes':[{'name':_0x5290('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};