75b740ac68059e32ae9d65e5757d0bcdd3a18727
[motion2.git] / server / api / faxQueueReport / faxQueueReport.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 _0x3140=['bluebird','path','rimraf','exports','define','FaxQueueReport','report_fax_queue','util','api'];(function(_0xb0de12,_0xa4ff3d){var _0x4f80a2=function(_0x14aceb){while(--_0x14aceb){_0xb0de12['push'](_0xb0de12['shift']());}};_0x4f80a2(++_0xa4ff3d);}(_0x3140,0x1ed));var _0x0314=function(_0x2199db,_0x64fe69){_0x2199db=_0x2199db-0x0;var _0x1823bc=_0x3140[_0x2199db];return _0x1823bc;};'use strict';var _=require('lodash');var util=require(_0x0314('0x0'));var logger=require('../../config/logger')(_0x0314('0x1'));var moment=require('moment');var BPromise=require(_0x0314('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0314('0x3'));var rimraf=require(_0x0314('0x4'));var config=require('../../config/environment');var attributes=require('./faxQueueReport.attributes');module[_0x0314('0x5')]=function(_0x5d12b0,_0x415f25){return _0x5d12b0[_0x0314('0x6')](_0x0314('0x7'),attributes,{'tableName':_0x0314('0x8'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};