f89249f3d7b7a35dfc5fd796d4e4ab2da6bc0e81
[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 _0x902f=['uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','exports','define','cm_hopper_history','endtime'];(function(_0x43cddd,_0x86b7d3){var _0x1867bc=function(_0x32783f){while(--_0x32783f){_0x43cddd['push'](_0x43cddd['shift']());}};_0x1867bc(++_0x86b7d3);}(_0x902f,0xd1));var _0xf902=function(_0x575dd1,_0x40d2e4){_0x575dd1=_0x575dd1-0x0;var _0x3853ed=_0x902f[_0x575dd1];return _0x3853ed;};'use strict';var _=require(_0xf902('0x0'));var util=require(_0xf902('0x1'));var logger=require(_0xf902('0x2'))(_0xf902('0x3'));var moment=require('moment');var BPromise=require(_0xf902('0x4'));var rp=require(_0xf902('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf902('0x6'));var config=require(_0xf902('0x7'));var attributes=require('./cmHopperHistory.attributes');module[_0xf902('0x8')]=function(_0x49edc6,_0x1cd7c3){return _0x49edc6[_0xf902('0x9')]('CmHopperHistory',attributes,{'tableName':_0xf902('0xa'),'paranoid':![],'indexes':[{'name':_0xf902('0xb'),'fields':[_0xf902('0xb')]},{'name':_0xf902('0xc'),'fields':[_0xf902('0xc')]}],'timestamps':!![]});};