Built motion from commit (unavailable).|2.5.6
[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 _0x143f=['path','exports','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x143f,0xa2));var _0xf143=function(_0x46ee28,_0x11302d){_0x46ee28=_0x46ee28-0x0;var _0x19880d=_0x143f[_0x46ee28];return _0x19880d;};'use strict';var _=require(_0xf143('0x0'));var util=require(_0xf143('0x1'));var logger=require(_0xf143('0x2'))(_0xf143('0x3'));var moment=require(_0xf143('0x4'));var BPromise=require(_0xf143('0x5'));var rp=require(_0xf143('0x6'));var fs=require('fs');var path=require(_0xf143('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./cmHopperHistory.attributes');module[_0xf143('0x8')]=function(_0x21d3de,_0x45a5c4){return _0x21d3de['define'](_0xf143('0x9'),attributes,{'tableName':_0xf143('0xa'),'paranoid':![],'indexes':[{'name':_0xf143('0xb'),'fields':[_0xf143('0xb')]},{'name':_0xf143('0xc'),'fields':[_0xf143('0xc')]}],'timestamps':!![]});};