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 _0xa9d8=['exports','define','ChatGroup','lodash','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x225610,_0x2d73cc){var _0x371bfd=function(_0x314e5e){while(--_0x314e5e){_0x225610['push'](_0x225610['shift']());}};_0x371bfd(++_0x2d73cc);}(_0xa9d8,0x16b));var _0x8a9d=function(_0x231752,_0x306eab){_0x231752=_0x231752-0x0;var _0x227cb7=_0xa9d8[_0x231752];return _0x227cb7;};'use strict';var _=require(_0x8a9d('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x8a9d('0x1'));var BPromise=require(_0x8a9d('0x2'));var rp=require(_0x8a9d('0x3'));var fs=require('fs');var path=require(_0x8a9d('0x4'));var rimraf=require('rimraf');var config=require(_0x8a9d('0x5'));var attributes=require('./chatGroup.attributes');module[_0x8a9d('0x6')]=function(_0x273a6e,_0x11f4ee){return _0x273a6e[_0x8a9d('0x7')](_0x8a9d('0x8'),attributes,{'tableName':'chat_groups','paranoid':![],'indexes':[],'timestamps':!![]});};