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 _0xaafc=['endtime','uniqueid','util','../../config/logger','api','moment','request-promise','path','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0xaafc,0x176));var _0xcaaf=function(_0x2acda9,_0x58bb23){_0x2acda9=_0x2acda9-0x0;var _0x425922=_0xaafc[_0x2acda9];return _0x425922;};'use strict';var _=require('lodash');var util=require(_0xcaaf('0x0'));var logger=require(_0xcaaf('0x1'))(_0xcaaf('0x2'));var moment=require(_0xcaaf('0x3'));var BPromise=require('bluebird');var rp=require(_0xcaaf('0x4'));var fs=require('fs');var path=require(_0xcaaf('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xcaaf('0x6'));module['exports']=function(_0x291f15,_0x54757a){return _0x291f15[_0xcaaf('0x7')](_0xcaaf('0x8'),attributes,{'tableName':_0xcaaf('0x9'),'paranoid':![],'indexes':[{'name':_0xcaaf('0xa'),'fields':['endtime']},{'name':_0xcaaf('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};