Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / openchannelQueue / openchannelQueue.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 _0x2f05=['exports','define','OpenchannelQueue','../../config/logger','moment','request-promise','../../config/environment'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x2f05,0x168));var _0x52f0=function(_0x2a82b3,_0x33137a){_0x2a82b3=_0x2a82b3-0x0;var _0x6bdd9f=_0x2f05[_0x2a82b3];return _0x6bdd9f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x52f0('0x0'))('api');var moment=require(_0x52f0('0x1'));var BPromise=require('bluebird');var rp=require(_0x52f0('0x2'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x52f0('0x3'));var attributes=require('./openchannelQueue.attributes');module[_0x52f0('0x4')]=function(_0x389c88,_0x285a33){return _0x389c88[_0x52f0('0x5')](_0x52f0('0x6'),attributes,{'tableName':'openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});};