Built motion from commit ffdca78c.|2.6.24
[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 _0xbb59=['../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','CmHopperHistory','cm_hopper_history','endtime','uniqueid','lodash','util'];(function(_0x29d861,_0x21bbb7){var _0x486900=function(_0x5e3fd7){while(--_0x5e3fd7){_0x29d861['push'](_0x29d861['shift']());}};_0x486900(++_0x21bbb7);}(_0xbb59,0xec));var _0x9bb5=function(_0x5c2447,_0x1dde24){_0x5c2447=_0x5c2447-0x0;var _0x3e6413=_0xbb59[_0x5c2447];return _0x3e6413;};'use strict';var _=require(_0x9bb5('0x0'));var util=require(_0x9bb5('0x1'));var logger=require(_0x9bb5('0x2'))('api');var moment=require('moment');var BPromise=require(_0x9bb5('0x3'));var rp=require(_0x9bb5('0x4'));var fs=require('fs');var path=require(_0x9bb5('0x5'));var rimraf=require(_0x9bb5('0x6'));var config=require(_0x9bb5('0x7'));var attributes=require('./cmHopperHistory.attributes');module[_0x9bb5('0x8')]=function(_0x2c85f4,_0x1e57b2){return _0x2c85f4[_0x9bb5('0x9')](_0x9bb5('0xa'),attributes,{'tableName':_0x9bb5('0xb'),'paranoid':![],'indexes':[{'name':_0x9bb5('0xc'),'fields':[_0x9bb5('0xc')]},{'name':_0x9bb5('0xd'),'fields':[_0x9bb5('0xd')]}],'timestamps':!![]});};