ca2cc45803a1ca9fa091e9f82a9aa761eb27d0c4
[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 _0xb9f5=['api','bluebird','request-promise','path','rimraf','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','../../config/logger'];(function(_0x112585,_0x5017b){var _0x38809f=function(_0x24f315){while(--_0x24f315){_0x112585['push'](_0x112585['shift']());}};_0x38809f(++_0x5017b);}(_0xb9f5,0x80));var _0x5b9f=function(_0x2e1b41,_0x17914a){_0x2e1b41=_0x2e1b41-0x0;var _0x163368=_0xb9f5[_0x2e1b41];return _0x163368;};'use strict';var _=require(_0x5b9f('0x0'));var util=require('util');var logger=require(_0x5b9f('0x1'))(_0x5b9f('0x2'));var moment=require('moment');var BPromise=require(_0x5b9f('0x3'));var rp=require(_0x5b9f('0x4'));var fs=require('fs');var path=require(_0x5b9f('0x5'));var rimraf=require(_0x5b9f('0x6'));var config=require('../../config/environment');var attributes=require(_0x5b9f('0x7'));module[_0x5b9f('0x8')]=function(_0x12ee05,_0x5c0cd0){return _0x12ee05[_0x5b9f('0x9')](_0x5b9f('0xa'),attributes,{'tableName':_0x5b9f('0xb'),'paranoid':![],'indexes':[{'name':_0x5b9f('0xc'),'fields':[_0x5b9f('0xc')]}],'timestamps':!![]});};