3e5776298ea490127448079b8923017262f7d2bd
[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 _0xc7f6=['./cmHopperHistory.attributes','exports','define','CmHopperHistory','endtime','uniqueid','util','../../config/logger','moment','bluebird','path','rimraf'];(function(_0x36a7fc,_0x270869){var _0x2a2218=function(_0x3074b7){while(--_0x3074b7){_0x36a7fc['push'](_0x36a7fc['shift']());}};_0x2a2218(++_0x270869);}(_0xc7f6,0xba));var _0x6c7f=function(_0x3311d9,_0x3d7fd1){_0x3311d9=_0x3311d9-0x0;var _0x1728d3=_0xc7f6[_0x3311d9];return _0x1728d3;};'use strict';var _=require('lodash');var util=require(_0x6c7f('0x0'));var logger=require(_0x6c7f('0x1'))('api');var moment=require(_0x6c7f('0x2'));var BPromise=require(_0x6c7f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6c7f('0x4'));var rimraf=require(_0x6c7f('0x5'));var config=require('../../config/environment');var attributes=require(_0x6c7f('0x6'));module[_0x6c7f('0x7')]=function(_0x33116d,_0x6ef978){return _0x33116d[_0x6c7f('0x8')](_0x6c7f('0x9'),attributes,{'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x6c7f('0xa'),'fields':[_0x6c7f('0xa')]},{'name':_0x6c7f('0xb'),'fields':[_0x6c7f('0xb')]}],'timestamps':!![]});};