Built motion from commit f7863d46.|2.5.41
[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 _0xc08b=['ChatGroup','chat_groups','lodash','api','moment','bluebird','request-promise','../../config/environment','exports'];(function(_0x3a60b8,_0x47caab){var _0x4eb583=function(_0x2251b5){while(--_0x2251b5){_0x3a60b8['push'](_0x3a60b8['shift']());}};_0x4eb583(++_0x47caab);}(_0xc08b,0xc8));var _0xbc08=function(_0x5015da,_0x1f4f8f){_0x5015da=_0x5015da-0x0;var _0x5211d8=_0xc08b[_0x5015da];return _0x5211d8;};'use strict';var _=require(_0xbc08('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xbc08('0x1'));var moment=require(_0xbc08('0x2'));var BPromise=require(_0xbc08('0x3'));var rp=require(_0xbc08('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xbc08('0x5'));var attributes=require('./chatGroup.attributes');module[_0xbc08('0x6')]=function(_0x7e17fe,_0x52078b){return _0x7e17fe['define'](_0xbc08('0x7'),attributes,{'tableName':_0xbc08('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};