Built motion from commit 3770a7bd.|2.6.29
[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 _0x1a38=['../../config/environment','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util','../../config/logger','request-promise','path','rimraf'];(function(_0x737a1f,_0x235fef){var _0x16eba1=function(_0x292aa8){while(--_0x292aa8){_0x737a1f['push'](_0x737a1f['shift']());}};_0x16eba1(++_0x235fef);}(_0x1a38,0xb0));var _0x81a3=function(_0x43a1b8,_0x1c90c8){_0x43a1b8=_0x43a1b8-0x0;var _0x324ecc=_0x1a38[_0x43a1b8];return _0x324ecc;};'use strict';var _=require(_0x81a3('0x0'));var util=require(_0x81a3('0x1'));var logger=require(_0x81a3('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x81a3('0x3'));var fs=require('fs');var path=require(_0x81a3('0x4'));var rimraf=require(_0x81a3('0x5'));var config=require(_0x81a3('0x6'));var attributes=require(_0x81a3('0x7'));module[_0x81a3('0x8')]=function(_0x2f0a07,_0x189c2b){return _0x2f0a07[_0x81a3('0x9')](_0x81a3('0xa'),attributes,{'tableName':_0x81a3('0xb'),'paranoid':![],'indexes':[{'name':_0x81a3('0xc'),'fields':[_0x81a3('0xc')]},{'name':'uniqueid','fields':[_0x81a3('0xd')]}],'timestamps':!![]});};