57a03240902d38784051d5d6e7216d2cd930774e
[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 _0x0974=['voice_queues_log','event_dtm','dtm','lodash','util','../../config/logger','api','bluebird','rimraf','define','VoiceQueuesLog'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x0974,0x10b));var _0x4097=function(_0x328685,_0x1d9e1b){_0x328685=_0x328685-0x0;var _0x3ee62d=_0x0974[_0x328685];return _0x3ee62d;};'use strict';var _=require(_0x4097('0x0'));var util=require(_0x4097('0x1'));var logger=require(_0x4097('0x2'))(_0x4097('0x3'));var moment=require('moment');var BPromise=require(_0x4097('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x4097('0x5'));var config=require('../../config/environment');var attributes=require('./voiceQueuesLog.attributes');module['exports']=function(_0x4d5c62,_0x2a09b6){return _0x4d5c62[_0x4097('0x6')](_0x4097('0x7'),attributes,{'tableName':_0x4097('0x8'),'paranoid':![],'indexes':[{'name':_0x4097('0x9'),'fields':['event',_0x4097('0xa')]}],'timestamps':![]});};