5396011610deb146098ddf31dbe58a1699fe7658
[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 _0x967c=['bluebird','request-promise','path','../../config/environment','./cmHopperHistory.attributes','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','../../config/logger','moment'];(function(_0x26921f,_0x1e40d9){var _0x46b9dc=function(_0x2053f0){while(--_0x2053f0){_0x26921f['push'](_0x26921f['shift']());}};_0x46b9dc(++_0x1e40d9);}(_0x967c,0x1de));var _0xc967=function(_0x1085bd,_0x82f656){_0x1085bd=_0x1085bd-0x0;var _0x2e8717=_0x967c[_0x1085bd];return _0x2e8717;};'use strict';var _=require(_0xc967('0x0'));var util=require('util');var logger=require(_0xc967('0x1'))('api');var moment=require(_0xc967('0x2'));var BPromise=require(_0xc967('0x3'));var rp=require(_0xc967('0x4'));var fs=require('fs');var path=require(_0xc967('0x5'));var rimraf=require('rimraf');var config=require(_0xc967('0x6'));var attributes=require(_0xc967('0x7'));module['exports']=function(_0x2099fb,_0x3254ec){return _0x2099fb[_0xc967('0x8')](_0xc967('0x9'),attributes,{'tableName':_0xc967('0xa'),'paranoid':![],'indexes':[{'name':_0xc967('0xb'),'fields':['endtime']},{'name':_0xc967('0xc'),'fields':[_0xc967('0xc')]}],'timestamps':!![]});};