Built motion from commit b0a9a629.|2.6.33
[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 _0xbb8d=['rimraf','../../config/environment','./cmHopperHistory.attributes','define','CmHopperHistory','endtime','uniqueid','lodash','../../config/logger','request-promise','path'];(function(_0xaa0309,_0x1c8008){var _0x5de7ce=function(_0x3aa6ae){while(--_0x3aa6ae){_0xaa0309['push'](_0xaa0309['shift']());}};_0x5de7ce(++_0x1c8008);}(_0xbb8d,0x146));var _0xdbb8=function(_0x3bedf9,_0x3d761c){_0x3bedf9=_0x3bedf9-0x0;var _0x3843dc=_0xbb8d[_0x3bedf9];return _0x3843dc;};'use strict';var _=require(_0xdbb8('0x0'));var util=require('util');var logger=require(_0xdbb8('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xdbb8('0x2'));var fs=require('fs');var path=require(_0xdbb8('0x3'));var rimraf=require(_0xdbb8('0x4'));var config=require(_0xdbb8('0x5'));var attributes=require(_0xdbb8('0x6'));module['exports']=function(_0x6a6db3,_0x149c99){return _0x6a6db3[_0xdbb8('0x7')](_0xdbb8('0x8'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0xdbb8('0x9'),'fields':['endtime']},{'name':_0xdbb8('0xa'),'fields':[_0xdbb8('0xa')]}],'timestamps':!![]});};