Built motion from commit (unavailable).|2.5.30
[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 _0xf2b5=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util','../../config/logger','api'];(function(_0x53df33,_0x5a8a3e){var _0x540154=function(_0x3ba4ca){while(--_0x3ba4ca){_0x53df33['push'](_0x53df33['shift']());}};_0x540154(++_0x5a8a3e);}(_0xf2b5,0x17c));var _0x5f2b=function(_0x286726,_0x20a337){_0x286726=_0x286726-0x0;var _0xcd4fe9=_0xf2b5[_0x286726];return _0xcd4fe9;};'use strict';var _=require(_0x5f2b('0x0'));var util=require(_0x5f2b('0x1'));var logger=require(_0x5f2b('0x2'))(_0x5f2b('0x3'));var moment=require(_0x5f2b('0x4'));var BPromise=require(_0x5f2b('0x5'));var rp=require(_0x5f2b('0x6'));var fs=require('fs');var path=require(_0x5f2b('0x7'));var rimraf=require(_0x5f2b('0x8'));var config=require(_0x5f2b('0x9'));var attributes=require(_0x5f2b('0xa'));module[_0x5f2b('0xb')]=function(_0x4bf1ef,_0x16c389){return _0x4bf1ef['define'](_0x5f2b('0xc'),attributes,{'tableName':_0x5f2b('0xd'),'paranoid':![],'indexes':[{'name':'endtime','fields':[_0x5f2b('0xe')]},{'name':_0x5f2b('0xf'),'fields':[_0x5f2b('0xf')]}],'timestamps':!![]});};