27c4b1c1ee4fb9f8dbd497414308d4f17ee5f5c8
[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 _0xee42=['bluebird','rimraf','../../config/environment','./chatGroup.attributes','exports','define','ChatGroup','chat_groups','lodash','util','../../config/logger','api'];(function(_0x6d6a66,_0x2924af){var _0x11eb6e=function(_0x52e55a){while(--_0x52e55a){_0x6d6a66['push'](_0x6d6a66['shift']());}};_0x11eb6e(++_0x2924af);}(_0xee42,0x8c));var _0x2ee4=function(_0x342700,_0x569f75){_0x342700=_0x342700-0x0;var _0x53406f=_0xee42[_0x342700];return _0x53406f;};'use strict';var _=require(_0x2ee4('0x0'));var util=require(_0x2ee4('0x1'));var logger=require(_0x2ee4('0x2'))(_0x2ee4('0x3'));var moment=require('moment');var BPromise=require(_0x2ee4('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2ee4('0x5'));var config=require(_0x2ee4('0x6'));var attributes=require(_0x2ee4('0x7'));module[_0x2ee4('0x8')]=function(_0x12242f,_0x11879a){return _0x12242f[_0x2ee4('0x9')](_0x2ee4('0xa'),attributes,{'tableName':_0x2ee4('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};