333e2c43e444a5cb6306949ab99679c688ae5ac4
[motion2.git] / server / api / screenRecording / screenRecording.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 _0x8126=['screen_recordings','interactionid','lodash','util','../../config/logger','api','moment','bluebird','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording'];(function(_0x1a2c22,_0x15027){var _0x2fc87e=function(_0x587806){while(--_0x587806){_0x1a2c22['push'](_0x1a2c22['shift']());}};_0x2fc87e(++_0x15027);}(_0x8126,0x16e));var _0x6812=function(_0x20ceec,_0x5d61e6){_0x20ceec=_0x20ceec-0x0;var _0x567ceb=_0x8126[_0x20ceec];return _0x567ceb;};'use strict';var _=require(_0x6812('0x0'));var util=require(_0x6812('0x1'));var logger=require(_0x6812('0x2'))(_0x6812('0x3'));var moment=require(_0x6812('0x4'));var BPromise=require(_0x6812('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x6812('0x6'));var attributes=require(_0x6812('0x7'));module[_0x6812('0x8')]=function(_0x4824d4,_0x22efcd){return _0x4824d4[_0x6812('0x9')](_0x6812('0xa'),attributes,{'tableName':_0x6812('0xb'),'paranoid':![],'indexes':[{'name':_0x6812('0xc'),'fields':[_0x6812('0xc')]}],'timestamps':!![]});};