Built motion from commit 936e8062.|2.5.33
[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 _0xf898=['lodash','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','exports','user_has_chat_queues'];(function(_0x4cd77f,_0x3b8e14){var _0x135d43=function(_0x22a67f){while(--_0x22a67f){_0x4cd77f['push'](_0x4cd77f['shift']());}};_0x135d43(++_0x3b8e14);}(_0xf898,0x1cc));var _0x8f89=function(_0x10e1a5,_0x184999){_0x10e1a5=_0x10e1a5-0x0;var _0x1282e3=_0xf898[_0x10e1a5];return _0x1282e3;};'use strict';var _=require(_0x8f89('0x0'));var util=require(_0x8f89('0x1'));var logger=require(_0x8f89('0x2'))('api');var moment=require(_0x8f89('0x3'));var BPromise=require(_0x8f89('0x4'));var rp=require(_0x8f89('0x5'));var fs=require('fs');var path=require(_0x8f89('0x6'));var rimraf=require('rimraf');var config=require(_0x8f89('0x7'));var attributes=require('./userChatQueue.attributes');module[_0x8f89('0x8')]=function(_0x52ab70,_0xf20b95){return _0x52ab70['define']('UserChatQueue',attributes,{'tableName':_0x8f89('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};