f978f1a5f666f264faee069fffb5c7dd66dfda94
[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 _0xd866=['request-promise','path','rimraf','../../config/environment','./screenRecording.attributes','define','ScreenRecording','screen_recordings','interactionid','lodash','util','moment','bluebird'];(function(_0x436919,_0xa46c27){var _0x340632=function(_0x18b1e6){while(--_0x18b1e6){_0x436919['push'](_0x436919['shift']());}};_0x340632(++_0xa46c27);}(_0xd866,0xbf));var _0x6d86=function(_0x2c3f37,_0x5a46b6){_0x2c3f37=_0x2c3f37-0x0;var _0x12a453=_0xd866[_0x2c3f37];return _0x12a453;};'use strict';var _=require(_0x6d86('0x0'));var util=require(_0x6d86('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x6d86('0x2'));var BPromise=require(_0x6d86('0x3'));var rp=require(_0x6d86('0x4'));var fs=require('fs');var path=require(_0x6d86('0x5'));var rimraf=require(_0x6d86('0x6'));var config=require(_0x6d86('0x7'));var attributes=require(_0x6d86('0x8'));module['exports']=function(_0x51a5ee,_0x38d573){return _0x51a5ee[_0x6d86('0x9')](_0x6d86('0xa'),attributes,{'tableName':_0x6d86('0xb'),'paranoid':![],'indexes':[{'name':_0x6d86('0xc'),'fields':[_0x6d86('0xc')]}],'timestamps':!![]});};