19405cfed73f1bbe47fe56dced9dd4f1e94212c8
[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 _0x93d3=['screen_recordings','interactionid','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','./screenRecording.attributes','exports','ScreenRecording'];(function(_0x2a777a,_0x4cdf4e){var _0x34144c=function(_0x29f899){while(--_0x29f899){_0x2a777a['push'](_0x2a777a['shift']());}};_0x34144c(++_0x4cdf4e);}(_0x93d3,0x9e));var _0x393d=function(_0x1caf6a,_0x26a5bf){_0x1caf6a=_0x1caf6a-0x0;var _0x1bf493=_0x93d3[_0x1caf6a];return _0x1bf493;};'use strict';var _=require(_0x393d('0x0'));var util=require(_0x393d('0x1'));var logger=require(_0x393d('0x2'))('api');var moment=require('moment');var BPromise=require(_0x393d('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x393d('0x4'));var rimraf=require(_0x393d('0x5'));var config=require(_0x393d('0x6'));var attributes=require(_0x393d('0x7'));module[_0x393d('0x8')]=function(_0x25c4ec,_0x118ba2){return _0x25c4ec['define'](_0x393d('0x9'),attributes,{'tableName':_0x393d('0xa'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x393d('0xb')]}],'timestamps':!![]});};