Built motion from commit 9d1906d1.|2.5.40
[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 _0x2893=['moment','bluebird','path','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','util','api'];(function(_0x5c8969,_0x113241){var _0x3062b8=function(_0x1c8e4c){while(--_0x1c8e4c){_0x5c8969['push'](_0x5c8969['shift']());}};_0x3062b8(++_0x113241);}(_0x2893,0xe1));var _0x3289=function(_0x3e8cae,_0x4cb96a){_0x3e8cae=_0x3e8cae-0x0;var _0x45c4d6=_0x2893[_0x3e8cae];return _0x45c4d6;};'use strict';var _=require(_0x3289('0x0'));var util=require(_0x3289('0x1'));var logger=require('../../config/logger')(_0x3289('0x2'));var moment=require(_0x3289('0x3'));var BPromise=require(_0x3289('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3289('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x3289('0x6'));module[_0x3289('0x7')]=function(_0x139652,_0x24ef09){return _0x139652[_0x3289('0x8')](_0x3289('0x9'),attributes,{'tableName':_0x3289('0xa'),'paranoid':![],'indexes':[{'name':_0x3289('0xb'),'fields':[_0x3289('0xb')]}],'timestamps':!![]});};