Built motion from commit 52c8a02d.|2.6.29
[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 _0x4d4f=['ScreenRecording','interactionid','lodash','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./screenRecording.attributes','exports','define'];(function(_0x2024f5,_0x4ae05e){var _0x4ffd66=function(_0x5b6f47){while(--_0x5b6f47){_0x2024f5['push'](_0x2024f5['shift']());}};_0x4ffd66(++_0x4ae05e);}(_0x4d4f,0x86));var _0xf4d4=function(_0x399806,_0x1b0689){_0x399806=_0x399806-0x0;var _0x4fc489=_0x4d4f[_0x399806];return _0x4fc489;};'use strict';var _=require(_0xf4d4('0x0'));var util=require('util');var logger=require(_0xf4d4('0x1'))('api');var moment=require(_0xf4d4('0x2'));var BPromise=require(_0xf4d4('0x3'));var rp=require(_0xf4d4('0x4'));var fs=require('fs');var path=require(_0xf4d4('0x5'));var rimraf=require('rimraf');var config=require(_0xf4d4('0x6'));var attributes=require(_0xf4d4('0x7'));module[_0xf4d4('0x8')]=function(_0x236b3b,_0x2b2267){return _0x236b3b[_0xf4d4('0x9')](_0xf4d4('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xf4d4('0xb')]}],'timestamps':!![]});};