157ebd9ad50ac37acf7add638f7e1870baa41203
[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 _0x16c2=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./chatGroup.attributes','exports','define','ChatGroup','chat_groups','lodash','util'];(function(_0x24e178,_0xcdea47){var _0x536faa=function(_0x4df126){while(--_0x4df126){_0x24e178['push'](_0x24e178['shift']());}};_0x536faa(++_0xcdea47);}(_0x16c2,0x1b0));var _0x216c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x16c2[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x216c('0x0'));var util=require(_0x216c('0x1'));var logger=require(_0x216c('0x2'))(_0x216c('0x3'));var moment=require(_0x216c('0x4'));var BPromise=require(_0x216c('0x5'));var rp=require(_0x216c('0x6'));var fs=require('fs');var path=require(_0x216c('0x7'));var rimraf=require(_0x216c('0x8'));var config=require('../../config/environment');var attributes=require(_0x216c('0x9'));module[_0x216c('0xa')]=function(_0x4d2866,_0x409ae2){return _0x4d2866[_0x216c('0xb')](_0x216c('0xc'),attributes,{'tableName':_0x216c('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};