Built motion from commit 10af8726.|2.6.34
[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 _0xd87d=['define','FaxTransferReport','uniqueid','lodash','../../config/logger','moment','bluebird','rimraf','../../config/environment','exports'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xd87d,0x16b));var _0xdd87=function(_0x487e8e,_0x32a20f){_0x487e8e=_0x487e8e-0x0;var _0x4fc308=_0xd87d[_0x487e8e];return _0x4fc308;};'use strict';var _=require(_0xdd87('0x0'));var util=require('util');var logger=require(_0xdd87('0x1'))('api');var moment=require(_0xdd87('0x2'));var BPromise=require(_0xdd87('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xdd87('0x4'));var config=require(_0xdd87('0x5'));var attributes=require('./faxTransferReport.attributes');module[_0xdd87('0x6')]=function(_0x1f0cbd,_0x449f50){return _0x1f0cbd[_0xdd87('0x7')](_0xdd87('0x8'),attributes,{'tableName':'report_fax_transfer','paranoid':![],'indexes':[{'name':_0xdd87('0x9'),'fields':[_0xdd87('0x9')]}],'timestamps':!![]});};