Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / userWhatsappQueue / userWhatsappQueue.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 _0x199f=['UserWhatsappQueue','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','exports','define'];(function(_0xbb4d5,_0x51eaf9){var _0x3312cb=function(_0x5aab97){while(--_0x5aab97){_0xbb4d5['push'](_0xbb4d5['shift']());}};_0x3312cb(++_0x51eaf9);}(_0x199f,0xa6));var _0xf199=function(_0x1fafa5,_0x1aa281){_0x1fafa5=_0x1fafa5-0x0;var _0xcf08c9=_0x199f[_0x1fafa5];return _0xcf08c9;};'use strict';var _=require(_0xf199('0x0'));var util=require(_0xf199('0x1'));var logger=require(_0xf199('0x2'))(_0xf199('0x3'));var moment=require(_0xf199('0x4'));var BPromise=require(_0xf199('0x5'));var rp=require(_0xf199('0x6'));var fs=require('fs');var path=require(_0xf199('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userWhatsappQueue.attributes');module[_0xf199('0x8')]=function(_0x4bd291,_0x2eb7a7){return _0x4bd291[_0xf199('0x9')](_0xf199('0xa'),attributes,{'tableName':'user_has_whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});};