Built motion from commit eddce310.|2.6.12
[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 _0xd268=['ChatGroup','chat_groups','lodash','util','../../config/logger','moment','bluebird','rimraf','../../config/environment','exports'];(function(_0x3e4a5f,_0x757e33){var _0x511daa=function(_0x4d006c){while(--_0x4d006c){_0x3e4a5f['push'](_0x3e4a5f['shift']());}};_0x511daa(++_0x757e33);}(_0xd268,0x8e));var _0x8d26=function(_0x41b831,_0x4f9759){_0x41b831=_0x41b831-0x0;var _0x160440=_0xd268[_0x41b831];return _0x160440;};'use strict';var _=require(_0x8d26('0x0'));var util=require(_0x8d26('0x1'));var logger=require(_0x8d26('0x2'))('api');var moment=require(_0x8d26('0x3'));var BPromise=require(_0x8d26('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8d26('0x5'));var config=require(_0x8d26('0x6'));var attributes=require('./chatGroup.attributes');module[_0x8d26('0x7')]=function(_0x5d2573,_0xf1b0f){return _0x5d2573['define'](_0x8d26('0x8'),attributes,{'tableName':_0x8d26('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};