5de5be57fdd3d410c59868400c498eeb36edf192
[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 _0xa779=['lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid'];(function(_0x1d291d,_0x17314a){var _0x44cc4e=function(_0x38d29f){while(--_0x38d29f){_0x1d291d['push'](_0x1d291d['shift']());}};_0x44cc4e(++_0x17314a);}(_0xa779,0x195));var _0x9a77=function(_0x1ca347,_0x17f0f4){_0x1ca347=_0x1ca347-0x0;var _0x2aec46=_0xa779[_0x1ca347];return _0x2aec46;};'use strict';var _=require(_0x9a77('0x0'));var util=require(_0x9a77('0x1'));var logger=require(_0x9a77('0x2'))(_0x9a77('0x3'));var moment=require('moment');var BPromise=require(_0x9a77('0x4'));var rp=require(_0x9a77('0x5'));var fs=require('fs');var path=require(_0x9a77('0x6'));var rimraf=require(_0x9a77('0x7'));var config=require(_0x9a77('0x8'));var attributes=require(_0x9a77('0x9'));module[_0x9a77('0xa')]=function(_0x578a4f,_0x4c340){return _0x578a4f[_0x9a77('0xb')](_0x9a77('0xc'),attributes,{'tableName':_0x9a77('0xd'),'paranoid':![],'indexes':[{'name':_0x9a77('0xe'),'fields':['interactionid']}],'timestamps':!![]});};