Built motion from commit (unavailable).|2.4.16
[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 _0x0bcc=['exports','define','UserChatQueue','user_has_chat_queues','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x1ec2f6,_0x6400d7){var _0x30c705=function(_0x50c514){while(--_0x50c514){_0x1ec2f6['push'](_0x1ec2f6['shift']());}};_0x30c705(++_0x6400d7);}(_0x0bcc,0x1bc));var _0xc0bc=function(_0x27a8e1,_0xbfecea){_0x27a8e1=_0x27a8e1-0x0;var _0x2e4d37=_0x0bcc[_0x27a8e1];return _0x2e4d37;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xc0bc('0x0'));var moment=require(_0xc0bc('0x1'));var BPromise=require(_0xc0bc('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc0bc('0x3'));var rimraf=require(_0xc0bc('0x4'));var config=require(_0xc0bc('0x5'));var attributes=require('./userChatQueue.attributes');module[_0xc0bc('0x6')]=function(_0x1ee47e,_0x3df02e){return _0x1ee47e[_0xc0bc('0x7')](_0xc0bc('0x8'),attributes,{'tableName':_0xc0bc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};