d7838e17ee3b91ef11757df5464ef16b57b0a981
[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 _0x92aa=['uniqueid','lodash','util','../../config/logger','api','moment','request-promise','../../config/environment','exports','define','SmsQueueReport'];(function(_0xbe7801,_0x24ebe9){var _0x3a8062=function(_0x295f04){while(--_0x295f04){_0xbe7801['push'](_0xbe7801['shift']());}};_0x3a8062(++_0x24ebe9);}(_0x92aa,0xf3));var _0xa92a=function(_0x11aa18,_0x1d54f8){_0x11aa18=_0x11aa18-0x0;var _0x4586e1=_0x92aa[_0x11aa18];return _0x4586e1;};'use strict';var _=require(_0xa92a('0x0'));var util=require(_0xa92a('0x1'));var logger=require(_0xa92a('0x2'))(_0xa92a('0x3'));var moment=require(_0xa92a('0x4'));var BPromise=require('bluebird');var rp=require(_0xa92a('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xa92a('0x6'));var attributes=require('./smsQueueReport.attributes');module[_0xa92a('0x7')]=function(_0x50a3e1,_0x53e138){return _0x50a3e1[_0xa92a('0x8')](_0xa92a('0x9'),attributes,{'tableName':'report_sms_queue','paranoid':![],'indexes':[{'name':_0xa92a('0xa'),'fields':[_0xa92a('0xa')]}],'timestamps':!![]});};