1224c27886e346a1ff5a577fe920b7daa724b7d3
[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 _0x507a=['moment','bluebird','path','../../config/environment','./userChatQueue.attributes','exports','define','UserChatQueue','user_has_chat_queues','lodash','util','../../config/logger'];(function(_0x426cd1,_0x136e87){var _0x1ee07e=function(_0x195e41){while(--_0x195e41){_0x426cd1['push'](_0x426cd1['shift']());}};_0x1ee07e(++_0x136e87);}(_0x507a,0x1dd));var _0xa507=function(_0xf824c2,_0x12a7e7){_0xf824c2=_0xf824c2-0x0;var _0x26f936=_0x507a[_0xf824c2];return _0x26f936;};'use strict';var _=require(_0xa507('0x0'));var util=require(_0xa507('0x1'));var logger=require(_0xa507('0x2'))('api');var moment=require(_0xa507('0x3'));var BPromise=require(_0xa507('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa507('0x5'));var rimraf=require('rimraf');var config=require(_0xa507('0x6'));var attributes=require(_0xa507('0x7'));module[_0xa507('0x8')]=function(_0x2c7a3a,_0x4684fe){return _0x2c7a3a[_0xa507('0x9')](_0xa507('0xa'),attributes,{'tableName':_0xa507('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};