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 _0x7860=['./chatGroup.attributes','exports','define','ChatGroup','chat_groups','lodash','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x5d8927,_0x10da7a){var _0x4da563=function(_0x3af55e){while(--_0x3af55e){_0x5d8927['push'](_0x5d8927['shift']());}};_0x4da563(++_0x10da7a);}(_0x7860,0x7e));var _0x0786=function(_0x4a3040,_0x56dea3){_0x4a3040=_0x4a3040-0x0;var _0x4cc47a=_0x7860[_0x4a3040];return _0x4cc47a;};'use strict';var _=require(_0x0786('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x0786('0x1'));var BPromise=require(_0x0786('0x2'));var rp=require(_0x0786('0x3'));var fs=require('fs');var path=require(_0x0786('0x4'));var rimraf=require('rimraf');var config=require(_0x0786('0x5'));var attributes=require(_0x0786('0x6'));module[_0x0786('0x7')]=function(_0x3df86f,_0x2a267a){return _0x3df86f[_0x0786('0x8')](_0x0786('0x9'),attributes,{'tableName':_0x0786('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};