08435128c07c3b53c708562e5b862774b69fa146
[motion2.git] / server / api / userChatQueue / userChatQueue.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 _0xc204=['user_has_chat_queues','lodash','../../config/logger','api','request-promise','rimraf','../../config/environment','./userChatQueue.attributes','exports','UserChatQueue'];(function(_0x3fae7c,_0x20c3ce){var _0x3b15e2=function(_0x35e2c4){while(--_0x35e2c4){_0x3fae7c['push'](_0x3fae7c['shift']());}};_0x3b15e2(++_0x20c3ce);}(_0xc204,0x137));var _0x4c20=function(_0x42fc08,_0x23261a){_0x42fc08=_0x42fc08-0x0;var _0x21a189=_0xc204[_0x42fc08];return _0x21a189;};'use strict';var _=require(_0x4c20('0x0'));var util=require('util');var logger=require(_0x4c20('0x1'))(_0x4c20('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4c20('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4c20('0x4'));var config=require(_0x4c20('0x5'));var attributes=require(_0x4c20('0x6'));module[_0x4c20('0x7')]=function(_0x54dfa2,_0x1fa58c){return _0x54dfa2['define'](_0x4c20('0x8'),attributes,{'tableName':_0x4c20('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};