Built motion from commit 1fa89557.|2.6.10
[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 _0xccef=['util','api','moment','bluebird','request-promise','path','rimraf','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid'];(function(_0x18a16d,_0x199976){var _0x21cf0c=function(_0x2717d1){while(--_0x2717d1){_0x18a16d['push'](_0x18a16d['shift']());}};_0x21cf0c(++_0x199976);}(_0xccef,0x1d4));var _0xfcce=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0xccef[_0x59ee6f];return _0x4c0979;};'use strict';var _=require('lodash');var util=require(_0xfcce('0x0'));var logger=require('../../config/logger')(_0xfcce('0x1'));var moment=require(_0xfcce('0x2'));var BPromise=require(_0xfcce('0x3'));var rp=require(_0xfcce('0x4'));var fs=require('fs');var path=require(_0xfcce('0x5'));var rimraf=require(_0xfcce('0x6'));var config=require('../../config/environment');var attributes=require('./cmHopperHistory.attributes');module[_0xfcce('0x7')]=function(_0x4f6cae,_0x96ac52){return _0x4f6cae[_0xfcce('0x8')](_0xfcce('0x9'),attributes,{'tableName':_0xfcce('0xa'),'paranoid':![],'indexes':[{'name':_0xfcce('0xb'),'fields':[_0xfcce('0xb')]},{'name':_0xfcce('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};