a9f0e389535e3a4e8ab5c8f58a7ff79347d17786
[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 _0x66a6=['rimraf','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x372c6f,_0x5d51d6){var _0x572683=function(_0x3b379e){while(--_0x3b379e){_0x372c6f['push'](_0x372c6f['shift']());}};_0x572683(++_0x5d51d6);}(_0x66a6,0x93));var _0x666a=function(_0x3680bd,_0x47acd5){_0x3680bd=_0x3680bd-0x0;var _0x55c431=_0x66a6[_0x3680bd];return _0x55c431;};'use strict';var _=require('lodash');var util=require(_0x666a('0x0'));var logger=require(_0x666a('0x1'))(_0x666a('0x2'));var moment=require(_0x666a('0x3'));var BPromise=require(_0x666a('0x4'));var rp=require(_0x666a('0x5'));var fs=require('fs');var path=require(_0x666a('0x6'));var rimraf=require(_0x666a('0x7'));var config=require('../../config/environment');var attributes=require(_0x666a('0x8'));module[_0x666a('0x9')]=function(_0x5c76e2,_0x5b72b8){return _0x5c76e2[_0x666a('0xa')](_0x666a('0xb'),attributes,{'tableName':_0x666a('0xc'),'paranoid':![],'indexes':[{'name':_0x666a('0xd'),'fields':['interactionid']}],'timestamps':!![]});};