Built motion from commit 3c2ce842.|2.6.31
[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 _0x4ceb=['ScreenRecording','lodash','util','api','bluebird','request-promise','path','rimraf','./screenRecording.attributes','exports','define'];(function(_0x3ce3c,_0x319337){var _0x55a2c9=function(_0x1568d0){while(--_0x1568d0){_0x3ce3c['push'](_0x3ce3c['shift']());}};_0x55a2c9(++_0x319337);}(_0x4ceb,0x135));var _0xb4ce=function(_0x2763f2,_0x416af8){_0x2763f2=_0x2763f2-0x0;var _0x3ef471=_0x4ceb[_0x2763f2];return _0x3ef471;};'use strict';var _=require(_0xb4ce('0x0'));var util=require(_0xb4ce('0x1'));var logger=require('../../config/logger')(_0xb4ce('0x2'));var moment=require('moment');var BPromise=require(_0xb4ce('0x3'));var rp=require(_0xb4ce('0x4'));var fs=require('fs');var path=require(_0xb4ce('0x5'));var rimraf=require(_0xb4ce('0x6'));var config=require('../../config/environment');var attributes=require(_0xb4ce('0x7'));module[_0xb4ce('0x8')]=function(_0x22b21d,_0x347a1f){return _0x22b21d[_0xb4ce('0x9')](_0xb4ce('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':['interactionid']}],'timestamps':!![]});};