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 _0x2ebd=['rimraf','../../config/environment','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util','../../config/logger','bluebird','request-promise','path'];(function(_0x3a8086,_0x77248b){var _0x257914=function(_0x1fd93c){while(--_0x1fd93c){_0x3a8086['push'](_0x3a8086['shift']());}};_0x257914(++_0x77248b);}(_0x2ebd,0x1c8));var _0xd2eb=function(_0x3d4604,_0x561ea4){_0x3d4604=_0x3d4604-0x0;var _0xdf1856=_0x2ebd[_0x3d4604];return _0xdf1856;};'use strict';var _=require(_0xd2eb('0x0'));var util=require(_0xd2eb('0x1'));var logger=require(_0xd2eb('0x2'))('api');var moment=require('moment');var BPromise=require(_0xd2eb('0x3'));var rp=require(_0xd2eb('0x4'));var fs=require('fs');var path=require(_0xd2eb('0x5'));var rimraf=require(_0xd2eb('0x6'));var config=require(_0xd2eb('0x7'));var attributes=require(_0xd2eb('0x8'));module['exports']=function(_0x553617,_0x2c08e5){return _0x553617[_0xd2eb('0x9')](_0xd2eb('0xa'),attributes,{'tableName':_0xd2eb('0xb'),'paranoid':![],'indexes':[{'name':_0xd2eb('0xc'),'fields':['endtime']},{'name':_0xd2eb('0xd'),'fields':[_0xd2eb('0xd')]}],'timestamps':!![]});};