dca93516fb511233f64eea2f20b1d7770d30a156
[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 _0x3452=['exports','define','VoiceRecording','voice_recordings','uniqueid','lodash','util','bluebird','path','rimraf','../../config/environment','./voiceRecording.attributes'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x3452,0x10d));var _0x2345=function(_0x13d07a,_0x41efc3){_0x13d07a=_0x13d07a-0x0;var _0x5ee0ee=_0x3452[_0x13d07a];return _0x5ee0ee;};'use strict';var _=require(_0x2345('0x0'));var util=require(_0x2345('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x2345('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2345('0x3'));var rimraf=require(_0x2345('0x4'));var config=require(_0x2345('0x5'));var attributes=require(_0x2345('0x6'));module[_0x2345('0x7')]=function(_0x32ceac,_0xee8680){return _0x32ceac[_0x2345('0x8')](_0x2345('0x9'),attributes,{'tableName':_0x2345('0xa'),'paranoid':![],'indexes':[{'name':_0x2345('0xb'),'fields':[_0x2345('0xb')]}],'timestamps':!![]});};