0a7a2fb7a46c9c115730a0ae684d423a68f9e190
[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 _0x591d=['rimraf','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','util','../../config/logger','api','moment','bluebird','path'];(function(_0x194d0f,_0x3d5309){var _0x816fe7=function(_0x14121d){while(--_0x14121d){_0x194d0f['push'](_0x194d0f['shift']());}};_0x816fe7(++_0x3d5309);}(_0x591d,0x103));var _0xd591=function(_0x235cea,_0x4c3504){_0x235cea=_0x235cea-0x0;var _0x15ee93=_0x591d[_0x235cea];return _0x15ee93;};'use strict';var _=require(_0xd591('0x0'));var util=require(_0xd591('0x1'));var logger=require(_0xd591('0x2'))(_0xd591('0x3'));var moment=require(_0xd591('0x4'));var BPromise=require(_0xd591('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd591('0x6'));var rimraf=require(_0xd591('0x7'));var config=require('../../config/environment');var attributes=require(_0xd591('0x8'));module[_0xd591('0x9')]=function(_0x513436,_0x583961){return _0x513436[_0xd591('0xa')](_0xd591('0xb'),attributes,{'tableName':_0xd591('0xc'),'paranoid':![],'indexes':[{'name':_0xd591('0xd'),'fields':[_0xd591('0xd')]}],'timestamps':!![]});};