Built motion from commit (unavailable).|2.5.18
[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 _0x97a6=['rimraf','./cmHopperHistory.attributes','define','cm_hopper_history','endtime','lodash','../../config/logger','api','bluebird','request-promise','path'];(function(_0xe51964,_0x433b90){var _0x2c2366=function(_0x1bc95c){while(--_0x1bc95c){_0xe51964['push'](_0xe51964['shift']());}};_0x2c2366(++_0x433b90);}(_0x97a6,0xc0));var _0x697a=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x97a6[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x697a('0x0'));var util=require('util');var logger=require(_0x697a('0x1'))(_0x697a('0x2'));var moment=require('moment');var BPromise=require(_0x697a('0x3'));var rp=require(_0x697a('0x4'));var fs=require('fs');var path=require(_0x697a('0x5'));var rimraf=require(_0x697a('0x6'));var config=require('../../config/environment');var attributes=require(_0x697a('0x7'));module['exports']=function(_0x269609,_0x50f0fb){return _0x269609[_0x697a('0x8')]('CmHopperHistory',attributes,{'tableName':_0x697a('0x9'),'paranoid':![],'indexes':[{'name':_0x697a('0xa'),'fields':['endtime']},{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};