Built motion from commit 00bf23f6.|2.6.16
[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 _0x5e28=['../../config/environment','./screenRecording.attributes','exports','define','screen_recordings','interactionid','lodash','util','../../config/logger','api','bluebird','path','rimraf'];(function(_0x2b7737,_0x1c5e90){var _0x2bc6cc=function(_0x4346d1){while(--_0x4346d1){_0x2b7737['push'](_0x2b7737['shift']());}};_0x2bc6cc(++_0x1c5e90);}(_0x5e28,0x165));var _0x85e2=function(_0x269ee8,_0x477226){_0x269ee8=_0x269ee8-0x0;var _0x4d98bd=_0x5e28[_0x269ee8];return _0x4d98bd;};'use strict';var _=require(_0x85e2('0x0'));var util=require(_0x85e2('0x1'));var logger=require(_0x85e2('0x2'))(_0x85e2('0x3'));var moment=require('moment');var BPromise=require(_0x85e2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x85e2('0x5'));var rimraf=require(_0x85e2('0x6'));var config=require(_0x85e2('0x7'));var attributes=require(_0x85e2('0x8'));module[_0x85e2('0x9')]=function(_0x365c3f,_0x215099){return _0x365c3f[_0x85e2('0xa')]('ScreenRecording',attributes,{'tableName':_0x85e2('0xb'),'paranoid':![],'indexes':[{'name':_0x85e2('0xc'),'fields':[_0x85e2('0xc')]}],'timestamps':!![]});};