6f9a10f0281fff6ab6d0ba4d3a75625fa75f7ceb
[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 _0xe558=['rimraf','./cmHopperHistory.attributes','exports','define','CmHopperHistory','endtime','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x213a15,_0x1debcd){var _0x187590=function(_0x453a83){while(--_0x453a83){_0x213a15['push'](_0x213a15['shift']());}};_0x187590(++_0x1debcd);}(_0xe558,0x70));var _0x8e55=function(_0x3e1e3d,_0x1cb9d0){_0x3e1e3d=_0x3e1e3d-0x0;var _0x191f84=_0xe558[_0x3e1e3d];return _0x191f84;};'use strict';var _=require(_0x8e55('0x0'));var util=require(_0x8e55('0x1'));var logger=require(_0x8e55('0x2'))(_0x8e55('0x3'));var moment=require(_0x8e55('0x4'));var BPromise=require(_0x8e55('0x5'));var rp=require(_0x8e55('0x6'));var fs=require('fs');var path=require(_0x8e55('0x7'));var rimraf=require(_0x8e55('0x8'));var config=require('../../config/environment');var attributes=require(_0x8e55('0x9'));module[_0x8e55('0xa')]=function(_0x34d4ec,_0x3dff04){return _0x34d4ec[_0x8e55('0xb')](_0x8e55('0xc'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x8e55('0xd'),'fields':[_0x8e55('0xd')]},{'name':'uniqueid','fields':[_0x8e55('0xe')]}],'timestamps':!![]});};