Built motion from commit d1eab355.|2.6.28
[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 _0x2a65=['../../config/environment','exports','define','chat_groups','lodash','util','../../config/logger','api','bluebird','rimraf'];(function(_0x2c7618,_0x26be9c){var _0x5ce3f0=function(_0x1837b3){while(--_0x1837b3){_0x2c7618['push'](_0x2c7618['shift']());}};_0x5ce3f0(++_0x26be9c);}(_0x2a65,0x158));var _0x52a6=function(_0x1e97a5,_0x37a2e9){_0x1e97a5=_0x1e97a5-0x0;var _0x42915d=_0x2a65[_0x1e97a5];return _0x42915d;};'use strict';var _=require(_0x52a6('0x0'));var util=require(_0x52a6('0x1'));var logger=require(_0x52a6('0x2'))(_0x52a6('0x3'));var moment=require('moment');var BPromise=require(_0x52a6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x52a6('0x5'));var config=require(_0x52a6('0x6'));var attributes=require('./chatGroup.attributes');module[_0x52a6('0x7')]=function(_0x346bbe,_0x39cc8d){return _0x346bbe[_0x52a6('0x8')]('ChatGroup',attributes,{'tableName':_0x52a6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};