Built motion from commit 3e059bc2.|2.5.32
[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 _0xb845=['path','rimraf','../../config/environment','./voiceQueuesLog.attributes','exports','define','VoiceQueuesLog','voice_queues_log','event_dtm','event','dtm','util','../../config/logger','api','bluebird','request-promise'];(function(_0xc605ca,_0x2a6275){var _0x476710=function(_0x463ee7){while(--_0x463ee7){_0xc605ca['push'](_0xc605ca['shift']());}};_0x476710(++_0x2a6275);}(_0xb845,0x18b));var _0x5b84=function(_0x53d68a,_0x27d046){_0x53d68a=_0x53d68a-0x0;var _0x14f9f8=_0xb845[_0x53d68a];return _0x14f9f8;};'use strict';var _=require('lodash');var util=require(_0x5b84('0x0'));var logger=require(_0x5b84('0x1'))(_0x5b84('0x2'));var moment=require('moment');var BPromise=require(_0x5b84('0x3'));var rp=require(_0x5b84('0x4'));var fs=require('fs');var path=require(_0x5b84('0x5'));var rimraf=require(_0x5b84('0x6'));var config=require(_0x5b84('0x7'));var attributes=require(_0x5b84('0x8'));module[_0x5b84('0x9')]=function(_0x427221,_0x15bf6b){return _0x427221[_0x5b84('0xa')](_0x5b84('0xb'),attributes,{'tableName':_0x5b84('0xc'),'paranoid':![],'indexes':[{'name':_0x5b84('0xd'),'fields':[_0x5b84('0xe'),_0x5b84('0xf')]}],'timestamps':![]});};