91fef610e68d0dc892cf90a53ba6faeb4f59e1bf
[motion2.git] / server / api / userOpenchannelQueue / userOpenchannelQueue.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 _0x0be5=['path','rimraf','../../config/environment','user_has_openchannel_queues','lodash','util','api','moment','request-promise'];(function(_0x25775c,_0x4426cf){var _0x2c0c36=function(_0x4e935e){while(--_0x4e935e){_0x25775c['push'](_0x25775c['shift']());}};_0x2c0c36(++_0x4426cf);}(_0x0be5,0xca));var _0x50be=function(_0x2373c6,_0x4218c9){_0x2373c6=_0x2373c6-0x0;var _0xf2aaa9=_0x0be5[_0x2373c6];return _0xf2aaa9;};'use strict';var _=require(_0x50be('0x0'));var util=require(_0x50be('0x1'));var logger=require('../../config/logger')(_0x50be('0x2'));var moment=require(_0x50be('0x3'));var BPromise=require('bluebird');var rp=require(_0x50be('0x4'));var fs=require('fs');var path=require(_0x50be('0x5'));var rimraf=require(_0x50be('0x6'));var config=require(_0x50be('0x7'));var attributes=require('./userOpenchannelQueue.attributes');module['exports']=function(_0xb9a177,_0x32fe28){return _0xb9a177['define']('UserOpenchannelQueue',attributes,{'tableName':_0x50be('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};