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 _0x2529=['endtime','uniqueid','../../config/logger','api','moment','path','rimraf','./cmHopperHistory.attributes','CmHopperHistory','cm_hopper_history'];(function(_0x2b5c54,_0xd1be91){var _0x443e70=function(_0xf8d3ef){while(--_0xf8d3ef){_0x2b5c54['push'](_0x2b5c54['shift']());}};_0x443e70(++_0xd1be91);}(_0x2529,0x98));var _0x9252=function(_0x47591d,_0x4bf216){_0x47591d=_0x47591d-0x0;var _0x409312=_0x2529[_0x47591d];return _0x409312;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9252('0x0'))(_0x9252('0x1'));var moment=require(_0x9252('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9252('0x3'));var rimraf=require(_0x9252('0x4'));var config=require('../../config/environment');var attributes=require(_0x9252('0x5'));module['exports']=function(_0x210fc3,_0x172e89){return _0x210fc3['define'](_0x9252('0x6'),attributes,{'tableName':_0x9252('0x7'),'paranoid':![],'indexes':[{'name':_0x9252('0x8'),'fields':['endtime']},{'name':_0x9252('0x9'),'fields':[_0x9252('0x9')]}],'timestamps':!![]});};