1cacac4c6215022c57899665e1a6b88d3878639a
[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 _0x0893=['endtime','uniqueid','lodash','util','../../config/logger','api','moment','request-promise','path','define','CmHopperHistory'];(function(_0x5c8258,_0x5a0437){var _0x51a263=function(_0x38cadd){while(--_0x38cadd){_0x5c8258['push'](_0x5c8258['shift']());}};_0x51a263(++_0x5a0437);}(_0x0893,0x70));var _0x3089=function(_0x21a040,_0x4eca14){_0x21a040=_0x21a040-0x0;var _0x37bc95=_0x0893[_0x21a040];return _0x37bc95;};'use strict';var _=require(_0x3089('0x0'));var util=require(_0x3089('0x1'));var logger=require(_0x3089('0x2'))(_0x3089('0x3'));var moment=require(_0x3089('0x4'));var BPromise=require('bluebird');var rp=require(_0x3089('0x5'));var fs=require('fs');var path=require(_0x3089('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./cmHopperHistory.attributes');module['exports']=function(_0x271c08,_0x481951){return _0x271c08[_0x3089('0x7')](_0x3089('0x8'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':'endtime','fields':[_0x3089('0x9')]},{'name':_0x3089('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};