Built motion from commit (unavailable).|2.5.3
[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 _0x4c61=['exports','define','ScreenRecording','screen_recordings','interactionid','lodash','../../config/logger','api','moment','request-promise','path','rimraf','./screenRecording.attributes'];(function(_0x21405e,_0x4b3101){var _0x437a6f=function(_0x5590cf){while(--_0x5590cf){_0x21405e['push'](_0x21405e['shift']());}};_0x437a6f(++_0x4b3101);}(_0x4c61,0x14a));var _0x14c6=function(_0x1b57f9,_0x3029d3){_0x1b57f9=_0x1b57f9-0x0;var _0x44c2b4=_0x4c61[_0x1b57f9];return _0x44c2b4;};'use strict';var _=require(_0x14c6('0x0'));var util=require('util');var logger=require(_0x14c6('0x1'))(_0x14c6('0x2'));var moment=require(_0x14c6('0x3'));var BPromise=require('bluebird');var rp=require(_0x14c6('0x4'));var fs=require('fs');var path=require(_0x14c6('0x5'));var rimraf=require(_0x14c6('0x6'));var config=require('../../config/environment');var attributes=require(_0x14c6('0x7'));module[_0x14c6('0x8')]=function(_0x87c7,_0x1e3a01){return _0x87c7[_0x14c6('0x9')](_0x14c6('0xa'),attributes,{'tableName':_0x14c6('0xb'),'paranoid':![],'indexes':[{'name':_0x14c6('0xc'),'fields':[_0x14c6('0xc')]}],'timestamps':!![]});};