d19e0ecabbc51a0116b6b1dcd6f3f92a9a7f66c9
[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 _0x9abc=['path','rimraf','../../config/environment','exports','define','SmsQueueReport','report_sms_queue','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x5acb9c,_0x5c280e){var _0xef9f83=function(_0x31e6ce){while(--_0x31e6ce){_0x5acb9c['push'](_0x5acb9c['shift']());}};_0xef9f83(++_0x5c280e);}(_0x9abc,0x1e3));var _0xc9ab=function(_0x5ab939,_0x239853){_0x5ab939=_0x5ab939-0x0;var _0x5b0736=_0x9abc[_0x5ab939];return _0x5b0736;};'use strict';var _=require(_0xc9ab('0x0'));var util=require(_0xc9ab('0x1'));var logger=require(_0xc9ab('0x2'))(_0xc9ab('0x3'));var moment=require(_0xc9ab('0x4'));var BPromise=require(_0xc9ab('0x5'));var rp=require(_0xc9ab('0x6'));var fs=require('fs');var path=require(_0xc9ab('0x7'));var rimraf=require(_0xc9ab('0x8'));var config=require(_0xc9ab('0x9'));var attributes=require('./smsQueueReport.attributes');module[_0xc9ab('0xa')]=function(_0xb06d88,_0x3ff086){return _0xb06d88[_0xc9ab('0xb')](_0xc9ab('0xc'),attributes,{'tableName':_0xc9ab('0xd'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};