30a4000531c24d8cb6472ee98bd88c616a64071d
[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 _0xea2b=['voice_queues_log','event_dtm','dtm','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./voiceQueuesLog.attributes','define','VoiceQueuesLog'];(function(_0x1a7a1b,_0x518846){var _0x350750=function(_0x4ab680){while(--_0x4ab680){_0x1a7a1b['push'](_0x1a7a1b['shift']());}};_0x350750(++_0x518846);}(_0xea2b,0x121));var _0xbea2=function(_0x4d2b03,_0x1c0f3){_0x4d2b03=_0x4d2b03-0x0;var _0x1075ab=_0xea2b[_0x4d2b03];return _0x1075ab;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xbea2('0x0'))(_0xbea2('0x1'));var moment=require(_0xbea2('0x2'));var BPromise=require(_0xbea2('0x3'));var rp=require(_0xbea2('0x4'));var fs=require('fs');var path=require(_0xbea2('0x5'));var rimraf=require('rimraf');var config=require(_0xbea2('0x6'));var attributes=require(_0xbea2('0x7'));module['exports']=function(_0x60969,_0x2995e8){return _0x60969[_0xbea2('0x8')](_0xbea2('0x9'),attributes,{'tableName':_0xbea2('0xa'),'paranoid':![],'indexes':[{'name':_0xbea2('0xb'),'fields':['event',_0xbea2('0xc')]}],'timestamps':![]});};