0b19139f416a953d243f11d031fb4be492e513a1
[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 _0x03cf=['uniqueid','util','../../config/logger','bluebird','path','../../config/environment','./smsQueueReport.attributes','exports','define','SmsQueueReport','report_sms_queue'];(function(_0x9b7a64,_0x38d4a8){var _0x33fd98=function(_0x15c82b){while(--_0x15c82b){_0x9b7a64['push'](_0x9b7a64['shift']());}};_0x33fd98(++_0x38d4a8);}(_0x03cf,0x64));var _0xf03c=function(_0x87f606,_0xdefb8f){_0x87f606=_0x87f606-0x0;var _0x39c68=_0x03cf[_0x87f606];return _0x39c68;};'use strict';var _=require('lodash');var util=require(_0xf03c('0x0'));var logger=require(_0xf03c('0x1'))('api');var moment=require('moment');var BPromise=require(_0xf03c('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf03c('0x3'));var rimraf=require('rimraf');var config=require(_0xf03c('0x4'));var attributes=require(_0xf03c('0x5'));module[_0xf03c('0x6')]=function(_0x4c2af5,_0x11841d){return _0x4c2af5[_0xf03c('0x7')](_0xf03c('0x8'),attributes,{'tableName':_0xf03c('0x9'),'paranoid':![],'indexes':[{'name':_0xf03c('0xa'),'fields':[_0xf03c('0xa')]}],'timestamps':!![]});};