Built motion from commit b5996064.|2.6.21
[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 _0x4bd3=['path','rimraf','../../config/environment','./userWhatsappQueue.attributes','exports','define','UserWhatsappQueue','user_has_whatsapp_queues','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x1eb186,_0x3e8197){var _0x49079e=function(_0x2ebd6f){while(--_0x2ebd6f){_0x1eb186['push'](_0x1eb186['shift']());}};_0x49079e(++_0x3e8197);}(_0x4bd3,0xbe));var _0x34bd=function(_0x4e24b6,_0x5f2e19){_0x4e24b6=_0x4e24b6-0x0;var _0x3ab299=_0x4bd3[_0x4e24b6];return _0x3ab299;};'use strict';var _=require(_0x34bd('0x0'));var util=require(_0x34bd('0x1'));var logger=require(_0x34bd('0x2'))(_0x34bd('0x3'));var moment=require(_0x34bd('0x4'));var BPromise=require(_0x34bd('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x34bd('0x6'));var rimraf=require(_0x34bd('0x7'));var config=require(_0x34bd('0x8'));var attributes=require(_0x34bd('0x9'));module[_0x34bd('0xa')]=function(_0x5db75e,_0xea482e){return _0x5db75e[_0x34bd('0xb')](_0x34bd('0xc'),attributes,{'tableName':_0x34bd('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};