1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x3ea4=['path','rimraf','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','util','../../config/logger','moment','bluebird','request-promise'];(function(_0x146b3b,_0x1e3130){var _0x49d066=function(_0x158dcd){while(--_0x158dcd){_0x146b3b['push'](_0x146b3b['shift']());}};_0x49d066(++_0x1e3130);}(_0x3ea4,0x18e));var _0x43ea=function(_0x1633e9,_0x50a939){_0x1633e9=_0x1633e9-0x0;var _0x549ace=_0x3ea4[_0x1633e9];return _0x549ace;};'use strict';var _=require('lodash');var util=require(_0x43ea('0x0'));var logger=require(_0x43ea('0x1'))('api');var moment=require(_0x43ea('0x2'));var BPromise=require(_0x43ea('0x3'));var rp=require(_0x43ea('0x4'));var fs=require('fs');var path=require(_0x43ea('0x5'));var rimraf=require(_0x43ea('0x6'));var config=require('../../config/environment');var attributes=require(_0x43ea('0x7'));module[_0x43ea('0x8')]=function(_0x3504fe,_0x57aa6e){return _0x3504fe[_0x43ea('0x9')](_0x43ea('0xa'),attributes,{'tableName':_0x43ea('0xb'),'paranoid':![],'indexes':[{'name':_0x43ea('0xc'),'fields':[_0x43ea('0xc')]}],'timestamps':!![]});};