edd66b7ab29668daa86d3eca8fc7d421d411f0cc
[motion2.git] / server / api / chatGroup / chatGroup.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x0a09=['lodash','bluebird','request-promise','path','../../config/environment','./chatGroup.attributes','exports','define','ChatGroup','chat_groups'];(function(_0x124728,_0x463dca){var _0x8eb20f=function(_0x49d9de){while(--_0x49d9de){_0x124728['push'](_0x124728['shift']());}};_0x8eb20f(++_0x463dca);}(_0x0a09,0xdc));var _0x90a0=function(_0x8de54f,_0x271987){_0x8de54f=_0x8de54f-0x0;var _0x14cba4=_0x0a09[_0x8de54f];return _0x14cba4;};'use strict';var _=require(_0x90a0('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x90a0('0x1'));var rp=require(_0x90a0('0x2'));var fs=require('fs');var path=require(_0x90a0('0x3'));var rimraf=require('rimraf');var config=require(_0x90a0('0x4'));var attributes=require(_0x90a0('0x5'));module[_0x90a0('0x6')]=function(_0x21afab,_0x1e32a5){return _0x21afab[_0x90a0('0x7')](_0x90a0('0x8'),attributes,{'tableName':_0x90a0('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};