Built motion from commit da617fac.|2.6.6
[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 _0x5451=['api','bluebird','path','rimraf','exports','define','ChatGroup','chat_groups'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0x5451,0x148));var _0x1545=function(_0x5bb02f,_0x1cdd79){_0x5bb02f=_0x5bb02f-0x0;var _0x3dd32c=_0x5451[_0x5bb02f];return _0x3dd32c;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x1545('0x0'));var moment=require('moment');var BPromise=require(_0x1545('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1545('0x2'));var rimraf=require(_0x1545('0x3'));var config=require('../../config/environment');var attributes=require('./chatGroup.attributes');module[_0x1545('0x4')]=function(_0x3e3c32,_0x46bc12){return _0x3e3c32[_0x1545('0x5')](_0x1545('0x6'),attributes,{'tableName':_0x1545('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};