3a7d268e31bbde44604c00de02b2abeb53717963
[motion2.git] / server / api / template / template.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 _0x34f3=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes','exports','define','Template','tools_templates','lodash','util','../../config/logger'];(function(_0x9cd4c3,_0x1c9b2c){var _0x4c9025=function(_0x25b3c6){while(--_0x25b3c6){_0x9cd4c3['push'](_0x9cd4c3['shift']());}};_0x4c9025(++_0x1c9b2c);}(_0x34f3,0x1ec));var _0x334f=function(_0x3d8ac5,_0x621f98){_0x3d8ac5=_0x3d8ac5-0x0;var _0x582ec2=_0x34f3[_0x3d8ac5];return _0x582ec2;};'use strict';var _=require(_0x334f('0x0'));var util=require(_0x334f('0x1'));var logger=require(_0x334f('0x2'))(_0x334f('0x3'));var moment=require(_0x334f('0x4'));var BPromise=require(_0x334f('0x5'));var rp=require(_0x334f('0x6'));var fs=require('fs');var path=require(_0x334f('0x7'));var rimraf=require(_0x334f('0x8'));var config=require(_0x334f('0x9'));var attributes=require(_0x334f('0xa'));module[_0x334f('0xb')]=function(_0x4e5d1a,_0x3e72d6){return _0x4e5d1a[_0x334f('0xc')](_0x334f('0xd'),attributes,{'tableName':_0x334f('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};