b2185577c0b2391e6519a5cbf7e31839cb556118
[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 _0xccb4=['request-promise','path','./screenRecording.attributes','exports','define','ScreenRecording','interactionid','lodash','util','../../config/logger','api','moment'];(function(_0x41fe28,_0x5dfbad){var _0x190689=function(_0x35b203){while(--_0x35b203){_0x41fe28['push'](_0x41fe28['shift']());}};_0x190689(++_0x5dfbad);}(_0xccb4,0x13f));var _0x4ccb=function(_0x1694f5,_0x49b7c3){_0x1694f5=_0x1694f5-0x0;var _0x5b4321=_0xccb4[_0x1694f5];return _0x5b4321;};'use strict';var _=require(_0x4ccb('0x0'));var util=require(_0x4ccb('0x1'));var logger=require(_0x4ccb('0x2'))(_0x4ccb('0x3'));var moment=require(_0x4ccb('0x4'));var BPromise=require('bluebird');var rp=require(_0x4ccb('0x5'));var fs=require('fs');var path=require(_0x4ccb('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x4ccb('0x7'));module[_0x4ccb('0x8')]=function(_0x2c1d24,_0x12061e){return _0x2c1d24[_0x4ccb('0x9')](_0x4ccb('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x4ccb('0xb')]}],'timestamps':!![]});};