91f4d5843161210c3fab19862a661adbc2dfb8fa
[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 _0x984d=['rimraf','exports','define','ScreenRecording','interactionid','../../config/logger','api','bluebird','request-promise','path'];(function(_0x19ca62,_0x5e90ef){var _0x5907cc=function(_0x10c7d3){while(--_0x10c7d3){_0x19ca62['push'](_0x19ca62['shift']());}};_0x5907cc(++_0x5e90ef);}(_0x984d,0x69));var _0xd984=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x984d[_0x2641f9];return _0x585741;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xd984('0x0'))(_0xd984('0x1'));var moment=require('moment');var BPromise=require(_0xd984('0x2'));var rp=require(_0xd984('0x3'));var fs=require('fs');var path=require(_0xd984('0x4'));var rimraf=require(_0xd984('0x5'));var config=require('../../config/environment');var attributes=require('./screenRecording.attributes');module[_0xd984('0x6')]=function(_0x427e3b,_0x3c4769){return _0x427e3b[_0xd984('0x7')](_0xd984('0x8'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0xd984('0x9'),'fields':[_0xd984('0x9')]}],'timestamps':!![]});};