Built motion from commit (unavailable).|2.5.21
[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 _0x8ad2=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define','cm_hopper_history','uniqueid','lodash','util'];(function(_0x5e6ddf,_0x1e1ecc){var _0x3021e4=function(_0xd87c4f){while(--_0xd87c4f){_0x5e6ddf['push'](_0x5e6ddf['shift']());}};_0x3021e4(++_0x1e1ecc);}(_0x8ad2,0x157));var _0x28ad=function(_0x196156,_0x5de154){_0x196156=_0x196156-0x0;var _0x3cc396=_0x8ad2[_0x196156];return _0x3cc396;};'use strict';var _=require(_0x28ad('0x0'));var util=require(_0x28ad('0x1'));var logger=require(_0x28ad('0x2'))(_0x28ad('0x3'));var moment=require(_0x28ad('0x4'));var BPromise=require(_0x28ad('0x5'));var rp=require(_0x28ad('0x6'));var fs=require('fs');var path=require(_0x28ad('0x7'));var rimraf=require(_0x28ad('0x8'));var config=require(_0x28ad('0x9'));var attributes=require(_0x28ad('0xa'));module[_0x28ad('0xb')]=function(_0x53b16c,_0xf57751){return _0x53b16c[_0x28ad('0xc')]('CmHopperHistory',attributes,{'tableName':_0x28ad('0xd'),'paranoid':![],'indexes':[{'name':'endtime','fields':['endtime']},{'name':_0x28ad('0xe'),'fields':[_0x28ad('0xe')]}],'timestamps':!![]});};