Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / faxTransferReport / faxTransferReport.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 _0xac60=['rimraf','../../config/environment','./faxTransferReport.attributes','exports','define','FaxTransferReport','report_fax_transfer','uniqueid','util','api','moment','path'];(function(_0x2cea33,_0x44daf6){var _0x4ecc61=function(_0x4157fe){while(--_0x4157fe){_0x2cea33['push'](_0x2cea33['shift']());}};_0x4ecc61(++_0x44daf6);}(_0xac60,0x188));var _0x0ac6=function(_0x5317b5,_0x4dfd6e){_0x5317b5=_0x5317b5-0x0;var _0x3b7ce2=_0xac60[_0x5317b5];return _0x3b7ce2;};'use strict';var _=require('lodash');var util=require(_0x0ac6('0x0'));var logger=require('../../config/logger')(_0x0ac6('0x1'));var moment=require(_0x0ac6('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x0ac6('0x3'));var rimraf=require(_0x0ac6('0x4'));var config=require(_0x0ac6('0x5'));var attributes=require(_0x0ac6('0x6'));module[_0x0ac6('0x7')]=function(_0xf68614,_0x45ac01){return _0xf68614[_0x0ac6('0x8')](_0x0ac6('0x9'),attributes,{'tableName':_0x0ac6('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x0ac6('0xb')]}],'timestamps':!![]});};