f357267998e989a983c4cb4cb33d2cdffb126eeb
[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 _0xb77e=['api','moment','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util'];(function(_0x2675da,_0x5a250e){var _0x5e6153=function(_0xf93114){while(--_0xf93114){_0x2675da['push'](_0x2675da['shift']());}};_0x5e6153(++_0x5a250e);}(_0xb77e,0xfd));var _0xeb77=function(_0x2dea24,_0x2fc021){_0x2dea24=_0x2dea24-0x0;var _0x309d58=_0xb77e[_0x2dea24];return _0x309d58;};'use strict';var _=require(_0xeb77('0x0'));var util=require(_0xeb77('0x1'));var logger=require('../../config/logger')(_0xeb77('0x2'));var moment=require(_0xeb77('0x3'));var BPromise=require('bluebird');var rp=require(_0xeb77('0x4'));var fs=require('fs');var path=require(_0xeb77('0x5'));var rimraf=require(_0xeb77('0x6'));var config=require(_0xeb77('0x7'));var attributes=require(_0xeb77('0x8'));module[_0xeb77('0x9')]=function(_0x129336,_0x5d007f){return _0x129336[_0xeb77('0xa')](_0xeb77('0xb'),attributes,{'tableName':_0xeb77('0xc'),'paranoid':![],'indexes':[{'name':_0xeb77('0xd'),'fields':[_0xeb77('0xd')]},{'name':_0xeb77('0xe'),'fields':[_0xeb77('0xe')]}],'timestamps':!![]});};