Built motion from commit (unavailable).|2.5.26
[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 _0xe006=['../../config/environment','define','CmHopperHistory','endtime','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf'];(function(_0x54f2af,_0x5d680d){var _0xa460ef=function(_0x191abf){while(--_0x191abf){_0x54f2af['push'](_0x54f2af['shift']());}};_0xa460ef(++_0x5d680d);}(_0xe006,0x1f1));var _0x6e00=function(_0x1780ec,_0x3af2fa){_0x1780ec=_0x1780ec-0x0;var _0x5c5663=_0xe006[_0x1780ec];return _0x5c5663;};'use strict';var _=require(_0x6e00('0x0'));var util=require(_0x6e00('0x1'));var logger=require(_0x6e00('0x2'))(_0x6e00('0x3'));var moment=require('moment');var BPromise=require(_0x6e00('0x4'));var rp=require(_0x6e00('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x6e00('0x6'));var config=require(_0x6e00('0x7'));var attributes=require('./cmHopperHistory.attributes');module['exports']=function(_0x36bd6a,_0x4c96f2){return _0x36bd6a[_0x6e00('0x8')](_0x6e00('0x9'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':'endtime','fields':[_0x6e00('0xa')]},{'name':_0x6e00('0xb'),'fields':[_0x6e00('0xb')]}],'timestamps':!![]});};