Built motion from commit (unavailable).|2.3.1
[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 _0xbbf0=['endtime','uniqueid','lodash','api','request-promise','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history'];(function(_0x334841,_0x2bbc4c){var _0x5beb4b=function(_0x4bea72){while(--_0x4bea72){_0x334841['push'](_0x334841['shift']());}};_0x5beb4b(++_0x2bbc4c);}(_0xbbf0,0x84));var _0x0bbf=function(_0x28fc28,_0x5ebe89){_0x28fc28=_0x28fc28-0x0;var _0x2fdd2b=_0xbbf0[_0x28fc28];return _0x2fdd2b;};'use strict';var _=require(_0x0bbf('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x0bbf('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0bbf('0x2'));var attributes=require(_0x0bbf('0x3'));module[_0x0bbf('0x4')]=function(_0x1bc3d6,_0x238cf3){return _0x1bc3d6[_0x0bbf('0x5')](_0x0bbf('0x6'),attributes,{'tableName':_0x0bbf('0x7'),'paranoid':![],'indexes':[{'name':_0x0bbf('0x8'),'fields':[_0x0bbf('0x8')]},{'name':'uniqueid','fields':[_0x0bbf('0x9')]}],'timestamps':!![]});};