Built motion from commit 85328c08.|2.5.50
[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 _0xf767=['bluebird','./cmHopperHistory.attributes','exports','define','CmHopperHistory','endtime','uniqueid','../../config/logger','api','moment'];(function(_0x5733b9,_0x35951d){var _0x557e17=function(_0x3ebe97){while(--_0x3ebe97){_0x5733b9['push'](_0x5733b9['shift']());}};_0x557e17(++_0x35951d);}(_0xf767,0x183));var _0x7f76=function(_0x43b08,_0x15f967){_0x43b08=_0x43b08-0x0;var _0x5e05f4=_0xf767[_0x43b08];return _0x5e05f4;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7f76('0x0'))(_0x7f76('0x1'));var moment=require(_0x7f76('0x2'));var BPromise=require(_0x7f76('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x7f76('0x4'));module[_0x7f76('0x5')]=function(_0x5e8527,_0x509376){return _0x5e8527[_0x7f76('0x6')](_0x7f76('0x7'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x7f76('0x8'),'fields':[_0x7f76('0x8')]},{'name':'uniqueid','fields':[_0x7f76('0x9')]}],'timestamps':!![]});};