Built motion from commit (unavailable).|2.5.31
[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 _0xa77e=['define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','util','bluebird','request-promise','rimraf','../../config/environment','exports'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0xa77e,0x94));var _0xea77=function(_0x24392d,_0x5d2b6e){_0x24392d=_0x24392d-0x0;var _0x2b5f84=_0xa77e[_0x24392d];return _0x2b5f84;};'use strict';var _=require('lodash');var util=require(_0xea77('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xea77('0x1'));var rp=require(_0xea77('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0xea77('0x3'));var config=require(_0xea77('0x4'));var attributes=require('./cmHopperHistory.attributes');module[_0xea77('0x5')]=function(_0x772161,_0x16c3dc){return _0x772161[_0xea77('0x6')](_0xea77('0x7'),attributes,{'tableName':_0xea77('0x8'),'paranoid':![],'indexes':[{'name':_0xea77('0x9'),'fields':[_0xea77('0x9')]},{'name':_0xea77('0xa'),'fields':[_0xea77('0xa')]}],'timestamps':!![]});};