Built motion from commit (unavailable).|2.5.4
[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 _0x9d8f=['request-promise','path','rimraf','../../config/environment','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','../../config/logger','api','moment','bluebird'];(function(_0x1949fc,_0x36f1b0){var _0x4420bb=function(_0x52c54f){while(--_0x52c54f){_0x1949fc['push'](_0x1949fc['shift']());}};_0x4420bb(++_0x36f1b0);}(_0x9d8f,0xa0));var _0xf9d8=function(_0x154511,_0xd61d44){_0x154511=_0x154511-0x0;var _0x47beed=_0x9d8f[_0x154511];return _0x47beed;};'use strict';var _=require(_0xf9d8('0x0'));var util=require('util');var logger=require(_0xf9d8('0x1'))(_0xf9d8('0x2'));var moment=require(_0xf9d8('0x3'));var BPromise=require(_0xf9d8('0x4'));var rp=require(_0xf9d8('0x5'));var fs=require('fs');var path=require(_0xf9d8('0x6'));var rimraf=require(_0xf9d8('0x7'));var config=require(_0xf9d8('0x8'));var attributes=require('./cmHopperHistory.attributes');module[_0xf9d8('0x9')]=function(_0x1845f1,_0x3f6181){return _0x1845f1[_0xf9d8('0xa')](_0xf9d8('0xb'),attributes,{'tableName':_0xf9d8('0xc'),'paranoid':![],'indexes':[{'name':_0xf9d8('0xd'),'fields':[_0xf9d8('0xd')]},{'name':_0xf9d8('0xe'),'fields':[_0xf9d8('0xe')]}],'timestamps':!![]});};