Built motion from commit 936e8062.|2.5.33
[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 _0x0629=['./screenRecording.attributes','exports','define','ScreenRecording','interactionid','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x2457e4,_0x5c21f5){var _0x4851a0=function(_0x58d816){while(--_0x58d816){_0x2457e4['push'](_0x2457e4['shift']());}};_0x4851a0(++_0x5c21f5);}(_0x0629,0xb9));var _0x9062=function(_0x54e1c9,_0x3c4fc4){_0x54e1c9=_0x54e1c9-0x0;var _0x41ff66=_0x0629[_0x54e1c9];return _0x41ff66;};'use strict';var _=require('lodash');var util=require(_0x9062('0x0'));var logger=require(_0x9062('0x1'))(_0x9062('0x2'));var moment=require('moment');var BPromise=require(_0x9062('0x3'));var rp=require(_0x9062('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9062('0x5'));var config=require(_0x9062('0x6'));var attributes=require(_0x9062('0x7'));module[_0x9062('0x8')]=function(_0x18807e,_0x16085c){return _0x18807e[_0x9062('0x9')](_0x9062('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x9062('0xb')]}],'timestamps':!![]});};