Built motion from commit ddca4d0d.|2.5.47
[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 _0x6c55=['util','../../config/logger','api','moment','bluebird','path','rimraf','exports','define','ChatGroup','chat_groups'];(function(_0x4a23e6,_0xf168b2){var _0x346537=function(_0x41ce8d){while(--_0x41ce8d){_0x4a23e6['push'](_0x4a23e6['shift']());}};_0x346537(++_0xf168b2);}(_0x6c55,0x1e4));var _0x56c5=function(_0x3a177b,_0x10d9fe){_0x3a177b=_0x3a177b-0x0;var _0x205959=_0x6c55[_0x3a177b];return _0x205959;};'use strict';var _=require('lodash');var util=require(_0x56c5('0x0'));var logger=require(_0x56c5('0x1'))(_0x56c5('0x2'));var moment=require(_0x56c5('0x3'));var BPromise=require(_0x56c5('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x56c5('0x5'));var rimraf=require(_0x56c5('0x6'));var config=require('../../config/environment');var attributes=require('./chatGroup.attributes');module[_0x56c5('0x7')]=function(_0x5579b7,_0x3b06bd){return _0x5579b7[_0x56c5('0x8')](_0x56c5('0x9'),attributes,{'tableName':_0x56c5('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};