Built motion from commit (unavailable).|2.5.13
[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 _0xe1a8=['endtime','uniqueid','lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history'];(function(_0x2c4716,_0x34e228){var _0x417640=function(_0x5b71e4){while(--_0x5b71e4){_0x2c4716['push'](_0x2c4716['shift']());}};_0x417640(++_0x34e228);}(_0xe1a8,0x197));var _0x8e1a=function(_0x1a58cf,_0x7ce26c){_0x1a58cf=_0x1a58cf-0x0;var _0x4b30cd=_0xe1a8[_0x1a58cf];return _0x4b30cd;};'use strict';var _=require(_0x8e1a('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x8e1a('0x1'));var moment=require(_0x8e1a('0x2'));var BPromise=require(_0x8e1a('0x3'));var rp=require(_0x8e1a('0x4'));var fs=require('fs');var path=require(_0x8e1a('0x5'));var rimraf=require(_0x8e1a('0x6'));var config=require(_0x8e1a('0x7'));var attributes=require(_0x8e1a('0x8'));module[_0x8e1a('0x9')]=function(_0x3d427a,_0x5211ca){return _0x3d427a[_0x8e1a('0xa')](_0x8e1a('0xb'),attributes,{'tableName':_0x8e1a('0xc'),'paranoid':![],'indexes':[{'name':_0x8e1a('0xd'),'fields':['endtime']},{'name':_0x8e1a('0xe'),'fields':[_0x8e1a('0xe')]}],'timestamps':!![]});};