Built motion from commit 3e059bc2.|2.5.32
[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 _0x526c=['../../config/environment','exports','define','Template','tools_templates','../../config/logger','moment','bluebird','path'];(function(_0xf74372,_0x51fe82){var _0x36bb65=function(_0x499b7a){while(--_0x499b7a){_0xf74372['push'](_0xf74372['shift']());}};_0x36bb65(++_0x51fe82);}(_0x526c,0xd4));var _0xc526=function(_0x57bb3a,_0x237ede){_0x57bb3a=_0x57bb3a-0x0;var _0x5decaa=_0x526c[_0x57bb3a];return _0x5decaa;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc526('0x0'))('api');var moment=require(_0xc526('0x1'));var BPromise=require(_0xc526('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc526('0x3'));var rimraf=require('rimraf');var config=require(_0xc526('0x4'));var attributes=require('./template.attributes');module[_0xc526('0x5')]=function(_0xf8fec,_0x28a4fb){return _0xf8fec[_0xc526('0x6')](_0xc526('0x7'),attributes,{'tableName':_0xc526('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};