3c69c502c22fbd7ed7f89010f3c54565399a9649
[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 _0x02f5=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','CmHopperHistory','endtime','uniqueid','lodash'];(function(_0x384d8a,_0x57fd4f){var _0x2fad59=function(_0x5d408b){while(--_0x5d408b){_0x384d8a['push'](_0x384d8a['shift']());}};_0x2fad59(++_0x57fd4f);}(_0x02f5,0x12b));var _0x502f=function(_0x2a56ad,_0x2b94bf){_0x2a56ad=_0x2a56ad-0x0;var _0x425175=_0x02f5[_0x2a56ad];return _0x425175;};'use strict';var _=require(_0x502f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x502f('0x1'));var moment=require(_0x502f('0x2'));var BPromise=require(_0x502f('0x3'));var rp=require(_0x502f('0x4'));var fs=require('fs');var path=require(_0x502f('0x5'));var rimraf=require(_0x502f('0x6'));var config=require(_0x502f('0x7'));var attributes=require('./cmHopperHistory.attributes');module['exports']=function(_0x1f54ef,_0x1d04f6){return _0x1f54ef[_0x502f('0x8')](_0x502f('0x9'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x502f('0xa'),'fields':[_0x502f('0xa')]},{'name':_0x502f('0xb'),'fields':[_0x502f('0xb')]}],'timestamps':!![]});};