a471b087afe20cba7d5575a2f938d14dc1ea547b
[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 _0x5bc9=['../../config/environment','exports','define','UserOpenchannelQueue','lodash','util','api','bluebird','request-promise','path'];(function(_0x55f6d7,_0x5bd984){var _0x2153cc=function(_0x11ff8b){while(--_0x11ff8b){_0x55f6d7['push'](_0x55f6d7['shift']());}};_0x2153cc(++_0x5bd984);}(_0x5bc9,0x194));var _0x95bc=function(_0x45a7fd,_0x14ed71){_0x45a7fd=_0x45a7fd-0x0;var _0xae1a28=_0x5bc9[_0x45a7fd];return _0xae1a28;};'use strict';var _=require(_0x95bc('0x0'));var util=require(_0x95bc('0x1'));var logger=require('../../config/logger')(_0x95bc('0x2'));var moment=require('moment');var BPromise=require(_0x95bc('0x3'));var rp=require(_0x95bc('0x4'));var fs=require('fs');var path=require(_0x95bc('0x5'));var rimraf=require('rimraf');var config=require(_0x95bc('0x6'));var attributes=require('./userOpenchannelQueue.attributes');module[_0x95bc('0x7')]=function(_0x35224f,_0x29b10d){return _0x35224f[_0x95bc('0x8')](_0x95bc('0x9'),attributes,{'tableName':'user_has_openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});};