Built motion from commit db94841.|2.5.3
[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 _0xb8c1=['define','CmHopperHistory','endtime','uniqueid','api','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x4200a9,_0x2e7262){var _0x2fb387=function(_0x425d10){while(--_0x425d10){_0x4200a9['push'](_0x4200a9['shift']());}};_0x2fb387(++_0x2e7262);}(_0xb8c1,0x72));var _0x1b8c=function(_0x484a95,_0x3cc16c){_0x484a95=_0x484a95-0x0;var _0x4ce1c7=_0xb8c1[_0x484a95];return _0x4ce1c7;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x1b8c('0x0'));var moment=require(_0x1b8c('0x1'));var BPromise=require(_0x1b8c('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1b8c('0x3'));var rimraf=require(_0x1b8c('0x4'));var config=require(_0x1b8c('0x5'));var attributes=require('./cmHopperHistory.attributes');module[_0x1b8c('0x6')]=function(_0x11e21a,_0x35688f){return _0x11e21a[_0x1b8c('0x7')](_0x1b8c('0x8'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x1b8c('0x9'),'fields':[_0x1b8c('0x9')]},{'name':_0x1b8c('0xa'),'fields':[_0x1b8c('0xa')]}],'timestamps':!![]});};