4274ad9f4880ffb4294fbf53f3c83c15d3e54ad1
[motion2.git] / server / api / trunk / trunk.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 _0xd58f=['tools_trunks','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','Trunk'];(function(_0x364471,_0x302e8a){var _0x59236f=function(_0x524944){while(--_0x524944){_0x364471['push'](_0x364471['shift']());}};_0x59236f(++_0x302e8a);}(_0xd58f,0x1a1));var _0xfd58=function(_0x1297bb,_0x33fe4f){_0x1297bb=_0x1297bb-0x0;var _0x407ee6=_0xd58f[_0x1297bb];return _0x407ee6;};'use strict';var _=require(_0xfd58('0x0'));var util=require(_0xfd58('0x1'));var logger=require(_0xfd58('0x2'))(_0xfd58('0x3'));var moment=require(_0xfd58('0x4'));var BPromise=require(_0xfd58('0x5'));var rp=require(_0xfd58('0x6'));var fs=require('fs');var path=require(_0xfd58('0x7'));var rimraf=require(_0xfd58('0x8'));var config=require(_0xfd58('0x9'));var attributes=require('./trunk.attributes');module['exports']=function(_0x4b70d4,_0x19cd82){return _0x4b70d4[_0xfd58('0xa')](_0xfd58('0xb'),attributes,{'tableName':_0xfd58('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};