Built motion from commit 19a84241.|2.5.34
[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 _0xadee=['../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0xdb357c,_0x3786b6){var _0x5c8735=function(_0x2e179c){while(--_0x2e179c){_0xdb357c['push'](_0xdb357c['shift']());}};_0x5c8735(++_0x3786b6);}(_0xadee,0x1c6));var _0xeade=function(_0x3cf007,_0x208cec){_0x3cf007=_0x3cf007-0x0;var _0x1692b0=_0xadee[_0x3cf007];return _0x1692b0;};'use strict';var _=require(_0xeade('0x0'));var util=require('util');var logger=require(_0xeade('0x1'))(_0xeade('0x2'));var moment=require(_0xeade('0x3'));var BPromise=require(_0xeade('0x4'));var rp=require(_0xeade('0x5'));var fs=require('fs');var path=require(_0xeade('0x6'));var rimraf=require(_0xeade('0x7'));var config=require(_0xeade('0x8'));var attributes=require(_0xeade('0x9'));module[_0xeade('0xa')]=function(_0x5ad210,_0x39a82f){return _0x5ad210[_0xeade('0xb')](_0xeade('0xc'),attributes,{'tableName':_0xeade('0xd'),'paranoid':![],'indexes':[{'name':'interactionid','fields':['interactionid']}],'timestamps':!![]});};