83aa8a2953910d73f088071c499a00067cd65de4
[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 _0x6637=['../../config/logger','api','path','rimraf','./cmHopperHistory.attributes','exports','define','cm_hopper_history','uniqueid','lodash'];(function(_0x478861,_0x5abe2f){var _0x1eacc7=function(_0x59dd7b){while(--_0x59dd7b){_0x478861['push'](_0x478861['shift']());}};_0x1eacc7(++_0x5abe2f);}(_0x6637,0x171));var _0x7663=function(_0x44d5d5,_0x141f31){_0x44d5d5=_0x44d5d5-0x0;var _0x3cfa49=_0x6637[_0x44d5d5];return _0x3cfa49;};'use strict';var _=require(_0x7663('0x0'));var util=require('util');var logger=require(_0x7663('0x1'))(_0x7663('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x7663('0x3'));var rimraf=require(_0x7663('0x4'));var config=require('../../config/environment');var attributes=require(_0x7663('0x5'));module[_0x7663('0x6')]=function(_0x57992b,_0x4755f1){return _0x57992b[_0x7663('0x7')]('CmHopperHistory',attributes,{'tableName':_0x7663('0x8'),'paranoid':![],'indexes':[{'name':'endtime','fields':['endtime']},{'name':_0x7663('0x9'),'fields':[_0x7663('0x9')]}],'timestamps':!![]});};