0671aa8383f92c058f29da008feec4d2f153f66e
[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 _0x2da1=['exports','define','VoiceQueuesLog','voice_queues_log','event','dtm','lodash','util','api','bluebird','request-promise','path','rimraf','./voiceQueuesLog.attributes'];(function(_0x176d4a,_0x3f14e0){var _0x44b481=function(_0x5c2209){while(--_0x5c2209){_0x176d4a['push'](_0x176d4a['shift']());}};_0x44b481(++_0x3f14e0);}(_0x2da1,0xca));var _0x12da=function(_0x2eaf4d,_0x2a3aac){_0x2eaf4d=_0x2eaf4d-0x0;var _0x2bd85e=_0x2da1[_0x2eaf4d];return _0x2bd85e;};'use strict';var _=require(_0x12da('0x0'));var util=require(_0x12da('0x1'));var logger=require('../../config/logger')(_0x12da('0x2'));var moment=require('moment');var BPromise=require(_0x12da('0x3'));var rp=require(_0x12da('0x4'));var fs=require('fs');var path=require(_0x12da('0x5'));var rimraf=require(_0x12da('0x6'));var config=require('../../config/environment');var attributes=require(_0x12da('0x7'));module[_0x12da('0x8')]=function(_0x31175b,_0x3b7ea1){return _0x31175b[_0x12da('0x9')](_0x12da('0xa'),attributes,{'tableName':_0x12da('0xb'),'paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0x12da('0xc'),_0x12da('0xd')]}],'timestamps':![]});};