83e25f0c30a426593f104a6ef85b778103900751
[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 _0x378d=['path','rimraf','../../config/environment','exports','define','voice_queues_log','dtm','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x4a43b6,_0x38aa03){var _0x1a52c7=function(_0x3d477d){while(--_0x3d477d){_0x4a43b6['push'](_0x4a43b6['shift']());}};_0x1a52c7(++_0x38aa03);}(_0x378d,0xca));var _0xd378=function(_0x13d2e8,_0x193847){_0x13d2e8=_0x13d2e8-0x0;var _0x230601=_0x378d[_0x13d2e8];return _0x230601;};'use strict';var _=require(_0xd378('0x0'));var util=require(_0xd378('0x1'));var logger=require(_0xd378('0x2'))(_0xd378('0x3'));var moment=require(_0xd378('0x4'));var BPromise=require('bluebird');var rp=require(_0xd378('0x5'));var fs=require('fs');var path=require(_0xd378('0x6'));var rimraf=require(_0xd378('0x7'));var config=require(_0xd378('0x8'));var attributes=require('./voiceQueuesLog.attributes');module[_0xd378('0x9')]=function(_0x233816,_0x573241){return _0x233816[_0xd378('0xa')]('VoiceQueuesLog',attributes,{'tableName':_0xd378('0xb'),'paranoid':![],'indexes':[{'name':'event_dtm','fields':['event',_0xd378('0xc')]}],'timestamps':![]});};