Built motion from commit (unavailable).|2.5.14
[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 _0x9585=['request-promise','path','rimraf','../../config/environment','exports','define','ScreenRecording','interactionid','util','../../config/logger','api','bluebird'];(function(_0x301602,_0x4e6d13){var _0x2157d3=function(_0x333bb3){while(--_0x333bb3){_0x301602['push'](_0x301602['shift']());}};_0x2157d3(++_0x4e6d13);}(_0x9585,0x1d0));var _0x5958=function(_0xf3ceec,_0x3cf5e7){_0xf3ceec=_0xf3ceec-0x0;var _0x1a8a6e=_0x9585[_0xf3ceec];return _0x1a8a6e;};'use strict';var _=require('lodash');var util=require(_0x5958('0x0'));var logger=require(_0x5958('0x1'))(_0x5958('0x2'));var moment=require('moment');var BPromise=require(_0x5958('0x3'));var rp=require(_0x5958('0x4'));var fs=require('fs');var path=require(_0x5958('0x5'));var rimraf=require(_0x5958('0x6'));var config=require(_0x5958('0x7'));var attributes=require('./screenRecording.attributes');module[_0x5958('0x8')]=function(_0x1c558a,_0xfb90ee){return _0x1c558a[_0x5958('0x9')](_0x5958('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0x5958('0xb'),'fields':['interactionid']}],'timestamps':!![]});};