fcb065185ad97ab6811eaf104e38a986591c48f0
[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 _0x5c60=['util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./screenRecording.attributes','define','ScreenRecording','screen_recordings','interactionid'];(function(_0x4e7082,_0x47612a){var _0x4906de=function(_0x1196d5){while(--_0x1196d5){_0x4e7082['push'](_0x4e7082['shift']());}};_0x4906de(++_0x47612a);}(_0x5c60,0x68));var _0x05c6=function(_0x52082b,_0x26ea1d){_0x52082b=_0x52082b-0x0;var _0x3f3419=_0x5c60[_0x52082b];return _0x3f3419;};'use strict';var _=require('lodash');var util=require(_0x05c6('0x0'));var logger=require(_0x05c6('0x1'))(_0x05c6('0x2'));var moment=require('moment');var BPromise=require(_0x05c6('0x3'));var rp=require(_0x05c6('0x4'));var fs=require('fs');var path=require(_0x05c6('0x5'));var rimraf=require(_0x05c6('0x6'));var config=require(_0x05c6('0x7'));var attributes=require(_0x05c6('0x8'));module['exports']=function(_0x1969b8,_0x1a24eb){return _0x1969b8[_0x05c6('0x9')](_0x05c6('0xa'),attributes,{'tableName':_0x05c6('0xb'),'paranoid':![],'indexes':[{'name':_0x05c6('0xc'),'fields':[_0x05c6('0xc')]}],'timestamps':!![]});};