Built motion from commit 753c950e.|2.5.42
[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 _0x2e71=['api','bluebird','request-promise','../../config/environment','exports','define','UserOpenchannelQueue','lodash','util'];(function(_0x75ad68,_0xc75b2a){var _0x469c7d=function(_0x2feecf){while(--_0x2feecf){_0x75ad68['push'](_0x75ad68['shift']());}};_0x469c7d(++_0xc75b2a);}(_0x2e71,0x18a));var _0x12e7=function(_0xd511d,_0x3546b9){_0xd511d=_0xd511d-0x0;var _0x3f148e=_0x2e71[_0xd511d];return _0x3f148e;};'use strict';var _=require(_0x12e7('0x0'));var util=require(_0x12e7('0x1'));var logger=require('../../config/logger')(_0x12e7('0x2'));var moment=require('moment');var BPromise=require(_0x12e7('0x3'));var rp=require(_0x12e7('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x12e7('0x5'));var attributes=require('./userOpenchannelQueue.attributes');module[_0x12e7('0x6')]=function(_0x2c1f3a,_0x1b0ddc){return _0x2c1f3a[_0x12e7('0x7')](_0x12e7('0x8'),attributes,{'tableName':'user_has_openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});};