Built motion from commit (unavailable).|2.4.7
[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 _0x6d79=['endtime','uniqueid','util','../../config/logger','api','moment','path','../../config/environment','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history'];(function(_0x39dbed,_0x5d0591){var _0x59717e=function(_0x305114){while(--_0x305114){_0x39dbed['push'](_0x39dbed['shift']());}};_0x59717e(++_0x5d0591);}(_0x6d79,0xaa));var _0x96d7=function(_0x333a8a,_0x22f68d){_0x333a8a=_0x333a8a-0x0;var _0xd4e9ef=_0x6d79[_0x333a8a];return _0xd4e9ef;};'use strict';var _=require('lodash');var util=require(_0x96d7('0x0'));var logger=require(_0x96d7('0x1'))(_0x96d7('0x2'));var moment=require(_0x96d7('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x96d7('0x4'));var rimraf=require('rimraf');var config=require(_0x96d7('0x5'));var attributes=require(_0x96d7('0x6'));module['exports']=function(_0x5f45d9,_0x457594){return _0x5f45d9[_0x96d7('0x7')](_0x96d7('0x8'),attributes,{'tableName':_0x96d7('0x9'),'paranoid':![],'indexes':[{'name':_0x96d7('0xa'),'fields':['endtime']},{'name':'uniqueid','fields':[_0x96d7('0xb')]}],'timestamps':!![]});};