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 _0x6c21=['lodash','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4'];(function(_0x1c4a02,_0x1d27a7){var _0x483116=function(_0x4c5eeb){while(--_0x4c5eeb){_0x1c4a02['push'](_0x1c4a02['shift']());}};_0x483116(++_0x1d27a7);}(_0x6c21,0x9c));var _0x16c2=function(_0x20a8ea,_0x3937d8){_0x20a8ea=_0x20a8ea-0x0;var _0x4df51b=_0x6c21[_0x20a8ea];return _0x4df51b;};'use strict';var _=require(_0x16c2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x16c2('0x1'));var moment=require(_0x16c2('0x2'));var BPromise=require('bluebird');var rp=require(_0x16c2('0x3'));var fs=require('fs');var path=require(_0x16c2('0x4'));var rimraf=require(_0x16c2('0x5'));var config=require(_0x16c2('0x6'));var attributes=require('./chatInternalMessage.attributes');module[_0x16c2('0x7')]=function(_0x576900,_0x2bd86d){return _0x576900[_0x16c2('0x8')](_0x16c2('0x9'),attributes,{'tableName':_0x16c2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x16c2('0xb'),'collate':'utf8mb4_unicode_ci'});};