Built motion from commit (unavailable).|2.4.17
[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 _0x30ff=['uniqueid','lodash','util','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history','endtime'];(function(_0x131eef,_0x3b7159){var _0x3b592a=function(_0xccff39){while(--_0xccff39){_0x131eef['push'](_0x131eef['shift']());}};_0x3b592a(++_0x3b7159);}(_0x30ff,0x1e2));var _0xf30f=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x30ff[_0x1facfa];return _0x9ec701;};'use strict';var _=require(_0xf30f('0x0'));var util=require(_0xf30f('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xf30f('0x2'));var rp=require(_0xf30f('0x3'));var fs=require('fs');var path=require(_0xf30f('0x4'));var rimraf=require(_0xf30f('0x5'));var config=require(_0xf30f('0x6'));var attributes=require(_0xf30f('0x7'));module['exports']=function(_0xdda69e,_0x2e6a36){return _0xdda69e[_0xf30f('0x8')](_0xf30f('0x9'),attributes,{'tableName':_0xf30f('0xa'),'paranoid':![],'indexes':[{'name':_0xf30f('0xb'),'fields':[_0xf30f('0xb')]},{'name':_0xf30f('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};