Built motion from commit 47436d59.|2.6.7
[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 _0x30b3=['./screenRecording.attributes','exports','define','ScreenRecording','interactionid','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x1924b1,_0x4da4b6){var _0x2e8e14=function(_0x1b4ae9){while(--_0x1b4ae9){_0x1924b1['push'](_0x1924b1['shift']());}};_0x2e8e14(++_0x4da4b6);}(_0x30b3,0x1b2));var _0x330b=function(_0x5d1c9d,_0x8bb82d){_0x5d1c9d=_0x5d1c9d-0x0;var _0x8edfe4=_0x30b3[_0x5d1c9d];return _0x8edfe4;};'use strict';var _=require('lodash');var util=require(_0x330b('0x0'));var logger=require(_0x330b('0x1'))(_0x330b('0x2'));var moment=require('moment');var BPromise=require(_0x330b('0x3'));var rp=require(_0x330b('0x4'));var fs=require('fs');var path=require(_0x330b('0x5'));var rimraf=require(_0x330b('0x6'));var config=require(_0x330b('0x7'));var attributes=require(_0x330b('0x8'));module[_0x330b('0x9')]=function(_0x23c12a,_0x59972e){return _0x23c12a[_0x330b('0xa')](_0x330b('0xb'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0x330b('0xc'),'fields':['interactionid']}],'timestamps':!![]});};