Built motion from commit (unavailable).|2.5.22
[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 _0x68ec=['rimraf','../../config/environment','exports','cm_hopper_history','endtime','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x3bacc3,_0x34003a){var _0x452724=function(_0x27a3b4){while(--_0x27a3b4){_0x3bacc3['push'](_0x3bacc3['shift']());}};_0x452724(++_0x34003a);}(_0x68ec,0x6e));var _0xc68e=function(_0x5d99c6,_0x2447af){_0x5d99c6=_0x5d99c6-0x0;var _0x2d2c9a=_0x68ec[_0x5d99c6];return _0x2d2c9a;};'use strict';var _=require('lodash');var util=require(_0xc68e('0x0'));var logger=require(_0xc68e('0x1'))(_0xc68e('0x2'));var moment=require(_0xc68e('0x3'));var BPromise=require(_0xc68e('0x4'));var rp=require(_0xc68e('0x5'));var fs=require('fs');var path=require(_0xc68e('0x6'));var rimraf=require(_0xc68e('0x7'));var config=require(_0xc68e('0x8'));var attributes=require('./cmHopperHistory.attributes');module[_0xc68e('0x9')]=function(_0x116bfc,_0x55b7ad){return _0x116bfc['define']('CmHopperHistory',attributes,{'tableName':_0xc68e('0xa'),'paranoid':![],'indexes':[{'name':_0xc68e('0xb'),'fields':[_0xc68e('0xb')]},{'name':_0xc68e('0xc'),'fields':[_0xc68e('0xc')]}],'timestamps':!![]});};