Built motion from commit (unavailable).|2.5.9
[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 _0xf309=['interactionid','lodash','util','../../config/logger','moment','bluebird','rimraf','exports','define','ScreenRecording','screen_recordings'];(function(_0x36ac8b,_0x1f9f27){var _0x3ac912=function(_0x567a7a){while(--_0x567a7a){_0x36ac8b['push'](_0x36ac8b['shift']());}};_0x3ac912(++_0x1f9f27);}(_0xf309,0x161));var _0x9f30=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0xf309[_0x2f5ac5];return _0x37c9a8;};'use strict';var _=require(_0x9f30('0x0'));var util=require(_0x9f30('0x1'));var logger=require(_0x9f30('0x2'))('api');var moment=require(_0x9f30('0x3'));var BPromise=require(_0x9f30('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9f30('0x5'));var config=require('../../config/environment');var attributes=require('./screenRecording.attributes');module[_0x9f30('0x6')]=function(_0x144c53,_0x4032d9){return _0x144c53[_0x9f30('0x7')](_0x9f30('0x8'),attributes,{'tableName':_0x9f30('0x9'),'paranoid':![],'indexes':[{'name':_0x9f30('0xa'),'fields':[_0x9f30('0xa')]}],'timestamps':!![]});};