Built motion from commit e1760111.|2.6.18
[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 _0x296d=['../../config/logger','api','bluebird','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','util'];(function(_0x5377f3,_0x3574b7){var _0x443753=function(_0x266840){while(--_0x266840){_0x5377f3['push'](_0x5377f3['shift']());}};_0x443753(++_0x3574b7);}(_0x296d,0x1ee));var _0xd296=function(_0x1a3bd2,_0x344d4a){_0x1a3bd2=_0x1a3bd2-0x0;var _0x4222e6=_0x296d[_0x1a3bd2];return _0x4222e6;};'use strict';var _=require('lodash');var util=require(_0xd296('0x0'));var logger=require(_0xd296('0x1'))(_0xd296('0x2'));var moment=require('moment');var BPromise=require(_0xd296('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xd296('0x4'));var attributes=require(_0xd296('0x5'));module[_0xd296('0x6')]=function(_0x4f4c61,_0x3e9f88){return _0x4f4c61[_0xd296('0x7')](_0xd296('0x8'),attributes,{'tableName':_0xd296('0x9'),'paranoid':![],'indexes':[{'name':_0xd296('0xa'),'fields':[_0xd296('0xa')]}],'timestamps':!![]});};