da3e3559c10d4aba6ef00fa43efc18c41c44320f
[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 _0x9c89=['exports','define','VoiceQueuesLog','voice_queues_log','event_dtm','event','dtm','../../config/logger','api','bluebird','request-promise','rimraf','./voiceQueuesLog.attributes'];(function(_0x16ea70,_0x3cdb36){var _0x5e140a=function(_0xad87ee){while(--_0xad87ee){_0x16ea70['push'](_0x16ea70['shift']());}};_0x5e140a(++_0x3cdb36);}(_0x9c89,0x7c));var _0x99c8=function(_0x2620a8,_0x3ada23){_0x2620a8=_0x2620a8-0x0;var _0x37b6fd=_0x9c89[_0x2620a8];return _0x37b6fd;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x99c8('0x0'))(_0x99c8('0x1'));var moment=require('moment');var BPromise=require(_0x99c8('0x2'));var rp=require(_0x99c8('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x99c8('0x4'));var config=require('../../config/environment');var attributes=require(_0x99c8('0x5'));module[_0x99c8('0x6')]=function(_0x148cec,_0xda0f5f){return _0x148cec[_0x99c8('0x7')](_0x99c8('0x8'),attributes,{'tableName':_0x99c8('0x9'),'paranoid':![],'indexes':[{'name':_0x99c8('0xa'),'fields':[_0x99c8('0xb'),_0x99c8('0xc')]}],'timestamps':![]});};