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 _0x3342=['uniqueid','lodash','util','api','request-promise','path','rimraf','./cmHopperHistory.attributes','exports','cm_hopper_history','endtime'];(function(_0x3bb11e,_0xb048c2){var _0x5dfd55=function(_0x6468a9){while(--_0x6468a9){_0x3bb11e['push'](_0x3bb11e['shift']());}};_0x5dfd55(++_0xb048c2);}(_0x3342,0xbc));var _0x2334=function(_0x3067f3,_0x55914e){_0x3067f3=_0x3067f3-0x0;var _0xcecdf4=_0x3342[_0x3067f3];return _0xcecdf4;};'use strict';var _=require(_0x2334('0x0'));var util=require(_0x2334('0x1'));var logger=require('../../config/logger')(_0x2334('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2334('0x3'));var fs=require('fs');var path=require(_0x2334('0x4'));var rimraf=require(_0x2334('0x5'));var config=require('../../config/environment');var attributes=require(_0x2334('0x6'));module[_0x2334('0x7')]=function(_0x3e33d7,_0x1a0a5b){return _0x3e33d7['define']('CmHopperHistory',attributes,{'tableName':_0x2334('0x8'),'paranoid':![],'indexes':[{'name':'endtime','fields':[_0x2334('0x9')]},{'name':_0x2334('0xa'),'fields':[_0x2334('0xa')]}],'timestamps':!![]});};