Built motion from commit (unavailable).|2.5.23
[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 _0x9fa2=['exports','define','UserChatQueue','user_has_chat_queues','lodash','util','../../config/logger','api','moment','request-promise','../../config/environment'];(function(_0x2320c9,_0x7be773){var _0xf7c15=function(_0x311430){while(--_0x311430){_0x2320c9['push'](_0x2320c9['shift']());}};_0xf7c15(++_0x7be773);}(_0x9fa2,0x67));var _0x29fa=function(_0x5c956b,_0xa87d11){_0x5c956b=_0x5c956b-0x0;var _0xaff46a=_0x9fa2[_0x5c956b];return _0xaff46a;};'use strict';var _=require(_0x29fa('0x0'));var util=require(_0x29fa('0x1'));var logger=require(_0x29fa('0x2'))(_0x29fa('0x3'));var moment=require(_0x29fa('0x4'));var BPromise=require('bluebird');var rp=require(_0x29fa('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x29fa('0x6'));var attributes=require('./userChatQueue.attributes');module[_0x29fa('0x7')]=function(_0x1354ff,_0x9d160b){return _0x1354ff[_0x29fa('0x8')](_0x29fa('0x9'),attributes,{'tableName':_0x29fa('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};