Built motion from commit d1eab355.|2.6.28
[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 _0xf8e9=['screen_recordings','interactionid','lodash','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./screenRecording.attributes','define','ScreenRecording'];(function(_0x3d3fa2,_0x104433){var _0x556091=function(_0x486910){while(--_0x486910){_0x3d3fa2['push'](_0x3d3fa2['shift']());}};_0x556091(++_0x104433);}(_0xf8e9,0xaa));var _0x9f8e=function(_0x2ea67f,_0x2d2fd8){_0x2ea67f=_0x2ea67f-0x0;var _0x49079a=_0xf8e9[_0x2ea67f];return _0x49079a;};'use strict';var _=require(_0x9f8e('0x0'));var util=require('util');var logger=require(_0x9f8e('0x1'))(_0x9f8e('0x2'));var moment=require('moment');var BPromise=require(_0x9f8e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9f8e('0x4'));var rimraf=require(_0x9f8e('0x5'));var config=require(_0x9f8e('0x6'));var attributes=require(_0x9f8e('0x7'));module['exports']=function(_0x546ad7,_0x2e0495){return _0x546ad7[_0x9f8e('0x8')](_0x9f8e('0x9'),attributes,{'tableName':_0x9f8e('0xa'),'paranoid':![],'indexes':[{'name':_0x9f8e('0xb'),'fields':['interactionid']}],'timestamps':!![]});};