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 _0xba85=['util','moment','bluebird','path','../../config/environment','define','UserOpenchannelInteraction','user_has_openchannel_interactions'];(function(_0x434f4d,_0x3c5008){var _0x369f4d=function(_0xbf313f){while(--_0xbf313f){_0x434f4d['push'](_0x434f4d['shift']());}};_0x369f4d(++_0x3c5008);}(_0xba85,0x120));var _0x5ba8=function(_0x4a0184,_0x4efa55){_0x4a0184=_0x4a0184-0x0;var _0x51ebbd=_0xba85[_0x4a0184];return _0x51ebbd;};'use strict';var _=require('lodash');var util=require(_0x5ba8('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x5ba8('0x1'));var BPromise=require(_0x5ba8('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5ba8('0x3'));var rimraf=require('rimraf');var config=require(_0x5ba8('0x4'));var attributes=require('./UserOpenchannelInteraction.attributes');module['exports']=function(_0xf23bc7,_0x319fd3){return _0xf23bc7[_0x5ba8('0x5')](_0x5ba8('0x6'),attributes,{'tableName':_0x5ba8('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};