Built motion from commit 1fa89557.|2.6.10
[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 _0x2f81=['bluebird','path','rimraf','../../config/environment','./userChatQueue.attributes','exports','user_has_chat_queues','lodash','../../config/logger','api','moment'];(function(_0x2f32c4,_0x2597ba){var _0x95b5dc=function(_0x4ee89e){while(--_0x4ee89e){_0x2f32c4['push'](_0x2f32c4['shift']());}};_0x95b5dc(++_0x2597ba);}(_0x2f81,0x172));var _0x12f8=function(_0x9ae50e,_0xbe487){_0x9ae50e=_0x9ae50e-0x0;var _0x26f2b3=_0x2f81[_0x9ae50e];return _0x26f2b3;};'use strict';var _=require(_0x12f8('0x0'));var util=require('util');var logger=require(_0x12f8('0x1'))(_0x12f8('0x2'));var moment=require(_0x12f8('0x3'));var BPromise=require(_0x12f8('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x12f8('0x5'));var rimraf=require(_0x12f8('0x6'));var config=require(_0x12f8('0x7'));var attributes=require(_0x12f8('0x8'));module[_0x12f8('0x9')]=function(_0x29368a,_0x18552e){return _0x29368a['define']('UserChatQueue',attributes,{'tableName':_0x12f8('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};