ba6a5b214795db0aa824556903d4ab6d9b6f0844
[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 _0x62e9=['exports','define','SmsQueueReport','report_sms_queue','uniqueid','lodash','util','../../config/logger','api','moment','request-promise','../../config/environment','./smsQueueReport.attributes'];(function(_0x5bed6a,_0x1c7a5f){var _0x39706a=function(_0x333219){while(--_0x333219){_0x5bed6a['push'](_0x5bed6a['shift']());}};_0x39706a(++_0x1c7a5f);}(_0x62e9,0x1e6));var _0x962e=function(_0x289e64,_0x5adb3c){_0x289e64=_0x289e64-0x0;var _0x30246c=_0x62e9[_0x289e64];return _0x30246c;};'use strict';var _=require(_0x962e('0x0'));var util=require(_0x962e('0x1'));var logger=require(_0x962e('0x2'))(_0x962e('0x3'));var moment=require(_0x962e('0x4'));var BPromise=require('bluebird');var rp=require(_0x962e('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x962e('0x6'));var attributes=require(_0x962e('0x7'));module[_0x962e('0x8')]=function(_0x273a28,_0x35213d){return _0x273a28[_0x962e('0x9')](_0x962e('0xa'),attributes,{'tableName':_0x962e('0xb'),'paranoid':![],'indexes':[{'name':_0x962e('0xc'),'fields':[_0x962e('0xc')]}],'timestamps':!![]});};