ec66bb77bc5c9a4939d4952bd6d10193f844549c
[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 _0xb386=['define','SmsQueueReport','report_sms_queue','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','path','exports'];(function(_0x3312ab,_0x402040){var _0x1ff5bb=function(_0x33cf83){while(--_0x33cf83){_0x3312ab['push'](_0x3312ab['shift']());}};_0x1ff5bb(++_0x402040);}(_0xb386,0x190));var _0x6b38=function(_0x5a3cf0,_0x160a68){_0x5a3cf0=_0x5a3cf0-0x0;var _0x5a64ee=_0xb386[_0x5a3cf0];return _0x5a64ee;};'use strict';var _=require('lodash');var util=require(_0x6b38('0x0'));var logger=require(_0x6b38('0x1'))(_0x6b38('0x2'));var moment=require(_0x6b38('0x3'));var BPromise=require(_0x6b38('0x4'));var rp=require(_0x6b38('0x5'));var fs=require('fs');var path=require(_0x6b38('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./smsQueueReport.attributes');module[_0x6b38('0x7')]=function(_0x1308c7,_0x56e915){return _0x1308c7[_0x6b38('0x8')](_0x6b38('0x9'),attributes,{'tableName':_0x6b38('0xa'),'paranoid':![],'indexes':[{'name':_0x6b38('0xb'),'fields':[_0x6b38('0xb')]}],'timestamps':!![]});};