74d9b885db0f49641da96e4141e056e39f1467db
[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 _0xd6ee=['user_has_chat_queues','lodash','util','../../config/logger','api','bluebird','path','../../config/environment','./userChatQueue.attributes','exports','define','UserChatQueue'];(function(_0x26393b,_0x449a84){var _0x57230a=function(_0x583888){while(--_0x583888){_0x26393b['push'](_0x26393b['shift']());}};_0x57230a(++_0x449a84);}(_0xd6ee,0xfd));var _0xed6e=function(_0x43b447,_0x5d120b){_0x43b447=_0x43b447-0x0;var _0x40d4c3=_0xd6ee[_0x43b447];return _0x40d4c3;};'use strict';var _=require(_0xed6e('0x0'));var util=require(_0xed6e('0x1'));var logger=require(_0xed6e('0x2'))(_0xed6e('0x3'));var moment=require('moment');var BPromise=require(_0xed6e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xed6e('0x5'));var rimraf=require('rimraf');var config=require(_0xed6e('0x6'));var attributes=require(_0xed6e('0x7'));module[_0xed6e('0x8')]=function(_0x5a57b6,_0x2f9abd){return _0x5a57b6[_0xed6e('0x9')](_0xed6e('0xa'),attributes,{'tableName':_0xed6e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};