Built motion from commit 753c950e.|2.5.42
[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 _0xe812=['bluebird','request-promise','rimraf','../../config/environment','exports','define','Network','network','util','../../config/logger'];(function(_0x5b3950,_0x4e5556){var _0x41e436=function(_0x139e30){while(--_0x139e30){_0x5b3950['push'](_0x5b3950['shift']());}};_0x41e436(++_0x4e5556);}(_0xe812,0x1f2));var _0x2e81=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xe812[_0x167cc1];return _0x10bc4b;};'use strict';var _=require('lodash');var util=require(_0x2e81('0x0'));var logger=require(_0x2e81('0x1'))('api');var moment=require('moment');var BPromise=require(_0x2e81('0x2'));var rp=require(_0x2e81('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2e81('0x4'));var config=require(_0x2e81('0x5'));var attributes=require('./network.attributes');module[_0x2e81('0x6')]=function(_0x251244,_0x4f6864){return _0x251244[_0x2e81('0x7')](_0x2e81('0x8'),attributes,{'tableName':_0x2e81('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};