Built motion from commit 616d3211.|2.6.4
[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 _0x744c=['moment','request-promise','rimraf','../../config/environment','define','ScreenRecording','screen_recordings','interactionid','util','api'];(function(_0x4c7d91,_0x3edf90){var _0x2bb1db=function(_0x922b51){while(--_0x922b51){_0x4c7d91['push'](_0x4c7d91['shift']());}};_0x2bb1db(++_0x3edf90);}(_0x744c,0x1de));var _0xc744=function(_0x513483,_0x105ccd){_0x513483=_0x513483-0x0;var _0x384a1e=_0x744c[_0x513483];return _0x384a1e;};'use strict';var _=require('lodash');var util=require(_0xc744('0x0'));var logger=require('../../config/logger')(_0xc744('0x1'));var moment=require(_0xc744('0x2'));var BPromise=require('bluebird');var rp=require(_0xc744('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc744('0x4'));var config=require(_0xc744('0x5'));var attributes=require('./screenRecording.attributes');module['exports']=function(_0x282136,_0x2d8b55){return _0x282136[_0xc744('0x6')](_0xc744('0x7'),attributes,{'tableName':_0xc744('0x8'),'paranoid':![],'indexes':[{'name':_0xc744('0x9'),'fields':['interactionid']}],'timestamps':!![]});};