Built motion from commit 5ad77b03.|2.6.3
[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 _0x793c=['define','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','lodash','util','api','bluebird','path','../../config/environment','./openchannelTransferReport.attributes','exports'];(function(_0x36eaaa,_0x326732){var _0x461349=function(_0x4e4180){while(--_0x4e4180){_0x36eaaa['push'](_0x36eaaa['shift']());}};_0x461349(++_0x326732);}(_0x793c,0x118));var _0xc793=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x793c[_0x59ee6f];return _0x4c0979;};'use strict';var _=require(_0xc793('0x0'));var util=require(_0xc793('0x1'));var logger=require('../../config/logger')(_0xc793('0x2'));var moment=require('moment');var BPromise=require(_0xc793('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc793('0x4'));var rimraf=require('rimraf');var config=require(_0xc793('0x5'));var attributes=require(_0xc793('0x6'));module[_0xc793('0x7')]=function(_0x10ed1d,_0x48684b){return _0x10ed1d[_0xc793('0x8')](_0xc793('0x9'),attributes,{'tableName':_0xc793('0xa'),'paranoid':![],'indexes':[{'name':_0xc793('0xb'),'fields':[_0xc793('0xb')]}],'timestamps':!![]});};