9257bf0f3d06e08aa900e263e197e1b6909cf12a
[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 _0xd2e2=['path','rimraf','../../config/environment','./tag.attributes','exports','define','Tag','tools_tags','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x176d31,_0x49a78e){var _0x1e09d0=function(_0x70ead8){while(--_0x70ead8){_0x176d31['push'](_0x176d31['shift']());}};_0x1e09d0(++_0x49a78e);}(_0xd2e2,0xa2));var _0x2d2e=function(_0x466b01,_0x56354b){_0x466b01=_0x466b01-0x0;var _0x384a76=_0xd2e2[_0x466b01];return _0x384a76;};'use strict';var _=require(_0x2d2e('0x0'));var util=require(_0x2d2e('0x1'));var logger=require(_0x2d2e('0x2'))(_0x2d2e('0x3'));var moment=require(_0x2d2e('0x4'));var BPromise=require(_0x2d2e('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2d2e('0x6'));var rimraf=require(_0x2d2e('0x7'));var config=require(_0x2d2e('0x8'));var attributes=require(_0x2d2e('0x9'));module[_0x2d2e('0xa')]=function(_0x55cc13,_0x2adde5){return _0x55cc13[_0x2d2e('0xb')](_0x2d2e('0xc'),attributes,{'tableName':_0x2d2e('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};