Built motion from commit (unavailable).|2.5.8
[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 _0xac34=['../../config/logger','api','moment','bluebird','path','../../config/environment','./voiceQueuesLog.attributes','exports','define','VoiceQueuesLog','voice_queues_log','event_dtm','lodash','util'];(function(_0x3114e4,_0x40f6a9){var _0x5aabd9=function(_0x38a7ac){while(--_0x38a7ac){_0x3114e4['push'](_0x3114e4['shift']());}};_0x5aabd9(++_0x40f6a9);}(_0xac34,0x15c));var _0x4ac3=function(_0x5bcf87,_0x1c1c19){_0x5bcf87=_0x5bcf87-0x0;var _0x3161fc=_0xac34[_0x5bcf87];return _0x3161fc;};'use strict';var _=require(_0x4ac3('0x0'));var util=require(_0x4ac3('0x1'));var logger=require(_0x4ac3('0x2'))(_0x4ac3('0x3'));var moment=require(_0x4ac3('0x4'));var BPromise=require(_0x4ac3('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4ac3('0x6'));var rimraf=require('rimraf');var config=require(_0x4ac3('0x7'));var attributes=require(_0x4ac3('0x8'));module[_0x4ac3('0x9')]=function(_0x37f227,_0x5c02){return _0x37f227[_0x4ac3('0xa')](_0x4ac3('0xb'),attributes,{'tableName':_0x4ac3('0xc'),'paranoid':![],'indexes':[{'name':_0x4ac3('0xd'),'fields':['event','dtm']}],'timestamps':![]});};