41fd5d9ffd7b4f23c63233cfab0efa8f6e03a55a
[motion2.git] / server / api / chatQueue / chatQueue.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 _0x78c3=['bluebird','path','./chatQueue.attributes','exports','chat_queues','util','../../config/logger','api'];(function(_0x38b6df,_0x1e676d){var _0x14c740=function(_0x2544e5){while(--_0x2544e5){_0x38b6df['push'](_0x38b6df['shift']());}};_0x14c740(++_0x1e676d);}(_0x78c3,0x145));var _0x378c=function(_0x1d5ba4,_0x91111){_0x1d5ba4=_0x1d5ba4-0x0;var _0x3d3d34=_0x78c3[_0x1d5ba4];return _0x3d3d34;};'use strict';var _=require('lodash');var util=require(_0x378c('0x0'));var logger=require(_0x378c('0x1'))(_0x378c('0x2'));var moment=require('moment');var BPromise=require(_0x378c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x378c('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x378c('0x5'));module[_0x378c('0x6')]=function(_0x33e120,_0x13d24a){return _0x33e120['define']('ChatQueue',attributes,{'tableName':_0x378c('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};