3a26a581abd7f681783eb3db110ba7e0d958bbde
[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 _0xa53a=['rimraf','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','interactionid','util','api','moment','path'];(function(_0x3cedce,_0x416557){var _0x280108=function(_0x22e633){while(--_0x22e633){_0x3cedce['push'](_0x3cedce['shift']());}};_0x280108(++_0x416557);}(_0xa53a,0xe3));var _0xaa53=function(_0x2a19c8,_0x525a70){_0x2a19c8=_0x2a19c8-0x0;var _0x414062=_0xa53a[_0x2a19c8];return _0x414062;};'use strict';var _=require('lodash');var util=require(_0xaa53('0x0'));var logger=require('../../config/logger')(_0xaa53('0x1'));var moment=require(_0xaa53('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xaa53('0x3'));var rimraf=require(_0xaa53('0x4'));var config=require(_0xaa53('0x5'));var attributes=require(_0xaa53('0x6'));module[_0xaa53('0x7')]=function(_0x32242c,_0x3ab3d5){return _0x32242c[_0xaa53('0x8')](_0xaa53('0x9'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xaa53('0xa')]}],'timestamps':!![]});};