89f8cd15b438d88311603a88051f3453f80928b0
[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 _0x3970=['define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','util','../../config/logger','api','moment','bluebird','../../config/environment','./cmHopperHistory.attributes'];(function(_0x251597,_0x3ffa57){var _0x4c8d25=function(_0x2bc575){while(--_0x2bc575){_0x251597['push'](_0x251597['shift']());}};_0x4c8d25(++_0x3ffa57);}(_0x3970,0x191));var _0x0397=function(_0x4b03c9,_0x17ce03){_0x4b03c9=_0x4b03c9-0x0;var _0x161ba2=_0x3970[_0x4b03c9];return _0x161ba2;};'use strict';var _=require('lodash');var util=require(_0x0397('0x0'));var logger=require(_0x0397('0x1'))(_0x0397('0x2'));var moment=require(_0x0397('0x3'));var BPromise=require(_0x0397('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x0397('0x5'));var attributes=require(_0x0397('0x6'));module['exports']=function(_0x3a1ebd,_0xab78bf){return _0x3a1ebd[_0x0397('0x7')](_0x0397('0x8'),attributes,{'tableName':_0x0397('0x9'),'paranoid':![],'indexes':[{'name':_0x0397('0xa'),'fields':['endtime']},{'name':'uniqueid','fields':[_0x0397('0xb')]}],'timestamps':!![]});};