0d4e155945daafa05a61b44bcdafa62f1e561666
[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 _0xc4ac=['screen_recordings','interactionid','lodash','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording'];(function(_0x48fa03,_0x279271){var _0x14742d=function(_0x2d585){while(--_0x2d585){_0x48fa03['push'](_0x48fa03['shift']());}};_0x14742d(++_0x279271);}(_0xc4ac,0x1a2));var _0xcc4a=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc4ac[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xcc4a('0x0'));var util=require('util');var logger=require(_0xcc4a('0x1'))(_0xcc4a('0x2'));var moment=require('moment');var BPromise=require(_0xcc4a('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xcc4a('0x4'));var rimraf=require(_0xcc4a('0x5'));var config=require(_0xcc4a('0x6'));var attributes=require(_0xcc4a('0x7'));module[_0xcc4a('0x8')]=function(_0x4eb3c8,_0x1ae799){return _0x4eb3c8[_0xcc4a('0x9')](_0xcc4a('0xa'),attributes,{'tableName':_0xcc4a('0xb'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xcc4a('0xc')]}],'timestamps':!![]});};