a9e2a60787f9e4330bab8cee5e0a1dbcec45db0c
[motion2.git] / server / api / smsQueueReport / smsQueueReport.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 _0x98e5=['SmsQueueReport','report_sms_queue','uniqueid','api','moment','request-promise','path','../../config/environment','define'];(function(_0x51298e,_0x5dd652){var _0x3981c0=function(_0x5aba18){while(--_0x5aba18){_0x51298e['push'](_0x51298e['shift']());}};_0x3981c0(++_0x5dd652);}(_0x98e5,0x8a));var _0x598e=function(_0x29aacb,_0x5b449b){_0x29aacb=_0x29aacb-0x0;var _0x38c24e=_0x98e5[_0x29aacb];return _0x38c24e;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x598e('0x0'));var moment=require(_0x598e('0x1'));var BPromise=require('bluebird');var rp=require(_0x598e('0x2'));var fs=require('fs');var path=require(_0x598e('0x3'));var rimraf=require('rimraf');var config=require(_0x598e('0x4'));var attributes=require('./smsQueueReport.attributes');module['exports']=function(_0x154755,_0x568749){return _0x154755[_0x598e('0x5')](_0x598e('0x6'),attributes,{'tableName':_0x598e('0x7'),'paranoid':![],'indexes':[{'name':_0x598e('0x8'),'fields':[_0x598e('0x8')]}],'timestamps':!![]});};