Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / chatQueue / chatQueue.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 _0x6349=['bluebird','request-promise','path','./chatQueue.attributes','exports','define','ChatQueue','chat_queues','lodash','util','../../config/logger','api','moment'];(function(_0x288a78,_0x59624f){var _0x52fad2=function(_0x2f0121){while(--_0x2f0121){_0x288a78['push'](_0x288a78['shift']());}};_0x52fad2(++_0x59624f);}(_0x6349,0x133));var _0x9634=function(_0x28345f,_0x1c8be0){_0x28345f=_0x28345f-0x0;var _0x3c8786=_0x6349[_0x28345f];return _0x3c8786;};'use strict';var _=require(_0x9634('0x0'));var util=require(_0x9634('0x1'));var logger=require(_0x9634('0x2'))(_0x9634('0x3'));var moment=require(_0x9634('0x4'));var BPromise=require(_0x9634('0x5'));var rp=require(_0x9634('0x6'));var fs=require('fs');var path=require(_0x9634('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x9634('0x8'));module[_0x9634('0x9')]=function(_0x137890,_0xebd2a5){return _0x137890[_0x9634('0xa')](_0x9634('0xb'),attributes,{'tableName':_0x9634('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};