Built motion from commit 06eb8eb0.|2.6.31
[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 _0x58da=['api','moment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid','../../config/logger'];(function(_0x22f048,_0x20c372){var _0xda0bfa=function(_0x19a86b){while(--_0x19a86b){_0x22f048['push'](_0x22f048['shift']());}};_0xda0bfa(++_0x20c372);}(_0x58da,0x1c1));var _0xa58d=function(_0xeb73fb,_0x227320){_0xeb73fb=_0xeb73fb-0x0;var _0x103c60=_0x58da[_0xeb73fb];return _0x103c60;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xa58d('0x0'))(_0xa58d('0x1'));var moment=require(_0xa58d('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa58d('0x3'));module[_0xa58d('0x4')]=function(_0x1ad51f,_0x5a0101){return _0x1ad51f[_0xa58d('0x5')](_0xa58d('0x6'),attributes,{'tableName':_0xa58d('0x7'),'paranoid':![],'indexes':[{'name':_0xa58d('0x8'),'fields':['interactionid']}],'timestamps':!![]});};