ae0b37410e6bdfe2b5026dfb87193fd0d9b212f9
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.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 _0x5a13=['cm_hopper_history','endtime','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','./cmHopperHistory.attributes','define','CmHopperHistory'];(function(_0x1e6237,_0x3b4981){var _0xb92b4=function(_0x504421){while(--_0x504421){_0x1e6237['push'](_0x1e6237['shift']());}};_0xb92b4(++_0x3b4981);}(_0x5a13,0x92));var _0x35a1=function(_0x201650,_0x41febf){_0x201650=_0x201650-0x0;var _0x7732a4=_0x5a13[_0x201650];return _0x7732a4;};'use strict';var _=require('lodash');var util=require(_0x35a1('0x0'));var logger=require(_0x35a1('0x1'))(_0x35a1('0x2'));var moment=require(_0x35a1('0x3'));var BPromise=require(_0x35a1('0x4'));var rp=require(_0x35a1('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x35a1('0x6'));var config=require('../../config/environment');var attributes=require(_0x35a1('0x7'));module['exports']=function(_0x537654,_0x53cadb){return _0x537654[_0x35a1('0x8')](_0x35a1('0x9'),attributes,{'tableName':_0x35a1('0xa'),'paranoid':![],'indexes':[{'name':_0x35a1('0xb'),'fields':[_0x35a1('0xb')]},{'name':'uniqueid','fields':[_0x35a1('0xc')]}],'timestamps':!![]});};