e17e38cc9eb8c0d577f07bd0e2d046002b53b3fa
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7804=['moment','request-promise','path','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history','endtime','lodash','../../config/logger','api'];(function(_0x25c597,_0x35f16c){var _0x1be8b7=function(_0x479c73){while(--_0x479c73){_0x25c597['push'](_0x25c597['shift']());}};_0x1be8b7(++_0x35f16c);}(_0x7804,0xc3));var _0x4780=function(_0x55e36e,_0x1b5771){_0x55e36e=_0x55e36e-0x0;var _0x184429=_0x7804[_0x55e36e];return _0x184429;};'use strict';var _=require(_0x4780('0x0'));var util=require('util');var logger=require(_0x4780('0x1'))(_0x4780('0x2'));var moment=require(_0x4780('0x3'));var BPromise=require('bluebird');var rp=require(_0x4780('0x4'));var fs=require('fs');var path=require(_0x4780('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x4780('0x6'));module['exports']=function(_0x4914ae,_0x138148){return _0x4914ae[_0x4780('0x7')](_0x4780('0x8'),attributes,{'tableName':_0x4780('0x9'),'paranoid':![],'indexes':[{'name':'endtime','fields':[_0x4780('0xa')]},{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};