2910897c316679658123f3ac0367f9a2f97488f6
[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 _0xc306=['./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','util','moment','bluebird','request-promise','path','rimraf'];(function(_0x2642cb,_0x4b917f){var _0xe6e41=function(_0x281676){while(--_0x281676){_0x2642cb['push'](_0x2642cb['shift']());}};_0xe6e41(++_0x4b917f);}(_0xc306,0x124));var _0x6c30=function(_0x397b25,_0x42ce09){_0x397b25=_0x397b25-0x0;var _0x29e566=_0xc306[_0x397b25];return _0x29e566;};'use strict';var _=require(_0x6c30('0x0'));var util=require(_0x6c30('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x6c30('0x2'));var BPromise=require(_0x6c30('0x3'));var rp=require(_0x6c30('0x4'));var fs=require('fs');var path=require(_0x6c30('0x5'));var rimraf=require(_0x6c30('0x6'));var config=require('../../config/environment');var attributes=require(_0x6c30('0x7'));module[_0x6c30('0x8')]=function(_0x39c967,_0x5adeb6){return _0x39c967[_0x6c30('0x9')](_0x6c30('0xa'),attributes,{'tableName':_0x6c30('0xb'),'paranoid':![],'indexes':[{'name':_0x6c30('0xc'),'fields':['interactionid']}],'timestamps':!![]});};