Built motion from commit (unavailable).|2.5.25
[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 _0x889c=['uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history','endtime'];(function(_0x59ee41,_0xaf7db8){var _0x3ecd3e=function(_0x2f9291){while(--_0x2f9291){_0x59ee41['push'](_0x59ee41['shift']());}};_0x3ecd3e(++_0xaf7db8);}(_0x889c,0x1b1));var _0xc889=function(_0x40cb2f,_0xecf24f){_0x40cb2f=_0x40cb2f-0x0;var _0x34348d=_0x889c[_0x40cb2f];return _0x34348d;};'use strict';var _=require(_0xc889('0x0'));var util=require(_0xc889('0x1'));var logger=require(_0xc889('0x2'))(_0xc889('0x3'));var moment=require(_0xc889('0x4'));var BPromise=require(_0xc889('0x5'));var rp=require(_0xc889('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc889('0x7'));var config=require(_0xc889('0x8'));var attributes=require(_0xc889('0x9'));module[_0xc889('0xa')]=function(_0x39239d,_0x3de2ed){return _0x39239d[_0xc889('0xb')](_0xc889('0xc'),attributes,{'tableName':_0xc889('0xd'),'paranoid':![],'indexes':[{'name':_0xc889('0xe'),'fields':['endtime']},{'name':'uniqueid','fields':[_0xc889('0xf')]}],'timestamps':!![]});};