8b04feb5b5824598efab9cc89c03204884df89da
[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 _0xee49=['lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','exports','ScreenRecording','screen_recordings','interactionid'];(function(_0x5c5b9d,_0x8e0901){var _0x420d3d=function(_0x53be93){while(--_0x53be93){_0x5c5b9d['push'](_0x5c5b9d['shift']());}};_0x420d3d(++_0x8e0901);}(_0xee49,0x1a4));var _0x9ee4=function(_0x557404,_0x1f162){_0x557404=_0x557404-0x0;var _0x2fdec8=_0xee49[_0x557404];return _0x2fdec8;};'use strict';var _=require(_0x9ee4('0x0'));var util=require(_0x9ee4('0x1'));var logger=require(_0x9ee4('0x2'))('api');var moment=require(_0x9ee4('0x3'));var BPromise=require(_0x9ee4('0x4'));var rp=require(_0x9ee4('0x5'));var fs=require('fs');var path=require(_0x9ee4('0x6'));var rimraf=require(_0x9ee4('0x7'));var config=require('../../config/environment');var attributes=require('./screenRecording.attributes');module[_0x9ee4('0x8')]=function(_0x3ee580,_0x1a26b5){return _0x3ee580['define'](_0x9ee4('0x9'),attributes,{'tableName':_0x9ee4('0xa'),'paranoid':![],'indexes':[{'name':_0x9ee4('0xb'),'fields':[_0x9ee4('0xb')]}],'timestamps':!![]});};