3fa907f081d0c107cfafa5ae7f96b161c1dde49d
[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 _0x749d=['interactionid','lodash','api','moment','request-promise','path','../../config/environment','./screenRecording.attributes','define','ScreenRecording','screen_recordings'];(function(_0x213065,_0x3afd09){var _0x50a790=function(_0x5705dd){while(--_0x5705dd){_0x213065['push'](_0x213065['shift']());}};_0x50a790(++_0x3afd09);}(_0x749d,0x161));var _0xd749=function(_0x33be9b,_0x1d357b){_0x33be9b=_0x33be9b-0x0;var _0x121164=_0x749d[_0x33be9b];return _0x121164;};'use strict';var _=require(_0xd749('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xd749('0x1'));var moment=require(_0xd749('0x2'));var BPromise=require('bluebird');var rp=require(_0xd749('0x3'));var fs=require('fs');var path=require(_0xd749('0x4'));var rimraf=require('rimraf');var config=require(_0xd749('0x5'));var attributes=require(_0xd749('0x6'));module['exports']=function(_0x4775c7,_0x505ad4){return _0x4775c7[_0xd749('0x7')](_0xd749('0x8'),attributes,{'tableName':_0xd749('0x9'),'paranoid':![],'indexes':[{'name':_0xd749('0xa'),'fields':[_0xd749('0xa')]}],'timestamps':!![]});};