Built motion from commit (unavailable).|2.0.72
[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 _0x6680=['request-promise','./cmHopperHistory.attributes','exports','CmHopperHistory','cm_hopper_history','endtime','lodash','util','../../config/logger','bluebird'];(function(_0x2da1fc,_0x3502bb){var _0x13dd42=function(_0x41c490){while(--_0x41c490){_0x2da1fc['push'](_0x2da1fc['shift']());}};_0x13dd42(++_0x3502bb);}(_0x6680,0x1e6));var _0x0668=function(_0x41ba6a,_0x42c5d9){_0x41ba6a=_0x41ba6a-0x0;var _0x315f92=_0x6680[_0x41ba6a];return _0x315f92;};'use strict';var _=require(_0x0668('0x0'));var util=require(_0x0668('0x1'));var logger=require(_0x0668('0x2'))('api');var moment=require('moment');var BPromise=require(_0x0668('0x3'));var rp=require(_0x0668('0x4'));var attributes=require(_0x0668('0x5'));module[_0x0668('0x6')]=function(_0x3ecefa,_0x3b8344){return _0x3ecefa['define'](_0x0668('0x7'),attributes,{'tableName':_0x0668('0x8'),'paranoid':![],'indexes':[{'name':_0x0668('0x9'),'fields':['endtime']},{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};