00a28abd90f51c99b0bce795bc0d581cb786ed55
[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 _0xff24=['define','VoiceQueuesLog','event','dtm','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceQueuesLog.attributes'];(function(_0x496738,_0x3f1a9f){var _0xee1381=function(_0x4dc50c){while(--_0x4dc50c){_0x496738['push'](_0x496738['shift']());}};_0xee1381(++_0x3f1a9f);}(_0xff24,0x146));var _0x4ff2=function(_0x13c8cb,_0x5edbb6){_0x13c8cb=_0x13c8cb-0x0;var _0x26a55c=_0xff24[_0x13c8cb];return _0x26a55c;};'use strict';var _=require(_0x4ff2('0x0'));var util=require(_0x4ff2('0x1'));var logger=require('../../config/logger')(_0x4ff2('0x2'));var moment=require(_0x4ff2('0x3'));var BPromise=require(_0x4ff2('0x4'));var rp=require(_0x4ff2('0x5'));var fs=require('fs');var path=require(_0x4ff2('0x6'));var rimraf=require(_0x4ff2('0x7'));var config=require(_0x4ff2('0x8'));var attributes=require(_0x4ff2('0x9'));module['exports']=function(_0x2480c9,_0x1bbe71){return _0x2480c9[_0x4ff2('0xa')](_0x4ff2('0xb'),attributes,{'tableName':'voice_queues_log','paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0x4ff2('0xc'),_0x4ff2('0xd')]}],'timestamps':![]});};