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 _0x720b=['define','CmHopperHistory','endtime','uniqueid','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x720b,0x1d8));var _0xb720=function(_0x68f094,_0x10fb87){_0x68f094=_0x68f094-0x0;var _0xf4699f=_0x720b[_0x68f094];return _0xf4699f;};'use strict';var _=require(_0xb720('0x0'));var util=require(_0xb720('0x1'));var logger=require(_0xb720('0x2'))('api');var moment=require(_0xb720('0x3'));var BPromise=require(_0xb720('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb720('0x5'));var rimraf=require(_0xb720('0x6'));var config=require(_0xb720('0x7'));var attributes=require('./cmHopperHistory.attributes');module[_0xb720('0x8')]=function(_0xa46698,_0x2f3125){return _0xa46698[_0xb720('0x9')](_0xb720('0xa'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':'endtime','fields':[_0xb720('0xb')]},{'name':_0xb720('0xc'),'fields':[_0xb720('0xc')]}],'timestamps':!![]});};