40d0e6778461bf04e29c9e13a317b7136f3df445
[motion2.git] / server / api / network / network.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 _0x80ce=['api','path','../../config/environment','./network.attributes','exports','define','Network','util'];(function(_0x42c5cc,_0x39507c){var _0x299202=function(_0x2e11e3){while(--_0x2e11e3){_0x42c5cc['push'](_0x42c5cc['shift']());}};_0x299202(++_0x39507c);}(_0x80ce,0x1e7));var _0xe80c=function(_0x1d0f86,_0x5a6e34){_0x1d0f86=_0x1d0f86-0x0;var _0x2ba5db=_0x80ce[_0x1d0f86];return _0x2ba5db;};'use strict';var _=require('lodash');var util=require(_0xe80c('0x0'));var logger=require('../../config/logger')(_0xe80c('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe80c('0x2'));var rimraf=require('rimraf');var config=require(_0xe80c('0x3'));var attributes=require(_0xe80c('0x4'));module[_0xe80c('0x5')]=function(_0x3bb3e0,_0xbba4ab){return _0x3bb3e0[_0xe80c('0x6')](_0xe80c('0x7'),attributes,{'tableName':'network','paranoid':![],'indexes':[],'timestamps':!![]});};