Built motion from commit 1fa89557.|2.6.10
[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 _0x3b69=['util','../../config/logger','api','bluebird','path','./chatGroup.attributes','exports','define','ChatGroup','chat_groups','lodash'];(function(_0x49e363,_0x45468c){var _0xe7aed2=function(_0x792a41){while(--_0x792a41){_0x49e363['push'](_0x49e363['shift']());}};_0xe7aed2(++_0x45468c);}(_0x3b69,0x1ac));var _0x93b6=function(_0x164855,_0x124ebc){_0x164855=_0x164855-0x0;var _0x2e4abd=_0x3b69[_0x164855];return _0x2e4abd;};'use strict';var _=require(_0x93b6('0x0'));var util=require(_0x93b6('0x1'));var logger=require(_0x93b6('0x2'))(_0x93b6('0x3'));var moment=require('moment');var BPromise=require(_0x93b6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x93b6('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x93b6('0x6'));module[_0x93b6('0x7')]=function(_0x4e13de,_0x520a65){return _0x4e13de[_0x93b6('0x8')](_0x93b6('0x9'),attributes,{'tableName':_0x93b6('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};