Built motion from commit (unavailable).|2.5.20
[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 _0xac08=['uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define','CmHopperHistory','endtime'];(function(_0x34331b,_0x22a64c){var _0x1f97c8=function(_0x488b07){while(--_0x488b07){_0x34331b['push'](_0x34331b['shift']());}};_0x1f97c8(++_0x22a64c);}(_0xac08,0xc5));var _0x8ac0=function(_0x25cf6f,_0x262fd6){_0x25cf6f=_0x25cf6f-0x0;var _0x43fca0=_0xac08[_0x25cf6f];return _0x43fca0;};'use strict';var _=require('lodash');var util=require(_0x8ac0('0x0'));var logger=require(_0x8ac0('0x1'))(_0x8ac0('0x2'));var moment=require(_0x8ac0('0x3'));var BPromise=require(_0x8ac0('0x4'));var rp=require(_0x8ac0('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8ac0('0x6'));var config=require(_0x8ac0('0x7'));var attributes=require(_0x8ac0('0x8'));module[_0x8ac0('0x9')]=function(_0x24a50d,_0x12dc34){return _0x24a50d[_0x8ac0('0xa')](_0x8ac0('0xb'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x8ac0('0xc'),'fields':[_0x8ac0('0xc')]},{'name':_0x8ac0('0xd'),'fields':['uniqueid']}],'timestamps':!![]});};