Built motion from commit 00bf23f6.|2.6.16
[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 _0xa413=['CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','../../config/logger','moment','bluebird','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define'];(function(_0x3b5fab,_0x7a34b7){var _0x5a7060=function(_0x484b79){while(--_0x484b79){_0x3b5fab['push'](_0x3b5fab['shift']());}};_0x5a7060(++_0x7a34b7);}(_0xa413,0x1e5));var _0x3a41=function(_0x2c7ce1,_0x4e1887){_0x2c7ce1=_0x2c7ce1-0x0;var _0x39ed87=_0xa413[_0x2c7ce1];return _0x39ed87;};'use strict';var _=require(_0x3a41('0x0'));var util=require('util');var logger=require(_0x3a41('0x1'))('api');var moment=require(_0x3a41('0x2'));var BPromise=require(_0x3a41('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x3a41('0x4'));var config=require(_0x3a41('0x5'));var attributes=require(_0x3a41('0x6'));module[_0x3a41('0x7')]=function(_0x25d3e0,_0x1af004){return _0x25d3e0[_0x3a41('0x8')](_0x3a41('0x9'),attributes,{'tableName':_0x3a41('0xa'),'paranoid':![],'indexes':[{'name':_0x3a41('0xb'),'fields':[_0x3a41('0xb')]},{'name':'uniqueid','fields':[_0x3a41('0xc')]}],'timestamps':!![]});};