ed4c37e96bdff5aab436c971f352866a4960ceae
[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 _0xaef2=['api','moment','bluebird','request-promise','path','../../config/environment','define','ScreenRecording','interactionid','lodash','util','../../config/logger'];(function(_0x2f9e4a,_0x3c42a0){var _0xeee811=function(_0x578d30){while(--_0x578d30){_0x2f9e4a['push'](_0x2f9e4a['shift']());}};_0xeee811(++_0x3c42a0);}(_0xaef2,0x159));var _0x2aef=function(_0x2c2db6,_0x26dc58){_0x2c2db6=_0x2c2db6-0x0;var _0x5e5925=_0xaef2[_0x2c2db6];return _0x5e5925;};'use strict';var _=require(_0x2aef('0x0'));var util=require(_0x2aef('0x1'));var logger=require(_0x2aef('0x2'))(_0x2aef('0x3'));var moment=require(_0x2aef('0x4'));var BPromise=require(_0x2aef('0x5'));var rp=require(_0x2aef('0x6'));var fs=require('fs');var path=require(_0x2aef('0x7'));var rimraf=require('rimraf');var config=require(_0x2aef('0x8'));var attributes=require('./screenRecording.attributes');module['exports']=function(_0x2ec53e,_0x3d4701){return _0x2ec53e[_0x2aef('0x9')](_0x2aef('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0x2aef('0xb'),'fields':['interactionid']}],'timestamps':!![]});};