Built motion from commit 1fa89557.|2.6.10
[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 _0x339a=['api','moment','bluebird','rimraf','../../config/environment','exports','ScreenRecording','interactionid','lodash','util','../../config/logger'];(function(_0x19e928,_0x26a0e4){var _0x4e941f=function(_0x52a5cd){while(--_0x52a5cd){_0x19e928['push'](_0x19e928['shift']());}};_0x4e941f(++_0x26a0e4);}(_0x339a,0x1c0));var _0xa339=function(_0xcc96d0,_0x1b0e87){_0xcc96d0=_0xcc96d0-0x0;var _0x4f021c=_0x339a[_0xcc96d0];return _0x4f021c;};'use strict';var _=require(_0xa339('0x0'));var util=require(_0xa339('0x1'));var logger=require(_0xa339('0x2'))(_0xa339('0x3'));var moment=require(_0xa339('0x4'));var BPromise=require(_0xa339('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xa339('0x6'));var config=require(_0xa339('0x7'));var attributes=require('./screenRecording.attributes');module[_0xa339('0x8')]=function(_0xc5768c,_0x389b0d){return _0xc5768c['define'](_0xa339('0x9'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0xa339('0xa'),'fields':[_0xa339('0xa')]}],'timestamps':!![]});};