06bb12fcba015c5189cafa25703f39add6587522
[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 _0xcf5d=['moment','bluebird','request-promise','path','../../config/environment','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','../../config/logger','api'];(function(_0xbedaea,_0x425cca){var _0x42ea13=function(_0x10efb4){while(--_0x10efb4){_0xbedaea['push'](_0xbedaea['shift']());}};_0x42ea13(++_0x425cca);}(_0xcf5d,0x1d1));var _0xdcf5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xcf5d[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xdcf5('0x0'));var util=require('util');var logger=require(_0xdcf5('0x1'))(_0xdcf5('0x2'));var moment=require(_0xdcf5('0x3'));var BPromise=require(_0xdcf5('0x4'));var rp=require(_0xdcf5('0x5'));var fs=require('fs');var path=require(_0xdcf5('0x6'));var rimraf=require('rimraf');var config=require(_0xdcf5('0x7'));var attributes=require('./screenRecording.attributes');module[_0xdcf5('0x8')]=function(_0x4f03da,_0x4f37ba){return _0x4f03da[_0xdcf5('0x9')](_0xdcf5('0xa'),attributes,{'tableName':_0xdcf5('0xb'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xdcf5('0xc')]}],'timestamps':!![]});};