e691b73955a8c8e0b785d4efdc31672b034039de
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.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 _0xe671=['define','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','moment','bluebird','request-promise','rimraf','../../config/environment','exports'];(function(_0x36f641,_0x1a3063){var _0x39b299=function(_0x20c0a3){while(--_0x20c0a3){_0x36f641['push'](_0x36f641['shift']());}};_0x39b299(++_0x1a3063);}(_0xe671,0x90));var _0x1e67=function(_0x1492fe,_0x45833f){_0x1492fe=_0x1492fe-0x0;var _0x19c98b=_0xe671[_0x1492fe];return _0x19c98b;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x1e67('0x0'));var BPromise=require(_0x1e67('0x1'));var rp=require(_0x1e67('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1e67('0x3'));var config=require(_0x1e67('0x4'));var attributes=require('./openchannelTransferReport.attributes');module[_0x1e67('0x5')]=function(_0x130c38,_0x5d2682){return _0x130c38[_0x1e67('0x6')](_0x1e67('0x7'),attributes,{'tableName':_0x1e67('0x8'),'paranoid':![],'indexes':[{'name':_0x1e67('0x9'),'fields':[_0x1e67('0x9')]}],'timestamps':!![]});};