b5b8f670ccf78c9d716e69a2d1679f7e318a2a0a
[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 _0xb68e=['util','../../config/logger','api','moment','bluebird','request-promise','./cmHopperHistory.attributes','exports','CmHopperHistory','cm_hopper_history','endtime','uniqueid'];(function(_0x5b9070,_0x4bbc37){var _0x20f6ea=function(_0x38261f){while(--_0x38261f){_0x5b9070['push'](_0x5b9070['shift']());}};_0x20f6ea(++_0x4bbc37);}(_0xb68e,0xd8));var _0xeb68=function(_0x1255b6,_0x5830c9){_0x1255b6=_0x1255b6-0x0;var _0x547978=_0xb68e[_0x1255b6];return _0x547978;};'use strict';var _=require('lodash');var util=require(_0xeb68('0x0'));var logger=require(_0xeb68('0x1'))(_0xeb68('0x2'));var moment=require(_0xeb68('0x3'));var BPromise=require(_0xeb68('0x4'));var rp=require(_0xeb68('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xeb68('0x6'));module[_0xeb68('0x7')]=function(_0x2e72ad,_0x384659){return _0x2e72ad['define'](_0xeb68('0x8'),attributes,{'tableName':_0xeb68('0x9'),'paranoid':![],'indexes':[{'name':'endtime','fields':[_0xeb68('0xa')]},{'name':'uniqueid','fields':[_0xeb68('0xb')]}],'timestamps':!![]});};