4ecbdc04fc1b52f2b60da2ded31b857e37da10a5
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0xcb5e=['api','moment','bluebird','path','rimraf','../../config/environment','./voiceQueueReport.attributes','exports','VoiceQueueReport','report_queue','uniqueid','calleridnum','util','../../config/logger'];(function(_0x5a9b6c,_0x30ccd0){var _0x72bed=function(_0x1468ea){while(--_0x1468ea){_0x5a9b6c['push'](_0x5a9b6c['shift']());}};_0x72bed(++_0x30ccd0);}(_0xcb5e,0xb4));var _0xecb5=function(_0x3f4e53,_0x5fd554){_0x3f4e53=_0x3f4e53-0x0;var _0x427f06=_0xcb5e[_0x3f4e53];return _0x427f06;};'use strict';var _=require('lodash');var util=require(_0xecb5('0x0'));var logger=require(_0xecb5('0x1'))(_0xecb5('0x2'));var moment=require(_0xecb5('0x3'));var BPromise=require(_0xecb5('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xecb5('0x5'));var rimraf=require(_0xecb5('0x6'));var config=require(_0xecb5('0x7'));var attributes=require(_0xecb5('0x8'));module[_0xecb5('0x9')]=function(_0x5080ac,_0x3a9145){return _0x5080ac['define'](_0xecb5('0xa'),attributes,{'tableName':_0xecb5('0xb'),'paranoid':![],'indexes':[{'fields':[_0xecb5('0xc')]},{'fields':[_0xecb5('0xd')]}],'timestamps':!![]});};