ad7b86d00b88a2d8d1396b197e8027aaef377208
[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 _0xc17d=['path','rimraf','./cmHopperHistory.attributes','CmHopperHistory','cm_hopper_history','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x3fa47c,_0x4c9992){var _0x143226=function(_0x2b9000){while(--_0x2b9000){_0x3fa47c['push'](_0x3fa47c['shift']());}};_0x143226(++_0x4c9992);}(_0xc17d,0x96));var _0xdc17=function(_0x14cf1d,_0x35ae74){_0x14cf1d=_0x14cf1d-0x0;var _0x433004=_0xc17d[_0x14cf1d];return _0x433004;};'use strict';var _=require(_0xdc17('0x0'));var util=require(_0xdc17('0x1'));var logger=require(_0xdc17('0x2'))(_0xdc17('0x3'));var moment=require('moment');var BPromise=require(_0xdc17('0x4'));var rp=require(_0xdc17('0x5'));var fs=require('fs');var path=require(_0xdc17('0x6'));var rimraf=require(_0xdc17('0x7'));var config=require('../../config/environment');var attributes=require(_0xdc17('0x8'));module['exports']=function(_0x47ba52,_0x44f7d0){return _0x47ba52['define'](_0xdc17('0x9'),attributes,{'tableName':_0xdc17('0xa'),'paranoid':![],'indexes':[{'name':'endtime','fields':['endtime']},{'name':_0xdc17('0xb'),'fields':[_0xdc17('0xb')]}],'timestamps':!![]});};