Built motion from commit eddce310.|2.6.12
[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 _0xb6c4=['user_has_openchannel_queues','util','../../config/logger','api','path','rimraf','../../config/environment','exports'];(function(_0xed06aa,_0x47f7ca){var _0x566ed7=function(_0x3c907b){while(--_0x3c907b){_0xed06aa['push'](_0xed06aa['shift']());}};_0x566ed7(++_0x47f7ca);}(_0xb6c4,0x1b9));var _0x4b6c=function(_0x1842a0,_0x35a340){_0x1842a0=_0x1842a0-0x0;var _0x3fbaa6=_0xb6c4[_0x1842a0];return _0x3fbaa6;};'use strict';var _=require('lodash');var util=require(_0x4b6c('0x0'));var logger=require(_0x4b6c('0x1'))(_0x4b6c('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4b6c('0x3'));var rimraf=require(_0x4b6c('0x4'));var config=require(_0x4b6c('0x5'));var attributes=require('./userOpenchannelQueue.attributes');module[_0x4b6c('0x6')]=function(_0x410425,_0xe22357){return _0x410425['define']('UserOpenchannelQueue',attributes,{'tableName':_0x4b6c('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};