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 _0x81d3=['./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x17861c,_0x18818e){var _0x61bfe4=function(_0xecbe91){while(--_0xecbe91){_0x17861c['push'](_0x17861c['shift']());}};_0x61bfe4(++_0x18818e);}(_0x81d3,0xd9));var _0x381d=function(_0x5df789,_0x1800f6){_0x5df789=_0x5df789-0x0;var _0x27b992=_0x81d3[_0x5df789];return _0x27b992;};'use strict';var _=require(_0x381d('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x381d('0x1'));var moment=require(_0x381d('0x2'));var BPromise=require(_0x381d('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x381d('0x4'));var rimraf=require(_0x381d('0x5'));var config=require(_0x381d('0x6'));var attributes=require(_0x381d('0x7'));module[_0x381d('0x8')]=function(_0x223c6c,_0x395e47){return _0x223c6c[_0x381d('0x9')](_0x381d('0xa'),attributes,{'tableName':_0x381d('0xb'),'paranoid':![],'indexes':[{'name':_0x381d('0xc'),'fields':['endtime']},{'name':_0x381d('0xd'),'fields':[_0x381d('0xd')]}],'timestamps':!![]});};