32722094b4c80dae34c6637b8f80d626b66fc520
[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 _0x3c85=['../../config/logger','api','request-promise','path','rimraf','./cmHopperHistory.attributes','exports','endtime','uniqueid','lodash','util'];(function(_0x24b897,_0x38df26){var _0x522698=function(_0x1757a3){while(--_0x1757a3){_0x24b897['push'](_0x24b897['shift']());}};_0x522698(++_0x38df26);}(_0x3c85,0x1a0));var _0x53c8=function(_0x5ca949,_0x4ad966){_0x5ca949=_0x5ca949-0x0;var _0xb189df=_0x3c85[_0x5ca949];return _0xb189df;};'use strict';var _=require(_0x53c8('0x0'));var util=require(_0x53c8('0x1'));var logger=require(_0x53c8('0x2'))(_0x53c8('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x53c8('0x4'));var fs=require('fs');var path=require(_0x53c8('0x5'));var rimraf=require(_0x53c8('0x6'));var config=require('../../config/environment');var attributes=require(_0x53c8('0x7'));module[_0x53c8('0x8')]=function(_0x4758fd,_0x4c2e1b){return _0x4758fd['define']('CmHopperHistory',attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x53c8('0x9'),'fields':['endtime']},{'name':'uniqueid','fields':[_0x53c8('0xa')]}],'timestamps':!![]});};