50ec25915e8467c9c45fd28efc9b9b4aa68ddf94
[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 _0x97f4=['path','rimraf','../../config/environment','define','VoiceQueuesLog','voice_queues_log','event_dtm','event','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x2a5adf,_0x386795){var _0x4cb636=function(_0x1b2434){while(--_0x1b2434){_0x2a5adf['push'](_0x2a5adf['shift']());}};_0x4cb636(++_0x386795);}(_0x97f4,0x166));var _0x497f=function(_0x633266,_0x2cc67b){_0x633266=_0x633266-0x0;var _0x29e118=_0x97f4[_0x633266];return _0x29e118;};'use strict';var _=require(_0x497f('0x0'));var util=require(_0x497f('0x1'));var logger=require(_0x497f('0x2'))(_0x497f('0x3'));var moment=require('moment');var BPromise=require(_0x497f('0x4'));var rp=require(_0x497f('0x5'));var fs=require('fs');var path=require(_0x497f('0x6'));var rimraf=require(_0x497f('0x7'));var config=require(_0x497f('0x8'));var attributes=require('./voiceQueuesLog.attributes');module['exports']=function(_0x3bf9b6,_0x37a074){return _0x3bf9b6[_0x497f('0x9')](_0x497f('0xa'),attributes,{'tableName':_0x497f('0xb'),'paranoid':![],'indexes':[{'name':_0x497f('0xc'),'fields':[_0x497f('0xd'),'dtm']}],'timestamps':![]});};