cf450231bef85f9e6a574a368f7f08547bc7b9ee
[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 _0xaf1d=['screen_recordings','interactionid','lodash','util','../../config/logger','api','bluebird','path','rimraf','../../config/environment','exports','ScreenRecording'];(function(_0x9b3efc,_0x577a0d){var _0x200f05=function(_0x15ad7c){while(--_0x15ad7c){_0x9b3efc['push'](_0x9b3efc['shift']());}};_0x200f05(++_0x577a0d);}(_0xaf1d,0x19a));var _0xdaf1=function(_0x2a3d82,_0x571f92){_0x2a3d82=_0x2a3d82-0x0;var _0xe0d172=_0xaf1d[_0x2a3d82];return _0xe0d172;};'use strict';var _=require(_0xdaf1('0x0'));var util=require(_0xdaf1('0x1'));var logger=require(_0xdaf1('0x2'))(_0xdaf1('0x3'));var moment=require('moment');var BPromise=require(_0xdaf1('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdaf1('0x5'));var rimraf=require(_0xdaf1('0x6'));var config=require(_0xdaf1('0x7'));var attributes=require('./screenRecording.attributes');module[_0xdaf1('0x8')]=function(_0x114228,_0x22c3b4){return _0x114228['define'](_0xdaf1('0x9'),attributes,{'tableName':_0xdaf1('0xa'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0xdaf1('0xb')]}],'timestamps':!![]});};