Built motion from commit da617fac.|2.6.6
[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 _0xbb4b=['request-promise','rimraf','../../config/environment','./screenRecording.attributes','exports','screen_recordings','interactionid','api','bluebird'];(function(_0x5105e8,_0x44a2e0){var _0x53bbf5=function(_0x29dfb8){while(--_0x29dfb8){_0x5105e8['push'](_0x5105e8['shift']());}};_0x53bbf5(++_0x44a2e0);}(_0xbb4b,0xc4));var _0xbbb4=function(_0x2972ec,_0x1a22f7){_0x2972ec=_0x2972ec-0x0;var _0x353efd=_0xbb4b[_0x2972ec];return _0x353efd;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xbbb4('0x0'));var moment=require('moment');var BPromise=require(_0xbbb4('0x1'));var rp=require(_0xbbb4('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0xbbb4('0x3'));var config=require(_0xbbb4('0x4'));var attributes=require(_0xbbb4('0x5'));module[_0xbbb4('0x6')]=function(_0x1675a4,_0x157584){return _0x1675a4['define']('ScreenRecording',attributes,{'tableName':_0xbbb4('0x7'),'paranoid':![],'indexes':[{'name':_0xbbb4('0x8'),'fields':[_0xbbb4('0x8')]}],'timestamps':!![]});};