ebbca517ab2843b4997ff77f42434b2cc30075dd
[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 _0xe2f2=['voice_queues_log','event','dtm','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./voiceQueuesLog.attributes','exports','define','VoiceQueuesLog'];(function(_0xac36f6,_0x41be7d){var _0x3f7547=function(_0x5d15c0){while(--_0x5d15c0){_0xac36f6['push'](_0xac36f6['shift']());}};_0x3f7547(++_0x41be7d);}(_0xe2f2,0x6c));var _0x2e2f=function(_0x3b604a,_0x3a4716){_0x3b604a=_0x3b604a-0x0;var _0x190c1f=_0xe2f2[_0x3b604a];return _0x190c1f;};'use strict';var _=require(_0x2e2f('0x0'));var util=require(_0x2e2f('0x1'));var logger=require(_0x2e2f('0x2'))(_0x2e2f('0x3'));var moment=require(_0x2e2f('0x4'));var BPromise=require(_0x2e2f('0x5'));var rp=require(_0x2e2f('0x6'));var fs=require('fs');var path=require(_0x2e2f('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x2e2f('0x8'));module[_0x2e2f('0x9')]=function(_0x2346f5,_0x3f868e){return _0x2346f5[_0x2e2f('0xa')](_0x2e2f('0xb'),attributes,{'tableName':_0x2e2f('0xc'),'paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0x2e2f('0xd'),_0x2e2f('0xe')]}],'timestamps':![]});};