Built motion from commit e0fa946e.|2.6.5
[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 _0x9b20=['rimraf','../../config/environment','./screenRecording.attributes','define','ScreenRecording','screen_recordings','interactionid','../../config/logger','moment','bluebird','request-promise'];(function(_0x4091de,_0x2f699e){var _0x554482=function(_0x147abb){while(--_0x147abb){_0x4091de['push'](_0x4091de['shift']());}};_0x554482(++_0x2f699e);}(_0x9b20,0xac));var _0x09b2=function(_0x54edc9,_0x345f01){_0x54edc9=_0x54edc9-0x0;var _0x2ae7a9=_0x9b20[_0x54edc9];return _0x2ae7a9;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x09b2('0x0'))('api');var moment=require(_0x09b2('0x1'));var BPromise=require(_0x09b2('0x2'));var rp=require(_0x09b2('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x09b2('0x4'));var config=require(_0x09b2('0x5'));var attributes=require(_0x09b2('0x6'));module['exports']=function(_0xfed277,_0x24f719){return _0xfed277[_0x09b2('0x7')](_0x09b2('0x8'),attributes,{'tableName':_0x09b2('0x9'),'paranoid':![],'indexes':[{'name':_0x09b2('0xa'),'fields':[_0x09b2('0xa')]}],'timestamps':!![]});};