Built motion from commit da617fac.|2.6.6
[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 _0x6795=['moment','bluebird','request-promise','path','../../config/environment','exports','ScreenRecording','screen_recordings','interactionid','lodash','../../config/logger','api'];(function(_0x57b432,_0x1589a0){var _0x2edf2a=function(_0x20edfc){while(--_0x20edfc){_0x57b432['push'](_0x57b432['shift']());}};_0x2edf2a(++_0x1589a0);}(_0x6795,0x165));var _0x5679=function(_0x3e93a8,_0x19554a){_0x3e93a8=_0x3e93a8-0x0;var _0x27dac3=_0x6795[_0x3e93a8];return _0x27dac3;};'use strict';var _=require(_0x5679('0x0'));var util=require('util');var logger=require(_0x5679('0x1'))(_0x5679('0x2'));var moment=require(_0x5679('0x3'));var BPromise=require(_0x5679('0x4'));var rp=require(_0x5679('0x5'));var fs=require('fs');var path=require(_0x5679('0x6'));var rimraf=require('rimraf');var config=require(_0x5679('0x7'));var attributes=require('./screenRecording.attributes');module[_0x5679('0x8')]=function(_0x3edcb8,_0x2b853a){return _0x3edcb8['define'](_0x5679('0x9'),attributes,{'tableName':_0x5679('0xa'),'paranoid':![],'indexes':[{'name':_0x5679('0xb'),'fields':['interactionid']}],'timestamps':!![]});};