e3b0e97aeb65dbeb8a72633ac3edac11fb373442
[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 _0xd65a=['api','request-promise','path','../../config/environment','define','ScreenRecording','screen_recordings','interactionid'];(function(_0x4063a4,_0x19d730){var _0x17908d=function(_0x3ce714){while(--_0x3ce714){_0x4063a4['push'](_0x4063a4['shift']());}};_0x17908d(++_0x19d730);}(_0xd65a,0x140));var _0xad65=function(_0x334713,_0x5e6776){_0x334713=_0x334713-0x0;var _0x376838=_0xd65a[_0x334713];return _0x376838;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xad65('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xad65('0x1'));var fs=require('fs');var path=require(_0xad65('0x2'));var rimraf=require('rimraf');var config=require(_0xad65('0x3'));var attributes=require('./screenRecording.attributes');module['exports']=function(_0x796261,_0x5c217a){return _0x796261[_0xad65('0x4')](_0xad65('0x5'),attributes,{'tableName':_0xad65('0x6'),'paranoid':![],'indexes':[{'name':_0xad65('0x7'),'fields':[_0xad65('0x7')]}],'timestamps':!![]});};