ffd74e19d8c2e87e5438148c5d25985e6fe85193
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.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 _0x7fb4=['path','../../config/environment','./voiceQueuesLog.attributes','exports','VoiceQueuesLog','voice_queues_log','event','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x1694f5,_0x49b7c3){var _0x5b4321=function(_0x58c183){while(--_0x58c183){_0x1694f5['push'](_0x1694f5['shift']());}};_0x5b4321(++_0x49b7c3);}(_0x7fb4,0x103));var _0x47fb=function(_0x205978,_0x529e8f){_0x205978=_0x205978-0x0;var _0x2cc339=_0x7fb4[_0x205978];return _0x2cc339;};'use strict';var _=require(_0x47fb('0x0'));var util=require(_0x47fb('0x1'));var logger=require(_0x47fb('0x2'))(_0x47fb('0x3'));var moment=require(_0x47fb('0x4'));var BPromise=require(_0x47fb('0x5'));var rp=require(_0x47fb('0x6'));var fs=require('fs');var path=require(_0x47fb('0x7'));var rimraf=require('rimraf');var config=require(_0x47fb('0x8'));var attributes=require(_0x47fb('0x9'));module[_0x47fb('0xa')]=function(_0x31c16c,_0x4c2a43){return _0x31c16c['define'](_0x47fb('0xb'),attributes,{'tableName':_0x47fb('0xc'),'paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0x47fb('0xd'),'dtm']}],'timestamps':![]});};