e22b4fcef049141a3bc8c5db87342bc0126ed43e
[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 _0x0420=['lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./screenRecording.attributes','exports','ScreenRecording'];(function(_0x455e4c,_0x159a4e){var _0x4fa101=function(_0xaba9d9){while(--_0xaba9d9){_0x455e4c['push'](_0x455e4c['shift']());}};_0x4fa101(++_0x159a4e);}(_0x0420,0x13f));var _0x0042=function(_0x8806a6,_0x686e06){_0x8806a6=_0x8806a6-0x0;var _0x49cdd3=_0x0420[_0x8806a6];return _0x49cdd3;};'use strict';var _=require(_0x0042('0x0'));var util=require(_0x0042('0x1'));var logger=require(_0x0042('0x2'))(_0x0042('0x3'));var moment=require(_0x0042('0x4'));var BPromise=require('bluebird');var rp=require(_0x0042('0x5'));var fs=require('fs');var path=require(_0x0042('0x6'));var rimraf=require(_0x0042('0x7'));var config=require('../../config/environment');var attributes=require(_0x0042('0x8'));module[_0x0042('0x9')]=function(_0xa66eb6,_0x3568d0){return _0xa66eb6['define'](_0x0042('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':['interactionid']}],'timestamps':!![]});};