d57317718966f38e0bc51f7ddb34bc36135483fd
[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 _0x9f69=['util','api','moment','bluebird','rimraf','./voiceQueueReport.attributes','exports','report_queue','uniqueid','calleridnum'];(function(_0x5f58a1,_0x4301f2){var _0x3db084=function(_0x3dcb14){while(--_0x3dcb14){_0x5f58a1['push'](_0x5f58a1['shift']());}};_0x3db084(++_0x4301f2);}(_0x9f69,0x122));var _0x99f6=function(_0x17fc3d,_0x2d35d5){_0x17fc3d=_0x17fc3d-0x0;var _0x4e83e8=_0x9f69[_0x17fc3d];return _0x4e83e8;};'use strict';var _=require('lodash');var util=require(_0x99f6('0x0'));var logger=require('../../config/logger')(_0x99f6('0x1'));var moment=require(_0x99f6('0x2'));var BPromise=require(_0x99f6('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x99f6('0x4'));var config=require('../../config/environment');var attributes=require(_0x99f6('0x5'));module[_0x99f6('0x6')]=function(_0x222e62,_0x5ad8ae){return _0x222e62['define']('VoiceQueueReport',attributes,{'tableName':_0x99f6('0x7'),'paranoid':![],'indexes':[{'fields':[_0x99f6('0x8')]},{'fields':[_0x99f6('0x9')]}],'timestamps':!![]});};