7d7fee4108a77625a6a293222349ae57c00eae25
[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 _0x2f22=['util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','exports','define','Network','network','lodash'];(function(_0x176397,_0x5c4aaf){var _0x1bca5a=function(_0x2fc0dd){while(--_0x2fc0dd){_0x176397['push'](_0x176397['shift']());}};_0x1bca5a(++_0x5c4aaf);}(_0x2f22,0xb5));var _0x22f2=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x2f22[_0xfae23b];return _0x200640;};'use strict';var _=require(_0x22f2('0x0'));var util=require(_0x22f2('0x1'));var logger=require(_0x22f2('0x2'))(_0x22f2('0x3'));var moment=require(_0x22f2('0x4'));var BPromise=require(_0x22f2('0x5'));var rp=require(_0x22f2('0x6'));var fs=require('fs');var path=require(_0x22f2('0x7'));var rimraf=require(_0x22f2('0x8'));var config=require('../../config/environment');var attributes=require('./network.attributes');module[_0x22f2('0x9')]=function(_0x52560c,_0x33cf58){return _0x52560c[_0x22f2('0xa')](_0x22f2('0xb'),attributes,{'tableName':_0x22f2('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};