Built motion from commit (unavailable).|2.5.20
[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 _0x5be0=['../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define','ScreenRecording','screen_recordings','interactionid','util'];(function(_0x29d630,_0x2ba62e){var _0x3785fe=function(_0x2d26f9){while(--_0x2d26f9){_0x29d630['push'](_0x29d630['shift']());}};_0x3785fe(++_0x2ba62e);}(_0x5be0,0xd7));var _0x05be=function(_0x188888,_0x2a0a1c){_0x188888=_0x188888-0x0;var _0x1491a8=_0x5be0[_0x188888];return _0x1491a8;};'use strict';var _=require('lodash');var util=require(_0x05be('0x0'));var logger=require(_0x05be('0x1'))('api');var moment=require(_0x05be('0x2'));var BPromise=require(_0x05be('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x05be('0x4'));var rimraf=require(_0x05be('0x5'));var config=require(_0x05be('0x6'));var attributes=require('./screenRecording.attributes');module[_0x05be('0x7')]=function(_0x384749,_0x45e701){return _0x384749[_0x05be('0x8')](_0x05be('0x9'),attributes,{'tableName':_0x05be('0xa'),'paranoid':![],'indexes':[{'name':_0x05be('0xb'),'fields':[_0x05be('0xb')]}],'timestamps':!![]});};