Built motion from commit c738b9ac.|2.6.25
[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 _0xe600=['rimraf','../../config/environment','./network.attributes','exports','define','Network','network','util','api','moment','bluebird','request-promise','path'];(function(_0x2df507,_0x553862){var _0x1f7167=function(_0x11319e){while(--_0x11319e){_0x2df507['push'](_0x2df507['shift']());}};_0x1f7167(++_0x553862);}(_0xe600,0x159));var _0x0e60=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xe600[_0x122ef9];return _0x42fba0;};'use strict';var _=require('lodash');var util=require(_0x0e60('0x0'));var logger=require('../../config/logger')(_0x0e60('0x1'));var moment=require(_0x0e60('0x2'));var BPromise=require(_0x0e60('0x3'));var rp=require(_0x0e60('0x4'));var fs=require('fs');var path=require(_0x0e60('0x5'));var rimraf=require(_0x0e60('0x6'));var config=require(_0x0e60('0x7'));var attributes=require(_0x0e60('0x8'));module[_0x0e60('0x9')]=function(_0x2f9c33,_0x4c5738){return _0x2f9c33[_0x0e60('0xa')](_0x0e60('0xb'),attributes,{'tableName':_0x0e60('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};