6602e83ac2d0253a0b830d5c2dfa51f3df71b702
[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 _0xf02a=['uniqueid','lodash','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','CmHopperHistory','endtime'];(function(_0x517601,_0x173b35){var _0x1d470a=function(_0x324bae){while(--_0x324bae){_0x517601['push'](_0x517601['shift']());}};_0x1d470a(++_0x173b35);}(_0xf02a,0x15f));var _0xaf02=function(_0x3ab353,_0x5d5283){_0x3ab353=_0x3ab353-0x0;var _0x1e2285=_0xf02a[_0x3ab353];return _0x1e2285;};'use strict';var _=require(_0xaf02('0x0'));var util=require('util');var logger=require(_0xaf02('0x1'))('api');var moment=require(_0xaf02('0x2'));var BPromise=require(_0xaf02('0x3'));var rp=require(_0xaf02('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xaf02('0x5'));var config=require(_0xaf02('0x6'));var attributes=require('./cmHopperHistory.attributes');module['exports']=function(_0x58b790,_0x5b3285){return _0x58b790['define'](_0xaf02('0x7'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':'endtime','fields':[_0xaf02('0x8')]},{'name':_0xaf02('0x9'),'fields':[_0xaf02('0x9')]}],'timestamps':!![]});};