4f6535e70f66851c85f459af05ee8494e25a0ad2
[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 _0x4bc7=['rimraf','../../config/environment','./cmHopperHistory.attributes','exports','endtime','uniqueid','lodash','util','../../config/logger','api','moment','path'];(function(_0x15377f,_0x2120c4){var _0x2cfbd2=function(_0x7c0fdb){while(--_0x7c0fdb){_0x15377f['push'](_0x15377f['shift']());}};_0x2cfbd2(++_0x2120c4);}(_0x4bc7,0x162));var _0x74bc=function(_0x4d5d0a,_0x4148dd){_0x4d5d0a=_0x4d5d0a-0x0;var _0x502c59=_0x4bc7[_0x4d5d0a];return _0x502c59;};'use strict';var _=require(_0x74bc('0x0'));var util=require(_0x74bc('0x1'));var logger=require(_0x74bc('0x2'))(_0x74bc('0x3'));var moment=require(_0x74bc('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x74bc('0x5'));var rimraf=require(_0x74bc('0x6'));var config=require(_0x74bc('0x7'));var attributes=require(_0x74bc('0x8'));module[_0x74bc('0x9')]=function(_0x8b193d,_0x46af5e){return _0x8b193d['define']('CmHopperHistory',attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x74bc('0xa'),'fields':['endtime']},{'name':_0x74bc('0xb'),'fields':[_0x74bc('0xb')]}],'timestamps':!![]});};