Built motion from commit da617fac.|2.6.6
[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 _0x9d83=['exports','define','UserWhatsappQueue','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x478f24,_0x4ec986){var _0x28c420=function(_0x382bb3){while(--_0x382bb3){_0x478f24['push'](_0x478f24['shift']());}};_0x28c420(++_0x4ec986);}(_0x9d83,0xb7));var _0x39d8=function(_0x3b7a0c,_0xf1a4c2){_0x3b7a0c=_0x3b7a0c-0x0;var _0x3bb70f=_0x9d83[_0x3b7a0c];return _0x3bb70f;};'use strict';var _=require(_0x39d8('0x0'));var util=require('util');var logger=require(_0x39d8('0x1'))(_0x39d8('0x2'));var moment=require(_0x39d8('0x3'));var BPromise=require(_0x39d8('0x4'));var rp=require(_0x39d8('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userWhatsappQueue.attributes');module[_0x39d8('0x6')]=function(_0x243fd3,_0x370a9d){return _0x243fd3[_0x39d8('0x7')](_0x39d8('0x8'),attributes,{'tableName':'user_has_whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});};