Built motion from commit 85328c08.|2.5.50
[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 _0x5aef=['ScreenRecording','screen_recordings','interactionid','util','api','moment','bluebird','request-promise','path','rimraf','./screenRecording.attributes','exports','define'];(function(_0x5d43f5,_0x8c9030){var _0x453144=function(_0x3d6f93){while(--_0x3d6f93){_0x5d43f5['push'](_0x5d43f5['shift']());}};_0x453144(++_0x8c9030);}(_0x5aef,0x1d7));var _0xf5ae=function(_0x441f7a,_0x576321){_0x441f7a=_0x441f7a-0x0;var _0x4821da=_0x5aef[_0x441f7a];return _0x4821da;};'use strict';var _=require('lodash');var util=require(_0xf5ae('0x0'));var logger=require('../../config/logger')(_0xf5ae('0x1'));var moment=require(_0xf5ae('0x2'));var BPromise=require(_0xf5ae('0x3'));var rp=require(_0xf5ae('0x4'));var fs=require('fs');var path=require(_0xf5ae('0x5'));var rimraf=require(_0xf5ae('0x6'));var config=require('../../config/environment');var attributes=require(_0xf5ae('0x7'));module[_0xf5ae('0x8')]=function(_0x209dde,_0x43d8d9){return _0x209dde[_0xf5ae('0x9')](_0xf5ae('0xa'),attributes,{'tableName':_0xf5ae('0xb'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xf5ae('0xc')]}],'timestamps':!![]});};