599cf336c88efdcb14a17a2a4c00ec2b1e990ec9
[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 _0xaa19=['interactionid','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','ScreenRecording','screen_recordings'];(function(_0x3dda9a,_0xa26548){var _0x55c55d=function(_0xfb533c){while(--_0xfb533c){_0x3dda9a['push'](_0x3dda9a['shift']());}};_0x55c55d(++_0xa26548);}(_0xaa19,0x139));var _0x9aa1=function(_0x4c7166,_0x4f9564){_0x4c7166=_0x4c7166-0x0;var _0x1ffd50=_0xaa19[_0x4c7166];return _0x1ffd50;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9aa1('0x0'))(_0x9aa1('0x1'));var moment=require(_0x9aa1('0x2'));var BPromise=require(_0x9aa1('0x3'));var rp=require(_0x9aa1('0x4'));var fs=require('fs');var path=require(_0x9aa1('0x5'));var rimraf=require(_0x9aa1('0x6'));var config=require(_0x9aa1('0x7'));var attributes=require('./screenRecording.attributes');module['exports']=function(_0x340e5e,_0x22eb17){return _0x340e5e[_0x9aa1('0x8')](_0x9aa1('0x9'),attributes,{'tableName':_0x9aa1('0xa'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x9aa1('0xb')]}],'timestamps':!![]});};