Built motion from commit d5e4af8c.|2.6.23
[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 _0x3530=['./screenRecording.attributes','exports','define','ScreenRecording','lodash','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x22a6cc,_0x9fdac1){var _0x187a61=function(_0x1db594){while(--_0x1db594){_0x22a6cc['push'](_0x22a6cc['shift']());}};_0x187a61(++_0x9fdac1);}(_0x3530,0x11b));var _0x0353=function(_0x49bf75,_0x4d7f9e){_0x49bf75=_0x49bf75-0x0;var _0x35f13f=_0x3530[_0x49bf75];return _0x35f13f;};'use strict';var _=require(_0x0353('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x0353('0x1'));var rp=require(_0x0353('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x0353('0x3'));var config=require(_0x0353('0x4'));var attributes=require(_0x0353('0x5'));module[_0x0353('0x6')]=function(_0x20a28d,_0x282876){return _0x20a28d[_0x0353('0x7')](_0x0353('0x8'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':['interactionid']}],'timestamps':!![]});};