Built motion from commit 9d1906d1.|2.5.40
[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 _0x8a87=['request-promise','path','rimraf','../../config/environment','./userChatQueue.attributes','exports','define','UserChatQueue','user_has_chat_queues','lodash','../../config/logger','api','bluebird'];(function(_0x56975e,_0x2f90c9){var _0x5032e5=function(_0x59df12){while(--_0x59df12){_0x56975e['push'](_0x56975e['shift']());}};_0x5032e5(++_0x2f90c9);}(_0x8a87,0xa5));var _0x78a8=function(_0x492221,_0x9e2521){_0x492221=_0x492221-0x0;var _0x398bf9=_0x8a87[_0x492221];return _0x398bf9;};'use strict';var _=require(_0x78a8('0x0'));var util=require('util');var logger=require(_0x78a8('0x1'))(_0x78a8('0x2'));var moment=require('moment');var BPromise=require(_0x78a8('0x3'));var rp=require(_0x78a8('0x4'));var fs=require('fs');var path=require(_0x78a8('0x5'));var rimraf=require(_0x78a8('0x6'));var config=require(_0x78a8('0x7'));var attributes=require(_0x78a8('0x8'));module[_0x78a8('0x9')]=function(_0x41c3fa,_0x1a1650){return _0x41c3fa[_0x78a8('0xa')](_0x78a8('0xb'),attributes,{'tableName':_0x78a8('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};