Built motion from commit (unavailable).|2.5.5
[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 _0x81fa=['rimraf','../../config/environment','./cmHopperHistory.attributes','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util','../../config/logger','api','bluebird','path'];(function(_0x3337a7,_0x3e7fec){var _0x5d0d94=function(_0x5d9b34){while(--_0x5d9b34){_0x3337a7['push'](_0x3337a7['shift']());}};_0x5d0d94(++_0x3e7fec);}(_0x81fa,0xf9));var _0xa81f=function(_0x2b390d,_0x29450c){_0x2b390d=_0x2b390d-0x0;var _0x35ae52=_0x81fa[_0x2b390d];return _0x35ae52;};'use strict';var _=require(_0xa81f('0x0'));var util=require(_0xa81f('0x1'));var logger=require(_0xa81f('0x2'))(_0xa81f('0x3'));var moment=require('moment');var BPromise=require(_0xa81f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa81f('0x5'));var rimraf=require(_0xa81f('0x6'));var config=require(_0xa81f('0x7'));var attributes=require(_0xa81f('0x8'));module[_0xa81f('0x9')]=function(_0x1f5d64,_0x3f9667){return _0x1f5d64[_0xa81f('0xa')](_0xa81f('0xb'),attributes,{'tableName':_0xa81f('0xc'),'paranoid':![],'indexes':[{'name':_0xa81f('0xd'),'fields':[_0xa81f('0xd')]},{'name':_0xa81f('0xe'),'fields':[_0xa81f('0xe')]}],'timestamps':!![]});};