f44e76aef2939da472c87eea50b39c191bd8f5d4
[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 _0x4ce6=['path','../../config/environment','ChatGroup','chat_groups','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x160c16,_0x5b7e92){var _0x3982c0=function(_0x134e7d){while(--_0x134e7d){_0x160c16['push'](_0x160c16['shift']());}};_0x3982c0(++_0x5b7e92);}(_0x4ce6,0x108));var _0x64ce=function(_0x2de020,_0x252df0){_0x2de020=_0x2de020-0x0;var _0x182b7c=_0x4ce6[_0x2de020];return _0x182b7c;};'use strict';var _=require(_0x64ce('0x0'));var util=require('util');var logger=require(_0x64ce('0x1'))(_0x64ce('0x2'));var moment=require(_0x64ce('0x3'));var BPromise=require(_0x64ce('0x4'));var rp=require(_0x64ce('0x5'));var fs=require('fs');var path=require(_0x64ce('0x6'));var rimraf=require('rimraf');var config=require(_0x64ce('0x7'));var attributes=require('./chatGroup.attributes');module['exports']=function(_0x31bc0f,_0x262751){return _0x31bc0f['define'](_0x64ce('0x8'),attributes,{'tableName':_0x64ce('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};