6ae531d9c457d3002e5d5b73c8e52fa2dd402a29
[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 _0xfba5=['../../config/logger','moment','request-promise','path','rimraf','../../config/environment','./userOpenchannelQueue.attributes','exports','define','UserOpenchannelQueue','user_has_openchannel_queues'];(function(_0x5d14fd,_0x37acfa){var _0x202175=function(_0x481de6){while(--_0x481de6){_0x5d14fd['push'](_0x5d14fd['shift']());}};_0x202175(++_0x37acfa);}(_0xfba5,0x197));var _0x5fba=function(_0x3a4b2e,_0x1698d2){_0x3a4b2e=_0x3a4b2e-0x0;var _0x3bfd84=_0xfba5[_0x3a4b2e];return _0x3bfd84;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x5fba('0x0'))('api');var moment=require(_0x5fba('0x1'));var BPromise=require('bluebird');var rp=require(_0x5fba('0x2'));var fs=require('fs');var path=require(_0x5fba('0x3'));var rimraf=require(_0x5fba('0x4'));var config=require(_0x5fba('0x5'));var attributes=require(_0x5fba('0x6'));module[_0x5fba('0x7')]=function(_0x43e90f,_0x392c4a){return _0x43e90f[_0x5fba('0x8')](_0x5fba('0x9'),attributes,{'tableName':_0x5fba('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};