3df4a09e6d32a06d44e268df53077dd7d119f200
[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 _0xb9fc=['moment','request-promise','rimraf','../../config/environment','./whatsappAccount.attributes','exports','WhatsappAccount','whatsapp_accounts','util','../../config/logger'];(function(_0x62b58e,_0x46fe1e){var _0x37fe84=function(_0x12a2ca){while(--_0x12a2ca){_0x62b58e['push'](_0x62b58e['shift']());}};_0x37fe84(++_0x46fe1e);}(_0xb9fc,0x13e));var _0xcb9f=function(_0x10e9c6,_0x14c544){_0x10e9c6=_0x10e9c6-0x0;var _0x179d2a=_0xb9fc[_0x10e9c6];return _0x179d2a;};'use strict';var _=require('lodash');var util=require(_0xcb9f('0x0'));var logger=require(_0xcb9f('0x1'))('api');var moment=require(_0xcb9f('0x2'));var BPromise=require('bluebird');var rp=require(_0xcb9f('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcb9f('0x4'));var config=require(_0xcb9f('0x5'));var attributes=require(_0xcb9f('0x6'));module[_0xcb9f('0x7')]=function(_0x37a5d7,_0x4025e0){return _0x37a5d7['define'](_0xcb9f('0x8'),attributes,{'tableName':_0xcb9f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};