Built motion from commit e02f907f.|2.6.14
[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 _0x242f=['../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x225500,_0x253031){var _0x50d476=function(_0x1a2261){while(--_0x1a2261){_0x225500['push'](_0x225500['shift']());}};_0x50d476(++_0x253031);}(_0x242f,0x19c));var _0xf242=function(_0x87e0dc,_0x577dce){_0x87e0dc=_0x87e0dc-0x0;var _0x2cd2d1=_0x242f[_0x87e0dc];return _0x2cd2d1;};'use strict';var _=require(_0xf242('0x0'));var util=require(_0xf242('0x1'));var logger=require(_0xf242('0x2'))(_0xf242('0x3'));var moment=require(_0xf242('0x4'));var BPromise=require(_0xf242('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf242('0x6'));var rimraf=require(_0xf242('0x7'));var config=require(_0xf242('0x8'));var attributes=require(_0xf242('0x9'));module[_0xf242('0xa')]=function(_0x8a67ad,_0x4e8c56){return _0x8a67ad[_0xf242('0xb')](_0xf242('0xc'),attributes,{'tableName':_0xf242('0xd'),'paranoid':![],'indexes':[{'name':_0xf242('0xe'),'fields':[_0xf242('0xe')]}],'timestamps':!![]});};