025798b1d9c7b9650373ee0225c1b46a8362e0d2
[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 _0x9e75=['bluebird','request-promise','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','util','../../config/logger','moment'];(function(_0x271474,_0x248441){var _0x72f117=function(_0x4ad1b9){while(--_0x4ad1b9){_0x271474['push'](_0x271474['shift']());}};_0x72f117(++_0x248441);}(_0x9e75,0x19c));var _0x59e7=function(_0x5d208c,_0x593581){_0x5d208c=_0x5d208c-0x0;var _0x4cb6a2=_0x9e75[_0x5d208c];return _0x4cb6a2;};'use strict';var _=require(_0x59e7('0x0'));var util=require(_0x59e7('0x1'));var logger=require(_0x59e7('0x2'))('api');var moment=require(_0x59e7('0x3'));var BPromise=require(_0x59e7('0x4'));var rp=require(_0x59e7('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x59e7('0x6'));var attributes=require(_0x59e7('0x7'));module[_0x59e7('0x8')]=function(_0x352359,_0x20ef64){return _0x352359[_0x59e7('0x9')](_0x59e7('0xa'),attributes,{'tableName':_0x59e7('0xb'),'paranoid':![],'indexes':[{'name':_0x59e7('0xc'),'fields':[_0x59e7('0xc')]}],'timestamps':!![]});};