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 _0x2746=['define','ChatTransferReport','report_chat_transfer','uniqueid','../../config/logger','api','moment','bluebird','request-promise','path','./chatTransferReport.attributes','exports'];(function(_0x3330b0,_0x54d21a){var _0x5793f5=function(_0x276b54){while(--_0x276b54){_0x3330b0['push'](_0x3330b0['shift']());}};_0x5793f5(++_0x54d21a);}(_0x2746,0x19c));var _0x6274=function(_0x1803e7,_0x49086b){_0x1803e7=_0x1803e7-0x0;var _0x185d45=_0x2746[_0x1803e7];return _0x185d45;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x6274('0x0'))(_0x6274('0x1'));var moment=require(_0x6274('0x2'));var BPromise=require(_0x6274('0x3'));var rp=require(_0x6274('0x4'));var fs=require('fs');var path=require(_0x6274('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6274('0x6'));module[_0x6274('0x7')]=function(_0x1978ff,_0x534aee){return _0x1978ff[_0x6274('0x8')](_0x6274('0x9'),attributes,{'tableName':_0x6274('0xa'),'paranoid':![],'indexes':[{'name':_0x6274('0xb'),'fields':[_0x6274('0xb')]}],'timestamps':!![]});};