6113d6e61f6e549a17f615fd311bcb739b7b291b
[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 _0xfa77=['api','moment','bluebird','request-promise','rimraf','../../config/environment','exports','define','SmsQueueReport','report_sms_queue','uniqueid','lodash','util'];(function(_0x2f0a94,_0x52c93f){var _0x215c74=function(_0x17e565){while(--_0x17e565){_0x2f0a94['push'](_0x2f0a94['shift']());}};_0x215c74(++_0x52c93f);}(_0xfa77,0x129));var _0x7fa7=function(_0x4c6648,_0x2e8f56){_0x4c6648=_0x4c6648-0x0;var _0x49167f=_0xfa77[_0x4c6648];return _0x49167f;};'use strict';var _=require(_0x7fa7('0x0'));var util=require(_0x7fa7('0x1'));var logger=require('../../config/logger')(_0x7fa7('0x2'));var moment=require(_0x7fa7('0x3'));var BPromise=require(_0x7fa7('0x4'));var rp=require(_0x7fa7('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7fa7('0x6'));var config=require(_0x7fa7('0x7'));var attributes=require('./smsQueueReport.attributes');module[_0x7fa7('0x8')]=function(_0x3e6fdb,_0x4d78b7){return _0x3e6fdb[_0x7fa7('0x9')](_0x7fa7('0xa'),attributes,{'tableName':_0x7fa7('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x7fa7('0xc')]}],'timestamps':!![]});};