6605b28a55aa1edb51dceba03ea54a2fe632a11f
[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 _0x134a=['rimraf','./chatGroup.attributes','exports','define','ChatGroup','chat_groups','lodash','../../config/logger','api','moment','bluebird','path'];(function(_0x3f674c,_0x1682fe){var _0x5b668c=function(_0x4a6784){while(--_0x4a6784){_0x3f674c['push'](_0x3f674c['shift']());}};_0x5b668c(++_0x1682fe);}(_0x134a,0x17a));var _0xa134=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x134a[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0xa134('0x0'));var util=require('util');var logger=require(_0xa134('0x1'))(_0xa134('0x2'));var moment=require(_0xa134('0x3'));var BPromise=require(_0xa134('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa134('0x5'));var rimraf=require(_0xa134('0x6'));var config=require('../../config/environment');var attributes=require(_0xa134('0x7'));module[_0xa134('0x8')]=function(_0x5f2281,_0x202b10){return _0x5f2281[_0xa134('0x9')](_0xa134('0xa'),attributes,{'tableName':_0xa134('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};