c6c80e2279ea94e3e38832c0e34a715d1c2cee54
[motion2.git] / server / api / userChatQueue / userChatQueue.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 _0x25a5=['./userChatQueue.attributes','define','UserChatQueue','user_has_chat_queues','lodash','util','api','request-promise','rimraf'];(function(_0x572e92,_0x5b8c78){var _0x50bf10=function(_0x4001d3){while(--_0x4001d3){_0x572e92['push'](_0x572e92['shift']());}};_0x50bf10(++_0x5b8c78);}(_0x25a5,0x1e1));var _0x525a=function(_0x316f77,_0x17f87a){_0x316f77=_0x316f77-0x0;var _0x8abaf4=_0x25a5[_0x316f77];return _0x8abaf4;};'use strict';var _=require(_0x525a('0x0'));var util=require(_0x525a('0x1'));var logger=require('../../config/logger')(_0x525a('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x525a('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x525a('0x4'));var config=require('../../config/environment');var attributes=require(_0x525a('0x5'));module['exports']=function(_0x4d16a1,_0x56b131){return _0x4d16a1[_0x525a('0x6')](_0x525a('0x7'),attributes,{'tableName':_0x525a('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};