ad2114bff059e6dfb767ebe8a862c4fcb805e218
[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 _0x58f4=['./userOpenchannelQueue.attributes','exports','define','UserOpenchannelQueue','user_has_openchannel_queues','lodash','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x4dc539,_0x484be2){var _0xfd44fa=function(_0x592171){while(--_0x592171){_0x4dc539['push'](_0x4dc539['shift']());}};_0xfd44fa(++_0x484be2);}(_0x58f4,0xad));var _0x458f=function(_0x264782,_0x1496a1){_0x264782=_0x264782-0x0;var _0x5014d4=_0x58f4[_0x264782];return _0x5014d4;};'use strict';var _=require(_0x458f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x458f('0x1'));var moment=require(_0x458f('0x2'));var BPromise=require(_0x458f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x458f('0x4'));var rimraf=require(_0x458f('0x5'));var config=require(_0x458f('0x6'));var attributes=require(_0x458f('0x7'));module[_0x458f('0x8')]=function(_0x401f88,_0x510b5b){return _0x401f88[_0x458f('0x9')](_0x458f('0xa'),attributes,{'tableName':_0x458f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};