cdcc1f572bea408010c7c759e3df45e49198c07a
[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 _0x7ff7=['VoiceQueuesLog','voice_queues_log','event_dtm','dtm','lodash','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','./voiceQueuesLog.attributes','define'];(function(_0x19aa84,_0x549537){var _0x536146=function(_0x5da480){while(--_0x5da480){_0x19aa84['push'](_0x19aa84['shift']());}};_0x536146(++_0x549537);}(_0x7ff7,0x18a));var _0x77ff=function(_0x45c859,_0x24fb4e){_0x45c859=_0x45c859-0x0;var _0x3d88ad=_0x7ff7[_0x45c859];return _0x3d88ad;};'use strict';var _=require(_0x77ff('0x0'));var util=require('util');var logger=require(_0x77ff('0x1'))('api');var moment=require(_0x77ff('0x2'));var BPromise=require(_0x77ff('0x3'));var rp=require(_0x77ff('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x77ff('0x5'));var config=require(_0x77ff('0x6'));var attributes=require(_0x77ff('0x7'));module['exports']=function(_0x28ad16,_0x30523f){return _0x28ad16[_0x77ff('0x8')](_0x77ff('0x9'),attributes,{'tableName':_0x77ff('0xa'),'paranoid':![],'indexes':[{'name':_0x77ff('0xb'),'fields':['event',_0x77ff('0xc')]}],'timestamps':![]});};