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 _0xf08c=['util','../../config/logger','moment','bluebird','request-promise','path','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history','uniqueid','lodash'];(function(_0x590cd0,_0x11bfd4){var _0x208eb0=function(_0x19d96f){while(--_0x19d96f){_0x590cd0['push'](_0x590cd0['shift']());}};_0x208eb0(++_0x11bfd4);}(_0xf08c,0xb5));var _0xcf08=function(_0x236d75,_0x385938){_0x236d75=_0x236d75-0x0;var _0x3d283f=_0xf08c[_0x236d75];return _0x3d283f;};'use strict';var _=require(_0xcf08('0x0'));var util=require(_0xcf08('0x1'));var logger=require(_0xcf08('0x2'))('api');var moment=require(_0xcf08('0x3'));var BPromise=require(_0xcf08('0x4'));var rp=require(_0xcf08('0x5'));var fs=require('fs');var path=require(_0xcf08('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xcf08('0x7'));module[_0xcf08('0x8')]=function(_0x5f1020,_0x346b93){return _0x5f1020[_0xcf08('0x9')](_0xcf08('0xa'),attributes,{'tableName':_0xcf08('0xb'),'paranoid':![],'indexes':[{'name':'endtime','fields':['endtime']},{'name':_0xcf08('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};