Built motion from commit (unavailable).|2.5.7
[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 _0xf7f4=['interactionid','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','exports','define','ScreenRecording'];(function(_0xf198fe,_0x16f08b){var _0x3c85ad=function(_0x595fa9){while(--_0x595fa9){_0xf198fe['push'](_0xf198fe['shift']());}};_0x3c85ad(++_0x16f08b);}(_0xf7f4,0xc1));var _0x4f7f=function(_0x20a2ca,_0xaa22fd){_0x20a2ca=_0x20a2ca-0x0;var _0x435d48=_0xf7f4[_0x20a2ca];return _0x435d48;};'use strict';var _=require(_0x4f7f('0x0'));var util=require(_0x4f7f('0x1'));var logger=require(_0x4f7f('0x2'))(_0x4f7f('0x3'));var moment=require('moment');var BPromise=require(_0x4f7f('0x4'));var rp=require(_0x4f7f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4f7f('0x6'));var config=require(_0x4f7f('0x7'));var attributes=require('./screenRecording.attributes');module[_0x4f7f('0x8')]=function(_0x237ca0,_0x35fe29){return _0x237ca0[_0x4f7f('0x9')](_0x4f7f('0xa'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x4f7f('0xb')]}],'timestamps':!![]});};