5e6140608a590d2561c59029fab8961633d941e9
[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 _0xdb42=['exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util','api','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0xdb42,0x12c));var _0x2db4=function(_0x251bdd,_0x11f2f0){_0x251bdd=_0x251bdd-0x0;var _0x32cbe6=_0xdb42[_0x251bdd];return _0x32cbe6;};'use strict';var _=require(_0x2db4('0x0'));var util=require(_0x2db4('0x1'));var logger=require('../../config/logger')(_0x2db4('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2db4('0x3'));var fs=require('fs');var path=require(_0x2db4('0x4'));var rimraf=require(_0x2db4('0x5'));var config=require(_0x2db4('0x6'));var attributes=require(_0x2db4('0x7'));module[_0x2db4('0x8')]=function(_0x10cb40,_0x437e83){return _0x10cb40[_0x2db4('0x9')](_0x2db4('0xa'),attributes,{'tableName':_0x2db4('0xb'),'paranoid':![],'indexes':[{'name':_0x2db4('0xc'),'fields':[_0x2db4('0xc')]},{'name':'uniqueid','fields':[_0x2db4('0xd')]}],'timestamps':!![]});};