e2e07b9ae80cccee6fb34257522fb886fcb7a4ea
[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 _0x930b=['tools_tags','lodash','util','../../config/logger','api','moment','bluebird','exports','define','Tag'];(function(_0x5c7525,_0x39490f){var _0x2e2ec8=function(_0x20d59a){while(--_0x20d59a){_0x5c7525['push'](_0x5c7525['shift']());}};_0x2e2ec8(++_0x39490f);}(_0x930b,0x123));var _0xb930=function(_0x3d2d19,_0x446b61){_0x3d2d19=_0x3d2d19-0x0;var _0x2b469c=_0x930b[_0x3d2d19];return _0x2b469c;};'use strict';var _=require(_0xb930('0x0'));var util=require(_0xb930('0x1'));var logger=require(_0xb930('0x2'))(_0xb930('0x3'));var moment=require(_0xb930('0x4'));var BPromise=require(_0xb930('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0xb930('0x6')]=function(_0x3b80e1,_0x1864ba){return _0x3b80e1[_0xb930('0x7')](_0xb930('0x8'),attributes,{'tableName':_0xb930('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};