Built motion from commit (unavailable).|2.5.8
[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 _0x84d6=['define','ScreenRecording','screen_recordings','interactionid','lodash','util','api','bluebird','request-promise','path','./screenRecording.attributes','exports'];(function(_0x5eef05,_0x1be989){var _0x56d4b8=function(_0x57993d){while(--_0x57993d){_0x5eef05['push'](_0x5eef05['shift']());}};_0x56d4b8(++_0x1be989);}(_0x84d6,0xd0));var _0x684d=function(_0x52b128,_0x5d05e4){_0x52b128=_0x52b128-0x0;var _0x19130a=_0x84d6[_0x52b128];return _0x19130a;};'use strict';var _=require(_0x684d('0x0'));var util=require(_0x684d('0x1'));var logger=require('../../config/logger')(_0x684d('0x2'));var moment=require('moment');var BPromise=require(_0x684d('0x3'));var rp=require(_0x684d('0x4'));var fs=require('fs');var path=require(_0x684d('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x684d('0x6'));module[_0x684d('0x7')]=function(_0x20b4fc,_0x47cb5f){return _0x20b4fc[_0x684d('0x8')](_0x684d('0x9'),attributes,{'tableName':_0x684d('0xa'),'paranoid':![],'indexes':[{'name':_0x684d('0xb'),'fields':['interactionid']}],'timestamps':!![]});};