748a3854c333a25ff54b0dd63e28988bbe0617f9
[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 _0xc45d=['bluebird','path','rimraf','../../config/environment','exports','define','ScreenRecording','interactionid','lodash','util','../../config/logger','api','moment'];(function(_0xe73080,_0x24c56d){var _0x12cbc4=function(_0x1377e2){while(--_0x1377e2){_0xe73080['push'](_0xe73080['shift']());}};_0x12cbc4(++_0x24c56d);}(_0xc45d,0x119));var _0xdc45=function(_0x251d43,_0xd5a05a){_0x251d43=_0x251d43-0x0;var _0x3d7759=_0xc45d[_0x251d43];return _0x3d7759;};'use strict';var _=require(_0xdc45('0x0'));var util=require(_0xdc45('0x1'));var logger=require(_0xdc45('0x2'))(_0xdc45('0x3'));var moment=require(_0xdc45('0x4'));var BPromise=require(_0xdc45('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdc45('0x6'));var rimraf=require(_0xdc45('0x7'));var config=require(_0xdc45('0x8'));var attributes=require('./screenRecording.attributes');module[_0xdc45('0x9')]=function(_0x25667b,_0x237842){return _0x25667b[_0xdc45('0xa')](_0xdc45('0xb'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xdc45('0xc')]}],'timestamps':!![]});};