Built motion from commit 9d7072cc.|2.5.39
[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 _0x8cda=['../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','util'];(function(_0x20a618,_0x3d1a7b){var _0x3be658=function(_0x2cef18){while(--_0x2cef18){_0x20a618['push'](_0x20a618['shift']());}};_0x3be658(++_0x3d1a7b);}(_0x8cda,0x1db));var _0xa8cd=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x8cda[_0x14add3];return _0x4a174f;};'use strict';var _=require('lodash');var util=require(_0xa8cd('0x0'));var logger=require(_0xa8cd('0x1'))(_0xa8cd('0x2'));var moment=require(_0xa8cd('0x3'));var BPromise=require(_0xa8cd('0x4'));var rp=require(_0xa8cd('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa8cd('0x6'));var config=require(_0xa8cd('0x7'));var attributes=require(_0xa8cd('0x8'));module['exports']=function(_0x80c199,_0x418e36){return _0x80c199[_0xa8cd('0x9')](_0xa8cd('0xa'),attributes,{'tableName':_0xa8cd('0xb'),'paranoid':![],'indexes':[{'name':_0xa8cd('0xc'),'fields':[_0xa8cd('0xc')]},{'name':_0xa8cd('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};