1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x72d5=['../../config/environment','./cmHopperHistory.attributes','exports','CmHopperHistory','cm_hopper_history','uniqueid','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x34c553,_0x3e7dfc){var _0x1357d2=function(_0x3b509f){while(--_0x3b509f){_0x34c553['push'](_0x34c553['shift']());}};_0x1357d2(++_0x3e7dfc);}(_0x72d5,0x13e));var _0x572d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x72d5[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x572d('0x0'))(_0x572d('0x1'));var moment=require('moment');var BPromise=require(_0x572d('0x2'));var rp=require(_0x572d('0x3'));var fs=require('fs');var path=require(_0x572d('0x4'));var rimraf=require(_0x572d('0x5'));var config=require(_0x572d('0x6'));var attributes=require(_0x572d('0x7'));module[_0x572d('0x8')]=function(_0xde2bc4,_0x573b0a){return _0xde2bc4['define'](_0x572d('0x9'),attributes,{'tableName':_0x572d('0xa'),'paranoid':![],'indexes':[{'name':'endtime','fields':['endtime']},{'name':_0x572d('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};