Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0xf175=['util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','lodash'];(function(_0x545211,_0x26030e){var _0xdf49a1=function(_0x40e108){while(--_0x40e108){_0x545211['push'](_0x545211['shift']());}};_0xdf49a1(++_0x26030e);}(_0xf175,0xc3));var _0x5f17=function(_0x3bf9e7,_0x230bdd){_0x3bf9e7=_0x3bf9e7-0x0;var _0x3a1c2b=_0xf175[_0x3bf9e7];return _0x3a1c2b;};'use strict';var _=require(_0x5f17('0x0'));var util=require(_0x5f17('0x1'));var logger=require(_0x5f17('0x2'))(_0x5f17('0x3'));var moment=require(_0x5f17('0x4'));var BPromise=require(_0x5f17('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5f17('0x6'));var rimraf=require(_0x5f17('0x7'));var config=require(_0x5f17('0x8'));var attributes=require(_0x5f17('0x9'));module[_0x5f17('0xa')]=function(_0x29978d,_0x3bb43b){return _0x29978d[_0x5f17('0xb')](_0x5f17('0xc'),attributes,{'tableName':_0x5f17('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};