2c85175d9904ee93444b0005793d001a93f8f70e
[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 _0x3e47=['moment','rimraf','../../config/environment','exports','define','UserOpenchannelQueue','user_has_openchannel_queues','lodash','api'];(function(_0x30a58f,_0xc12bb0){var _0x3a602f=function(_0x2759bd){while(--_0x2759bd){_0x30a58f['push'](_0x30a58f['shift']());}};_0x3a602f(++_0xc12bb0);}(_0x3e47,0x1c9));var _0x73e4=function(_0x122096,_0x60c295){_0x122096=_0x122096-0x0;var _0x3d1966=_0x3e47[_0x122096];return _0x3d1966;};'use strict';var _=require(_0x73e4('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x73e4('0x1'));var moment=require(_0x73e4('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x73e4('0x3'));var config=require(_0x73e4('0x4'));var attributes=require('./userOpenchannelQueue.attributes');module[_0x73e4('0x5')]=function(_0x2d041f,_0x3701ad){return _0x2d041f[_0x73e4('0x6')](_0x73e4('0x7'),attributes,{'tableName':_0x73e4('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};