7dc80840566f458d10322023ae641dec56bf2a12
[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 _0x2eae=['uniqueid','lodash','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','./cmHopperHistory.attributes','exports','CmHopperHistory','endtime'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2eae,0x1a1));var _0xe2ea=function(_0x3e356a,_0x29a97f){_0x3e356a=_0x3e356a-0x0;var _0x4646bc=_0x2eae[_0x3e356a];return _0x4646bc;};'use strict';var _=require(_0xe2ea('0x0'));var util=require(_0xe2ea('0x1'));var logger=require(_0xe2ea('0x2'))('api');var moment=require(_0xe2ea('0x3'));var BPromise=require('bluebird');var rp=require(_0xe2ea('0x4'));var fs=require('fs');var path=require(_0xe2ea('0x5'));var rimraf=require(_0xe2ea('0x6'));var config=require(_0xe2ea('0x7'));var attributes=require(_0xe2ea('0x8'));module[_0xe2ea('0x9')]=function(_0x57b952,_0x1138b1){return _0x57b952['define'](_0xe2ea('0xa'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0xe2ea('0xb'),'fields':[_0xe2ea('0xb')]},{'name':_0xe2ea('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};