b66e156392a8c2aa0caa7c551f53dd33cdf3dfa0
[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 _0xfa95=['./screenRecording.attributes','ScreenRecording','screen_recordings','interactionid','util','api','moment','request-promise','path','../../config/environment'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0xfa95,0x11c));var _0x5fa9=function(_0xabbd2f,_0x44d05a){_0xabbd2f=_0xabbd2f-0x0;var _0x34a040=_0xfa95[_0xabbd2f];return _0x34a040;};'use strict';var _=require('lodash');var util=require(_0x5fa9('0x0'));var logger=require('../../config/logger')(_0x5fa9('0x1'));var moment=require(_0x5fa9('0x2'));var BPromise=require('bluebird');var rp=require(_0x5fa9('0x3'));var fs=require('fs');var path=require(_0x5fa9('0x4'));var rimraf=require('rimraf');var config=require(_0x5fa9('0x5'));var attributes=require(_0x5fa9('0x6'));module['exports']=function(_0x48b192,_0x52e69d){return _0x48b192['define'](_0x5fa9('0x7'),attributes,{'tableName':_0x5fa9('0x8'),'paranoid':![],'indexes':[{'name':_0x5fa9('0x9'),'fields':['interactionid']}],'timestamps':!![]});};