ac05ff2cfd0cb319f73cc8a68325d2ab4a8be9e6
[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 _0x2c82=['util','../../config/logger','api','path','rimraf','../../config/environment','./screenRecording.attributes','exports','define','screen_recordings','interactionid','lodash'];(function(_0x213352,_0x205870){var _0x1baa30=function(_0x1b9e19){while(--_0x1b9e19){_0x213352['push'](_0x213352['shift']());}};_0x1baa30(++_0x205870);}(_0x2c82,0xa7));var _0x22c8=function(_0x568a61,_0x2124f8){_0x568a61=_0x568a61-0x0;var _0x334c3b=_0x2c82[_0x568a61];return _0x334c3b;};'use strict';var _=require(_0x22c8('0x0'));var util=require(_0x22c8('0x1'));var logger=require(_0x22c8('0x2'))(_0x22c8('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x22c8('0x4'));var rimraf=require(_0x22c8('0x5'));var config=require(_0x22c8('0x6'));var attributes=require(_0x22c8('0x7'));module[_0x22c8('0x8')]=function(_0x3dddc6,_0x329994){return _0x3dddc6[_0x22c8('0x9')]('ScreenRecording',attributes,{'tableName':_0x22c8('0xa'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x22c8('0xb')]}],'timestamps':!![]});};