b08060dfd9962b3fa965133912d65757109b69a4
[motion2.git] / server / api / tag / tag.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 _0x3f6d=['util','../../config/logger','api','moment','bluebird','path','./tag.attributes','exports','define','Tag','tools_tags'];(function(_0x311437,_0x384ca1){var _0x1b1a8=function(_0x1fa4e1){while(--_0x1fa4e1){_0x311437['push'](_0x311437['shift']());}};_0x1b1a8(++_0x384ca1);}(_0x3f6d,0x155));var _0xd3f6=function(_0x43b22b,_0xea722c){_0x43b22b=_0x43b22b-0x0;var _0xd4e124=_0x3f6d[_0x43b22b];return _0xd4e124;};'use strict';var _=require('lodash');var util=require(_0xd3f6('0x0'));var logger=require(_0xd3f6('0x1'))(_0xd3f6('0x2'));var moment=require(_0xd3f6('0x3'));var BPromise=require(_0xd3f6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd3f6('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xd3f6('0x6'));module[_0xd3f6('0x7')]=function(_0x4aa0dd,_0x4801d4){return _0x4aa0dd[_0xd3f6('0x8')](_0xd3f6('0x9'),attributes,{'tableName':_0xd3f6('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};