Built motion from commit (unavailable).|2.5.0
[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 _0xef60=['cm_hopper_history','endtime','uniqueid','util','../../config/logger','api','moment','bluebird','path','../../config/environment','define','CmHopperHistory'];(function(_0x30be97,_0x3ea719){var _0x1d3a90=function(_0x512e8a){while(--_0x512e8a){_0x30be97['push'](_0x30be97['shift']());}};_0x1d3a90(++_0x3ea719);}(_0xef60,0x1a7));var _0x0ef6=function(_0x19171e,_0x81022a){_0x19171e=_0x19171e-0x0;var _0x2d3111=_0xef60[_0x19171e];return _0x2d3111;};'use strict';var _=require('lodash');var util=require(_0x0ef6('0x0'));var logger=require(_0x0ef6('0x1'))(_0x0ef6('0x2'));var moment=require(_0x0ef6('0x3'));var BPromise=require(_0x0ef6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0ef6('0x5'));var rimraf=require('rimraf');var config=require(_0x0ef6('0x6'));var attributes=require('./cmHopperHistory.attributes');module['exports']=function(_0x111f61,_0x59835c){return _0x111f61[_0x0ef6('0x7')](_0x0ef6('0x8'),attributes,{'tableName':_0x0ef6('0x9'),'paranoid':![],'indexes':[{'name':_0x0ef6('0xa'),'fields':[_0x0ef6('0xa')]},{'name':_0x0ef6('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};