Built motion from commit 092f8824.|2.5.49
[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 _0x44a3=['path','../../config/environment','exports','define','OpenchannelTransferReport','uniqueid','lodash','util','api','moment','bluebird','request-promise'];(function(_0x3981a9,_0x21e231){var _0x3eaa9c=function(_0x5be2d4){while(--_0x5be2d4){_0x3981a9['push'](_0x3981a9['shift']());}};_0x3eaa9c(++_0x21e231);}(_0x44a3,0x132));var _0x344a=function(_0x4ef11c,_0x387510){_0x4ef11c=_0x4ef11c-0x0;var _0x1c3026=_0x44a3[_0x4ef11c];return _0x1c3026;};'use strict';var _=require(_0x344a('0x0'));var util=require(_0x344a('0x1'));var logger=require('../../config/logger')(_0x344a('0x2'));var moment=require(_0x344a('0x3'));var BPromise=require(_0x344a('0x4'));var rp=require(_0x344a('0x5'));var fs=require('fs');var path=require(_0x344a('0x6'));var rimraf=require('rimraf');var config=require(_0x344a('0x7'));var attributes=require('./openchannelTransferReport.attributes');module[_0x344a('0x8')]=function(_0x5eb82c,_0x5276f3){return _0x5eb82c[_0x344a('0x9')](_0x344a('0xa'),attributes,{'tableName':'report_openchannel_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x344a('0xb')]}],'timestamps':!![]});};