Built motion from commit (unavailable).|2.0.70
[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 _0x76ff=['lodash','api','moment','bluebird','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid'];(function(_0x974b80,_0x234e85){var _0x3ac8c3=function(_0x589668){while(--_0x589668){_0x974b80['push'](_0x974b80['shift']());}};_0x3ac8c3(++_0x234e85);}(_0x76ff,0x104));var _0xf76f=function(_0x4cdec8,_0x1f41a1){_0x4cdec8=_0x4cdec8-0x0;var _0x39884d=_0x76ff[_0x4cdec8];return _0x39884d;};'use strict';var _=require(_0xf76f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xf76f('0x1'));var moment=require(_0xf76f('0x2'));var BPromise=require(_0xf76f('0x3'));var rp=require('request-promise');var attributes=require('./cmHopperHistory.attributes');module[_0xf76f('0x4')]=function(_0x3b24e5,_0x3c630d){return _0x3b24e5[_0xf76f('0x5')](_0xf76f('0x6'),attributes,{'tableName':_0xf76f('0x7'),'paranoid':![],'indexes':[{'name':_0xf76f('0x8'),'fields':[_0xf76f('0x8')]},{'name':_0xf76f('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};