Built motion from commit 85328c08.|2.5.50
[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 _0xf5bb=['../../config/logger','bluebird','request-promise','rimraf','exports','chat_groups','lodash','util'];(function(_0x3e15f4,_0x2d29a1){var _0x3bb93d=function(_0x396c8b){while(--_0x396c8b){_0x3e15f4['push'](_0x3e15f4['shift']());}};_0x3bb93d(++_0x2d29a1);}(_0xf5bb,0x6e));var _0xbf5b=function(_0x14d82f,_0x59df29){_0x14d82f=_0x14d82f-0x0;var _0x133722=_0xf5bb[_0x14d82f];return _0x133722;};'use strict';var _=require(_0xbf5b('0x0'));var util=require(_0xbf5b('0x1'));var logger=require(_0xbf5b('0x2'))('api');var moment=require('moment');var BPromise=require(_0xbf5b('0x3'));var rp=require(_0xbf5b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xbf5b('0x5'));var config=require('../../config/environment');var attributes=require('./chatGroup.attributes');module[_0xbf5b('0x6')]=function(_0x4322e1,_0xd9e96a){return _0x4322e1['define']('ChatGroup',attributes,{'tableName':_0xbf5b('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};