1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x0ed8=['rimraf','../../config/environment','./openchannelTransferReport.attributes','exports','define','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','lodash','api','bluebird','request-promise'];(function(_0x59bd6f,_0x2317d1){var _0x2c5f08=function(_0x507b03){while(--_0x507b03){_0x59bd6f['push'](_0x59bd6f['shift']());}};_0x2c5f08(++_0x2317d1);}(_0x0ed8,0x14c));var _0x80ed=function(_0x844f3b,_0x3a4318){_0x844f3b=_0x844f3b-0x0;var _0x12f6bc=_0x0ed8[_0x844f3b];return _0x12f6bc;};'use strict';var _=require(_0x80ed('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x80ed('0x1'));var moment=require('moment');var BPromise=require(_0x80ed('0x2'));var rp=require(_0x80ed('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x80ed('0x4'));var config=require(_0x80ed('0x5'));var attributes=require(_0x80ed('0x6'));module[_0x80ed('0x7')]=function(_0x4ab07b,_0x4241bd){return _0x4ab07b[_0x80ed('0x8')](_0x80ed('0x9'),attributes,{'tableName':_0x80ed('0xa'),'paranoid':![],'indexes':[{'name':_0x80ed('0xb'),'fields':[_0x80ed('0xb')]}],'timestamps':!![]});};