Built motion from commit (unavailable).|2.5.30
[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 _0x3db8=['rimraf','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','util','../../config/logger','api','path'];(function(_0x2f818a,_0xe704a8){var _0x2b4a32=function(_0x3a642c){while(--_0x3a642c){_0x2f818a['push'](_0x2f818a['shift']());}};_0x2b4a32(++_0xe704a8);}(_0x3db8,0x1b5));var _0x83db=function(_0x526ac4,_0x4210a5){_0x526ac4=_0x526ac4-0x0;var _0x473ceb=_0x3db8[_0x526ac4];return _0x473ceb;};'use strict';var _=require(_0x83db('0x0'));var util=require(_0x83db('0x1'));var logger=require(_0x83db('0x2'))(_0x83db('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x83db('0x4'));var rimraf=require(_0x83db('0x5'));var config=require(_0x83db('0x6'));var attributes=require(_0x83db('0x7'));module[_0x83db('0x8')]=function(_0x1a391e,_0x5d43ca){return _0x1a391e[_0x83db('0x9')](_0x83db('0xa'),attributes,{'tableName':_0x83db('0xb'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x83db('0xc')]}],'timestamps':!![]});};