Built motion from commit d1eab355.|2.6.28
[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 _0xa908=['cm_hopper_history','endtime','uniqueid','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf','./cmHopperHistory.attributes','exports','define','CmHopperHistory'];(function(_0xf58376,_0x58009d){var _0x17e148=function(_0x5987ff){while(--_0x5987ff){_0xf58376['push'](_0xf58376['shift']());}};_0x17e148(++_0x58009d);}(_0xa908,0x1c3));var _0x8a90=function(_0x26bf51,_0x5e261a){_0x26bf51=_0x26bf51-0x0;var _0x503415=_0xa908[_0x26bf51];return _0x503415;};'use strict';var _=require(_0x8a90('0x0'));var util=require('util');var logger=require(_0x8a90('0x1'))('api');var moment=require(_0x8a90('0x2'));var BPromise=require(_0x8a90('0x3'));var rp=require(_0x8a90('0x4'));var fs=require('fs');var path=require(_0x8a90('0x5'));var rimraf=require(_0x8a90('0x6'));var config=require('../../config/environment');var attributes=require(_0x8a90('0x7'));module[_0x8a90('0x8')]=function(_0x5e41b9,_0x1c516f){return _0x5e41b9[_0x8a90('0x9')](_0x8a90('0xa'),attributes,{'tableName':_0x8a90('0xb'),'paranoid':![],'indexes':[{'name':_0x8a90('0xc'),'fields':[_0x8a90('0xc')]},{'name':'uniqueid','fields':[_0x8a90('0xd')]}],'timestamps':!![]});};