Built motion from commit 9d7072cc.|2.5.39
[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 _0xd76d=['ScreenRecording','screen_recordings','interactionid','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','./screenRecording.attributes','exports','define'];(function(_0x40f03e,_0x43e986){var _0x1544e6=function(_0x284bb8){while(--_0x284bb8){_0x40f03e['push'](_0x40f03e['shift']());}};_0x1544e6(++_0x43e986);}(_0xd76d,0xe0));var _0xdd76=function(_0x26260c,_0x3a9df0){_0x26260c=_0x26260c-0x0;var _0x21f487=_0xd76d[_0x26260c];return _0x21f487;};'use strict';var _=require(_0xdd76('0x0'));var util=require(_0xdd76('0x1'));var logger=require(_0xdd76('0x2'))('api');var moment=require(_0xdd76('0x3'));var BPromise=require(_0xdd76('0x4'));var rp=require(_0xdd76('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xdd76('0x6'));var config=require('../../config/environment');var attributes=require(_0xdd76('0x7'));module[_0xdd76('0x8')]=function(_0x4fa10d,_0x5a0039){return _0x4fa10d[_0xdd76('0x9')](_0xdd76('0xa'),attributes,{'tableName':_0xdd76('0xb'),'paranoid':![],'indexes':[{'name':_0xdd76('0xc'),'fields':[_0xdd76('0xc')]}],'timestamps':!![]});};